/*
 * Übergangsseite der Ludgerischule Lüdinghausen
 * Aufbau: Kopfzeile, breites Schulhof-Foto, darunter Botschaft (links) und Kontakt (rechts).
 * Farben und Abstände orientieren sich an der kommenden Website (Ludgeri-Blau #1E5AA8).
 */

/* ---------- Schriften (lokal gehostet, keine Anfragen an Dritte) ---------- */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Gestaltungs-Tokens ---------- */
:root {
  --blau: #1E5AA8;
  --blau-dunkel: #184A8A;
  --navy: #0E2B4F;
  --text: #1B2734;
  --text-ruhig: #384858;
  --text-leise: #4F5D6C;
  --linie: #DCE3EB;
  --tint: #EEF4FB;
  --weiss: #FFFFFF;
  --markiert: #FFF0A3;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --rand: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}

/* ---------- Grundlagen ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blau);
  text-decoration-color: rgba(30, 90, 168, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blau-dunkel);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--rand);
  top: 0;
  z-index: 10;
  transform: translateY(-120%);
  background: var(--navy);
  color: var(--weiss);
  padding: 0.625rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-left: max(var(--rand), env(safe-area-inset-left, 0px));
  padding-right: max(var(--rand), env(safe-area-inset-right, 0px));
}

/* ---------- Kopfzeile ---------- */
.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--navy);
  text-decoration: none;
}

.marke:hover {
  color: var(--navy);
}

.marke img {
  width: 92px;
}

.marke span {
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.marke small {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-leise);
}

.status {
  margin: 0;
  font-size: 0.875rem;
  color: var(--blau-dunkel);
  background: var(--tint);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
}

/* ---------- Startseite ---------- */
.foto {
  display: block;
}

.foto img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: 18px;
  background: #C9D8EA;
}

.inhalt {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 4rem;
  padding-block: 2.75rem 0;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.875rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-ruhig);
  max-width: 46ch;
  margin: 1.125rem 0 0;
}

.hinweis {
  margin: 1.75rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--tint);
  border: 1px solid #C6D8EE;
  border-radius: 12px;
  max-width: 46ch;
}

.hinweis h2 {
  font-size: 1.0625rem;
  margin: 0 0 0.25rem;
  color: var(--navy);
}

.hinweis p {
  margin: 0;
}

.kontakt h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin: 0.375rem 0 0.75rem;
}

.kontakt address {
  font-style: normal;
  line-height: 1.75;
  margin: 0 0 1.5rem;
}

.kontakt ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* ---------- Textseiten (Impressum, Datenschutz, …) ---------- */
.text {
  max-width: 46rem;
  padding-block: 1.5rem 0;
  overflow-wrap: break-word;
}

/* Lange deutsche Komposita (z. B. „Datenschutzerklärung“) bei 400 % Zoom trennen */
.text h1,
.text h2,
.text p,
.text li {
  hyphens: auto;
}

.text h1 {
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem);
}

.text .lead {
  max-width: none;
}

.text h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--navy);
  margin: 2.25rem 0 0.5rem;
}

.text h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.5rem 0 0.25rem;
}

.text p,
.text ul {
  margin: 0 0 0.875rem;
}

.text ul {
  padding-left: 1.25rem;
}

.text li {
  margin-bottom: 0.25rem;
}

.text address {
  font-style: normal;
}

.leicht p {
  font-size: 1.1875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

mark.offen {
  background: var(--markiert);
  color: #3D3200;
  padding: 0 0.25rem;
  border-radius: 3px;
}

/* ---------- Fußzeile ---------- */
.fuss {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 3rem 1.75rem;
  font-size: 0.9375rem;
  color: var(--text-leise);
}

.fuss p {
  margin: 0;
}

.fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.fuss a {
  color: var(--text-leise);
}

.fuss a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 47.99rem) {
  .foto img {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .inhalt {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.75rem;
  }
}

/* ---------- Hochkontrast-Modus (z. B. Windows) ---------- */
@media (forced-colors: active) {
  .status,
  .hinweis {
    border: 1px solid CanvasText;
  }
}

/* ---------- Druck ---------- */
@media print {
  .skip,
  .status,
  .foto {
    display: none;
  }

  body {
    font-size: 11pt;
  }

  a {
    color: inherit;
  }
}
