:root {
    --page-width: 1180px;
    --surface-light: rgba(247, 242, 213, 0.97);
    --surface-green: rgba(159, 173, 165, 0.97);
    --surface-dark: #46544d;
    --surface-darker: #2f3733;
    --text: #121512;
    --muted: #48544e;
    --border: #090b0a;
    --soft-border: rgba(26, 32, 28, 0.20);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;

    background:
        linear-gradient(
            rgba(242, 230, 172, 0.22),
            rgba(17, 23, 20, 0.30)
        ),
        url("/images/background/Zugschiene-1500px.jpg")
        center top / cover fixed no-repeat;
}

.topics-page {
    width: min(var(--page-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.topics-hero {
    padding: 30px 35px;

    background:
        linear-gradient(
            90deg,
            rgba(251, 246, 209, 0.97),
            rgba(240, 230, 170, 0.90)
        );

    border-left: 7px solid var(--surface-dark);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.21);
}

.topics-eyebrow,
.section-eyebrow {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.topics-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.topics-intro {
    max-width: 820px;
    margin: 14px 0 0;
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.65;
}

.construction-notice {
    max-width: 780px;
    margin-top: 24px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    background: rgba(65, 77, 70, 0.94);
    border-radius: 10px;
}

.construction-icon {
    flex: 0 0 auto;
    font-size: 1.75rem;
}

.construction-notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.construction-notice p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    line-height: 1.5;
}

.topics-section {
    margin-top: 24px;
    padding: 30px;

    background: rgba(231, 235, 225, 0.94);
    border: 4px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 25px;
}

.section-heading h2,
.development-info h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.2;
}

.section-heading > p:last-child,
.development-info p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.topic-card {
    min-height: 245px;
    padding: 22px;
    display: flex;
    flex-direction: column;

    background: var(--surface-green);
    border: 3px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}

.topic-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.topic-symbol {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: var(--surface-darker);
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.topic-symbol-wide {
    font-size: 0.85rem;
}

.status-badge {
    padding: 6px 9px;
    color: #ffffff;
    background: #6f837a;
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.topic-card h3 {
    margin: 20px 0 10px;
    font-size: 1.30rem;
    line-height: 1.25;
}

.topic-card p {
    margin: 0;
    color: #303b35;
    line-height: 1.62;
}

.topic-card-more {
    background:
        linear-gradient(
            145deg,
            rgba(244, 239, 210, 0.98),
            rgba(215, 220, 202, 0.97)
        );
}

.development-info {
    margin-top: 24px;
    padding: 30px 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 35px;
    align-items: center;

    background: var(--surface-light);
    border: 4px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.development-steps {
    display: grid;
    gap: 10px;
}

.development-steps span {
    padding: 13px 15px;
    color: #ffffff;
    background: var(--surface-dark);
    border-left: 5px solid #95aa9f;
    border-radius: 7px;
    font-size: 0.92rem;
    font-weight: 800;
}

@media (max-width: 960px) {
    .topics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .development-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    body {
        background-attachment: scroll;
    }

    .topics-page {
        width: calc(100% - 18px);
        padding: 20px 0 48px;
    }

    .topics-hero {
        padding: 23px 19px;
        border-left-width: 5px;
    }

    .construction-notice {
        align-items: flex-start;
    }

    .topics-section,
    .development-info {
        padding: 21px 18px;
        border-width: 4px;
        border-radius: 14px;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .topic-card {
        min-height: 0;
    }
}
