/*
 * Basis-Stylesheet aller Team-Themes.
 *
 * Bewusst ohne Build-Schritt und ohne fremde CDN: keine Google Fonts, keine
 * externen Ressourcen. Das ist keine Geschmacksfrage, sondern die billigste
 * Art, das Abmahnthema und die Cookie-Einwilligung dauerhaft kleinzuhalten.
 *
 * --brand, --accent und --surface setzt das Layout zur Laufzeit aus den
 * Team-Einstellungen. Alles andere leitet sich davon ab.
 */

:root {
    --bg: #0d0d0f;
    --surface: #16161a;
    --surface-2: #1d1d22;
    --border: #2a2a31;
    --text: #e9e9ec;
    --muted: #9a9aa3;
    --brand: #c1121f;
    --accent: #c9a227;

    --radius: 10px;
    --wrap: 1180px;
    --shadow: 0 10px 30px rgb(0 0 0 / 45%);

    --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Semibold", ui-sans-serif, system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    /* Ein Teamname oder eine Adresse ohne Leerzeichen sprengt sonst auf
       einem 360px breiten Geraet die Seite in die Waagerechte. */
    overflow-wrap: break-word;
}

a {
    color: inherit;
}

/*
 * Sichtbarer Fokus, ueberall und in einer Farbe, die auf jedem Untergrund
 * dieses Themes besteht. Ohne das laesst sich die Seite mit der Tastatur
 * zwar bedienen, aber nicht verfolgen - und genau daran scheitert die
 * Tastaturbedienung in der Praxis.
 */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Nur fuer Screenreader. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

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

.wrap {
    width: min(100% - 32px, var(--wrap));
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    background: var(--brand);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius);
}

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

.site-header {
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 14px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    height: 44px;
    width: auto;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}

.brand-text strong {
    display: block;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    font-size: 18px;
}

.brand-text small {
    color: var(--muted);
    font-size: 13px;
}

.site-nav {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 15px;
    /* Groesser als noetig aussieht: mit dem Daumen auf einem Telefon ist
       ein 20px hoher Link nicht zuverlaessig zu treffen. */
    padding-block: 11px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

/* Die Seite, auf der man gerade steht, muss auch ohne Farbe erkennbar sein. */
.site-nav a[aria-current="page"] {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    border-bottom-color: var(--brand);
}

.site-nav .nav-cta {
    background: var(--brand);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius);
    border-bottom: 0;
}

.site-nav .nav-cta:hover {
    filter: brightness(1.12);
    border-bottom-color: transparent;
}

/* ------------------------------------------------------------------ */
/* Inhalt                                                              */
/* ------------------------------------------------------------------ */

.hero {
    padding-block: clamp(56px, 10vw, 120px);
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(900px 400px at 15% -10%,
            color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
        var(--surface);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.1;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.hero .lead {
    font-size: clamp(18px, 2.4vw, 22px);
    color: var(--accent);
    margin: 0 0 18px;
}

.hero .intro {
    max-width: 62ch;
    color: var(--muted);
    margin: 0 0 28px;
}

.block {
    padding-block: clamp(40px, 6vw, 72px);
}

.block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.block-head h2,
.block h1 {
    font-family: var(--font-display);
    margin: 0;
    font-size: clamp(24px, 3.4vw, 34px);
}

.block-head a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.block-head a:hover {
    color: var(--accent);
}

.cards {
    display: grid;
    /* min(260px, 100%) statt 260px: auf einem 360px breiten Geraet bleibt
       sonst eine Spalte breiter als ihr Behaelter und die Seite laesst sich
       seitwaerts schieben. */
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
    border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
    transform: translateY(-2px);
}

.card h3 {
    font-family: var(--font-display);
    margin: 6px 0 8px;
    font-size: 19px;
}

.card h3 a {
    text-decoration: none;
}

.card h3 a:hover {
    color: var(--accent);
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.card time {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card.member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: calc(var(--radius) - 3px);
    margin-bottom: 12px;
}

.card .role {
    color: var(--accent);
    font-size: 14px;
}

.entry {
    padding-block: 22px;
    border-bottom: 1px solid var(--border);
}

.entry h2 {
    font-family: var(--font-display);
    margin: 4px 0 8px;
    font-size: 24px;
}

.entry h2 a {
    text-decoration: none;
}

.entry h2 a:hover {
    color: var(--accent);
}

.entry time {
    color: var(--accent);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.entry p {
    margin: 0;
    color: var(--muted);
}

.grid-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 12px;
}

.grid-photos figure {
    margin: 0;
}

.grid-photos img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.prose {
    max-width: 72ch;
}

.prose h1 {
    margin-bottom: 16px;
}

.prose h2 {
    font-family: var(--font-display);
    margin-top: 32px;
}

.prose p,
.prose li,
.prose blockquote {
    color: #cfcfd6;
}

.prose h3 {
    font-family: var(--font-display);
    margin-top: 24px;
}

/*
 * Links im Fliesstext des Kunden. Ohne diese Regel erben sie die Textfarbe
 * und sind nur an der Unterstreichung zu erkennen - zu wenig, sobald ein
 * Theme die Unterstreichung abschaltet.
 */
.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    text-decoration-thickness: 2px;
}

.prose blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--brand);
}

