/* =================================================================
   Thomas Koritz – koritz.com
   Gemeinsames Stylesheet, selbst geschrieben, kein Framework.
   Modern-aktivistisch. Barrierefrei nach WCAG 2.1 AA.
   ================================================================= */

:root {
  /* Farben */
  --blau: #14506b;          /* Nordseeblau */
  --blau-hell: #1f6f93;
  --akzent: #e98a2e;        /* Sanddorn hell, dekorativ + Name */
  --akzent-text: #ffffff;   /* Text auf Sanddorn-Button */
  --akzent-dunkel: #b85614; /* Sanddorn dunkel, Text auf Weiss + Buttons, AA */
  --link: #0a4a78;          /* Links auf Weiss, hoher Kontrast */
  --text: #1a1a1a;
  --text-leise: #4a4a4a;
  --grau-bg: #f4f6f8;
  --weiss: #ffffff;
  --rand: #d9dee3;

  /* Typografie */
  --schrift: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --breite: 1080px;

  --radius: 14px;
  --schatten: 0 4px 18px rgba(20, 59, 92, 0.10);
}

/* Reset, schlank */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
}

/* Sprunglink fuer Tastatur und Screenreader */
.sprunglink {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blau);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.sprunglink:focus { left: 0; }

/* Sichtbarer Fokus, ueberall */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #11324d;
  outline-offset: 2px;
  border-radius: 3px;
}
/* Auf dunklen Flaechen heller Fokus */
.a11y-leiste a:focus-visible, .a11y-leiste button:focus-visible,
.kopf a:focus-visible, .kopf button:focus-visible,
.hero a:focus-visible,
.fuss a:focus-visible { outline-color: #f0c89a; }

/* ---------- Kopfbereich / Navigation ---------- */
.kopf {
  background: var(--blau);
  color: #fff;
  border-bottom: 4px solid var(--akzent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
}
.kopf-oben {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.slogan {
  color: var(--akzent);
  font-style: italic;
  font-weight: 700;
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
}
.marke {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.marke img { display: block; height: 126px; width: auto; max-width: 80vw; }
.marke span { color: var(--akzent); }

.hauptnav {
  width: 100%;
  margin-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 0.5rem;
}
.hauptnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
}
.marke { flex-shrink: 0; }
.hauptnav a {
  display: block;
  color: #eaf1f7;
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
}
.hauptnav a:hover { background: var(--blau-hell); color: #fff; }
.hauptnav a[aria-current="page"] {
  background: #fff;
  color: var(--blau);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--blau);
  color: #fff;
}
.hero-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after { /* Abdunkelung fuer Textkontrast */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,80,107,0.94) 0%, rgba(20,80,107,0.88) 50%, rgba(20,80,107,0.80) 100%);
}
.hero-innen {
  position: relative;
  z-index: 1;
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) 1.5rem;
}
.hero-innen .motto {
  display: inline-block;
  border-left: 5px solid var(--akzent);
  padding-left: 1rem;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  max-width: 48ch;
  margin: 0 0 2rem;
}
.hero-innen .name {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--akzent);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.hero-name {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 0.5rem;
}
.hero-name span { color: var(--akzent); }

