/* ==========================================================================
   Reedezeit · zentrales Stylesheet
   Wird von allen Seiten eingebunden (index.html, idee.html, …)
   ========================================================================== */

/* ---------- Farben & Schriften ---------- */
:root {
  --sand:        #E8DDC7;              /* Seitenhintergrund (sandig) */
  --sand-hell:   #F1E9D8;              /* helle Schrift auf dem Headerbild */
  --tinte:       #1C3A40;              /* Text: dunkles Blaugrün */
  --tinte-weich: #3F5B60;              /* sekundärer Text */
  --linie:       rgba(28,58,64,.18);   /* feine Trennlinien */

  --schrift-kopf: 'Quicksand', 'Trebuchet MS', sans-serif;
  --schrift-text: 'Nunito Sans', 'Segoe UI', sans-serif;
  --schrift-hand: 'La Belle Aurore', 'Segoe Script', cursive;

  /* kleine gezeichnete Welle als Hintergrundgrafik (dunkle Variante) */
  --wellen-uri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 7'%3E%3Cpath d='M0 4 Q6 0.8 12 4 T24 4' fill='none' stroke='%231C3A40' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");

  /* helle Variante für Links auf dem dunklen Headerbild */
  --wellen-hell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 7'%3E%3Cpath d='M0 4 Q6 0.8 12 4 T24 4' fill='none' stroke='%23F1E9D8' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");

  /* senkrechte Welle (links neben dem Kerntext) */
  --wellen-senkrecht: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 24'%3E%3Cpath d='M5 0 Q0.5 6 5 12 Q9.5 18 5 24' fill='none' stroke='%231C3A40' stroke-opacity='0.5' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 1.05rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

::selection { background: rgba(28,58,64,.16); }

h1, h2, h3 {
  font-family: var(--schrift-kopf);
  font-weight: 600;
  color: var(--tinte);
}

/* Sprunglink: nur für Tastaturnutzung sichtbar */
.sprunglink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--tinte);
  color: var(--sand);
  padding: .6rem 1.1rem;
  border-radius: 0 0 12px 0;
  text-decoration: none;
  font-weight: 600;
}
.sprunglink:focus { left: 0; }

/* Versteckter Zeichenvorrat (SVG-Symbole) */
.symbolvorrat {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ==========================================================================
   KOPFBEREICH: Headerbild mit Titel, Menü und Slogan als Overlay
   ========================================================================== */
.kopf {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Höhe des Headers: bei Bedarf anpassen (z. B. flacher: 240px) */
  min-height: clamp(300px, 26vw, 430px);
}

/* Das Panorama füllt den Kopfbereich; "object-position" bestimmt,
   welcher Bildausschnitt gezeigt wird (z. B. "50% 30%" = weiter oben). */
.kopf__bild {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.kopf__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* Abdunkelung: oben & unten stärker (dort steht der Text),
   in der Mitte transparenter (dort darf das Bild wirken).
   Die letzten Werte je Zeile (.58 / .26 / .30 / .58) regeln die Stärke. */
.kopf__schleier {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13,31,36,.58) 0%,
    rgba(13,31,36,.26) 34%,
    rgba(13,31,36,.30) 72%,
    rgba(13,31,36,.58) 100%);
}

/* Der Overlay-Inhalt: oben Titel + Menü, unten der Slogan */
.kopf__inhalt {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* unten genug Abstand, damit der Slogan über der Welle bleibt */
  padding: 1.4rem 1.6rem clamp(58px, 9vw, 104px);
}

/* Gezeichnete Welle am unteren Bildrand */
.kopf__welle {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: clamp(38px, 7vw, 88px);
  display: block;
}
.kopf__welle--flaeche { fill: var(--sand); }
.kopf__welle--linie {
  fill: none;
  stroke: var(--tinte);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  opacity: .45;
}
.kopf__welle--linie-zart { opacity: .2; }

/* ---------- Navigation auf dem Headerbild ---------- */
.navigation {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

/* Marke: Logo (mit sanftem Sand-Halo) + Seitentitel */
.marke {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--sand-hell);
}
/* Logo-Größe hier anpassen (derzeit ca. 64–88 px je nach Bildschirm) */
.marke__logo {
  width: clamp(64px, 6.5vw, 88px);
  height: clamp(64px, 6.5vw, 88px);
  object-fit: contain;
  padding: 9px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(232,221,199,.92) 0%,
    rgba(232,221,199,.55) 55%,
    rgba(232,221,199,0) 74%);
}
.marke__name {
  font-family: var(--schrift-kopf);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  letter-spacing: .02em;
  text-shadow: 0 1px 16px rgba(12,28,33,.55);
}

