/* ib-schubert.com – Theme „ibs"
   Farben und Schriften wie im IB-Schubert-Dokumentlayout:
   Stahlblau #5189A4 (Markenfarbe aus dem Logo), Navy für Überschriften, Roboto Slab + Roboto.
   Work Sans nur im Logo und für Norm-Kennzeichnungen. Alle Schriften lokal (keine Google-Requests). */

@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/roboto-latin.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(../fonts/roboto-italic-latin.woff2) format('woff2'); }
@font-face { font-family: 'Roboto Slab'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/roboto-slab-latin.woff2) format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/work-sans-latin.woff2) format('woff2'); }

:root {
  --blau: #5189A4;        /* Markenfarbe – nur Flächen, Grafik, große Schrift (3,9:1 auf Weiß) */
  --blau-dunkel: #2f5d74; /* Links, Knöpfe, kleine Schrift (7:1 auf Weiß) */
  --navy: #1e3a4c;        /* Überschriften, Fuß */
  --blau-hell: #9cc6da;   /* Akzent auf dunklem Grund */
  --text: #26323b;
  --gedaempft: #56636d;
  --linie: #d8e1e7;
  --flaeche: #eef4f7;
  --flaeche-2: #f6f9fb;
  --logo-schrift: #345569;

  --serif: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  --sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --marke: 'Work Sans', 'Roboto', Arial, sans-serif;

  --breite: 1180px;
  --text-breite: 760px;
  --rand: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --abstand: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.6; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blau-dunkel); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 2px; }
/* Auf dunklen Flächen hat Stahlblau zu wenig Kontrast für den Fokusrahmen */
.held :focus-visible, .fuss :focus-visible { outline-color: #fff; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance;
  hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.wrap--text { max-width: calc(var(--text-breite) + 2 * var(--rand)); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- Logo ---------- */
.logo-svg { width: 100%; height: auto; overflow: visible; }
.logo-schrift { fill: var(--logo-schrift); }
.logo-bogen { fill: var(--blau); }

/* ---------- Bogen (Signatur: Schwung aus dem Logo unter Überschriften) ---------- */
.bogen { width: 112px; height: auto; margin: -.1em 0 1.1rem; fill: var(--blau); }


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

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--linie);
  box-shadow: 0 1px 0 rgba(30,58,76,.03); }
@supports (backdrop-filter: blur(6px)) { .kopf { background: rgba(255,255,255,.9); backdrop-filter: blur(8px); } }
.kopf::before { content: ""; display: block; height: 5px; background: var(--blau); }
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.kopf__logo { display: block; width: clamp(190px, 22vw, 250px); padding: 6px 0; flex: none; }
.kopf__logo:focus-visible { outline-offset: 6px; }

.navi__liste { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(4px, 1.2vw, 18px); }
.navi__liste a { display: block; padding: .6em .7em; color: var(--navy); text-decoration: none; font-weight: 500; position: relative; }
.navi__liste a::after { content: ""; position: absolute; left: .7em; right: .7em; bottom: .25em; height: 2px; background: var(--blau);
  transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.navi__liste a:hover::after, .navi__liste a[aria-current="page"]::after { transform: scaleX(1); }
.navi__liste a[aria-current="page"], .navi__liste a[aria-current="true"] { color: var(--blau-dunkel); }
.navi__liste a[aria-current="true"]::after { transform: scaleX(1); }
.navi--schmal { display: none; }

@media (max-width: 820px) {
  .navi--breit { display: none; }
  .navi--schmal { display: block; }
  .kopf__innen { min-height: 64px; }
  .navi__knopf { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
    border: 1px solid var(--linie); border-radius: var(--radius); color: var(--navy); font-weight: 500; cursor: pointer; }
  .navi__knopf::-webkit-details-marker { display: none; }
  .navi__knopf .icon { width: 22px; height: 22px; }
  .navi__knopf .icon-schliessen, .navi__klapp[open] .icon-menu { display: none; }
  .navi__klapp[open] .icon-schliessen { display: block; }
  .navi__klapp .navi__liste { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--linie); box-shadow: 0 14px 24px -12px rgba(30,58,76,.25);
    padding: 6px var(--rand) 14px; }
  .navi__klapp .navi__liste a { padding: 14px 0; border-bottom: 1px solid var(--flaeche); font-size: 1.05rem; }
  .navi__klapp .navi__liste a::after { left: 0; right: auto; width: 32px; bottom: 8px; }
}

