/* ==========================================================================
   PVmedo – Gestaltung "Farbig, klar, erwachsen" (eine Datei für alle Seiten)
   Für Laien: Diese Datei bitte nur ändern, wenn man weiß, was man tut.
   Die Farben stehen ganz oben unter ":root" – dort kann man sie tauschen.
   ========================================================================== */

:root {
  --creme: #fbf6ee;         /* Hintergrund der Seite */
  --tiefblau: #1f3b73;      /* Primärfarbe: Überschriften, dunkle Flächen, Fußzeile */
  --tiefblau-tief: #162c57; /* etwas dunkler, für Hover */
  --korall: #e2654a;        /* Zitatstrich, Wortmarke, Streifen */
  --korall-tief: #c24f36;   /* Hauptbutton (weiße Schrift, Kontrast 4,7) */
  --korall-text: #ad3f27;   /* Korall für kleine Schrift (Kicker, Ziffern) – erreicht AA */
  --gelb: #f2b134;          /* Akzentlinien, Kicker auf Dunkel */
  --gruen: #3f8f5a;         /* zweiter Akzent, Kartenbalken */
  --gruen-tief: #2f7447;    /* Link-Hover (Schrift, erreicht AA) */
  --himmel: #dbe9f5;        /* helle Fläche */
  --gelb-hell: #fbecc8;     /* helle Fläche */
  --gruen-hell: #e2f0e5;    /* helle Fläche */
  --tinte: #1f2430;         /* Text */
  --tinte-weich: #4e5563;   /* Nebentext, Bildunterschriften */
  --linie: #e4ddd0;         /* feine Linien */

  --schrift: "Segoe UI", system-ui, Arial, sans-serif;
  --serife: Georgia, "Times New Roman", serif;
  --schatten: 0 1px 3px rgba(0, 0, 0, .08);
}

/* ---------- Grundlagen ---------- */

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.1rem;
  line-height: 1.65;
  overflow-x: clip;
}

main { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--tiefblau); text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .2em; }
a:hover { color: var(--gruen-tief); }

:focus-visible { outline: 3px solid var(--tiefblau); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--schrift);
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.2;
  color: var(--tiefblau);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.35rem); color: var(--tinte); }

sub { line-height: 0; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }

.inhalt { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.spalte { max-width: 66ch; }

.sprunglink {
  position: absolute; left: .75rem; top: -4rem;
  background: var(--tiefblau); color: var(--creme);
  padding: .6rem 1.2rem; border-radius: 8px; z-index: 50;
}
.sprunglink:focus { top: .75rem; }

/* ---------- Markenelement: Farbstreifen ---------- */

.streifen {
  height: 6px;
  background: linear-gradient(to right,
    var(--gelb) 0 25%, var(--korall) 25% 50%, var(--tiefblau) 50% 75%, var(--gruen) 75% 100%);
}

/* ---------- Flächenfarben (Abschnitte) ---------- */

.bg-creme { background: var(--creme); }
.bg-himmel { background: var(--himmel); }
.bg-gelb { background: var(--gelb-hell); }
.bg-gruen { background: var(--gruen-hell); }
.bg-tiefblau { background: var(--tiefblau); color: var(--creme); }

.sektion { position: relative; padding: 4rem 0; }
.sektion.kurz { padding: 2rem 0 0; }
.sektion.kurz + .sektion { padding-top: 2rem; }

/* ---------- Kopfzeile ---------- */

.kopf { background: var(--creme); padding: 1.1rem 0; position: relative; z-index: 20; }
.kopf-innen { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.wortmarke {
  font-weight: 700; font-size: 1.5rem; letter-spacing: normal;
  color: var(--tiefblau); text-decoration: none; white-space: nowrap;
}
.wortmarke:hover { color: var(--tiefblau); }
.wortmarke .o { color: var(--korall); }

.menue-schalter { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.menue-knopf { display: none; }

.hauptmenue ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; flex-wrap: wrap; }
.hauptmenue a {
  display: inline-block; padding: .3rem 0; border-bottom: 2px solid transparent;
  color: var(--tinte); text-decoration: none; font-weight: 500; font-size: 1rem;
}
.hauptmenue a:hover { color: var(--gruen-tief); }
.hauptmenue a[aria-current="page"] { border-bottom-color: var(--korall); color: var(--tinte); }

@media (max-width: 800px) {
  .menue-knopf {
    display: inline-flex; align-items: center; gap: .6rem; cursor: pointer;
    border: 2px solid var(--tiefblau); color: var(--tiefblau); font-weight: 600; font-size: 1rem;
    padding: .4rem .9rem; border-radius: 8px;
  }
  .balken, .balken::before, .balken::after {
    display: block; width: 1.1rem; height: 2px; background: var(--tiefblau); position: relative;
  }
  .balken::before, .balken::after { content: ""; position: absolute; left: 0; }
  .balken::before { top: -6px; }
  .balken::after { top: 6px; }
  .menue-schalter:focus-visible ~ .menue-knopf { outline: 3px solid var(--tiefblau); outline-offset: 3px; }
  .hauptmenue {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + .8rem);
    background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); padding: .4rem 1.2rem;
  }
  .menue-schalter:checked ~ .hauptmenue { display: block; }
  .hauptmenue ul { flex-direction: column; gap: 0; }
  .hauptmenue li { border-bottom: 1px solid var(--linie); }
  .hauptmenue li:last-child { border-bottom: 0; }
  .hauptmenue a { padding: .8rem 0 .4rem; font-size: 1.1rem; }
}