.menue {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .2rem 1.35rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.menue a {
  position: relative;
  display: inline-block;
  padding: .3rem 0;
  text-decoration: none;
  color: var(--sand-hell);
  font-weight: 600;
  font-size: .95rem;
  text-shadow: 0 1px 12px rgba(12,28,33,.6);
}

/* Wellen-Unterstreichung beim Überfahren mit der Maus (helle Variante) */
.menue a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 6px;
  background-image: var(--wellen-hell);
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 6px;
  opacity: 0;
  transition: opacity .25s ease;
}
.menue a:hover, .menue a:focus-visible { color: #FFFFFF; }
.menue a:hover::after, .menue a:focus-visible::after { opacity: 1; }

/* Aktiver Nav-Punkt (für die Folgeseiten) */
.menue a.aktiv, .menue a[aria-current="page"] { color: #FFFFFF; }
.menue a.aktiv::after, .menue a[aria-current="page"]::after { opacity: 1; }

/* Drei feine Striche als Menü-Schalter (nur mobil sichtbar) */
.menueschalter {
  display: none;
  margin-left: auto;
  padding: .55rem .3rem;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.menueschalter span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--sand-hell);
  transition: transform .25s ease, opacity .25s ease;
}
.menueschalter[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menueschalter[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menueschalter[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Auf dem Handy klappt das Menü als dunkles Feld unter der Leiste auf */
@media (max-width: 900px) {
  .menueschalter { display: flex; }
  .menue {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: -8px;
    right: -8px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: rgba(14,33,38,.96);
    border-radius: 18px;
    padding: .55rem .5rem;
    box-shadow: 0 16px 34px rgba(10,24,28,.35);
  }
  .menue.offen { display: flex; animation: menueauf .25s ease both; }
  .menue a {
    font-size: 1.04rem;
    padding: .72rem 1rem;
    color: var(--sand-hell);
    text-shadow: none;
  }
}
@keyframes menueauf {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Slogan (unten rechts auf dem Headerbild) ---------- */
.slogan {
  margin: 0;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--schrift-hand);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.3;
  color: var(--sand-hell);
  text-shadow: 0 2px 18px rgba(12,28,33,.55);
}
.slogan__anker {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--sand-hell);
  opacity: .85;
}

/* ==========================================================================
   INHALTSBEREICH (Sand-Hintergrund)
   ========================================================================== */
.seite {
  max-width: 730px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 3.2rem;
}

.seite h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.35;
  margin: 3rem 0 1.2rem;
}

/* --- Einstieg --- */
.einstieg h1 {
  margin: 0 0 1.6rem;
  font-size: clamp(1.85rem, 4.6vw, 2.55rem);
  line-height: 1.28;
  letter-spacing: .005em;
}
/* feine Wellenlinie unter der Hauptüberschrift */
.einstieg h1::after {
  content: "";
  display: block;
  width: 140px;
  height: 7px;
  margin-top: 1.15rem;
  background-image: var(--wellen-uri);
  background-repeat: repeat-x;
  background-size: auto 7px;
  opacity: .9;
}
.handschrift {
  font-family: var(--schrift-hand);
  font-weight: 400;
  font-size: 1.18em;
  white-space: nowrap;
}
.einstieg p { max-width: 62ch; margin: 0 0 1.15rem; }

/* Kernsatz mit sanfter senkrechter Wellenlinie */
.kerntext {
  padding-left: 1.5rem;
  background-image: var(--wellen-senkrecht);
  background-repeat: repeat-y;
  background-position: left top;
  background-size: 11px 24px;
  font-weight: 600;
  font-size: 1.12rem;
}

/* --- Trenner: Möwen --- */
.trenner {
  display: flex;
  justify-content: center;
  margin: 2.8rem 0 .6rem;
  color: var(--tinte);
  opacity: .75;
}
.trenner svg { width: 190px; height: 38px; }

/* --- "Reedezeit kann für Sie passend sein" --- */
.passend h2 { margin-top: 0; }

.anlassliste { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.anlassliste li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--linie);
}
.anlassliste li:last-child { border-bottom: 0; }
.anlassliste__welle {
  flex: none;
  width: 30px;
  height: 11px;
  margin-top: .55rem;
  color: var(--tinte);
  opacity: .75;
}

/* Der letzte Punkt als handschriftlicher Nachklang */
.anlassliste__schluss {
  font-family: var(--schrift-hand);
  font-size: 1.55rem;
  line-height: 1.45;
  padding: 1.15rem 0 0;
}
.anlassliste__schluss .anlassliste__welle { margin-top: .95rem; }

/* Merksatz zwischen den Wellenlinien */
.merksatz {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  margin: 2.6rem 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 1.08rem;
}
.merksatz__welle { flex: none; width: 70px; height: 7px; color: var(--tinte); opacity: .4; }

/* --- Gut zu wissen --- */
.gut-zu-wissen h2 { margin-top: 3rem; }

.infokasten {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  background: #F1E9D8;
  border: 1px solid var(--linie);
  border-radius: 26px;
  padding: 1.9rem 2.1rem;
}
.infoliste { flex: 1 1 auto; margin: 0; min-width: 0; }
.infoliste__eintrag {
  display: flex;
  align-items: flex-start;
  gap: 1.05rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--linie);
}
.infoliste__eintrag:first-child { padding-top: 0; }
.infoliste__eintrag:last-child { border-bottom: 0; padding-bottom: 0; }
.infoliste__symbol {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: .2rem;
  color: var(--tinte);
  opacity: .75;
}
.infoliste dt {
  font-family: var(--schrift-kopf);
  font-weight: 600;
  font-size: 1.03rem;
  line-height: 1.4;
}
.infoliste dd {
  margin: .15rem 0 0;
  color: var(--tinte-weich);
  font-size: .97rem;
  line-height: 1.65;
}
.infokasten__bild {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  color: var(--tinte);
  opacity: .85;
}
.infokasten__bild svg { width: 200px; height: 155px; }