/* ---------- Held (Startseite): Zahnradfoto in Stahlblau, darauf der Name ---------- */
.held { position: relative; isolation: isolate; color: #fff; background: var(--navy); overflow: hidden; }
.held__bild { position: absolute; inset: 0; z-index: -2; }
.held__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: grayscale(1) contrast(1.05) brightness(.95); }
.held::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(22,44,58,.92) 0%, rgba(30,58,76,.82) 45%, rgba(47,93,116,.5) 75%, rgba(81,137,164,.3) 100%); }
.held::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blau); mix-blend-mode: color; opacity: .55; }
.held__innen { padding-block: clamp(72px, 12vw, 150px) clamp(52px, 8vw, 104px); }
.held h1 { color: #fff; margin-bottom: .3em; font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); }
.held .bogen { fill: var(--blau-hell); width: 160px; margin-bottom: 0; }

/* ---------- Bereiche ---------- */
.bereiche { background: var(--flaeche-2); padding-block: var(--abstand); }
.abschnittskopf { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.abschnittskopf__text p { font-size: 1.1em; color: var(--text); }
.abschnittskopf__text p:last-child { margin-bottom: 0; }

.karten { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.karte { position: relative; background: #fff; border: 1px solid var(--linie); border-top: 4px solid var(--blau); border-radius: var(--radius);
  padding: 28px 24px 22px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.karte:hover { box-shadow: 0 14px 28px -16px rgba(30,58,76,.35); transform: translateY(-2px); border-color: #c5d3dc; border-top-color: var(--blau-dunkel); }
.karte:focus-within { outline: 3px solid var(--blau); outline-offset: 3px; }
.karte__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--flaeche); color: var(--blau-dunkel);
  display: grid; place-items: center; margin-bottom: 20px; }
.karte__icon .icon { width: 30px; height: 30px; }
.karte h3 { font-size: 1.2rem; margin-bottom: 1.2em; }
.karte h3 a { color: var(--navy); text-decoration: none; }
.karte h3 a::after { content: ""; position: absolute; inset: 0; }   /* ganze Kachel klickbar */
.karte h3 a:focus-visible { outline: none; }
.karte__mehr { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-size: .92rem; font-weight: 500; color: var(--blau-dunkel); }
.karte__mehr .icon { width: 1.05em; height: 1.05em; transition: transform .15s; }
.karte:hover .karte__mehr .icon { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .karte:hover { transform: none; } }

/* ---------- Unterseiten ---------- */
.seitenkopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px); margin-bottom: clamp(32px, 5vw, 56px); }
.seitenkopf .lead { font-size: 1.12em; color: var(--gedaempft); max-width: 40em; }
.ist-unterseite main > .prosa:last-child { padding-bottom: var(--abstand); }

.prosa > :last-child { margin-bottom: 0; }
.prosa h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-top: 1.8em; }
.prosa h2::before { content: ""; display: inline-block; width: 5px; height: .9em; margin-right: 12px; vertical-align: -.08em; background: var(--blau); border-radius: 2px; }
.prosa h3 { font-size: 1.12rem; margin-top: 1.6em; }
.prosa ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prosa ul li { position: relative; padding-left: 22px; margin-bottom: .45em; }
.prosa ul li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 9px; height: 3px; background: var(--blau); border-radius: 2px; }
.prosa strong { color: var(--navy); font-weight: 600; }
.prosa .klein, .prosa small { color: var(--gedaempft); font-size: .9em; }

/* ---------- Fuß ---------- */
.fuss { background: var(--navy); color: rgba(255,255,255,.88); font-size: .95rem; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss__raster { display: grid; gap: 32px 48px; grid-template-columns: 1.1fr 1fr auto; padding-block: 48px 40px; align-items: start; }
.fuss__marke .logo-svg { width: 210px; margin-bottom: 14px; }
.fuss__marke .logo-schrift { fill: #fff; }
.fuss__marke .logo-bogen { fill: var(--blau-hell); }
.fuss__marke p { margin: 0; color: rgba(255,255,255,.75); }
.fuss__kontakt { display: grid; gap: 12px; }
.fuss__kontakt a { display: flex; gap: 12px; align-items: flex-start; }
.fuss__kontakt .icon { width: 20px; height: 20px; flex: none; color: var(--blau-hell); margin-top: 2px; }
.fuss__links { display: flex; flex-direction: column; gap: 10px; }
.fuss__links a[aria-current="page"] { text-decoration: underline; }
.fuss__foerderung { background: #fff; padding-block: 18px; }
.fuss__foerderung img { width: min(100%, 560px); margin-inline: auto; }
.fuss__zeile { background: #152b39; color: rgba(255,255,255,.7); font-size: .85rem; padding-block: 14px; }
@media (max-width: 860px) { .fuss__raster { grid-template-columns: 1fr 1fr; } .fuss__marke { grid-column: 1 / -1; } }
@media (max-width: 520px) { .fuss__raster { grid-template-columns: 1fr; } }

@media print {
  .kopf, .navi, .held__bild, .held::before, .held::after, .fuss__foerderung { display: none !important; }
  .held { background: none; color: var(--text); } .held h1 { color: var(--navy); }
  body { font-size: 11pt; }
}
