/* LUHMA – Lernumgebungen Mathematik an der LUH
   Gemeinsames Aussehen aller Seiten.
   Datenschutz: Schriften und Bilder liegen auf dem eigenen Server; es wird nichts von fremden Servern geladen. */

/* Schrift Atkinson Hyperlegible (SIL Open Font License 1.1, siehe schriften/OFL-Atkinson.txt) */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("schriften/AtkinsonHyperlegible-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("schriften/AtkinsonHyperlegible-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --luh-blau: #00519E;
  --luh-blau-dunkel: #003a72;
  --text: #1c2430;
  --text-leise: #3a4552;
  --text-klein: #4a5664;
  --linie: #dfe3e8;
  --flaeche: #eef1f4;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif; color: var(--text); background: #ffffff; line-height: 1.5; }
a { color: var(--luh-blau); }
a:hover { color: var(--luh-blau-dunkel); }
a:focus-visible { outline: 3px solid #f4c430; outline-offset: 2px; }

.seite { min-height: 100vh; display: flex; flex-direction: column; }
.breite { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Kopf mit LUH-Logo */
.kopf { border-bottom: 1px solid var(--linie); background: #ffffff; }
/* Schutzzone des LUH-Logos laut Corporate Design: halbe Logohöhe frei um das Logo (48px hoch -> 24px) */
.kopf .breite { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; }
.logo { display: block; line-height: 0; }
.logo img { height: 48px; width: auto; display: block; }
.kopf .links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.kopf .fakultaet { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--luh-blau); text-decoration: none; }
.kopf .fakultaet svg { flex: none; }
.kopf nav { font-size: 16px; }
.kopf a.fakultaet:hover, .kopf nav a:hover { text-decoration: underline; }
.kopf nav a { text-decoration: none; }

/* Blaues Band mit Titel */
.band { background: var(--luh-blau); color: #ffffff; }
.band .breite { padding-top: 72px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 16px; }
.band h1 { margin: 0; font-size: 64px; line-height: 1.05; font-weight: 700; }
.band p { margin: 0; font-size: 26px; line-height: 1.35; max-width: 760px; }
.band .zurueck { color: #ffffff; font-size: 16px; text-decoration: none; align-self: flex-start; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.band .zurueck:hover { border-bottom-color: #ffffff; color: #ffffff; }
.band.unterseite .breite { padding-top: 40px; padding-bottom: 56px; }
.band.unterseite h1 { font-size: 44px; line-height: 1.12; max-width: 900px; }
.band.unterseite p { font-size: 22px; }

/* Inhalt */
main { flex: 1 1 auto; }
main .breite { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.einleitung { margin: 0; font-size: 19px; line-height: 1.6; max-width: 780px; color: var(--text-leise); }
.einleitung code, .ueber code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--flaeche); padding: 1px 5px; border-radius: 4px; color: var(--text); white-space: nowrap; }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.karte { display: flex; flex-direction: column; border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; background: #ffffff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06); color: var(--text); }
a.karte { text-decoration: none; }
a.karte:hover { border-color: #b9c4d0; color: var(--text); }
.karte img { width: 100%; height: 220px; object-fit: cover; object-position: center top; display: block; border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.karte-text { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.dach { margin: 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-klein); }
.karte h2 { margin: 0; font-size: 22px; line-height: 1.25; color: var(--luh-blau); }
.karte p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-leise); }
.weiter { font-size: 16px; font-weight: 700; color: var(--luh-blau); }
.karte .unten { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.knopf { display: inline-block; padding: 11px 20px; background: var(--luh-blau); color: #ffffff; border-radius: 6px; font-weight: 700; font-size: 16px; text-decoration: none; }
.knopf:hover { background: var(--luh-blau-dunkel); color: #ffffff; }
.nebenlink { font-size: 15px; }

/* Hinweis und „Über Aleph“ */
.hinweis { margin: 0; padding: 18px 22px; background: var(--flaeche); border-radius: 6px; font-size: 16px; line-height: 1.55; color: var(--text-leise); max-width: 780px; }
.hinweis strong { color: var(--text); }
.ueber { max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.ueber h2 { margin: 0; font-size: 24px; }
.ueber h3 { margin: 8px 0 0; font-size: 17px; }
.ueber p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-leise); }
.ueber ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--text-leise); display: flex; flex-direction: column; gap: 6px; }

/* Textseiten: Impressum, Datenschutz, Barrierefreiheit */
.rechtstext { max-width: 780px; display: flex; flex-direction: column; gap: 10px; }
.rechtstext h2 { margin: 18px 0 0; font-size: 21px; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext h3 { margin: 14px 0 0; font-size: 17px; }
.rechtstext p, .rechtstext ul { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-leise); }
.rechtstext ul { padding-left: 22px; }

/* Fußzeile */
.fuss { background: var(--flaeche); border-top: 1px solid var(--linie); }
.fuss .breite { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 14px; line-height: 1.6; color: var(--text-leise); }
.fuss .name { font-weight: 700; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }

/* Schmale Bildschirme */
@media (max-width: 640px) {
  .breite { padding-left: 20px; padding-right: 20px; }
  .band .breite { padding-top: 44px; padding-bottom: 52px; }
  .band h1 { font-size: 48px; }
  .band p { font-size: 21px; }
  .band.unterseite h1 { font-size: 32px; }
  .band.unterseite p { font-size: 19px; }
  .logo img { height: 40px; }
  .karten { grid-template-columns: minmax(0, 1fr); }
}
