/* =========================================================================
   50 Jahre Kilthau – RSVP
   Reines Schwarz-Weiß, hypnotisches Ringe-Motiv (passend zur Einladung).
   Schrift: Inter (lokal gehostet, kein Zugriff auf Google-Server).
   ========================================================================= */

/* Inter Variable – ein Variable Font deckt alle Schnitte 100–900 ab. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-wght-italic.woff2") format("woff2");
}

:root {
    --black: #000;
    --white: #fff;
    --ink:   #0a0a0a;
    --ring:  54px;            /* Ringbreite des Spiralmotivs */
    --speed: 14s;            /* Dauer des hypnotischen "Atmens" */
}

* { box-sizing: border-box; }

html {
    background: var(--black);   /* Basisebene hinter dem Ringe-Motiv */
}
body {
    margin: 0;
    padding: 0;
    background: transparent;     /* lässt .bg (z-index:-2) durchscheinen */
    color: var(--white);
    font-family: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
    font-feature-settings: "cv05" 1, "ss03" 1; /* echtes 1, geometrische Details */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* --- Hypnotischer Ringe-Hintergrund ------------------------------------- */
.bg {
    position: fixed;
    inset: -40vmax;
    z-index: -2;
    background:
        repeating-radial-gradient(
            circle at center,
            var(--black) 0,
            var(--black) calc(var(--ring) - 1px),
            var(--white) var(--ring),
            var(--white) calc(var(--ring) * 2 - 1px),
            var(--black) calc(var(--ring) * 2)
        );
    /* Hypnotisches Hinein-Zoomen: die Ringe "atmen" langsam. */
    animation: breathe var(--speed) ease-in-out infinite;
    will-change: transform;
}
.bg::after {            /* leichtes Vignetten-Dimming für Lesbarkeit/Komfort */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
        rgba(0,0,0,.12) 0%, rgba(0,0,0,.45) 48%, rgba(0,0,0,.78) 100%);
}
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.32); }
}

@media (prefers-reduced-motion: reduce) {
    .bg { animation: none; }
}

/* --- Layout-Karte ------------------------------------------------------- */
.wrap {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
}

.card {
    width: 100%;
    max-width: 560px;
    background: var(--ink);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 6px var(--black), 0 24px 60px rgba(0,0,0,.7);
    padding: clamp(26px, 5vw, 46px);
}

.card--wide { max-width: 1080px; }

/* --- Kopf / Logo -------------------------------------------------------- */
.logo {
    display: block;
    width: min(320px, 80%);
    margin: 0 auto 22px;
}
.logo img { width: 100%; height: auto; display: block; }

.eyebrow {
    text-align: center;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: clamp(13px, 2.4vw, 16px);
    margin: 0 0 6px;
    opacity: .9;
}

.headline {
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: .95;
    font-size: clamp(30px, 7vw, 52px);
    margin: 0 0 18px;
}
.headline .year { display: block; }

.divider {
    height: 3px;
    background: var(--white);
    border: 0;
    margin: 20px 0;
}

/* --- Fakten-Liste ------------------------------------------------------- */
.facts {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    gap: 10px;
}
.facts li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px dotted rgba(255,255,255,.35);
    padding-bottom: 8px;
    font-size: 15px;
}
.facts .k {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    font-size: 12px;
    opacity: .7;
    align-self: center;
    white-space: nowrap;
}
.facts .v { text-align: right; font-weight: 600; }

.lead { text-align: center; line-height: 1.5; opacity: .92; margin: 0 0 22px; }

/* --- Formular ----------------------------------------------------------- */
form { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }

label.lbl {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 700;
    opacity: .8;
}
.req { color: var(--white); }

input[type=text],
input[type=email],
input[type=number],
input[type=password],
textarea,
select {
    width: 100%;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 13px 14px;
    font: inherit;
    font-size: 16px;            /* >=16px verhindert iOS-Zoom */
    border-radius: 0;
    outline: none;
}
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px var(--white);
}
textarea { min-height: 90px; resize: vertical; }