/* Hero-Variante: Foto im Rahmen links, Text zentriert */
.hero-innen.variante-c {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.variante-c .hero-portrait img {
  width: 100%;
  display: block;
  background: #fff;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.30);
}
.variante-c .hero-text { text-align: center; }
.variante-c .hero-text .name { font-size: clamp(1.2rem, 2.6vw, 1.7rem); }
.variante-c .hero-text .name .weiss { color: #fff; }
.variante-c .hero-text .hero-name { font-size: clamp(1.5rem, 3.6vw, 2.5rem); }
.variante-c .hero-text .motto {
  display: block;
  max-width: none;
  margin: 0 0 2rem;
  font-size: clamp(0.95rem, 1.9vw, 1.1rem);
  border-left: 0;
  padding-left: 0;
  text-align: center;
}
.variante-c .hero-text .btn-gruppe { justify-content: center; }
@media (max-width: 900px) {
  .hero-innen.variante-c { grid-template-columns: 1fr; justify-items: center; }
  .variante-c .hero-portrait { max-width: 260px; margin: 0 auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn-akzent { background: var(--akzent-dunkel); color: #fff; }
.btn-akzent:hover { background: #9c4811; }
.btn-weiss { background: #fff; color: var(--blau); }
.btn-weiss:hover { background: #eaf1f7; }
.btn-linie { background: transparent; color: #fff; border-color: #fff; }
.btn-linie:hover { background: rgba(255,255,255,0.14); }
.btn-gruppe { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Layout / Abschnitte ---------- */
main { display: block; }
/* Ankerziele unter dem fixierten Kopf sichtbar lassen */
#inhalt, [id] { scroll-margin-top: 210px; }
.abschnitt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(1.6rem, 3.5vw, 2.6rem) 1.5rem;
}
.abschnitt.grau { background: var(--grau-bg); max-width: none; }
.abschnitt.grau > .innen {
  max-width: var(--breite);
  margin: 0 auto;
}

h1, h2, h3 { color: var(--blau); line-height: 1.2; }
h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 0 0 1rem;
}
h2 .strich {
  display: block;
  width: 64px;
  height: 5px;
  background: var(--akzent);
  border-radius: 3px;
  margin-top: 0.6rem;
}
h3 { font-size: 1.25rem; margin: 0 0 0.6rem; }

a { color: var(--link); }
a:hover { color: var(--akzent-dunkel); }

/* Profil mit Bild */
.profil {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}
.profil img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

/* Karten-Raster */
.raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.karte {
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--schatten);
  border-top: 4px solid var(--akzent);
}
.karte h3 { margin-top: 0; }
.karte p { color: var(--text-leise); margin-bottom: 0; }

/* Themen-Teaser mit Bild */
.teaser {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.teaser .karte img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.mehr {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--link);
}
.mehr:hover { color: var(--akzent-dunkel); text-decoration: underline; }
.mehr::after { content: " \2192"; }

/* Weiterlesen-Button (externe Quelle, neuer Tab) */
.btn-mehr {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--akzent-dunkel);
  border: 2px solid var(--akzent-dunkel);
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  font-size: 0.95rem;
}
.btn-mehr:hover { background: var(--akzent-dunkel); color: #fff; }
.btn-mehr::after { content: " \2197"; }

/* Blättern (Pagination) */
.blaettern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rand);
}
.blaettern-link { font-weight: 700; text-decoration: none; color: var(--link); }
.blaettern-link:hover { color: var(--akzent-dunkel); }
.blaettern-link.leer { color: var(--text-leise); opacity: 0.5; }
.blaettern-stand { color: var(--text-leise); font-size: 0.95rem; }

/* Presse: Jahresgruppen zum Aufklappen */
.jahr { margin-top: 0.5rem; }
details.jahrgruppe { margin-top: 1.5rem; border-top: 1px solid var(--rand); }
details.jahrgruppe > summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--blau);
  font-size: 1.3rem;
  padding: 0.8rem 0;
  list-style: none;
}
details.jahrgruppe > summary::-webkit-details-marker { display: none; }
details.jahrgruppe > summary::after { content: " \25B8"; color: var(--akzent-dunkel); }
details.jahrgruppe[open] > summary::after { content: " \25BE"; }

/* Aktuelles-Liste */
.beitrag {
  border-bottom: 1px solid var(--rand);
  padding: 1.25rem 0;
}
.beitrag:first-of-type { padding-top: 0; }
.beitrag time {
  display: block;
  font-size: 0.9rem;
  color: var(--text-leise);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.beitrag h3 { margin: 0.3rem 0; }

/* Kontaktblock */
.kontakt-raster {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}
.kontakt-raster img { width: 100%; border-radius: var(--radius); }
.kontakt-raster address { font-style: normal; line-height: 1.8; }

/* Logo neben den Kontaktdaten */
.kontakt-mit-logo { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.kontakt-mit-logo address { font-style: normal; line-height: 1.8; }
.kontakt-logo,
.kontakt-raster img.kontakt-logo { height: 150px; width: auto; border-radius: 0; }

/* ---------- Fuss ---------- */
.fuss {
  background: var(--blau);
  color: #dce6ef;
  border-top: 4px solid var(--akzent);
}
.fuss-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: space-between;
}
.fuss a { color: #fff; }
.fuss-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.fuss small { color: #aebfcf; }
.fuss-logo { height: 60px; width: auto; flex-basis: 100%; }
.fuss-social { display: flex; gap: 0.8rem; }
.fuss-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: #fff;
}
.fuss-social a:hover { background: rgba(255, 255, 255, 0.15); }
.fuss-social svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Responsiv ---------- */
@media (max-width: 760px) {
  .profil { grid-template-columns: 1fr; }
  .profil img { max-width: 220px; }
  .kontakt-raster { grid-template-columns: 1fr; text-align: center; }
  .kontakt-raster img { max-width: 180px; margin: 0 auto; }
  .teaser { grid-template-columns: 1fr; }
}

/* =================================================================
   Barrierefreiheits-Leiste
   ================================================================= */
.a11y-leiste {
  background: #0d2438;
  color: #fff;
  font-size: 0.95rem;
  border-bottom: 1px solid #1f4a6b;
}
.a11y-leiste .innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
}
.a11y-leiste #a11y-titel { font-weight: 700; }
.a11y-leiste button {
  background: transparent;
  color: #fff;
  border: 1px solid #5b7d99;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  cursor: pointer;
}
.a11y-leiste button:hover { background: #1f4a6b; }
.a11y-leiste button[aria-pressed="true"] {
  background: #fff;
  color: #0d2438;
  border-color: #fff;
}
.a11y-leiste .a11y-link {
  color: #fff;
  border: 1px solid #5b7d99;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  text-decoration: none;
}
.a11y-leiste .a11y-link:hover { background: #1f4a6b; }

/* visuell versteckt, fuer Screenreader sichtbar */
.visuell-versteckt {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Leichte Sprache */
.leichte-sprache { max-width: 900px; }
.leichte-sprache p {
  font-size: 1.3rem;
  line-height: 1.9;
  margin: 0 0 1.4rem;
}
.leichte-sprache h2 { margin-top: 2.6rem; }
.leichte-sprache h3 { margin-top: 0; font-size: 1.4rem; }
/* Abschnitt als zwei Spalten: Bild links, Text rechts */
.leichte-sprache .ls-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.8rem;
  align-items: start;
  margin: 0 0 2.6rem;
}
.leichte-sprache .ls-block h2 { margin-top: 0; }
.leichte-sprache .ls-text > :last-child { margin-bottom: 0; }
.leichte-sprache .ls-bild {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--rand);
  margin: 0;
}
@media (max-width: 619px) {
  .leichte-sprache .ls-block { grid-template-columns: 1fr; gap: 1rem; }
}
.leichte-sprache .ls-info {
  background: var(--grau-bg);
  border-left: 5px solid var(--akzent);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 0 0 2rem;
}
.leichte-sprache .ls-info p:last-child { margin-bottom: 0; }
.leichte-sprache ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}
.leichte-sprache li {
  font-size: 1.3rem;
  line-height: 1.9;
  margin: 0 0 0.8rem;
  padding-left: 1.6rem;
  position: relative;
}
.leichte-sprache li::before {
  content: "\2022";
  color: var(--akzent-dunkel);
  font-weight: 700;
  position: absolute;
  left: 0.3rem;
}

/* Mobiles Menue */
.nav-umschalter {
  display: none;
  margin-left: auto;
  background: var(--blau-hell);
  color: #fff;
  border: 1px solid #5b7d99;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* =================================================================
   Unterseiten: Seitentitel-Banner und Lesebereich
   ================================================================= */
.seiten-titel {
  background: var(--blau);
  color: #fff;
  border-bottom: 4px solid var(--akzent);
}
.seiten-titel .innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
}
.seiten-titel h1 { color: #fff; margin: 0; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.seiten-titel p { margin: 0.6rem 0 0; max-width: 60ch; color: #dce6ef; }

.lesebereich { max-width: 72ch; }
.lesebereich h2 { margin-top: 1.6rem; }
.lesebereich h3 { margin-top: 1.2rem; }
.lesebereich ul, .lesebereich ol { padding-left: 1.3rem; }
.lesebereich li { margin-bottom: 0.4rem; }

/* Themen mit Bild und Aufklapptext */
.thema { margin-bottom: 3rem; }
.thema-kopf {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}
.thema-kopf img { width: 100%; border-radius: var(--radius); box-shadow: var(--schatten); }
@media (max-width: 760px) { .thema-kopf { grid-template-columns: 1fr; } }

details.mehrtext { margin-top: 0.5rem; }
details.mehrtext summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--link);
  padding: 0.3rem 0;
  list-style: none;
}
details.mehrtext summary::-webkit-details-marker { display: none; }
details.mehrtext summary::after { content: " ▸"; }
details.mehrtext[open] summary::after { content: " ▾"; }
details.mehrtext summary:hover { color: var(--akzent-dunkel); }

/* =================================================================
   Formular
   ================================================================= */
form { max-width: 60ch; }
.feld { margin-bottom: 1.3rem; }
.feld label, fieldset legend, .checkbox-zeile label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}
.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 2px solid #8a98a5;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.feld input:focus, .feld textarea:focus {
  border-color: var(--blau);
  outline: 3px solid var(--akzent-dunkel);
  outline-offset: 1px;
}
.hilfe { font-size: 0.95rem; color: var(--text-leise); margin: 0 0 0.4rem; }
fieldset { border: 2px solid var(--rand); border-radius: 10px; padding: 1rem 1.2rem; margin: 0 0 1.3rem; }
.radio-zeile, .checkbox-zeile { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.4rem; }
.radio-zeile label, .checkbox-zeile label { font-weight: 400; margin: 0; }
.radio-zeile input, .checkbox-zeile input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; }
.pflicht { color: var(--akzent-dunkel); font-weight: 700; }

