/* Layout nach Mockup A2 (berufsschule/mockups/mockup_a2_abgerundet.html). Farben nur aus tokens.css. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--schrift); font-size: 18px; line-height: 1.55; color: var(--text); background: var(--weiss); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--text); }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, main:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.schmal { max-width: 820px; }
.sprung { position: absolute; left: 8px; top: -60px; background: var(--weiss); padding: 8px 12px; border: 2px solid var(--rot); z-index: 10; }
.sprung:focus { top: 8px; }

/* Kopf: Schullogo links, Landkreiswappen rechts */
.kopf { border-top: 6px solid var(--rot); border-bottom: 1px solid var(--linie); background: var(--weiss); }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.marke { display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--text); }
/* Feste Höhe statt max-height: SVGs ohne width/height-Angabe (häufig bei amtlichen Wappen)
   schrumpfen sonst unter dem globalen img { max-width: 100% } auf 0 px. */
.marke .logo { height: 84px; width: auto; max-width: 220px; object-fit: contain; flex: none; }
.marke .titel { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.marke .titel span { display: block; font-weight: 400; font-size: .95rem; color: var(--text-gedaempft); }
.wappen { display: block; flex: none; }
.wappen img { height: 84px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.wappen-ersatz { display: block; font-size: .85rem; color: var(--text-gedaempft); border-left: 4px solid var(--rot); padding-left: 10px; }
.navigation { background: var(--flaeche-grau); border-bottom: 1px solid var(--linie); }
.navigation ul { list-style: none; margin: 0 auto; padding: 0 20px; max-width: var(--breite); display: flex; flex-wrap: wrap; }
.navigation a { display: block; padding: 12px 0; margin-right: 36px; text-decoration: none; font-size: .95rem; border-bottom: 3px solid transparent; }
.navigation a:hover { border-bottom-color: var(--rot); }

/* Hinweisbox */
.hinweisband { padding-top: 22px; }
.hinweis { background: var(--flaeche-grau); border-left: 6px solid var(--text-gedaempft); padding: 14px 18px; }
.hinweis.wichtig { background: var(--rot-hell); border-left-color: var(--rot); }
.hinweis strong { display: block; font-size: 1.05rem; }
.hinweis p { margin: .2em 0 0; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--text); background: transparent; color: var(--text); text-decoration: none; font: inherit; font-size: .95rem; }
.knopf::after { content: "\00bb"; font-size: 1.2em; line-height: 1; }
.knopf:hover { background: var(--text); color: var(--weiss); }
.knopf.voll { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.knopf.voll:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* Einstieg */
.einstieg { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
.einstieg.mit-bild { grid-template-columns: 1.3fr 1fr; }
.einstieg .lead { font-size: 1.2rem; }
.einstieg .titelbild img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Scrollhinweis: statisch, ohne Animation */
.scrollhinweis { display: flex; width: 44px; height: 44px; margin: -6px auto 10px; align-items: center; justify-content: center; border: 1px solid var(--linie); border-radius: 50%; background: var(--weiss); color: var(--text); text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.scrollhinweis:hover { border-color: var(--rot); color: var(--rot); }
.scrollhinweis svg { width: 20px; height: 20px; }

/* Abschnitte */
.abschnitt { padding: 52px 0; }
.abschnitt.grau { background: var(--flaeche-grau); }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* Aktuelles als abgerundete Karte (zeigt, dass die Seite weitergeht) */
.abschnitt.aktuelles { padding: 12px 0 56px; }
.aktuelles > .huelle { width: calc(100% - 40px); background: var(--flaeche-beige); border-radius: 18px; border-top: 4px solid var(--rot); box-shadow: 0 6px 22px rgba(0, 0, 0, .14); padding: 36px 32px 40px; }
.karten { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.karte { background: var(--weiss); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.karte .bild img { display: block; width: 100%; height: 170px; object-fit: cover; border-bottom: 1px solid var(--linie); }
.karte .inhalt { padding: 18px 20px 22px; }
.karte .datum { color: var(--text-gedaempft); font-size: .85rem; }

/* Listen */
.terminliste, .downloadliste { list-style: none; margin: 0; padding: 0; }
.terminliste li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.terminliste .wann { font-weight: 700; }
.downloadliste li { padding: 12px 0; border-bottom: 1px solid var(--linie); display: flex; justify-content: space-between; gap: 16px; }
.downloadliste .art { color: var(--text-gedaempft); font-size: .85rem; white-space: nowrap; }
dl.kontakt { margin: 0; display: grid; grid-template-columns: 9.5rem 1fr; gap: 6px 16px; }
dl.kontakt dt { font-weight: 700; }
dl.kontakt dd { margin: 0; }

/* Fließtext und Unterseiten (Impressum, Datenschutz, Lizenzen) */
.seite { padding: 40px 0 56px; }
.fliesstext { max-width: 72ch; }
.fliesstext img { border-radius: 6px; }
table.lizenzen { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0 2em; }
table.lizenzen th, table.lizenzen td { border-bottom: 1px solid var(--linie); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.lizenztext pre { white-space: pre-wrap; font-size: .8rem; background: var(--flaeche-grau); padding: 12px; }
.kicker { color: var(--rot-dunkel); font-weight: 700; margin-bottom: .3em; }

/* Fuß */
.fuss { background: var(--flaeche-grau); border-top: 1px solid var(--linie); padding: 32px 0; font-size: .95rem; }
.fusszeile { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.fuss .wappen img { height: 64px; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 860px) {
  h1 { font-size: 1.7rem; }
  .kopfzeile, .marke { flex-wrap: wrap; }
  .einstieg.mit-bild, .zweispaltig, .karten { grid-template-columns: 1fr; gap: 24px; }
  .aktuelles > .huelle { padding: 24px 16px 28px; border-radius: 14px; }
  .terminliste li { grid-template-columns: 1fr; gap: 2px; }
  dl.kontakt { grid-template-columns: 1fr; }
  dl.kontakt dd { margin-bottom: 8px; }
}

@media print {
  .navigation, .scrollhinweis, .sprung { display: none; }
  .aktuelles > .huelle { box-shadow: none; }
}
