@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-normal-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-normal-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-normal-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-italic-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-italic-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

:root {
  --green-950: #011428;
  --green-900: #011E5C;
  --green-800: #022E84;
  --green-700: #03358F;
  --green-600: #1A4A9E;
  --gold: #D5DDE8;
  --gold-2: #EEF2F7;
  --gold-deep: #022E84;
  --cream: #F4F6F8;
  --cream-2: #E6EAF0;
  --paper: #FBFCFD;
  --ink: #1A1C1E;
  --muted: #5C6168;
  --line: rgba(26, 28, 30, 0.12);
  --blue: #022E84;
  --terra: #8A3B28;
  --ok: #1F7A4A;
  --radius: 1.15rem;
  --radius-sm: 0.75rem;
  --shadow: 0 18px 50px -24px rgba(2, 46, 132, 0.35);
  --font-d: "Quicksand", ui-rounded, "Source Sans 3", system-ui, sans-serif;
  --font-s: "Source Sans 3", "Source Sans Pro", ui-sans-serif, system-ui, sans-serif;
  --pad: clamp(1rem, 4.2vw, 2rem);
  --max: 72rem;
  --header: 3.65rem;
  --tab: 4.35rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Shared shell; colour and type tokens retain the existing school identity. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); }
body {
  margin: 0;
  font: 1.0625rem/1.55 var(--font-s);
  color: var(--ink);
  background: var(--cream);
  padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-underline-offset: 0.18em; }
button { font: inherit; cursor: pointer; }
p, li, dd, a, h1, h2, h3 { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-d); line-height: 1.18; letter-spacing: -0.025em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0.3rem 0 0.8rem; }
h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.prose { max-width: 44rem; }
.skip { position: absolute; top: -5rem; left: var(--pad); z-index: 90; background: var(--paper); padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { top: 0.5rem; }
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header); padding: 0.5rem var(--pad);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex: 1; align-items: center; min-width: 0; text-decoration: none; }
.mark { display: block; height: 2.5rem; }
.mark img { width: auto; height: 100%; }
.lang { display: flex; gap: 0.3rem; }
.lang a { padding: 0.35rem; text-decoration: none; font-size: 0.85rem; font-weight: 700; }
.lang a[aria-current] { border-bottom: 2px solid var(--blue); }
.menu-btn { position: relative; width: 2.8rem; height: 2.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--blue); }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; position: absolute; width: 1.2rem; height: 2px; background: currentColor; }
.menu-btn i { top: 50%; left: calc(50% - 0.6rem); }
.menu-btn i::before, .menu-btn i::after { content: ""; left: 0; }
.menu-btn i::before { top: -0.35rem; }
.menu-btn i::after { top: 0.35rem; }
.nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; max-height: 75vh; overflow: auto; padding: 0.8rem var(--pad); background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-open .nav { display: block; }
.nav ul { list-style: none; padding: 0; margin: 0; }
.nav a { display: block; padding: 0.7rem 0.8rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.nav a[aria-current] { background: var(--gold-2); color: var(--blue); font-weight: 700; }
.tabbar { position: fixed; bottom: 0; left: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; min-height: var(--tab); padding: 0.4rem; font-size: 0.75rem; color: var(--muted); text-decoration: none; }
.tabbar svg { width: 1.3rem; height: 1.3rem; }
.tabbar .active, .tabbar .call { color: var(--blue); font-weight: 700; }
.foot { margin-top: 1rem; padding: 2rem 0; background: var(--green-950); color: var(--paper); }
.foot a { color: var(--paper); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.55rem 1.3rem; margin: 1.2rem 0; }
.foot p { margin: 0.6rem 0; }
.foot small { color: var(--gold); }
.foot-meta { display: flex; align-items: last baseline; gap: 0.55rem 1.3rem; }
.foot-meta span { flex: 1; min-width: 0; }
.foot-login { display: inline-flex; align-items: center; margin-inline-start: auto; min-height: 1.5rem; white-space: nowrap; }
.foot-login:focus-visible { outline-color: var(--paper); }

/* Page kinds: broad hub/news/contact frames; a shared reading axis for articles. */
.page-hero { padding: 2rem 0 1rem; }
.kicker { color: var(--green-600); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 0.5rem; }
.page-lead, .section-lead { max-width: 65ch; color: var(--muted); }
.page-content { padding-bottom: 3rem; }
.prose h2 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.35rem 0; }
section { padding: 2.5rem 0; }
section[id] { scroll-margin-top: calc(var(--header) + 1rem); }
.hub-grid { display: grid; gap: 1rem; }
.tile { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.4rem; min-width: 0; min-height: 12rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; }
.tile p { color: var(--muted); margin-bottom: 0.7rem; }
.tile:hover { border-color: var(--blue); }
.tile-contact { color: var(--blue); font-weight: 700; margin-bottom: 0.5rem; }
.go { margin-top: auto; color: var(--blue); font-weight: 700; }
.hub-detail { max-width: 44rem; margin-top: 1.5rem; }
.urgent-help { border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.5rem; background: var(--gold-2); }
.urgent-help p { margin-bottom: 0.4rem; }
.urgent-help a { font-weight: 700; }
.guidance-contact { overflow-wrap: anywhere; }