.muted {
    color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Formulare                                                           */
/* ------------------------------------------------------------------ */

.form {
    display: grid;
    gap: 16px;
    max-width: 620px;
}

.form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
}

.form input,
.form textarea,
.form select {
    font: inherit;
    font-size: 16px;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px 13px;
    width: 100%;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
    border-color: transparent;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.button {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    border: 0;
    font: inherit;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    justify-self: start;
}

.button:hover {
    filter: brightness(1.12);
}

.error {
    color: #ff8d8d;
    font-size: 14px;
}

/* Fehlerfeld zusaetzlich am Rahmen erkennbar - Farbe allein reicht nicht. */
.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] {
    border-color: #ff8d8d;
    border-width: 2px;
}

.error-summary {
    border-color: #ff8d8d;
    margin-bottom: 24px;
}

.error-summary h2 {
    font-size: 17px;
    margin: 0 0 8px;
}

.error-summary ul {
    margin: 0;
    padding-left: 20px;
}

.notice {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Blaetterleiste                                                      */
/* ------------------------------------------------------------------ */

.pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.pagination .pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination .page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
}

.pagination a.page:hover {
    border-color: var(--accent);
}

.pagination .page.current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}

.pagination .page.disabled {
    color: var(--muted);
    background: transparent;
}

/* ------------------------------------------------------------------ */
/* Fehlerseite                                                         */
/* ------------------------------------------------------------------ */

.notfound-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.notfound-links .ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Fuss                                                                */
/* ------------------------------------------------------------------ */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    margin-top: 40px;
    padding-block: 28px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    align-items: start;
}

.footer-inner strong {
    font-family: var(--font-display);
}

.footer-inner p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.footer-inner nav {
    display: flex;
    gap: 18px;
}

.footer-inner nav a {
    color: var(--muted);
    font-size: 15px;
    text-decoration: none;
}

.footer-inner nav a:hover {
    color: var(--text);
}

.badge {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.badge a {
    color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Schmale Bildschirme                                                 */
/* ------------------------------------------------------------------ */

@media (max-width: 720px) {
    .header-inner {
        justify-content: center;
        text-align: center;
    }

    .site-nav {
        justify-content: center;
        gap: 14px;
    }

    /* Der klebende Kopf frisst auf einem Telefon sonst die halbe Hoehe,
       sobald die Navigation umbricht. */
    .site-header {
        position: static;
    }
}

/* 360px: das schmalste Geraet, das in der Praxis noch vorkommt. */
@media (max-width: 400px) {
    .wrap {
        width: min(100% - 24px, var(--wrap));
    }

    .site-nav {
        gap: 10px;
    }

    .block-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-inner nav {
        flex-direction: column;
        gap: 10px;
    }

    .card,
    .summary {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