/* --- Übergang zu den weiteren Seiten --- */
.weitere {
  margin-top: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.weitere__anker { width: 28px; height: 28px; color: var(--tinte); opacity: .65; }
.weitere__links { margin: 0; text-align: center; font-size: .98rem; color: var(--tinte-weich); }
.weitere__links a {
  position: relative;
  display: inline-block;
  padding: 0 0 2px;
  color: var(--tinte);
  font-weight: 600;
  text-decoration: none;
}
/* Wellen-Unterstreichung (dunkle Variante, da auf Sand-Hintergrund) */
.weitere__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 6px;
  background-image: var(--wellen-uri);
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 6px;
  opacity: 0;
  transition: opacity .25s ease;
}
.weitere__links a:hover, .weitere__links a:focus-visible { color: var(--tinte); }
.weitere__links a:hover::after, .weitere__links a:focus-visible::after { opacity: 1; }

/* ---------- Fußbereich ---------- */
.fuss {
  border-top: 1px solid var(--linie);
  padding: 2.2rem 1.5rem 2.6rem;
  text-align: center;
}
.fuss__welle { width: 56px; height: 6px; color: var(--tinte); opacity: .55; margin-bottom: 1.1rem; }
.fuss__name {
  font-family: var(--schrift-kopf);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 .9rem;
}
.fuss__links { font-size: .92rem; }
.fuss__links a {
  color: var(--tinte-weich);
  text-decoration: underline;
  text-decoration-color: var(--linie);
  text-underline-offset: 3px;
}
.fuss__links a:hover { color: var(--tinte); }
.fuss__hinweis {
  margin: .9rem 0 0;
  font-size: .85rem;
  color: var(--tinte-weich);
  opacity: .85;
}

/* ---------- Feinheiten ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--tinte);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Auf dem dunklen Headerbild: heller Fokusring */
.kopf a:focus-visible, .kopf button:focus-visible {
  outline-color: var(--sand-hell);
}

@media (max-width: 720px) {
  .infokasten { flex-direction: column; align-items: stretch; gap: 1.6rem; padding: 1.6rem 1.5rem; }
  .infokasten__bild { flex-basis: auto; }
  .infokasten__bild svg { width: 150px; height: 116px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .seite { padding: 2.4rem 1.25rem 2.5rem; }
  .kopf__inhalt { padding: 1.1rem 1.15rem clamp(52px, 14vw, 80px); }
  /* Slogan auf dem Handy mittig statt rechtsbündig */
  .slogan { align-self: center; text-align: center; }
}

@media (max-width: 560px) {
  .merksatz__welle { display: none; }
}