/* Hochzeit Lea & Marcel – Boho „Eukalyptus und Rosé-Gold“. Mobil zuerst, Breakpoint 900px. */

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/jost-latin-300-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/jost-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/jost-latin-500-normal.woff2') format('woff2');
}

:root {
    --ivory: #F6F4EF;
    --card: #FBF9F6;
    --white: #FFFFFF;
    --mist: #E4EBE6;
    --mist-strong: #DCE5DF;
    --hill: #B7C7BC;
    --leaf: #A9BDB1;
    --leaf-light: #C4D2C8;
    --eucalyptus: #8FA89A;
    --eucalyptus-dark: #5E7D6C;
    --green: #2F4538;
    --green-soft: #4A6356;
    --placeholder: #63776B;
    --rose: #B8807A;
    --rose-dark: #9A5F58;
    --rose-deep: #7A4741;
    --rose-text: #8E5852;
    --blush: #F2E4DE;
    --berry: #D7A79E;
    --line: #C9D5CD;
    --line-warm: #E3D6CF;
    --line-divider: #DCCFC8;
    --error: #A23B32;

    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

    --radius-pill: 999px;
    --radius-card: 28px;
    --gutter: clamp(20px, 4vw, 32px);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Grundlagen */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--green);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

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

a {
    color: var(--rose-text);
}

:focus-visible {
    outline: 2px solid var(--rose-dark);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 24px;
    height: 24px;
    flex: none;
}

/* Typografie */

.foil {
    background: linear-gradient(105deg, #9A5F58 0%, #C99288 26%, #EFCFC3 46%, #C48A80 62%, #8E5852 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (forced-colors: active) {
    .foil {
        background: none;
        color: CanvasText;
    }
}

.kicker {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--rose-text);
}

.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(44px, 6vw, 64px);
    line-height: 1.05;
}

.section-title--left {
    text-align: left;
}

.section-intro {
    margin: 0;
    color: var(--green-soft);
}

.monogram {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 30px;
    line-height: 1;
    text-decoration: none;
}

a.monogram {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Layout */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: 780px;
}

.container--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.section {
    position: relative;
    padding-block: clamp(64px, 10vw, 112px);
}

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

.section--rounded {
    border-radius: clamp(40px, 6vw, 64px) clamp(40px, 6vw, 64px) 0 0;
}

.section--flush-top {
    padding-top: 0;
}

.card {
    background: var(--card);
    border: 1px solid var(--line-warm);
    border-radius: var(--radius-card);
}

/* Kopfzeile und Navigation */

.site-header__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
}

.site-header__date {
    font-size: 13px;
    letter-spacing: 0.22em;
    color: var(--green-soft);
}

.site-header--with-nav .site-header__date {
    display: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    color: var(--green);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle .icon {
    width: 20px;
    height: 20px;
}

.site-nav {
    order: 3;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.site-nav a {
    padding-block: 11px;
    color: var(--green);
    text-decoration: none;
}

.js .nav-toggle {
    display: inline-flex;
}

.js .site-nav {
    display: none;
    flex-direction: column;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line);
}

.js .site-nav.is-open {
    display: flex;
    animation: rise 240ms var(--ease-out) both;
}

@media (min-width: 900px) {
    .site-header__inner {
        flex-wrap: nowrap;
        padding-block: 28px;
    }

    .monogram {
        font-size: 34px;
    }

    .site-header--with-nav .site-header__date {
        display: inline;
    }

    .js .nav-toggle {
        display: none;
    }

    .site-nav,
    .js .site-nav {
        order: 0;
        width: auto;
        display: flex;
        flex-direction: row;
        gap: 36px;
        padding: 0;
        border: 0;
        animation: none;
    }
}

/* Start */

.hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px var(--gutter) clamp(64px, 10vw, 120px);
    display: grid;
    gap: 32px;
    align-items: center;
}

.hero__visual {
    position: relative;
    order: -1;
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}

.hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.hero__names {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(60px, 16vw, 128px);
    line-height: 0.95;
}

.hero__date {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: clamp(15px, 2vw, 18px);
    letter-spacing: 0.06em;
    color: var(--green-soft);
}

.hero__line {
    display: none;
    width: 56px;
    height: 1px;
    flex: none;
    background: var(--rose);
}

.countdown {
    width: 100%;
    max-width: 460px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.countdown__item {
    padding: 10px 0;
    border-radius: 18px;
    background: var(--mist);
    text-align: center;
}

.countdown__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.1;
    font-variant-numeric: lining-nums tabular-nums;
}

.countdown__value--accent {
    color: var(--rose-text);
}

.countdown__label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-soft);
}

