/* ---- Grundlagen ---- */
:root {
    --accent: #7e88e7;      /* Akzentfarbe, hier ein weicheres Rot */
--bg: #f3f3fb;          /* Seitenhintergrund, ganz zartes Lavendel */
    --card: #ffffff;        /* Box-Hintergrund */
    --text: #1f2933;        /* Textfarbe */    --muted: #6b7280;       /* dezenter Text */
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 40px 16px;
}

/* ---- Karten-Container ---- */
main {
    max-width: 760px;
    margin: auto;
    background: var(--card);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--accent);
}

/* ---- Typografie ---- */
h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0.2em 0 0.1em;
}

h2 {
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 0.2em;
}

h3 {
    color: var(--muted);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1.5em;
}

p {
    color: var(--text);
}
.text {
    max-width: 65ch;        /* angenehme Lesebreite */
    margin: 1em 0 1.5em;
    font-size: 1.05rem;
}

.info {
    background: #f0f1fb;             /* dezente Box, hebt Erklärungen hervor */
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 1.5em 0;
}
/* ---- Elemente ---- */
.name {
    font-style: italic;
    text-align: right;
    color: var(--muted);
    margin: 0 0 1.5em;
}

.chart {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.6em auto;
    border-radius: 12px;
}
figcaption {
    text-align: left;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.6em;
}

.figure {
    margin: 2em 0;
}
.options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 2em 0;
}

.option h2 {
    font-size: 1.3rem;   /* kleiner als die Haupt-h2 */
    margin: 0 0 0.3em;
}

.option p {
    font-size: 0.95rem;
    margin: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 1.5em 0;
}

.grid-2 img {
    width: 100%;
    height: 220px;        /* feste Höhe -> alle gleich groß */
    object-fit: cover;    /* beschneidet statt zu verzerren */
    border-radius: 12px;
    display: block;
}
.grid-full img {
    height: auto;          /* volle Bildhöhe statt fester 220px */
    object-fit: contain;   /* nichts wird abgeschnitten */
}
iframe {
    border-radius: 12px;
    margin: 1.5em 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.map-wrap {    display: flex;
    flex-direction: column;
align-items: flex-start;    /* Legende linksbündig */    margin: 1.5em 0;
}

.map-wrap iframe {
    display: block;
    margin: 0;
    width: 100%;
}

.map-legend {
    width: 48%;               /* etwa halb so breit wie die Karte */
    max-width: 320px;
    height: auto;
    margin-top: 10px;         /* Abstand unter der Karte */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
a:hover {
    text-decoration: underline;
}

/* ---- Footer ---- */
footer {
    max-width: 760px;
    margin: 24px auto 0;
    padding: 16px 48px;
    overflow: hidden;
}

.logo {
    float: right;
    height: 52px;
    opacity: 0.85;
}

/* ---- Mobil ---- */
@media (max-width: 600px) {
    main { padding: 28px; }
    h1 { font-size: 1.9rem; }
}