/* Permanent services and real, dated notices are separate components. */
.notice-list { display: grid; gap: 1rem; }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.news-card .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; color: var(--green-600); font-size: 0.8rem; font-weight: 700; margin-bottom: 0.7rem; }
.news-card h3 { margin-bottom: 0.6rem; }
.news-card p { color: var(--muted); }
.news-card a { font-weight: 700; }
.notice-empty { max-width: 65ch; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: 0.65rem 1rem; border: 1px solid var(--blue); border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; }
.btn-green { background: var(--blue); color: var(--paper); }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-line { color: var(--blue); background: transparent; }
.dl { display: grid; gap: 0.65rem; margin: 1rem 0; }
.dl a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); text-decoration: none; font-weight: 700; }
.dl a span { min-width: 0; overflow-wrap: anywhere; }
.dl small { flex-shrink: 0; color: var(--muted); font-weight: 400; }
.office-panel { display: grid; gap: 1.8rem; padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); }
.office-panel h2 { font-size: 1.5rem; }
.office-hours strong { font-size: 1.5rem; color: var(--blue); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 0 0 0.55rem; }
.school-portrait { display: grid; gap: 1.5rem; align-items: center; border-top: 1px solid var(--line); }
.school-portrait img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; background: var(--paper); font-size: 0.95rem; }
th, td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: 0.7rem; }
th { color: var(--blue); }