.access {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.access__label {
    font-size: 15px;
    color: var(--green-soft);
}

.access__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.access__row .field {
    flex: 1 1 180px;
    min-width: 0;
}

@media (min-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 72px;
        padding-top: 48px;
    }

    .hero__visual {
        order: 0;
        padding: 40px 0;
    }

    .hero__text {
        align-items: flex-start;
        gap: 28px;
        text-align: left;
    }

    .hero__line {
        display: block;
    }

    .countdown {
        gap: 12px;
    }

    .countdown__item {
        padding: 14px 0;
        border-radius: 20px;
    }

    .access {
        padding: 24px;
    }
}

/* Bogen, organische Formen und Eukalyptus */

.arch {
    position: relative;
    z-index: 1;
    margin: 0;
    width: min(100%, 240px);
    aspect-ratio: 3 / 4;
    border: 1px solid var(--rose);
    border-radius: var(--radius-pill) var(--radius-pill) 18px 18px;
    outline: 6px solid var(--ivory);
    outline-offset: -14px;
    overflow: hidden;
    background: var(--mist-strong);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.arch img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arch__hills {
    display: block;
    width: 100%;
    height: 55%;
}

.arch__sun {
    fill: var(--blush);
}

.arch__hill--back {
    fill: var(--hill);
}

.arch__hill--front {
    fill: var(--eucalyptus);
}

.arch__placeholder {
    position: absolute;
    top: 44%;
    left: 0;
    right: 0;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-align: center;
    color: var(--green-soft);
}

.arch--hero {
    width: min(62vw, 240px);
}

.arch--location {
    width: min(100%, 380px);
    aspect-ratio: 380 / 460;
    outline-width: 8px;
    outline-offset: -18px;
}

.blob {
    position: absolute;
    top: 20px;
    left: 50%;
    z-index: 0;
    width: min(88vw, 340px);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
    background: var(--mist);
}

.blob--rose {
    top: 60px;
    right: -120px;
    left: auto;
    width: 420px;
    transform: none;
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    background: var(--blush);
}

.sprig {
    position: absolute;
    z-index: 2;
    height: auto;
    aspect-ratio: 120 / 330;
    pointer-events: none;
}

.sprig__stem {
    fill: none;
    stroke: var(--eucalyptus-dark);
    stroke-width: 1.6;
    stroke-linecap: round;
}

.sprig__leaves {
    fill: var(--leaf);
    stroke: var(--eucalyptus-dark);
    stroke-width: 1;
}

.sprig__berries {
    fill: var(--berry);
}

.sprig--light .sprig__leaves {
    fill: var(--leaf-light);
}

.sprig--hero-left {
    left: calc(50% - min(31vw, 120px) - 40px);
    bottom: -8px;
    width: 72px;
    transform: rotate(-12deg);
    transform-origin: 50% 100%;
    animation: sway 7s ease-in-out infinite alternate;
}

.sprig--hero-right {
    right: calc(50% - min(31vw, 120px) - 28px);
    top: 0;
    width: 60px;
    transform: scaleX(-1) rotate(-160deg);
    animation: sway 8s ease-in-out -3s infinite alternate;
}

.sprig--footer {
    z-index: 0;
    left: 6%;
    bottom: -40px;
    width: 120px;
    transform: rotate(-20deg);
    opacity: 0.6;
}

.sprig--footer .sprig__stem {
    stroke: var(--leaf);
}

.sprig--footer .sprig__leaves {
    fill: var(--eucalyptus-dark);
    stroke: var(--leaf);
}

.sprig--footer .sprig__berries {
    fill: var(--rose);
}

@media (min-width: 900px) {
    .arch--hero {
        width: min(100%, 420px);
        outline-width: 10px;
        outline-offset: -22px;
    }

    .hero__visual .blob {
        top: 30px;
        width: 540px;
    }

    .sprig--hero-left {
        left: calc(50% - 250px);
        width: 120px;
    }

    .sprig--hero-right {
        right: calc(50% - 230px);
        width: 96px;
    }
}

/* Buttons und Formularfelder */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 28px;
    border: 1px solid var(--rose-dark);
    border-radius: var(--radius-pill);
    background: var(--rose-dark);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 160ms var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.button:active {
    transform: scale(0.97);
}

.button .icon {
    width: 18px;
    height: 18px;
}

.button--outline {
    background: transparent;
    color: var(--rose-text);
}

.button--small {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: none;
}

.button--block {
    width: 100%;
    min-height: 56px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button-row--small {
    gap: 8px;
    margin-top: 10px;
}

.link-button {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--rose-text);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.js-only {
    display: none;
}

.js .js-only {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
}

.field {
    width: 100%;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--green);
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 200ms var(--ease-out);
}

.field::placeholder {
    color: var(--placeholder);
}

.field:focus-visible {
    border-color: var(--rose-dark);
    outline-offset: 1px;
}

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

.field--area {
    min-height: 110px;
    padding: 14px 22px;
    border-radius: 24px;
    line-height: 1.6;
    resize: vertical;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-soft);
}