/* Honeypot, fuer Menschen unsichtbar */
.hp-feld { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Meldungen */
.meldung { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; border-left: 5px solid; }
.meldung-erfolg { background: #e7f5ec; border-color: #1e7a43; color: #14532b; }
.meldung-fehler { background: #fdecea; border-color: #b3261e; color: #7a1812; }

/* =================================================================
   Modus: groessere Schrift und hoher Kontrast
   ================================================================= */
/* Vergroesserung am Wurzelelement: skaliert alle rem-Groessen mit */
html.schrift-gross { font-size: 125%; }
html.schrift-gross .a11y-leiste { font-size: 0.95rem; }
/* Hero-Texte nutzen clamp() mit vw und wuerden sonst kaum wachsen */
html.schrift-gross .variante-c .hero-text .name { font-size: 1.7rem; }
html.schrift-gross .variante-c .hero-text .hero-name { font-size: 2.6rem; }
html.schrift-gross .variante-c .hero-text .motto { font-size: 1.45rem; }

body.hoher-kontrast { background: #000; color: #fff; }
body.hoher-kontrast .kopf,
body.hoher-kontrast .a11y-leiste,
body.hoher-kontrast .hero,
body.hoher-kontrast .seiten-titel,
body.hoher-kontrast .fuss,
body.hoher-kontrast .abschnitt.grau,
body.hoher-kontrast .karte,
body.hoher-kontrast fieldset,
body.hoher-kontrast .meldung { background: #000 !important; color: #fff !important; }
body.hoher-kontrast h1,
body.hoher-kontrast h2,
body.hoher-kontrast h3,
body.hoher-kontrast .karte p,
body.hoher-kontrast .hilfe,
body.hoher-kontrast .beitrag time,
body.hoher-kontrast address,
body.hoher-kontrast .seiten-titel p,
body.hoher-kontrast .fuss small { color: #fff !important; }
body.hoher-kontrast a { color: #ffff00 !important; }
body.hoher-kontrast .hero::after { background: rgba(0,0,0,0.75) !important; }
body.hoher-kontrast .hero-innen .name { color: #ffff00 !important; }
body.hoher-kontrast .karte,
body.hoher-kontrast fieldset,
body.hoher-kontrast .feld input,
body.hoher-kontrast .feld textarea { border-color: #fff !important; }
body.hoher-kontrast .karte { border-top-color: #ffff00 !important; }
body.hoher-kontrast h2 .strich { background: #ffff00 !important; }
body.hoher-kontrast .btn-akzent { background: #ffff00 !important; color: #000 !important; border-color: #fff !important; }
body.hoher-kontrast .btn-weiss,
body.hoher-kontrast .btn-linie { background: #000 !important; color: #ffff00 !important; border-color: #ffff00 !important; }

@media (max-width: 760px) {
  .nav-umschalter { display: block; }
  .hauptnav { flex-basis: 100%; }
  .hauptnav[hidden] { display: none; }
  .hauptnav ul { flex-direction: column; gap: 0.15rem; }
  .hauptnav a { padding: 0.7rem 0.85rem; }
}
