/* Rampenloch Minden – Stylesheet
   Farben: Putz, Basalt, Schildblau, Ziegel, Laterne */

@font-face {
  font-family: "Roboto Flex Local";
  src: url("fonts/roboto-var.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Bitter Local";
  src: url("fonts/bitter-var.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter Local";
  src: url("fonts/bitter-italic-var.woff") format("woff");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --putz: #e4e2dd;
  --putz-dunkel: #d3d0c9;
  --basalt: #23262a;
  --basalt-weich: #4a4e54;
  --schild: #1f4e8c;
  --ziegel: #8a3a2c;
  --laterne: #f2b33d;

  --schrift-schild: "Roboto Flex Local", "Roboto Condensed", "Arial Narrow", sans-serif;
  --schrift-text: "Bitter Local", Georgia, serif;

  --mass: 38rem;
  --rand: clamp(1.25rem, 5vw, 3rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--putz);
  color: var(--basalt);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

a { color: var(--schild); text-underline-offset: 0.18em; }
a:hover { color: var(--ziegel); }

:focus-visible {
  outline: 3px solid var(--laterne);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--laterne);
  color: var(--basalt);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* ---------- Kopf & Navigation ---------- */

.kopf {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--rand);
  font-family: var(--schrift-schild);
  font-stretch: 85%;
}
.kopf .marke {
  color: var(--putz);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.kopf nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  margin: 0;
  padding: 0;
}
.kopf nav a {
  color: var(--putz);
  text-decoration: none;
  font-size: 1rem;
}
.kopf nav a:hover { color: var(--laterne); }

/* ---------- Hero: Straßenschild über Pflaster ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  place-items: center;
  padding: 7rem var(--rand) 9rem;
  background-color: var(--basalt);
  background-image:
    radial-gradient(ellipse 55% 45% at 50% 38%, rgba(242, 179, 61, 0.22), transparent 70%),
    linear-gradient(to bottom, var(--basalt) 35%, rgba(35, 38, 42, 0.55) 100%),
    url("pflaster.svg");
  background-size: auto, auto, 180px 120px;
  color: var(--putz);
  overflow: hidden;
}

.schild-halter {
  display: grid;
  justify-items: center;
  gap: 2.2rem;
  text-align: center;
}

.schild {
  position: relative;
  margin: 0;
  background: var(--schild);
  color: #fff;
  border-radius: 0.6rem;
  padding: 0.35em 0.75em 0.32em;
  box-shadow:
    inset 0 0 0 0.09em var(--schild),
    inset 0 0 0 0.14em #fff,
    0 1.2rem 2.5rem rgba(0, 0, 0, 0.45);
  font-family: var(--schrift-schild);
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(3rem, 13vw, 9.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
/* Schrauben links und rechts */
.schild::before,
.schild::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.07em;
  height: 0.07em;
  border-radius: 50%;
  background: #c9d3e0;
  transform: translateY(-50%);
}
.schild::before { left: 0.24em; }
.schild::after { right: 0.24em; }

.hero-text {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: var(--putz);
}

.hero-wege {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--schrift-schild);
  font-stretch: 85%;
  font-size: 1.1rem;
}
.hero-wege a {
  color: var(--laterne);
  text-decoration: none;
  border-bottom: 2px solid rgba(242, 179, 61, 0.4);
  padding-bottom: 0.1rem;
}
.hero-wege a:hover { border-bottom-color: var(--laterne); color: var(--laterne); }

/* Das eine Lade-Moment: Laternenlicht geht an */
@media (prefers-reduced-motion: no-preference) {
  .hero { animation: laterne-an 1.8s ease-out both; }
  @keyframes laterne-an {
    from { background-image:
      radial-gradient(ellipse 55% 45% at 50% 38%, rgba(242, 179, 61, 0), transparent 70%),
      linear-gradient(to bottom, var(--basalt) 35%, rgba(35, 38, 42, 0.55) 100%),
      url("pflaster.svg"); }
  }
}

/* ---------- Abschnitte ---------- */

main > section {
  padding: clamp(4rem, 9vw, 7rem) var(--rand);
}

.innen {
  max-width: 68rem;
  margin: 0 auto;
}

.abschnitt-kopf {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 3rem;
  max-width: var(--mass);
}

h2 {
  margin: 0;
  font-family: var(--schrift-schild);
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
}