.optional {
    letter-spacing: 0.04em;
    text-transform: none;
}

.field-hint {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--green-soft);
}

.form-error {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--error);
}

.form-error--block {
    margin: 0;
    padding: 12px 18px;
    border-radius: 16px;
    background: var(--blush);
}

.form-row {
    display: flex;
    flex-direction: column;
}

.form-footnote {
    margin: 0;
    font-size: 14px;
    text-align: center;
    color: var(--green-soft);
}

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

/* Der Tag */

.timeline {
    width: 100%;
    max-width: 420px;
    margin: 24px 0 0;
    padding: 0 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    border-left: 1.5px dashed var(--rose);
    list-style: none;
    text-align: left;
}

.timeline__item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.timeline__item::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -37px;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--rose-dark);
    border-radius: 50%;
    background: var(--mist);
}

.timeline__icon {
    display: none;
}

.timeline__time {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.1;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--rose-text);
}

.timeline__title {
    font-weight: 500;
}

.timeline__note {
    font-size: 15px;
    color: var(--green-soft);
}

.timeline__calendar {
    margin-top: 24px;
}

@media (min-width: 900px) {
    .timeline {
        position: relative;
        max-width: none;
        margin-top: 40px;
        padding: 0;
        flex-direction: row;
        justify-content: center;
        gap: 24px;
        border: 0;
        text-align: center;
    }

    .timeline::before {
        content: '';
        position: absolute;
        top: 44px;
        left: 10%;
        right: 10%;
        border-top: 1.5px dashed var(--rose);
    }

    .timeline__item {
        flex: 1 1 0;
        align-items: center;
        gap: 10px;
    }

    .timeline__item::before {
        display: none;
    }

    .timeline__icon {
        position: relative;
        width: 88px;
        height: 88px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--rose);
        border-radius: 50%;
        background: var(--ivory);
        color: var(--eucalyptus-dark);
    }

    .timeline__icon .icon {
        width: 36px;
        height: 36px;
        stroke-width: 1.4;
    }

    .timeline__time {
        font-size: 32px;
    }

    .timeline__calendar {
        margin-top: 48px;
    }
}

/* Ablauf am Hochzeitstag: laufender und nächster Programmpunkt (Zustände setzt Core/Utils/LiveSchedule.php bzw. site.js) */

.timeline__badge {
    align-self: flex-start;
    margin-top: 6px;
    padding: 2px 12px;
    border-radius: var(--radius-pill);
    background: var(--rose-dark);
    color: var(--white);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.timeline__badge:empty {
    display: none;
}

.timeline__item--next .timeline__badge {
    background: var(--white);
    color: var(--rose-text);
    box-shadow: inset 0 0 0 1px var(--rose);
}

/* Als Filter auf den Kindern: opacity würde mit dem Einblenden beim Scrollen kollidieren. */
.timeline__item--past > *,
.timeline__item--past::before {
    filter: opacity(0.5);
}

.timeline__item--now .timeline__title {
    font-size: 1.12em;
}

.timeline__item--now::before {
    background: var(--rose-dark);
    animation: live-pulse 2.4s ease-in-out infinite;
}

@media (min-width: 900px) {
    .timeline__badge {
        align-self: center;
        margin-top: 0;
    }

    .timeline__item--now .timeline__icon {
        border: 2px solid var(--rose-dark);
        background: var(--blush);
        animation: live-pulse 2.4s ease-in-out infinite;
    }
}

@keyframes live-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 var(--blush);
    }

    50% {
        box-shadow: 0 0 0 8px var(--blush);
    }
}

.live-now {
    width: 100%;
    max-width: 460px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-radius: 22px;
    background: var(--mist);
}

.live-now__label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--rose-text);
}

.live-now__label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rose-dark);
    animation: live-pulse 2.4s ease-in-out infinite;
}

.live-now__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.15;
}

.live-now__next {
    margin: 0;
    font-size: 15px;
    color: var(--green-soft);
}

.hero__thanks {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(26px, 3.4vw, 32px);
    line-height: 1.2;
}

/* Location */

.location {
    padding: clamp(28px, 6vw, 72px);
    display: grid;
    gap: 40px;
    align-items: center;
    border-radius: clamp(32px, 5vw, 48px);
    background: var(--ivory);
}

.location__visual {
    display: flex;
    justify-content: center;
}