/* Zusage / Absage Umschalter */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    padding: 16px 8px;
    border: 2px solid var(--white);
    cursor: pointer;
    user-select: none;
    transition: background .12s, color .12s;
}
.choice input:checked + label { background: var(--white); color: var(--black); }
.choice input:focus-visible + label { box-shadow: 0 0 0 3px var(--white); }

/* Begleitpersonen erscheinen nur bei Zusage */
.only-zusage { display: none; }
body.is-zusage .only-zusage { display: grid; }

/* Buttons */
.btn {
    appearance: none;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--white);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 20px;
    text-decoration: none;
    transition: background .12s, color .12s;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--sm { width: auto; padding: 9px 16px; font-size: 13px; letter-spacing: .1em; }

/* Honeypot – für Menschen unsichtbar */
.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px; overflow: hidden;
}

/* Meldungen */
.note { text-align: center; font-size: 13px; opacity: .65; line-height: 1.5; }
.note a { text-decoration: underline; }

.alert {
    border: 2px solid var(--white);
    padding: 12px 14px;
    font-size: 14px;
    margin: 0 0 16px;
    background: var(--white);
    color: var(--black);
    font-weight: 600;
}
.alert--quiet { background: transparent; color: var(--white); }

.errors { margin: 0 0 16px; }
.errors ul { margin: 8px 0 0; padding-left: 18px; }

/* --- Danke-Seite -------------------------------------------------------- */
.big-state {
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(40px, 12vw, 90px);
    line-height: .9;
    margin: 10px 0 14px;
}

/* --- Admin-Tabelle ------------------------------------------------------ */
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 22px; }
.stat {
    flex: 1 1 120px;
    border: 2px solid var(--white);
    padding: 14px 16px;
    text-align: center;
}
.stat b { display: block; font-size: 30px; font-weight: 800; }
.stat span { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; opacity: .7; }

.tablewrap { overflow-x: auto; border: 2px solid var(--white); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.list th, table.list td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,.25);
    text-align: left;
    vertical-align: top;
}
table.list th {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 11px;
    background: var(--white);
    color: var(--black);
    position: sticky;
    top: 0;
}
table.list tr:hover td { background: rgba(255,255,255,.06); }
.badge {
    display: inline-block;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 3px 9px;
    border: 1.5px solid var(--white);
}
.badge--zusage { background: var(--white); color: var(--black); }
.badge--absage { background: transparent; color: var(--white); }

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
}
.toolbar .left { display: flex; gap: 10px; align-items: baseline; }

.inline-form { display: inline; }
.linkbtn {
    background: none; border: 0; color: var(--white);
    text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; padding: 0;
}

.footer-note {
    text-align: center;
    margin-top: 26px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .5;
}

/* --- Location-Link ------------------------------------------------------ */
.maplink {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.maplink__pin { font-style: normal; text-decoration: none; }
.btn--map { margin-top: 14px; font-size: 13px; letter-spacing: .12em; padding: 13px 18px; }

/* =========================================================================
   Mobile-Feinschliff
   ========================================================================= */
@media (max-width: 560px) {
    :root { --ring: 42px; }                 /* dichtere Ringe auf kleinem Schirm */

    .wrap { padding: 16px 11px; align-items: flex-start; }
    .card {
        padding: 22px 18px;
        box-shadow: 0 0 0 4px var(--black), 0 16px 40px rgba(0,0,0,.65);
    }
    .card--wide { padding: 18px 13px; }
    .logo { width: min(230px, 72%); }

    .headline { font-size: clamp(28px, 9vw, 44px); }

    /* Fakten gestapelt statt zweispaltig – besser lesbar */
    .facts li { flex-direction: column; gap: 3px; align-items: stretch; }
    .facts .k { align-self: flex-start; }
    .facts .v { text-align: left; }

    /* Zu-/Absage-Buttons untereinander = größere Tap-Flächen */
    .choice { grid-template-columns: 1fr; }
    .choice label { padding: 17px 10px; }

    form { gap: 16px; }

    /* Admin-Kacheln zweispaltig */
    .stat { flex-basis: calc(50% - 7px); }
    .toolbar { gap: 10px; }
}

@media (max-width: 360px) {
    .headline { font-size: clamp(24px, 9.5vw, 34px); }
    .big-state { font-size: clamp(34px, 14vw, 60px); }
}