/* ---------- Kicker, Einleitung ---------- */

.kicker {
  margin: 0 0 .8rem; background: none;
  color: var(--korall-text); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; line-height: 1.4;
}
.bg-tiefblau .kicker { color: var(--gelb); }
.einleitung { font-size: 1.25rem; max-width: 56ch; }

/* ---------- Knöpfe ---------- */

.knopfreihe { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.75rem 0 0; }
.knopf {
  display: inline-block; padding: .75rem 1.5rem; border-radius: 8px;
  background: var(--korall-tief); color: #fff; text-decoration: none; font-weight: 600; font-size: 1.02rem;
  border: 2px solid var(--korall-tief);
}
.knopf:hover { background: #a8412b; border-color: #a8412b; color: #fff; }
.knopf-zweit { background: transparent; color: var(--tiefblau); border-color: var(--tiefblau); }
.knopf-zweit:hover { background: transparent; color: var(--tiefblau-tief); border-color: var(--tiefblau-tief); }
.bg-tiefblau a.knopf-zweit { color: var(--creme); border-color: var(--creme); background: transparent; }
.bg-tiefblau a.knopf-zweit:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- Hero und Seitenkopf ---------- */

.hero { padding: 4rem 0 4.5rem; }
.hero-raster { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }

.seitenkopf { padding: 3.5rem 0; }
.seitenkopf h1 { margin-bottom: .4em; max-width: 16em; }

/* Hero-Bild: gerade, mit einem versetzten gelben Block dahinter */
.hero-bild { margin: 0 16px 0 0; }
.bild-rahmen { position: relative; }
.bild-rahmen::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; background: var(--gelb); border-radius: 8px;
}
.bild-rahmen img { position: relative; }
.hero-bild figcaption { margin-top: 1.6rem; }

@media (max-width: 860px) {
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-raster { grid-template-columns: 1fr; gap: 2rem; }
  .seitenkopf { padding: 2.5rem 0; }
  .sektion { padding: 3rem 0; }
}

/* ---------- Bilder ---------- */

.bild { margin: 0; }
.bild img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--schatten); }
.bild figcaption { margin-top: .7rem; font-size: .95rem; line-height: 1.5; color: var(--tinte-weich); }

.bildpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.bildpaar.umgekehrt figure { order: -1; }
.bildpaar > div > :last-child { margin-bottom: 0; }
.bildreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; margin-top: 2rem; }
.figur-abstand { margin: 2rem 0; }
.bild-mitte { max-width: 760px; margin-inline: auto; }
.figur-abstand .bild { max-width: 880px; margin-inline: auto; }
/* Bildreihe: beide Bilder gleich hoch (4:3), Ausschnitt mittig */
.bildreihe.bildreihe-gleich .bild img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }

@media (max-width: 800px) {
  .bildpaar, .bildreihe { grid-template-columns: 1fr; gap: 2rem; }
  .bildpaar.umgekehrt figure { order: 0; }
}