h3 {
  margin: 0 0 0.4rem;
  font-family: var(--schrift-schild);
  font-stretch: 85%;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
}

p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; line-height: 1.6; }

/* Platzhalter, die Oliver noch füllen muss */
.offen {
  background: rgba(242, 179, 61, 0.35);
  box-shadow: 0 0 0 2px rgba(242, 179, 61, 0.35);
  border-radius: 2px;
}

/* ---------- Geschichte: Zeitleiste ---------- */

.geschichte { background: var(--putz); }

.zeitleiste {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 52rem;
  border-left: 3px solid var(--basalt);
}
.zeitleiste li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.5rem;
  padding: 0 0 2.2rem 1.5rem;
  position: relative;
}
.zeitleiste li::before {
  content: "";
  position: absolute;
  left: -0.56rem;
  top: 0.55rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--putz);
  border: 3px solid var(--basalt);
  border-radius: 50%;
}
.zeitleiste li.heute::before { background: var(--laterne); }
.jahr {
  font-family: var(--schrift-schild);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--ziegel);
}
.zeitleiste p { margin: 0; max-width: var(--mass); }

.quelle {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--basalt-weich);
}

/* ---------- Wohnen ---------- */

.wohnen { background: var(--basalt); color: var(--putz); }
.wohnen a { color: var(--laterne); }
.wohnen .offen { color: var(--basalt); background: var(--laterne); box-shadow: 0 0 0 2px var(--laterne); }

.wohnen-raster {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.eckdaten {
  margin: 0;
  border-top: 2px solid var(--putz);
}
.eckdaten div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(228, 226, 221, 0.3);
}
.eckdaten dt { color: rgba(228, 226, 221, 0.75); }
.eckdaten dd {
  margin: 0;
  text-align: right;
  font-family: var(--schrift-schild);
  font-stretch: 85%;
  font-weight: 600;
  font-size: 1.15rem;
}

.knopf {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.4rem;
  background: var(--laterne);
  color: var(--basalt);
  font-family: var(--schrift-schild);
  font-stretch: 85%;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 0.35rem;
}
.wohnen .knopf { color: var(--basalt); }
.knopf:hover { background: #f7c766; color: var(--basalt); }

/* ---------- Kultur & Termine ---------- */

.kultur { background: var(--putz-dunkel); }

.termine {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--basalt);
}
.termine li {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(35, 38, 42, 0.25);
}
.datum {
  font-family: var(--schrift-schild);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
}
.datum small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--basalt-weich);
}
.termine h3 { margin-bottom: 0.2rem; }
.termine p { margin: 0; color: var(--basalt-weich); }
.art {
  font-family: var(--schrift-schild);
  font-stretch: 85%;
  font-size: 1rem;
  color: var(--ziegel);
}

.mitmachen {
  margin-top: 3rem;
  max-width: var(--mass);
}

/* ---------- Lage & Kontakt ---------- */

.lage { background: var(--putz); }

.lage-raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.adresse {
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.karte-skizze {
  margin: 0;
}
.karte-skizze svg {
  display: block;
  width: 100%;
  height: auto;
  background: var(--putz-dunkel);
  border-radius: 0.35rem;
}
.karte-skizze figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--basalt-weich);
}

/* ---------- Fuß ---------- */

.fuss {
  background: var(--basalt);
  color: var(--putz);
  padding: 2.5rem var(--rand);
  font-family: var(--schrift-schild);
  font-stretch: 85%;
}
.fuss .innen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.fuss a { color: var(--putz); }
.fuss ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.fuss p { margin: 0; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */

.unterseite .kopf { position: static; background: var(--basalt); }
.unterseite main { padding: clamp(3rem, 7vw, 5rem) var(--rand); }
.unterseite main .innen { max-width: var(--mass); }
.unterseite h2 { margin-top: 2.5rem; font-size: 1.8rem; }
.unterseite h1 {
  margin: 0 0 1.5rem;
  font-family: var(--schrift-schild);
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1;
}

/* ---------- Mobil ---------- */

@media (max-width: 760px) {
  .kopf { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 9rem; }
  .zeitleiste li { grid-template-columns: 1fr; gap: 0.25rem; }
  .wohnen-raster,
  .lage-raster { grid-template-columns: 1fr; }
  .termine li { grid-template-columns: 5.5rem 1fr; }
  .termine .art { grid-column: 2; }
}