.location__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location__address {
    font-size: 19px;
    font-style: normal;
}

.facts {
    margin: 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-block: 1px solid var(--line-divider);
    list-style: none;
}

.facts__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.facts__item .icon {
    width: 22px;
    height: 22px;
    margin-top: 3px;
    color: var(--eucalyptus-dark);
}

.facts strong {
    font-weight: 500;
}

@media (min-width: 900px) {
    .location {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 72px;
    }
}

/* Trauung vor der Feier (Kirche) über der Location */
.location-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ceremony__time {
    white-space: nowrap;
}

/* Kirche und Location abwechselnd: bei der Kirche steht das Foto rechts. */
@media (min-width: 900px) {
    .location--reverse {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }

    .location--reverse .location__visual {
        order: 2;
    }
}

/* Übernachten und Anreise */

.stay-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stay-head {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.stay-head__note {
    margin: 0;
    color: var(--green-soft);
    white-space: pre-line;
}

.stay-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
}

.stay {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: var(--radius-card);
    background: var(--card);
}

.stay__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rose);
    border-radius: 50%;
    color: var(--eucalyptus-dark);
}

.stay__icon .icon {
    width: 24px;
    height: 24px;
}

.stay__name {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 28px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.stay__note {
    margin: 0;
    color: var(--green-soft);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.stay .button-row {
    margin-top: auto;
    padding-top: 8px;
}

/* Zusage */

.section--rsvp {
    overflow: hidden;
    overflow: clip;
}

.section--rsvp > .container {
    position: relative;
    z-index: 1;
}

.rsvp-form {
    width: 100%;
    margin-top: 16px;
    padding: clamp(20px, 5vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 28px;
    border-radius: clamp(28px, 4vw, 36px);
    text-align: left;
}

.choice,
.guests,
.guest__menu {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.choice__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.choice__option,
.pill,
.check {
    position: relative;
}

.choice__option input,
.pill input,
.check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.choice__option span,
.pill span,
.check span {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--green-soft);
    text-align: center;
    cursor: pointer;
    transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.choice__option span {
    min-height: 56px;
    padding: 0 12px;
    font-size: 16px;
}

.choice__option input:checked + span {
    border-color: var(--eucalyptus-dark);
    background: var(--mist-strong);
    color: var(--green);
}

.choice__option input:focus-visible + span,
.pill input:focus-visible + span,
.check input:focus-visible + span {
    outline: 2px solid var(--rose-dark);
    outline-offset: 2px;
}

.guests {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guests__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guest {
    position: relative;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 12px;
    border-radius: 22px;
    background: var(--ivory);
}

.guest--new {
    animation: rise 320ms var(--ease-out) both;
}

.guest__name {
    flex: 1 1 220px;
    min-width: 0;
}

.guest__menu {
    flex: 1 1 260px;
}

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

.pill span {
    min-height: 44px;
    padding: 0 8px;
    font-size: 14px;
}

.pill input:checked + span {
    border-color: var(--rose-dark);
    background: var(--blush);
    color: var(--rose-deep);
}

/* Kind-Checkbox: wie die Menü-Pillen, mit sichtbarem Kästchen (ohne Bilddatei, wegen der CSP). */
.check {
    display: block;
    margin-top: 6px;
}

.check span {
    min-height: 44px;
    padding: 6px 14px;
    justify-content: flex-start;
    gap: 10px;
    font-size: 14px;
    text-align: left;
}

.check span::before {
    content: '';
    width: 18px;
    height: 18px;
    flex: none;
    border: 1.5px solid var(--eucalyptus-dark);
    border-radius: 6px;
    background: var(--white);
    transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.check span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 21px;
    width: 5px;
    height: 10px;
    margin-top: -7px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg);
}

.check input:checked + span {
    border-color: var(--rose-dark);
    background: var(--blush);
    color: var(--rose-deep);
}

.check input:checked + span::before {
    border-color: var(--rose-dark);
    background: var(--rose-dark);
}

.check input:checked + span::after {
    opacity: 1;
}

.guest__remove {
    display: none;
}

.js .guest__remove {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--green-soft);
    cursor: pointer;
}

.guest__remove .icon {
    width: 18px;
    height: 18px;
}

.rsvp-thanks,
.rsvp-closed {
    width: 100%;
    margin-top: 16px;
    padding: clamp(28px, 5vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.rsvp-thanks {
    animation: rise 600ms var(--ease-out) both;
}

.rsvp-thanks p,
.rsvp-closed p {
    margin: 0;
}

.rsvp-thanks .icon {
    width: 40px;
    height: 40px;
    color: var(--rose-dark);
}

.rsvp-thanks__title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 36px;
    line-height: 1.15;
}

.rsvp-thanks__hint {
    font-size: 15px;
    color: var(--green-soft);
}

/* FAQ und Ansprechpartner */

.faq-layout {
    display: grid;
    gap: 56px;
}

.faq,
.contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq .section-title {
    margin-bottom: 12px;
}

.faq__item {
    padding: 0 24px;
    border-radius: 24px;
    background: var(--ivory);
}

.faq__question {
    min-height: 64px;
    padding-block: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex: none;
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 1.5px;
    background: var(--rose-dark);
    transition: transform 240ms var(--ease-out);
}

.faq__icon::after {
    transform: rotate(90deg);
}

.faq__item[open] .faq__icon::after {
    transform: rotate(0deg);
}

.faq__answer {
    margin: 0;
    padding-bottom: 20px;
    white-space: pre-line;
    color: var(--green-soft);
}

.contacts__intro {
    margin: 0 0 8px;
    color: var(--green-soft);
}

.contact {
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    border-radius: var(--radius-card);
    background: var(--card);
}

.contact__photo {
    width: 72px;
    height: 88px;
    margin: 0;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--rose);
    border-radius: var(--radius-pill) var(--radius-pill) 12px 12px;
    background: var(--mist-strong);
}

.contact__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact__placeholder {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-soft);
}

.contact__body {
    flex: 1 1 160px;
    min-width: 0;
}

.contact__role {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--rose-dark);
}

.contact__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1.2;
}

