/* ZÖPHEL TV – Berlin Media Services */

:root {
    --brand: #046599;
    --brand-dark: #034b72;
    --brand-soft: #e6f1f7;
    --ink: #17212b;
    --text: #36424f;
    --muted: #5d6976;
    --line: #dfe5eb;
    --soft: #f4f7f9;
    --white: #fff;
    --error: #b3261e;

    --radius: 10px;
    --wrap: 68rem;
    --gap: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(2.75rem, 7vw, 5rem);

    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--white);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
}

main {
    flex: 1;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0 0 0.6em;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 650;
}

h3 {
    font-size: 1.15rem;
    font-weight: 650;
}

p,
ul,
ol,
dl,
address {
    margin: 0 0 1.1em;
}

address {
    font-style: normal;
}

a {
    color: var(--brand);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--brand-dark);
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ---------- Bausteine ---------- */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.wrap--narrow {
    max-width: 46rem;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    z-index: 10;
    padding: 0.6rem 1rem;
    background: var(--brand);
    color: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--brand);
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lead {
    color: var(--text);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.6;
}

.muted {
    color: var(--muted);
    font-size: 0.9375rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.875rem;
    padding: 0.65rem 1.4rem;
    border: 2px solid var(--brand);
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: var(--white);
}

.button--ghost {
    background: transparent;
    color: var(--brand);
}

.button--ghost:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

/* ---------- Kopf ---------- */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 0.9rem;
}

.brand img {
    width: auto;
    height: 2.75rem;
}

.nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.35rem;
    margin: 0 -0.75rem;
    padding: 0;
    list-style: none;
}

.nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav a:hover {
    background: var(--soft);
    color: var(--brand);
}

.nav a[aria-current="page"] {
    color: var(--brand);
    box-shadow: inset 0 -2px 0 var(--brand);
    border-radius: 6px 6px 0 0;
}

@media (max-width: 30rem) {
    .nav ul {
        gap: 0;
        margin: 0 -0.45rem;
    }

    .nav a {
        padding: 0.5rem 0.45rem;
        font-size: 0.8125rem;
        letter-spacing: 0.02em;
    }
}

/* ---------- Abschnitte ---------- */

.section {
    padding-block: var(--section);
}

.section + .section:not(.section--soft) {
    padding-top: 0;
}

.section--soft + .section:not(.section--soft) {
    padding-top: var(--section);
}

.section--soft {
    background: var(--soft);
}

.section--center {
    padding-block: clamp(4rem, 12vw, 8rem);
    text-align: center;
}

.section--center .actions {
    justify-content: center;
}

.page-head {
    padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.75rem, 4vw, 2.5rem);
    background: linear-gradient(180deg, var(--soft), var(--white));
}

.page-head h1 {
    margin-bottom: 0.4em;
}

.page-head .lead {
    max-width: 44rem;
    margin-bottom: 0;
}

/* ---------- Start ---------- */

.hero {
    padding-block: clamp(2.5rem, 7vw, 5.5rem);
    background: linear-gradient(180deg, var(--soft), var(--white) 85%);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: var(--gap);
}

.hero__photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 34.75rem;
}

.hero__photos img {
    width: 100%;
    border-radius: var(--radius);
}

@media (min-width: 60rem) {
    .hero__inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }

    .hero__photos {
        justify-self: end;
    }

    .hero__photos img:nth-child(odd) {
        transform: translateY(1.25rem);
    }
}

.cta {
    text-align: center;
}

.cta h2 {
    max-width: 36rem;
    margin-inline: auto;
}

.cta .actions {
    justify-content: center;
}

/* ---------- Karten ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.cards--questions {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.cards--areas {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
    align-items: start;
}

.card {
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius);
    background: var(--white);
}

.card > :last-child {
    margin-bottom: 0;
}

.list {
    padding-left: 1.2rem;
}

.list li {
    margin-bottom: 0.45em;
    padding-left: 0.2rem;
}

.list li::marker {
    color: var(--brand);
}

/* ---------- Text + Bild ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--gap);
}

@media (min-width: 48rem) {
    .split {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.prose {
    max-width: 44rem;
}

.prose h2 {
    margin-top: 2em;
    font-size: 1.35rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.photo {
    width: fit-content;
    margin: 0;
}

.photo img {
    border-radius: var(--radius);
}

.photo figcaption {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------- Referenzen ---------- */

.timeline {
    max-width: 50rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: 0.25rem 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
}

.timeline li:last-child {
    border-bottom: 1px solid var(--line);
}

.timeline__year {
    color: var(--brand);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.timeline__body strong {
    color: var(--ink);
}

.timeline__place::before {
    content: "· ";
    color: var(--muted);
}

.timeline__note {
    display: block;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* ---------- Kontakt ---------- */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--gap);
}

@media (min-width: 52rem) {
    .contact {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    }
}

.facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem 1.5rem;
}

.facts dt {
    color: var(--muted);
    font-size: 0.875rem;
}

.facts dd {
    margin: 0 0 0.7rem;
    color: var(--ink);
}

@media (min-width: 30rem) {
    .prose .facts {
        grid-template-columns: 11rem minmax(0, 1fr);
        align-items: baseline;
    }
}

.form {
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    scroll-margin-top: 1rem;
}

.form h2 {
    font-size: 1.35rem;
}

.field {
    flex: 1 1 14rem;
    margin-bottom: 1rem;
}

.field--narrow {
    flex: 0 1 7rem;
}

.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
}

.field label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-height: 2.875rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #b6c0ca;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.field textarea {
    resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: 3px solid var(--brand-soft);
    outline-offset: 0;
    border-color: var(--brand);
}

.field [aria-invalid="true"] {
    border-color: var(--error);
}

.field__error {
    margin: 0.3rem 0 0;
    color: var(--error);
    font-size: 0.875rem;
}

/* Spamschutz: Feld ist für Menschen unsichtbar */
.field--trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.required {
    color: var(--error);
}

.form__alert {
    padding: 0.8rem 1rem;
    border: 1px solid var(--error);
    border-radius: 8px;
    background: #fdecea;
    color: var(--error);
    font-weight: 600;
}

.form__hint {
    color: var(--muted);
    font-size: 0.875rem;
}

/* ---------- Fuß ---------- */

.site-footer {
    margin-top: var(--section);
    padding-block: 2.5rem 1.5rem;
    background: var(--ink);
    color: #c5ced7;
    font-size: 0.9375rem;
}

.site-footer a {
    color: var(--white);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1.5rem 2.5rem;
}

.site-footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.site-footer__brand img {
    flex: none;
    width: 4rem;
    border-radius: 8px;
}

.site-footer__brand strong {
    color: var(--white);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 0.3rem;
}

.site-footer__legal {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #2d3a47;
    color: #8f9ba7;
    font-size: 0.8125rem;
}

@media print {
    .site-header nav,
    .site-footer,
    .actions,
    .form {
        display: none;
    }
}
