/* Salzburger Fortbildungsakademie - Website
   Farben und Schrift von der bisherigen Seite übernommen (Blau #0097db/#007bc2, Gelbgrün #bdcd00, Candara). */
:root {
  --blue: #0097db;
  --blue-dark: #007bc2;
  --blue-deep: #00598f;
  --accent: var(--blue);    /* Streifen unter dem Menü, aktiver Menüpunkt */
  --menu: #3d3d3b;          /* Menüleiste: immer Anthrazit */
  --menu-hover: #575755;
  --lime: #bdcd00;
  --lime-soft: #f4f7cc;
  --text: #2b2b2b;
  --muted: #666;
  --line: #d9d9d9;
  --bg: #f2f2f2;
  --card: #fff;
  --danger: #c0392b;
  --ok: #3c8d4f;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.6; overflow-wrap: break-word; }
/* Lange deutsche Wörter (z.B. "Fortbildungsakademie") am Handy trennen statt über den Rand laufen lassen */
h1, h2, h3, .entry strong { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover { color: var(--blue-deep); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid rgba(0, 151, 219, .5); outline-offset: 2px; }

/* --- Kopf & Navigation --------------------------------------------------- */
.site-header { background: #fff; border-bottom: 6px solid var(--accent); position: relative; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.site-title { flex: 1 1 0; min-width: 0; color: var(--blue-dark); font-size: 21px; font-weight: 700; line-height: 1.15; text-decoration: none; }
.site-title:hover { color: var(--blue-deep); }
.brand { order: 3; flex: 0 0 100%; text-align: right; }
.brand img { display: inline-block; vertical-align: top; width: auto; height: 46px; }  /* beide Logos gleich hoch */
@media (min-width: 900px) {
  .header-row { flex-wrap: nowrap; min-height: 112px; padding-top: 14px; padding-bottom: 14px; }
  .site-title { font-size: 34px; }
  .brand { order: 0; flex: 0 0 auto; }
  .brand img { height: 78px; }
}

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 2px solid var(--blue-dark); border-radius: 10px; background: #fff; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 3px; background: var(--blue-dark); border-radius: 2px; content: ""; position: relative; transition: transform .2s; }
.nav-toggle .bars::before { position: absolute; top: -8px; }
.nav-toggle .bars::after { position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-8px) rotate(-45deg); }

.mainnav { background: var(--menu); display: none; }
.mainnav.open { display: block; }
.nav-top, .nav-sub { list-style: none; margin: 0; padding: 0; }
.nav-top > li { position: relative; border-top: 1px solid rgba(255, 255, 255, .25); }
.nav-top > li > a { display: block; padding: 14px 56px 14px 4px; color: #fff; font-weight: 700; text-decoration: none; font-size: 19px; }
.nav-top > li.active > a { box-shadow: inset 5px 0 0 var(--accent); padding-left: 14px; }
.sub-toggle { position: absolute; right: 0; top: 4px; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; }
.sub-toggle::after { content: ""; display: block; margin: auto; width: 10px; height: 10px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); transition: transform .2s; }
.sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
.nav-sub { display: none; background: var(--menu-hover); }
.nav-sub.open { display: block; }
.nav-sub a { display: block; padding: 11px 16px 11px 24px; color: #fff; text-decoration: none; font-size: 17px; border-top: 1px solid rgba(255, 255, 255, .15); }
.nav-sub a:hover, .nav-sub a[aria-current] { background: var(--menu); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .mainnav { display: block; }
  .nav-top { display: flex; gap: 4px; }
  .nav-top > li { border-top: 0; }
  .nav-top > li > a { padding: 16px 22px; }
  .nav-top > li.active > a { box-shadow: inset 0 -5px 0 var(--accent); padding-left: 22px; }
  .nav-top > li:hover > a, .nav-top > li:focus-within > a { background: var(--menu-hover); }
  .sub-toggle { display: none; }
  .nav-sub { display: none; position: absolute; left: 0; top: 100%; min-width: 290px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); border-radius: 0 0 10px 10px; overflow: hidden; }
  .nav-top > li:hover > .nav-sub, .nav-top > li:focus-within > .nav-sub { display: block; }
  .nav-sub a { padding: 12px 20px; }
}

/* --- Inhalt ------------------------------------------------------------------- */
.main { padding-top: 24px; padding-bottom: 48px; min-height: 55vh; }
.crumbs { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.content { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); padding: 22px 18px 28px; }
@media (min-width: 700px) { .content { padding: 34px 44px 44px; } }
.content h1 { margin: 0 0 18px; color: var(--blue-dark); font-size: clamp(27px, 4.5vw, 38px); line-height: 1.15; }
.content h2 { margin: 30px 0 10px; color: var(--blue-dark); font-size: clamp(21px, 3.2vw, 26px); line-height: 1.25; padding-top: 6px; border-top: 3px solid var(--lime-soft); }
.content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.content h3 { margin: 24px 0 8px; font-size: 20px; }
/* Text nutzt die volle Breite des Hauptbereichs (keine Zeilenlängen-Begrenzung) */
.content ul, .content ol { padding-left: 24px; }
.content li { margin: 4px 0; }
.content img { border-radius: 8px; }
/* Bilder aus dem Editor: Ausrichtung, Größe, Bildunterschrift */
.content figure { margin: 18px 0; max-width: 100%; }
.content figure img { display: block; width: 100%; height: auto; }
.content figure video { display: block; width: 100%; height: auto; border-radius: 14px; background: #000; }
.content figcaption { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--muted); text-align: center; }
.content figure.img-s { width: min(100%, 220px); }
.content figure.img-m { width: min(100%, 380px); }
.content figure.img-l { width: min(100%, 640px); }
.content figure.img-full { width: 100%; }
.content figure.img-left { float: left; margin: 6px 26px 14px 0; }
.content figure.img-right { float: right; margin: 6px 0 14px 26px; }
.content figure.img-center, .content figure.img-full { margin-left: auto; margin-right: auto; clear: both; }
.content::after { content: ""; display: table; clear: both; }
.content h2, .content h3 { clear: both; }
@media (max-width: 640px) {
  /* Am Handy kein Textumfluss: Bilder stehen mittig über die verfügbare Breite */
  .content figure.img-left, .content figure.img-right { float: none; margin: 16px auto; }
}
.content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.content th, .content td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content th { background: var(--lime-soft); }
.content hr { border: 0; border-top: 2px solid var(--lime-soft); margin: 28px 0; }
.content blockquote { margin: 16px 0; padding: 8px 18px; border-left: 5px solid var(--lime); background: #fafcea; }
.callout { margin: 18px 0; padding: 14px 18px; border-left: 6px solid var(--blue); background: #e6f4fb; border-radius: 0 8px 8px 0; }
.callout-red { border-left-color: var(--danger); background: #fdecea; color: #7b241c; font-weight: 700; }
.center { text-align: center; }
.lead { font-size: 21px; color: var(--muted); }
a.file-link::before { content: "\2193\00a0"; font-weight: 700; }

.btn { display: inline-block; padding: 13px 24px; border: 0; border-radius: 8px; background: var(--blue-dark); color: #fff !important; font: inherit; font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; border: 2px solid var(--blue-dark); color: var(--blue-dark) !important; padding: 11px 22px; }
.btn-ghost:hover { background: #e6f4fb; }
.btn-small { padding: 9px 18px; font-size: 16px; }

/* Unterseiten-Kacheln (Übersichtsseiten ohne eigenen Text) */
.child-cards { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .child-cards { grid-template-columns: 1fr 1fr; } }
.child-cards a { display: block; height: 100%; padding: 16px 18px; border: 2px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }
.child-cards a:hover { border-color: var(--blue); }
.child-cards strong { display: block; color: var(--blue-dark); font-size: 20px; }

/* --- Startseite --------------------------------------------------------------------- */
.hero { padding: 6px 0 22px; }
.hero h1 { margin: 0 0 8px; color: var(--blue-dark); font-size: clamp(30px, 5.5vw, 46px); line-height: 1.1; }
.hero-text { font-size: 20px; }
.entry-cards { display: grid; gap: 16px; margin-bottom: 22px; }
@media (min-width: 760px) { .entry-cards { grid-template-columns: 1fr 1fr; } }
.entry { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: var(--radius); color: #fff; text-decoration: none; min-height: 220px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.entry strong { font-size: 27px; line-height: 1.15; }
.entry-kicker { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.entry-more { margin-top: auto; align-self: flex-start; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-weight: 700; }
.entry:hover { color: #fff; filter: brightness(1.06); }
.entry-schule { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }
.entry-fortbildung { background: linear-gradient(135deg, var(--blue-deep) 0%, #003d63 100%); }
.teaser { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); padding: 24px 26px; margin-bottom: 16px; border-left: 8px solid var(--lime); }
.teaser h2 { margin: 0 0 6px; color: var(--blue-dark); font-size: 25px; }
.teaser p { margin: 0 0 14px; }
.teaser-contact p { margin: 0; }

/* --- Downloadbereich ---------------------------------------------------------------------------- */
.dl-group { margin: 22px 0; }
/* Karten mit Vorschaubild (erste PDF-Seite) */
.dl-grid { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.content .dl-grid { padding-left: 0; }
.dl-card { display: flex; flex-direction: column; max-width: none; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); transition: box-shadow .15s, transform .15s; }
.dl-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .14); transform: translateY(-2px); }
.dl-thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: #eaf2f7; border-bottom: 4px solid var(--lime); overflow: hidden; }
.content .dl-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 0; }
.dl-thumb, .dl-thumb:hover { text-decoration: none; }
/* Ohne Vorschaubild: schlanke Karten, nur Titel, Angaben und Button */
.dl-grid.dl-compact { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.dl-compact .dl-card { border-left: 6px solid var(--lime); }
.dl-compact .dl-card:hover { transform: none; }
.dl-compact .dl-body { padding: 12px 14px 14px; }
.dl-badge { position: absolute; right: 8px; bottom: 8px; padding: 2px 9px; border-radius: 6px; background: var(--lime); color: var(--text); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
/* Ohne Vorschaubild (kein PDF oder nicht erzeugbar): großes Dateisymbol */
.dl-thumb.no-preview .dl-badge { position: static; padding: 14px 22px; font-size: 22px; border-radius: 10px; }
.dl-thumb.no-preview img { display: none; }
.dl-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 14px 14px 16px; }
.dl-title { font-size: 17px; line-height: 1.3; }
.dl-body .btn { margin-top: auto; text-align: center; }
.dl-body .small { line-height: 1.35; }
.filetype { display: inline-block; min-width: 52px; padding: 10px 6px; text-align: center; background: var(--lime-soft); border-radius: 8px; font-weight: 700; font-size: 13px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.text-input { width: 100%; padding: 12px 14px; font: inherit; font-size: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* --- Kontakt-Baustein --------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { padding: 18px 20px; border: 2px solid var(--line); border-left: 8px solid var(--lime); border-radius: 10px; }
.contact-card h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 21px; }
.contact-card p { margin: 0 0 10px; }

/* --- Jobbörse -------------------------------------------------------------------------------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cat-tab { flex: 1 1 220px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 2px solid var(--line); color: var(--text); font-weight: 700; text-align: center; text-decoration: none; }
.cat-tab:hover { border-color: var(--blue); color: var(--text); }
.cat-tab.active { background: var(--lime); border-color: var(--lime); }
.cat-tab .count { display: inline-block; min-width: 24px; margin-left: 6px; padding: 0 7px; border-radius: 12px; background: rgba(0, 0, 0, .1); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.filters select { flex: 1 1 200px; padding: 11px 13px; font: inherit; font-size: 17px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
.filters .reset { font-size: 15px; }
.empty { background: var(--lime-soft); border-left: 4px solid var(--lime); padding: 14px 16px; border-radius: 6px; margin: 8px 0; }
.hint { margin-top: 26px; font-size: 15px; color: var(--muted); }

.job { margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.content .job-head { margin: 0; padding: 10px 18px; background: var(--blue); color: #fff; font-size: 19px; border: 0; border-left: 6px solid var(--lime); }
.job-body { padding: 14px 18px 16px; }
.job-title { margin: 0 0 8px; font-weight: 700; max-width: none; }
.content .tags, .content .child-cards { padding-left: 0; list-style: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tags li { padding: 2px 12px; border-radius: 14px; background: var(--lime-soft); font-size: 15px; margin: 0; }
.job-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.posted { margin: 0; font-size: 14px; color: var(--muted); }

.jobtitle { margin: 12px 0 14px; color: var(--text); font-size: 21px; border: 0; padding: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 16px; padding: 12px 16px; background: var(--lime-soft); border-radius: 8px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.contact { margin-top: 24px; padding: 16px 18px; border: 2px solid var(--blue); border-radius: 10px; }
.contact h3 { margin-top: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions .btn { flex: 1 1 220px; text-align: center; }
.postal { margin: 14px 0 0; }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 22px; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-dark); text-decoration: underline; cursor: pointer; }
.content.narrow { max-width: 560px; margin: 0 auto; }
form.stack { display: grid; gap: 10px; margin-top: 16px; }
form.stack .btn { width: 100%; text-align: center; }

/* --- Fußzeile --------------------------------------------------------------------------- */
.site-footer { background: #1f2d3a; color: #dbe6ee; padding: 30px 0 0; font-size: 16px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 22px; padding-bottom: 22px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1.2fr 1fr; } }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-copy { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 14px; padding-bottom: 20px; font-size: 14px; color: #a9bccb; }

@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header, .site-footer, .crumbs, .nav-toggle, .cat-tabs, .filters, .detail-actions, .contact-actions { display: none; }
  .content { box-shadow: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}

/* =====================================================================================================
   Modernes Theme (überschreibt die Basis oben): volle Breite, weiche Grautöne (kein Schwarz),
   große Radien, 50/50-Bänder aus Bild und Inhalt. Farbwelt je Bereich über --accent.
   ===================================================================================================== */
:root {
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #4b5550;          /* Überschriften: mittleres Grau */
  --text: #5d6762;
  --muted: #818b86;
  --line: #e4e8e2;
  --bg: #f4f6f2;
  --radius: 22px;
  --accent: #0097db;
  --accent-ink: #fff;
  --accent-soft: #e3f3fb;
  --link: #0a82c4;
  --menu: #707a74;         /* Menüleiste: mittleres Grau */
  --menu-hover: rgba(255, 255, 255, .16);
  --shadow: 0 1px 2px rgba(60, 75, 68, .05), 0 12px 32px rgba(60, 75, 68, .09);
}
.area-akademie {
  --accent: #c6dd1e;
  --accent-ink: #4b5550;
  --accent-soft: #f2f8cc;
  --link: #74870a;
  --lime: #c6dd1e;
  --lime-soft: #f2f8cc;
  --blue-dark: #74870a;
  --blue-deep: #5b6b00;
}
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1400px; padding: 0 clamp(16px, 4vw, 56px); }

/* Kopf: Fortbildungsakademie-Logo links (groß), Menü direkt daneben. Das Schul-Logo steht nur im Bereich Schule im Hauptteil. */
.site-header { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 var(--line); padding-bottom: 0; position: relative; z-index: 30; }
.site-header::before { content: ""; display: block; height: 6px; background: var(--accent); }
/* Streifen ganz oben in der Farbe des jeweiligen Bereichs (Fortbildung/Rest grün, Schule blau, Jobbörse orange) */
.area-schule .site-header::before { background: #0097db; }
.area-jobs .site-header::before { background: #f0a43a; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 32px; padding-top: 14px; padding-bottom: 14px; min-height: 0; }
.brand { order: 0; flex: 0 0 auto; text-align: left; }
.brand img { display: block; width: auto; height: 58px; }
.nav-toggle { order: 1; margin-left: auto; border: 0; border-radius: 14px; background: var(--menu); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { background: #fff; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.mainnav { order: 2; flex: 0 0 100%; display: none; background: #f6f7f3; border-radius: 16px; padding: 4px 14px; }
.mainnav.open { display: block; }
.nav-top { background: transparent; border-radius: 0; padding: 0; box-shadow: none; }
.nav-top > li { border-top: 1px solid var(--line); }
.nav-top > li:first-child { border-top: 0; }
.nav-top > li > a { color: var(--ink); border-radius: 12px; font-weight: 700; font-size: 18px; padding: 13px 56px 13px 8px; transition: background .15s; }
.nav-top > li > a:hover { background: var(--accent-soft); }
.nav-top > li.active > a { box-shadow: inset 5px 0 0 var(--accent); background: transparent; color: var(--ink); padding-left: 16px; }
.sub-toggle { top: 4px; }
.sub-toggle::after { border-color: var(--ink); }
.nav-sub { background: transparent; }
.nav-sub a { color: var(--text); border-top: 0; border-radius: 10px; margin: 0; padding: 10px 14px 10px 24px; }
.nav-sub a:hover, .nav-sub a[aria-current] { background: var(--accent-soft); color: var(--ink); }
@media (min-width: 900px) {
  .header-row { flex-wrap: nowrap; padding-top: 18px; padding-bottom: 18px; }
  .brand img { height: 92px; }
  .nav-toggle { display: none; }
  .mainnav { order: 1; flex: 1 1 auto; display: block; background: transparent; border-radius: 0; padding: 0; }
  .nav-top { display: flex; gap: 6px; }
  .nav-top > li { border-top: 0; }
  .nav-top > li > a { padding: 14px 20px; font-size: 18px; }
  .nav-top > li.active > a { padding-left: 20px; box-shadow: inset 0 -5px 0 var(--accent); border-radius: 12px 12px 0 0; }
  .nav-top > li:hover > a, .nav-top > li:focus-within > a { background: var(--accent-soft); }
  .nav-sub { background: #fff; border-radius: 16px; top: calc(100% + 4px); padding: 8px; box-shadow: 0 16px 36px rgba(60, 75, 68, .2); min-width: 300px; overflow: visible; }
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
  .nav-sub a { padding: 11px 16px; margin: 0; }
}

/* Schul-Logo oben rechts in der weißen Karte (alle Seiten im Bereich Schule); am Handy über der Überschrift */
.content.has-area-logo { position: relative; }
.area-logo { display: block; width: auto; height: 48px; margin: 0 0 16px auto; }
@media (min-width: 900px) {
  .area-logo { position: absolute; top: 40px; right: 60px; height: 72px; margin: 0; }
  .content.has-area-logo h1 { padding-right: 290px; }
}


/* Inhalt (Unterseiten): Karte auf hellem Grund */
.main { padding-top: 30px; padding-bottom: 64px; }
.main:not(.wrap) { padding: 0; }
.crumbs { font-size: 14px; }
.content { border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px 34px; }
@media (min-width: 700px) { .content { padding: 48px 60px 58px; } }
/* H1 auf allen Seiten: Schriftbild wie die Headlines auf ndz2.nextid.at (Systemschrift, fett, Unterseiten-Größe 1,6 bis 2,4 rem) */
.content h1 { color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; letter-spacing: normal; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; margin-bottom: 26px; }
.content h1::after { content: ""; display: block; width: 56px; height: 6px; margin-top: 16px; border-radius: 3px; background: var(--accent); }
.content h2 { color: var(--ink); font-weight: 700; letter-spacing: normal; line-height: 1.2; border-top: 0; padding-top: 0; margin: 40px 0 12px; }
.content h2:first-of-type { margin-top: 12px; }
.content h3 { color: var(--ink); font-weight: 700; }
.content img { border-radius: 14px; }
.content th { background: var(--accent-soft); color: var(--ink); }
.content hr { border-top: 1px solid var(--line); }
.content blockquote { border-left: 0; background: var(--accent-soft); border-radius: 16px; padding: 14px 22px; }
.callout { border-left: 0; border-radius: 16px; background: var(--accent-soft); padding: 16px 22px; }
.callout-red { background: #fdecea; }
.lead { color: var(--muted); }

/* Buttons als Pillen */
.btn { border-radius: 999px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 700; font-size: 16px; padding: 13px 28px; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { background: var(--accent); filter: brightness(.95); transform: translateY(-1px); }
.btn-schule { --accent: #0097db; --accent-ink: #fff; }
.btn-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink) !important; box-shadow: none; padding: 11px 26px; }
.btn-ghost:hover { background: var(--ink); color: #fff !important; filter: none; }
.btn-small { padding: 9px 20px; font-size: 15px; }
.text-input, .filters select { border-radius: 14px; border-color: var(--line); background: #fbfcfa; }

.child-cards a { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.child-cards a:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.child-cards strong { color: var(--ink); }

/* --- 50/50-Element: Bild und Inhalt nebeneinander (volle Breite), am Handy untereinander ------------------ */
.split { display: grid; grid-template-columns: 1fr; background: var(--bg); }
.split-media { position: relative; min-height: 240px; overflow: hidden; background: #dfe4dd; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.split-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(32px, 6vw, 88px) clamp(20px, 5vw, 80px); }
.split h2 { margin: 0 0 14px; color: var(--ink); font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: normal; line-height: 1.2; }
.split p { margin: 0 0 18px; max-width: 46ch; font-size: 19px; }
.kicker, .hero-kicker { margin: 0 0 12px !important; font-size: 13px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--link); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; min-height: 480px; }
  .split.reverse .split-media { order: 2; }
  .split-media { min-height: 0; }
}
/* --- Startseite: Einstiegs-Karten ---------------------------------------------------------------------- */
.home-intro { padding: 8px 0 30px; }
/* Startseiten-Headline: Schriftart, -größe und -stärke wie die Headline auf ndz2.nextid.at (Systemschrift, fett, 2 bis 3,2 rem) */
.home-claim { margin: 0; max-width: none; text-wrap: balance; color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.2; letter-spacing: normal; }
.home-cards { display: grid; gap: 24px; margin-bottom: 28px; }
@media (min-width: 760px) { .home-cards { grid-template-columns: repeat(3, 1fr); } }
.hcard { --c: var(--accent); --c-ink: var(--accent-ink); display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: #fff; color: var(--text); text-decoration: none; box-shadow: var(--shadow); border-bottom: 8px solid var(--c); transition: transform .2s, box-shadow .2s; }
.hcard:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(60, 75, 68, .18); color: var(--text); }
.hcard-schule { --c: #0097db; --c-ink: #fff; }
.hcard-fortbildung { --c: #c6dd1e; --c-ink: #4b5550; }
.hcard-jobs { --c: #f0a43a; --c-ink: #4b5550; }
.hcard-img { position: relative; display: block; height: 220px; overflow: hidden; background: #dfe4dd; }
.hcard-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform .4s; }
.hcard:hover .hcard-img img { transform: scale(1.04); }
.hcard-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--c); }
.hcard-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; padding: 26px 28px 30px; }
.hcard-kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--c); color: var(--c-ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hcard strong { color: var(--ink); font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: normal; line-height: 1.2; }
.hcard-text { font-size: 17px; line-height: 1.55; }
.hcard-more { margin-top: auto; padding: 11px 24px; border-radius: 999px; background: var(--c); color: var(--c-ink); font-weight: 700; }
.hcard-more::after { content: "\00a0\2192"; }
.hcard-text + .hcard-more { margin-top: 14px; }
/* Aktionsbanner Road 2 Zass: schwarz, Logo, Text, Button (Logofarben Gelb/Pink) */
.r2z-banner { display: grid; gap: 14px 36px; align-items: center; margin-bottom: 28px; padding: 22px 34px 28px; border-radius: 26px; background: #000; color: #fff; box-shadow: var(--shadow); }
.r2z-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.r2z-logo-link { display: block; flex: 1 1 320px; max-width: 100%; }
.r2z-logo-link:focus-visible { outline: 3px solid #ffcd1f; outline-offset: 4px; }
.r2z-logo { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 0 !important; }
.r2z-top h2 { margin: 0; color: #ffcd1f; font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: normal; line-height: 1.2; }
.r2z-text { margin: 0; color: #fff; font-size: 17px; line-height: 1.55; }
.r2z-btn { justify-self: start; display: inline-block; padding: 14px 32px; border-radius: 999px; background: #ff2aa8; color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; transition: transform .15s, filter .15s; }
.r2z-btn:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
.r2z-btn:focus-visible { outline: 3px solid #ffcd1f; outline-offset: 3px; }
@media (min-width: 760px) {
  .r2z-banner { grid-template-columns: 1fr auto; }
  .r2z-top { grid-column: 1 / -1; flex-wrap: nowrap; }
  /* Headline behält immer genau 2 Zeilen (je Zeile nowrap), das Logo nimmt den restlichen Platz */
  .r2z-logo-link { flex: 1 1 0; min-width: 200px; }
  .r2z-logo { width: 100%; max-width: none; }
  .r2z-top { align-items: flex-start; }
  /* Headline oben ausgerichtet, 40 px vom oberen Bannerrand (Banner-Innenabstand oben = 22 px) */
  .r2z-top h2 { flex: 0 0 auto; align-self: flex-start; margin: 18px 0 0 auto; text-align: right; white-space: nowrap; font-size: clamp(20px, 2.4vw, 32px); }
  .r2z-btn { justify-self: end; }
}
.home-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 28px 34px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.home-contact h2 { margin: 0 0 4px; color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: normal; }
.home-contact p { margin: 0; }

/* Downloads */
.dl-card { border-radius: 18px; border-color: var(--line); box-shadow: var(--shadow); }
.dl-thumb, .area-akademie .dl-thumb { background: #eef1ec; border-bottom: 0; }
.dl-badge { border-radius: 999px; padding: 3px 11px; background: var(--accent); color: var(--accent-ink); }
.dl-card { border-top: 4px solid var(--accent); }
.dl-compact .dl-card { border-left: 1px solid var(--line); }
/* Downloads für die Schule: Button, Badge und oberer Rand in Schul-Blau */
.dl-schule { --accent: #0097db; --accent-ink: #fff; }
/* Menüpunkt Schule: Strich und Hover/Auswahl in Schul-Blau (nur dieser Punkt) */
.nav-top > li.nav-schule { --accent: #0097db; --accent-soft: #e3f3fb; }
/* Bereich Jobbörse: alles Orange wie die Startkachel (#f0a43a); Links/Überschriften etwas dunkler für Lesbarkeit */
.nav-top > li.nav-jobs { --accent: #f0a43a; --accent-soft: #fdf0dc; }
.area-jobs .main {
  --accent: #f0a43a; --accent-ink: #4b5550; --accent-soft: #fdf0dc;
  --link: #a85d00; --lime: #f0a43a; --lime-soft: #fdf0dc;
  --blue: #f0a43a; --blue-dark: #a85d00; --blue-deep: #7d4400;
}
/* Im Bereich Schule: Strich unter der H1 in Schul-Blau */
.content.in-schule h1::after { background: #0097db; }
/* Im Bereich Schule: Linkfarbe blau (Hover etwas dunkler) */
.content.in-schule { --link: #0a82c4; }
.content.in-schule a:not(.btn):hover { color: #00598f; }
.filetype { background: var(--accent-soft); }

/* Kontakt, Jobbörse */
.contact-card { border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 20px; }
.cat-tab { border-radius: 16px; border: 1px solid var(--line); }
.cat-tab:hover { border-color: var(--accent); }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cat-tab.active .count { background: rgba(255, 255, 255, .28); }
.job { border-radius: 20px; box-shadow: var(--shadow); border-color: var(--line); }
.content .job-head { background: transparent; color: var(--ink); border-left: 0; border-bottom: 1px solid var(--line); padding: 14px 22px; font-weight: 700; }
.job-body { padding: 18px 22px 20px; }
.tags li { background: var(--accent-soft); }
.facts { background: var(--accent-soft); border-radius: 16px; }
.contact { border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 20px; }
.empty { background: var(--accent-soft); border-left: 0; border-radius: 16px; }

/* Fußzeile: helles Grau */
.site-footer { background: #e4e8e2; color: #5d6762; padding-top: 44px; }
.site-footer strong { color: var(--ink); }
.site-footer a { color: #4b5550; }
.footer-copy { border-top-color: rgba(75, 85, 80, .18); color: #818b86; }

/* Jobbörse: Anzeigen als Karten-Raster (3 bis 4 nebeneinander, am Handy eine Spalte) */
.job-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); align-items: stretch; }
.job-grid .job { display: flex; flex-direction: column; margin: 0; }
.job-grid .job-head { font-size: 17px; line-height: 1.3; padding: 14px 18px; }
.job-grid .job-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.job-grid .job-title { flex: 1; font-size: 17px; line-height: 1.4; }
.job-grid .job-foot { flex-direction: column; align-items: flex-start; gap: 10px; }

/* Jobbörse: Kopfzeile der Anzeigen in leichtem Orange */
.area-jobs .content .job-head { display: flex; align-items: center; box-sizing: border-box; min-height: calc(2 * 1.3em + 28px); margin: 0; background: #fdf0dc; border-bottom-color: #f6d9a8; }

/* Footer: einfärbige Social-Media-Icons */
.footer-links .social { display: flex; gap: 14px; margin: 10px 0 0 -6px; }
.footer-links .social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; color: #0a82c4; }
.footer-links .social a:hover, .footer-links .social a:focus-visible { background: #fff; color: #00598f; }
.footer-links .social svg { width: 24px; height: 24px; fill: currentColor; }
.footer-links .social svg .st { fill: none; stroke: currentColor; stroke-width: 2; }

/* Cookie-Banner (Google Analytics erst nach Einwilligung) */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 880px; margin: 0 auto; padding: 18px 22px; background: #fff; color: var(--text); border-radius: 20px; box-shadow: 0 8px 36px rgba(0, 0, 0, .28); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.cookie-banner p { flex: 1 1 420px; margin: 0; font-size: 15px; line-height: 1.5; }
.cookie-banner a { color: var(--link); }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-link { background: none; border: 0; padding: 0; font: inherit; color: #4b5550; text-decoration: underline; cursor: pointer; text-align: left; }
.cookie-link:hover { color: var(--ink); }
@media print { .cookie-banner { display: none; } }