/* About-Seite: Lebenslauf mit statischer Karte */
#about-page {
    display: flex;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    overflow: hidden;
}

/* Karte (rechts) */
#about-map-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

#about-map {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 42%, #131c34 0%, #070b16 68%);
}

/* Statische Karte: kein Grab-Cursor */
#about-map .maplibregl-canvas {
    cursor: default;
}

/* Stations-Textbox: Titel + Text + Navigation in EINER Box, am unteren
   Rand des Viewports fixiert. Das Bild liegt als kleine Karte direkt am
   geografischen Ort (eigener Marker), nicht in der Textbox. */
.about-station-card {
    width: 640px;
    max-width: 66vw;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

/* Text-only Stationen (z.B. Herkunft) sind schmaler */
.about-station-card.no-image {
    width: 320px;
}

.about-station-card-bottom {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 3;
}

.station-card-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.station-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.station-counter {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.station-body {
    margin-top: 1rem;
    line-height: 1.7;
}

.station-body a {
    color: var(--color-accent);
    text-decoration: underline;
}

.station-body a:hover {
    color: var(--color-accent-hover);
}

.station-nav {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.station-nav button {
    background: var(--color-surface-hover);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.station-nav button:hover:not(:disabled) {
    color: var(--color-accent-hover);
    border-color: var(--color-accent);
}

.station-nav button:disabled {
    opacity: 0.35;
    cursor: default;
}

.station-dots {
    display: flex;
    gap: 0.35rem;
    margin: 0 auto;
}

.station-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    padding: 0;
    border: 1px solid var(--color-border);
    background: var(--color-surface-hover);
    cursor: pointer;
}

.station-dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* Kleines Bild direkt am geografischen Ort (Marker-Element) */
.station-map-img {
    display: block;
    width: 150px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--color-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Logos (DESY, HPI): transparent einpassen */
.station-map-img.logo {
    object-fit: contain;
    background: var(--color-surface);
    padding: 8px;
}

.station-popup-img {
    display: block;
    width: 380px;
    max-width: 62vw;
    height: auto;
    border-radius: 10px;
}

.station-popup-img.logo {
    width: 420px;
    object-fit: contain;
    padding: 16px;
}

.about-map-credit {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    background: rgba(15, 15, 15, 0.6);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    z-index: 5;
}

/* Mobile: Karte füllt den Viewport, Textbox unten fixiert, Bild am Ort */
@media (max-width: 768px) {
    #about-page {
        position: relative;
        display: block;
        overflow: hidden;
    }

    #about-map-wrap {
        position: absolute;
        inset: 0;
        height: auto;
    }

    .about-station-card {
        width: min(94vw, 640px);
        max-width: none;
        max-height: 55dvh;
        overflow-y: auto;
    }

    .about-station-card.no-image {
        width: min(94vw, 640px);
        max-width: none;
    }

    .station-title {
        font-size: 1.25rem;
        margin-bottom: 0.1rem;
    }

    .station-body {
        margin-top: 0.6rem;
    }

    .station-map-img {
        width: 110px;
        height: 82px;
    }

    .about-map-credit {
        bottom: auto;
        top: 0.5rem;
    }
}