@media (min-width: 900px) {
    .faq-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 72px;
    }

    /* Nur Fragen oder nur Ansprechpartner: dann über die ganze Breite. */
    .faq-layout > :only-child {
        grid-column: 1 / -1;
        max-width: 760px;
    }
}

/* Wo sitze ich? */

.seat-finder {
    width: 100%;
    max-width: 560px;
    margin-top: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seat-finder .field {
    flex: 1 1 auto;
    min-width: 0;
}

.seat-finder .button {
    flex: none;
    white-space: nowrap;
}

.seat-results {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.seat-results__hint {
    margin: 0;
    color: var(--green-soft);
}

.seat-result {
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.seat-result p {
    margin: 0;
}

.seat-result__name {
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--rose-text);
}

.seat-result__table {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(36px, 7vw, 48px);
    line-height: 1.1;
    color: var(--green);
}

.seat-result__seat {
    padding: 4px 18px;
    border-radius: var(--radius-pill);
    background: var(--mist);
    font-size: 15px;
}

.seat-result__mates {
    max-width: 46ch;
    padding-top: 6px;
    color: var(--green-soft);
    font-size: 15px;
}

@media (max-width: 480px) {
    .seat-finder {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Foto-App */

.photos-intro {
    padding-top: clamp(32px, 6vw, 64px);
}

.photo-message {
    margin: 0;
    padding: 12px 18px;
    border-radius: 16px;
    background: var(--mist);
}

.photo-upload {
    width: 100%;
    max-width: 560px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.photo-upload__pick {
    min-height: 150px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px dashed var(--eucalyptus);
    border-radius: 22px;
    background: var(--white);
    color: var(--green);
    text-align: center;
    cursor: pointer;
    transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.photo-upload__pick:hover {
    border-color: var(--rose-dark);
    background: var(--blush);
}

.photo-upload:has(#photo-files:focus-visible) .photo-upload__pick {
    outline: 2px solid var(--rose-dark);
    outline-offset: 2px;
}

.photo-upload__pick .icon {
    width: 28px;
    height: 28px;
    color: var(--rose-dark);
}

.photo-upload__pick-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 26px;
}

.photo-upload__hint {
    font-size: 13px;
    color: var(--green-soft);
}

.photo-upload__from {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-upload__progress {
    margin: 0;
    font-size: 15px;
    color: var(--green);
    text-align: center;
}

.photo-upload__progress--error {
    color: var(--error);
}

.photo-upload__privacy {
    max-width: 560px;
    margin: 0;
    font-size: 13px;
    color: var(--green-soft);
}

.photos-gallery__count {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.4em;
    color: var(--green-soft);
    vertical-align: middle;
}

/* Foto-Challenge: Aufgaben zum Abhaken (erledigt = mindestens ein sichtbares Foto) */
.challenge {
    width: 100%;
    margin-top: 16px;
    padding: clamp(22px, 5vw, 36px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.challenge__title {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(30px, 5vw, 40px);
    line-height: 1.1;
}

.challenge__progress {
    margin: 0;
    color: var(--green-soft);
}

.challenge__progress strong {
    font-weight: 500;
    color: var(--green);
}

.challenge__bar {
    width: 100%;
    max-width: 320px;
    height: 8px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--mist);
    appearance: none;
}

.challenge__bar::-webkit-progress-bar {
    border-radius: var(--radius-pill);
    background: var(--mist);
}

.challenge__bar::-webkit-progress-value {
    border-radius: var(--radius-pill);
    background: var(--eucalyptus-dark);
}

.challenge__bar::-moz-progress-bar {
    border-radius: var(--radius-pill);
    background: var(--eucalyptus-dark);
}

.challenge-list {
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 8px;
    list-style: none;
    text-align: left;
}

.challenge-item {
    min-height: 52px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line-warm);
    border-radius: 18px;
    background: var(--white);
    color: var(--green);
    text-decoration: none;
    transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.challenge-item:hover {
    border-color: var(--rose);
}

.challenge-item[aria-current="true"] {
    border-color: var(--rose-dark);
    box-shadow: inset 0 0 0 1px var(--rose-dark);
}

.challenge-item__check {
    position: relative;
    flex: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--eucalyptus-dark);
    border-radius: 7px;
}

.challenge-item--done {
    background: var(--mist);
}

.challenge-item--done .challenge-item__check {
    background: var(--eucalyptus-dark);
}

.challenge-item--done .challenge-item__check::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.challenge-item__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    line-height: 1.35;
}

.challenge-item__count {
    flex: none;
    min-width: 26px;
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    background: var(--white);
    font-size: 13px;
    text-align: center;
    color: var(--green-soft);
}

.photos-gallery__filter {
    margin: -12px 0 24px;
    text-align: center;
    color: var(--green-soft);
}

.photos-gallery .section-title {
    margin-bottom: 28px;
    text-align: center;
}

.photos-gallery__empty {
    text-align: center;
}

.photo-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr));
    gap: 10px;
}

.photo-grid__item {
    position: relative;
}

.photo-grid__link {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: var(--hill);
    aspect-ratio: 1;
}

.photo-grid__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--ease-out);
}