/* ---------- Karten ---------- */

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.karte {
  position: relative; overflow: hidden; background: #fff; border-radius: 8px;
  padding: 2rem 1.6rem 1.5rem; box-shadow: var(--schatten);
}
.karte::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tiefblau); }
.karte-2::before { background: var(--gruen); }
.karte-3::before { background: var(--korall); }
.karte p { margin-bottom: 0; }
.karte h3 { margin-bottom: .4em; }

/* ---------- Schritte ---------- */

.schritte { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: schritt; }
.schritte > li { counter-increment: schritt; }
.schritte > li::before {
  content: counter(schritt); display: block; margin-bottom: .4rem;
  color: var(--korall-text); font-size: 2.4rem; font-weight: 600; line-height: 1.1;
}
.schritte p:last-child, .schritte ul:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
  .schritte { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Zitate, Hinweise, Listen ---------- */

.zitat {
  margin: 2rem 0; padding: .2rem 0 .2rem 1.5rem; max-width: 66ch;
  border-left: 4px solid var(--korall);
}
.zitat p { font-family: var(--serife); font-size: 1.35rem; line-height: 1.5; margin-bottom: .7rem; }
.zitat footer { font-family: var(--schrift); font-size: .95rem; color: var(--tinte-weich); }
.zitat cite { font-family: var(--schrift); font-style: normal; font-weight: 600; color: var(--tinte); }

.hinweis {
  margin-top: 2rem; padding: 1.2rem 1.6rem; max-width: 70ch;
  background: #fff; border-left: 4px solid var(--gelb); border-radius: 8px; box-shadow: var(--schatten);
}
.hinweis p:last-child { margin-bottom: 0; }
.kurz .hinweis { margin-top: 0; }

.angaben { margin: 1.2rem 0 0; padding-left: 1.3rem; max-width: 66ch; }
.angaben li { margin-bottom: .5rem; padding-left: .2rem; }
.angaben li::marker { color: var(--tiefblau); }
.angaben-karte { background: #fff; border-radius: 8px; padding: 1.4rem 1.6rem 1rem; max-width: 70ch; box-shadow: var(--schatten); margin-top: 1.2rem; }
.angaben-karte .angaben { margin-top: 0; }

.zahlenliste { padding-left: 1.5rem; }
.zahlenliste li { margin-bottom: 1rem; padding-left: .3rem; }
.zahlenliste li::marker { color: var(--korall-text); font-weight: 700; }

.legende { margin: 0; display: grid; gap: .8rem; }
.legende > div { background: #fff; border-radius: 8px; padding: .8rem 1.2rem; box-shadow: var(--schatten); }
.legende dt { font-weight: 600; color: var(--tiefblau); }
.legende dd { margin: 0; }

.platzhalter { background: #fbe08a; border-bottom: 2px dashed #a87a12; padding: 0 .3em; border-radius: 4px; }
.platzhalter-bild {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 280px; padding: 1rem;
  background: var(--gelb-hell); border: 2px dashed #a87a12; border-radius: 8px; font-weight: 600;
}

.rechtstext { background: #fff; border-radius: 8px; padding: 1.75rem 2rem 1rem; max-width: 800px; box-shadow: var(--schatten); }
.rechtstext h2 { font-size: 1.4rem; margin-top: 1.2em; padding-bottom: .25em; border-bottom: 2px solid var(--gelb); }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext p { margin-bottom: 1em; }

/* ---------- dunkle Fläche (Kontaktaufruf) ---------- */

.bg-tiefblau h2, .bg-tiefblau h3 { color: var(--creme); }
.bg-tiefblau a { color: var(--gelb); }
.bg-tiefblau a:hover { color: #fff; }
.bg-tiefblau a.knopf { color: #fff; }
.bg-tiefblau :focus-visible, .fuss :focus-visible { outline-color: var(--gelb); }

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

.fuss { background: var(--tiefblau); color: var(--creme); padding: 2.5rem 0 3rem; }
.fuss .wortmarke { color: var(--creme); font-size: 1.7rem; }
.fuss .wortmarke:hover { color: var(--creme); }
.fuss .wortmarke .o { color: var(--gelb); }
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.fuss p { margin: .3rem 0 0; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.fuss a { color: var(--creme); }
.fuss a:hover { color: var(--gelb); }
.fuss .wortmarke { text-decoration: none; }