/* Career journey: visual BO-Check-style board + compact collapsible explanations. */
.career-board { margin: 1rem 0 1.8rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.career-goals { text-align: center; margin-bottom: 0.9rem; padding-bottom: 0.85rem; border-bottom: 1px dashed var(--line); }
.career-goals-label, .career-support-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.45rem; }
.career-goals-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.career-goal { display: inline-flex; align-items: center; padding: 0.4rem 0.9rem; border-radius: 999px; background: #FBF0D9; border: 1.5px solid #D4942A; color: #5C3A00; font-family: var(--font-d); font-weight: 700; font-size: 0.92rem; }
.career-layout { display: grid; gap: 0.85rem; }
.career-years { display: grid; gap: 0.55rem; }
.career-band { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); gap: 0.7rem; align-items: center; padding: 0.7rem; border-radius: var(--radius-sm); background: var(--gold-2); border: 1px solid transparent; }
.career-band[data-year="8"] { background: #FFFFFF; border-color: var(--line); }
.career-year-badge { width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--blue); color: var(--paper); font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; display: grid; place-items: center; flex-shrink: 0; }
.career-band-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.career-chip { display: flex; flex-direction: column; gap: 0.1rem; flex: 1 1 8.5rem; min-width: 0; padding: 0.5rem 0.7rem; border-radius: 0.65rem; border: 1.5px solid transparent; text-decoration: none; color: var(--ink); line-height: 1.25; transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.career-chip:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -10px rgba(2, 46, 132, 0.45); }
.career-chip strong { font-family: var(--font-d); font-size: 0.95rem; }
.career-chip span { font-size: 0.82rem; color: var(--muted); }
.career-cat-pflicht { background: #FDEEE9; border-color: #D4583B; }
.career-cat-pflicht strong { color: #8F2C14; }
.career-cat-programm { background: #E8F6F4; border-color: #2B8A80; }
.career-cat-programm strong { color: #13544E; }
.career-cat-aktion { background: #FEF7DC; border-color: #C99714; }
.career-cat-aktion strong { color: #6E4F00; }
.career-support { display: flex; flex-direction: column; }
.career-support-list { display: grid; gap: 0.45rem; flex: 1; }
.career-pillar { display: flex; flex-direction: column; justify-content: center; gap: 0.08rem; padding: 0.55rem 0.7rem; border-radius: 0.65rem; border: 1px solid var(--line); border-left-width: 4px; text-decoration: none; color: var(--ink); line-height: 1.25; }
.career-pillar strong { font-family: var(--font-d); font-size: 0.9rem; }
.career-pillar span { font-size: 0.8rem; color: var(--muted); }
.career-pillar-beratung { background: #FDEEE9; border-left-color: #D4583B; }
.career-pillar-jube { background: #EAF6EC; border-left-color: #2F855A; }
.career-pillar-coaching { background: var(--gold-2); border-left-color: var(--blue); }
.career-legend { margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.career-legend-list { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; list-style: none; padding: 0; margin: 0 0 0.45rem; font-size: 0.84rem; color: var(--muted); }
.career-legend-list li { display: inline-flex; align-items: center; gap: 0.35rem; }
.career-dot { width: 0.75rem; height: 0.75rem; border-radius: 0.25rem; border: 1.5px solid transparent; display: inline-block; }
.career-legend p { margin: 0; font-size: 0.86rem; }
.career-glossary { margin: 0.8rem 0 1.8rem; }
.career-term { padding: 1.1rem; margin-bottom: 0.65rem; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); background: var(--paper); scroll-margin-top: calc(var(--header) + 1rem); }
details.career-term { padding: 0; }
details.career-term summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 1rem; cursor: pointer; list-style: none; font-family: var(--font-d); font-weight: 700; font-size: 1.02rem; }
details.career-term summary::-webkit-details-marker { display: none; }
details.career-term summary::after { content: "+"; font-size: 1.2rem; color: var(--blue); flex-shrink: 0; }
details.career-term[open] summary::after { content: "−"; }
details.career-term summary small { margin-left: auto; font-family: var(--font-s); font-size: 0.8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.career-term-body { padding: 0 1rem 0.9rem; border-top: 1px solid var(--line); }
.career-term-body p:first-child { margin-top: 0.75rem; }
.career-term dt { font-family: var(--font-d); font-weight: 700; font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; margin-bottom: 0.5rem; }
.career-term dd { margin: 0; }
.career-term p { margin-bottom: 0.55rem; }
.career-note { color: var(--muted); font-size: 0.94rem; }
.career-source { display: inline-flex; align-items: center; min-height: 2.4rem; font-size: 0.88rem; }
.career-contacts { display: grid; gap: 0.85rem; margin: 0.8rem 0 1.6rem; }
.career-card { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.career-card h3 { font-size: 1.08rem; margin: 0 0 0.35rem; color: var(--blue); }
.career-card p { font-size: 0.94rem; margin: 0 0 0.45rem; }
.career-card p:last-child { margin-bottom: 0; }
.career-card .actions { margin: 0.55rem 0 0; }
@media (min-width: 640px) {
  .career-layout { grid-template-columns: 10.5rem minmax(0, 1fr); align-items: stretch; }
  .career-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Collections only appear when actual approved editorial sources exist. */
.post-list, .album-list { display: grid; gap: 1rem; }
.post-card, .album-card { display: block; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; }
.post-card .meta, .album-card .meta, .meta { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.6rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card-thumb { display: block; margin-bottom: 0.9rem; }
.post-card-thumb img, .album-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-sm); }
.album-card > div { padding-top: 1rem; }
.album-grid, .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.album-grid figure, .gallery figure { margin: 0; }
.album-grid img, .gallery img { width: 100%; border-radius: var(--radius-sm); }
.album-grid figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }
.post-gallery { gap: 1rem; margin-top: 1.8rem; }
.post-gallery figure { display: flex; flex-direction: column; padding: 0.55rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); transition: border-color 0.2s var(--ease); }
.post-gallery figure:hover { border-color: var(--blue); }
.post-gallery a { display: block; cursor: zoom-in; }
.post-gallery img { border-radius: calc(var(--radius-sm) - 0.25rem); }
.post-gallery figcaption { padding: 0.5rem 0.2rem 0.15rem; margin-top: 0; font-size: 0.92rem; line-height: 1.4; }
.article { padding-block: 2rem; }
.muted { color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 80; background: var(--green-950); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--pad); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 85vh; }
.lightbox p { color: var(--paper); margin-top: 0.5rem; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .hub-grid, .office-panel, .school-portrait, .post-list, .album-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-panel { padding: 1.8rem; }
  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .brand { flex: 0 0 auto; }
  .lang { margin-left: auto; order: 3; }
  .menu-btn { display: none; }
  .nav { position: static; display: block; padding: 0; border: 0; width: auto; max-height: none; overflow: visible; }
  .nav ul { display: flex; gap: 0.15rem; }
  .nav a { padding: 0.45rem 0.55rem; font-size: 0.88rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