.photo-grid__link:hover img {
    transform: scale(1.04);
}

.photo-grid__link:focus-visible {
    outline: 2px solid var(--rose-dark);
    outline-offset: 3px;
}

.photo-grid__from {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 2px 10px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    color: var(--green);
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .photo-grid__link img {
        transition: none;
    }
}

/* Bildansicht der Foto-App */

.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 16px;
    border: 0;
    background: rgba(26, 38, 31, 0.94);
    color: var(--white);
}

.lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.lightbox::backdrop {
    background: rgba(26, 38, 31, 0.94);
}

.lightbox__figure {
    min-height: 0;
    margin: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    border-radius: 12px;
    object-fit: contain;
}

.lightbox__caption {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.lightbox__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.lightbox__button {
    min-width: 48px;
    min-height: 48px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.lightbox__download {
    font-size: 14px;
    letter-spacing: 0.04em;
}

.lightbox__button:hover,
.lightbox__button:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

/* Abschluss */

.site-footer {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 10vw, 96px) var(--gutter) 64px;
    background: var(--green);
    color: var(--ivory);
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.site-footer .foil {
    background-image: linear-gradient(105deg, #D9A79E 0%, #F4DDD4 45%, #C99288 70%, #E8C3B5 100%);
}

.site-footer__monogram {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(56px, 8vw, 72px);
    line-height: 1;
}

.site-footer__claim {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(28px, 4vw, 36px);
}

.site-footer__date {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--leaf-light);
}

.site-footer__links {
    margin: 5px 0 0;
    font-size: 14px;
}

.site-footer__links a {
    display: inline-block;
    padding-block: 11px;
}

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

.site-footer :focus-visible {
    outline-color: var(--blush);
}

/* Datenschutz- und Fehlerseiten */

.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px var(--gutter) 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legal h2 {
    margin: 24px 0 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.2;
}

.legal p {
    margin: 0;
}

.legal--center {
    min-height: 70vh;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Bewegung */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes sway {
    from {
        rotate: -1.5deg;
    }

    to {
        rotate: 1.5deg;
    }
}

.reveal--pending {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal--pending.is-visible {
    opacity: 1;
    transform: none;
}

.timeline__item.reveal--pending:nth-child(2) {
    transition-delay: 80ms;
}

.timeline__item.reveal--pending:nth-child(3) {
    transition-delay: 160ms;
}

.timeline__item.reveal--pending:nth-child(4) {
    transition-delay: 240ms;
}

.timeline__item.reveal--pending:nth-child(5) {
    transition-delay: 320ms;
}

/* Verspielte Bewegung: alles sanft und kurz, bei „Bewegung reduzieren“ aus (Regel ganz unten). */

/* Namen und Bogen schweben beim Öffnen nacheinander ein */
@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes arch-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes blob-in {
    from {
        opacity: 0;
        scale: 0.85;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

/* Rosé-Gold-Schimmer, der ab und zu über die Namen zieht */
@keyframes shimmer {
    0%,
    70% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero__text > * {
    animation: float-in 900ms var(--ease-out) both;
}

.hero__text > :nth-child(2) {
    animation-delay: 120ms;
}

.hero__text > :nth-child(3) {
    animation-delay: 300ms;
}

.hero__text > :nth-child(4) {
    animation-delay: 420ms;
}

.hero__text > :nth-child(n + 5) {
    animation-delay: 540ms;
}

.hero__names {
    background-size: 220% 100%;
    background-position: 100% 50%;
    animation: float-in 900ms var(--ease-out) 120ms both, shimmer 9s ease-in-out 1.6s infinite;
}

.hero__visual .arch {
    animation: arch-in 1100ms var(--ease-out) 200ms both;
}

.hero__visual .blob {
    animation: blob-in 1400ms var(--ease-out) both;
}

/* Zweige wiegen sich, einzelne Blätter flattern leicht */
@keyframes sway-soft {
    from {
        rotate: -3deg;
    }

    to {
        rotate: 3deg;
    }
}

@keyframes flutter {
    from {
        translate: -0.8px 0.6px;
    }

    to {
        translate: 0.8px -0.6px;
    }
}

.sprig--hero-left {
    animation: sway-soft 6s ease-in-out infinite alternate;
}

.sprig--hero-right {
    animation: sway-soft 7.5s ease-in-out -2.5s infinite alternate;
}

.sprig--footer {
    animation: sway-soft 8s ease-in-out -4s infinite alternate;
}

.sprig__leaves ellipse:nth-child(odd) {
    animation: flutter 3.4s ease-in-out infinite alternate;
}

.sprig__leaves ellipse:nth-child(3n) {
    animation: flutter 4.2s ease-in-out -1.5s infinite alternate;
}

/* Die Karten im Admin bleiben ruhig */
.cards-page .sprig,
.cards-page .sprig__leaves ellipse {
    animation: none;
}

/* Countdown: jede neue Zahl rutscht weich herein */
@keyframes tick {
    from {
        opacity: 0.2;
        transform: translateY(-40%);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.countdown__item {
    overflow: hidden;
}

.countdown__value.is-ticking {
    animation: tick 420ms var(--ease-out);
}

/* Tagesablauf: Symbole ploppen nacheinander auf, wenn der Punkt ins Bild kommt */
@keyframes pop {
    0% {
        opacity: 0;
        scale: 0.4;
    }

    65% {
        opacity: 1;
        scale: 1.12;
    }

    100% {
        opacity: 1;
        scale: 1;
    }
}

.timeline__item.reveal--pending .timeline__icon {
    opacity: 0;
}

.timeline__item.reveal--pending.is-visible .timeline__icon {
    animation: pop 620ms var(--ease-out) 180ms both;
}

.timeline__item.reveal--pending:nth-child(2).is-visible .timeline__icon {
    animation-delay: 260ms;
}

.timeline__item.reveal--pending:nth-child(3).is-visible .timeline__icon {
    animation-delay: 340ms;
}

.timeline__item.reveal--pending:nth-child(4).is-visible .timeline__icon {
    animation-delay: 420ms;
}

.timeline__item.reveal--pending:nth-child(5).is-visible .timeline__icon {
    animation-delay: 500ms;
}

/* Live-Diashow für den Beamer (Fotos überblenden, QR-Code zum Hochladen) */

.slideshow-page {
    overflow: hidden;
    background: var(--green);
}

.slideshow {
    position: fixed;
    inset: 0;
    color: var(--ivory);
}

.slideshow [hidden] {
    display: none !important;
}

.slideshow__stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slideshow__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 1200ms var(--ease-out);
}

.slideshow__slide.is-active {
    opacity: 1;
}

.slideshow__backdrop {
    position: absolute;
    inset: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    object-fit: cover;
    filter: blur(36px) saturate(1.1);
    opacity: 0.45;
}

.slideshow__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slideshow__backdrop:not([src]),
.slideshow__image:not([src]) {
    visibility: hidden;
}

.slideshow__empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px 12vh;
    text-align: center;
}

.slideshow__empty .kicker {
    color: var(--blush);
}

.slideshow__empty-title {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(44px, 7vw, 96px);
    line-height: 1.05;
}

.slideshow__empty-text {
    margin: 0;
    font-size: clamp(18px, 2vw, 26px);
    opacity: 0.85;
}

.slideshow__caption {
    position: absolute;
    left: clamp(16px, 3vw, 40px);
    bottom: clamp(16px, 3vw, 40px);
    max-width: calc(100% - 340px);
    margin: 0;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-pill);
    background: rgb(47 69 56 / 0.72);
    font-size: clamp(16px, 1.6vw, 24px);
}

.slideshow__new {
    padding: 2px 12px;
    border-radius: var(--radius-pill);
    background: var(--rose-dark);
    font-size: 0.75em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.slideshow__brand {
    position: absolute;
    top: clamp(16px, 3vw, 40px);
    left: clamp(16px, 3vw, 40px);
    padding: 10px 20px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    border-radius: var(--radius-pill);
    background: rgb(47 69 56 / 0.6);
}

.slideshow__date {
    font-size: 14px;
    letter-spacing: 0.2em;
}

.slideshow__qr {
    position: absolute;
    right: clamp(16px, 3vw, 40px);
    bottom: clamp(16px, 3vw, 40px);
    width: clamp(170px, 15vw, 260px);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 24px;
    background: var(--ivory);
    color: var(--green);
    text-align: center;
}

.slideshow__qr-code svg {
    display: block;
    width: 100%;
    height: auto;
}

.slideshow__qr-code .qr path {
    fill: var(--green);
}

.slideshow__qr-text {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.slideshow__qr-text strong {
    font-weight: 500;
    font-size: 15px;
}

.slideshow__controls {
    position: absolute;
    top: clamp(16px, 3vw, 40px);
    right: clamp(16px, 3vw, 40px);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 400ms var(--ease-out);
}

.slideshow__button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgb(246 244 239 / 0.5);
    border-radius: var(--radius-pill);
    background: rgb(47 69 56 / 0.6);
    color: var(--ivory);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.slideshow__button:hover {
    background: rgb(47 69 56 / 0.85);
}

.slideshow__button:focus-visible {
    outline: 2px solid var(--blush);
    outline-offset: 2px;
}

.slideshow__count {
    padding: 0 6px;
    font-size: 14px;
    opacity: 0.85;
}

/* Ohne Mausbewegung verschwinden Bedienelemente und Zeiger (slideshow.js setzt is-idle). */
.slideshow-page.is-idle {
    cursor: none;
}

.slideshow-page.is-idle .slideshow__controls {
    opacity: 0;
    pointer-events: none;
}

.slideshow__noscript {
    position: absolute;
    inset: auto 24px 45%;
    text-align: center;
}

.slideshow__noscript a {
    color: inherit;
}

@media (max-width: 700px) {
    .slideshow__caption {
        max-width: calc(100% - 32px);
        bottom: 200px;
    }

    .slideshow__qr {
        width: 150px;
    }

    .slideshow__brand {
        display: none;
    }
}

/* Blütenregen nach einer Zusage (site.js legt die Blätter an und räumt sie wieder weg) */
@keyframes petal-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, -12vh, 0) rotate(0deg);
    }

    10% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate3d(var(--drift, 40px), 108vh, 0) rotate(var(--spin, 360deg));
    }
}

.petals {
    position: fixed;
    z-index: 50;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.petal {
    position: absolute;
    top: 0;
    left: var(--x, 50%);
    width: var(--size, 14px);
    height: calc(var(--size, 14px) * 0.72);
    border-radius: 0 100% 0 100%;
    background: var(--berry);
    opacity: 0;
    animation: petal-fall var(--duration, 5s) cubic-bezier(0.37, 0, 0.63, 1) var(--delay, 0s) forwards;
}

.petal--blush {
    background: var(--blush);
    box-shadow: inset 0 0 0 1px rgba(184, 128, 122, 0.25);
}

.petal--rose {
    background: var(--rose);
}

.petal--leaf {
    border-radius: 50%;
    background: var(--leaf);
}

@media (hover: hover) {
    .site-nav a:hover {
        color: var(--rose-dark);
    }

    .button:hover {
        border-color: var(--rose-deep);
        background: var(--rose-deep);
        color: var(--white);
    }

    .button--outline:hover {
        background: var(--blush);
        color: var(--rose-deep);
    }

    .link-button:hover {
        color: var(--rose-deep);
        text-decoration: underline;
    }

    .choice__option span:hover,
    .pill span:hover,
    .check span:hover {
        border-color: var(--eucalyptus-dark);
    }

    a:where(:not(.foil)):hover {
        color: var(--rose-deep);
    }

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

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Überblenden bewegt nichts: die Diashow blendet auch bei reduzierter Bewegung weich über. */
@media (prefers-reduced-motion: reduce) {
    .slideshow__slide {
        transition: opacity 1200ms ease !important;
    }
}
