:root {
    --blau: #1f4e79;
    --blau-hell: #2f6ba8;
    --rot: #c62828;
    --gruen: #2e7d32;
    --text: #1f2733;
    --grau: #5b6775;
    --rand: #dfe5ec;
    --flaeche: #ffffff;
    --hintergrund: #eef2f7;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--hintergrund);
    color: var(--text);
    font-family: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

/* ── Kopfzeile ─────────────────────────────────────────────── */
.kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 84px;
    padding: 0 34px;
    background: var(--flaeche);
    border-bottom: 3px solid var(--blau);
}

.kopf-links { display: flex; align-items: baseline; gap: 14px; }
.logo { font-size: 26px; font-weight: 800; color: var(--blau); letter-spacing: .5px; }
.trenner { color: var(--rand); font-size: 26px; }
.kopf-titel { font-size: 24px; font-weight: 600; color: var(--grau); }
.ort { font-size: 20px; color: var(--grau); font-weight: 600; }

/* ── Inhalt ────────────────────────────────────────────────── */
.inhalt {
    padding: 28px 34px 120px;
    max-width: 1800px;
    margin: 0 auto;
}

.titelzeile {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 6px 0 22px;
}

h1 {
    margin: 0;
    font-size: clamp(26px, 2.4vw, 40px);
    font-weight: 700;
    color: var(--blau);
}

.zaehler { font-size: 19px; color: var(--grau); }

/* ── Kacheln ───────────────────────────────────────────────── */
.raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.raster.start {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 34px;
    margin-top: 10px;
}

.raster.gross {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.karte {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 28px;
    min-height: 150px;
    border-radius: 18px;
    border: 2px solid var(--rand);
    background: var(--flaeche);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(31, 78, 121, .07);
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.karte:hover,
.karte:focus-visible {
    transform: translateY(-3px);
    border-color: var(--blau-hell);
    box-shadow: 0 12px 26px rgba(31, 78, 121, .16);
    outline: none;
}

.karte.gross { min-height: 210px; justify-content: center; }

.karte.start {
    min-height: 46vh;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.karte.start.video { border-color: #b9cfe6; }
.karte.start.pdf { border-color: #cfe0d2; }

.symbol { font-size: 34px; line-height: 1; color: var(--blau); }
.symbol.gross { font-size: 96px; margin-bottom: 10px; }
.karte.start.video .symbol.gross { color: var(--blau); }
.karte.start.pdf .symbol.gross { color: var(--gruen); }

.karte-titel { font-size: 24px; font-weight: 700; }
.karte-titel.gross { font-size: clamp(34px, 3vw, 52px); }

.karte-text { font-size: 17px; color: var(--grau); }
.karte-fuss { margin-top: auto; font-size: 15px; color: var(--grau); }
.leer-karte { opacity: .55; }

.leer { font-size: 22px; color: var(--grau); }

/* ── Video / PDF ───────────────────────────────────────────── */
.player {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.player video {
    display: block;
    width: 100%;
    max-height: calc(100vh - 250px);
    background: #000;
}

.pdfrahmen {
    background: var(--flaeche);
    border: 2px solid var(--rand);
    border-radius: 16px;
    overflow: hidden;
    height: calc(100vh - 250px);
}

.pdfrahmen iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Untere Leiste: Zurück unten links (Hausregel) ─────────── */
.leiste {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 16px 34px;
    background: linear-gradient(to top, rgba(238, 242, 247, .98) 60%, rgba(238, 242, 247, 0));
}

.knopf {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    min-height: 62px;
    border-radius: 14px;
    border: 2px solid var(--rand);
    background: var(--flaeche);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 6px 16px rgba(31, 78, 121, .10);
}

.knopf.zurueck { color: var(--rot); border-color: #f0c9c9; }
.knopf.zurueck .pfeil { font-size: 26px; }

.knopf:hover { border-color: var(--blau-hell); }

@media (max-width: 820px) {
    .raster.start { grid-template-columns: 1fr; }
    .raster.start .karte { min-height: 30vh; }
    .kopf { height: 70px; padding: 0 18px; }
    .inhalt { padding: 18px 18px 110px; }
}
