* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --coral: oklch(48% 0.12 35);
    --coral-dark: oklch(38% 0.10 35);
    --pink: oklch(55% 0.09 35);
    --sun: oklch(88% 0.03 70);
    --sun-dark: oklch(70% 0.05 55);
    --teal: oklch(50% 0.08 165);
    --cream: oklch(96% 0.02 70);
    --ink: oklch(24% 0.03 40);
    --ink-soft: oklch(46% 0.035 40);
    --border-soft: oklch(87% 0.025 45);
    --shadow: none;
    --radius: 2px;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    padding: 20px;
    overflow-x: hidden;
    position: relative;
    background:
        radial-gradient(ellipse 900px 700px at 50% 12%, oklch(48% 0.12 35 / 15%), transparent 60%),
        radial-gradient(ellipse 750px 650px at 88% 90%, oklch(50% 0.08 165 / 12%), transparent 55%),
        radial-gradient(ellipse 600px 500px at 6% 80%, oklch(55% 0.09 35 / 12%), transparent 55%),
        var(--cream);
}

/* --- Sanftes Hintergrund-Glimmern --- */
#ambient-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, oklch(48% 0.12 35 / 42%), transparent 70%);
    filter: blur(3px);
    animation: orbDrift ease-in-out infinite alternate;
}
@keyframes orbDrift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.55; }
    100% { transform: translate(40px, -54px) scale(1.25); opacity: 1; }
}

.stage {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1600px;
}

/* --- Admin-Reset --- */
.admin-reset {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: var(--cream);
    padding: 9px 18px;
    border: 1px solid var(--border-soft);
    color: var(--coral-dark);
    font-size: 0.8em;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.admin-reset:hover {
    border-color: var(--coral-dark);
}

/* --- Karte --- */
.card {
    position: relative;
    background: var(--cream);
    border-radius: var(--radius);
    padding: 64px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border-soft);
    box-shadow: 0 32px 68px -28px oklch(48% 0.12 35 / 24%), 0 4px 16px -4px oklch(24% 0.03 40 / 14%);
    opacity: 1;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}
.hidden { display: none !important; }

/* --- Erstes Einblenden --- */
.card.enter-init {
    animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes riseIn {
    from { transform: translateY(18px) scale(0.99); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* --- Würfel-Übergang zwischen Screens --- */
.card.cube-out {
    animation: cubeOut 0.5s cubic-bezier(0.6, 0, 0.9, 0.4) forwards;
}
.card.cube-out-back {
    animation: cubeOutBack 0.5s cubic-bezier(0.6, 0, 0.9, 0.4) forwards;
}
.card.cube-in {
    animation: cubeIn 0.55s cubic-bezier(0.15, 0.6, 0.35, 1) forwards;
}
.card.cube-in-back {
    animation: cubeInBack 0.55s cubic-bezier(0.15, 0.6, 0.35, 1) forwards;
}
@keyframes cubeOut {
    from { transform: rotateY(0deg); opacity: 1; }
    to   { transform: rotateY(-80deg); opacity: 0; }
}
@keyframes cubeIn {
    from { transform: rotateY(80deg); opacity: 0; }
    to   { transform: rotateY(0deg); opacity: 1; }
}
@keyframes cubeOutBack {
    from { transform: rotateY(0deg); opacity: 1; }
    to   { transform: rotateY(80deg); opacity: 0; }
}
@keyframes cubeInBack {
    from { transform: rotateY(-80deg); opacity: 0; }
    to   { transform: rotateY(0deg); opacity: 1; }
}

/* --- Ornament --- */
.ornament {
    display: block;
    width: 62px;
    height: 18px;
    margin: 0 auto 20px;
    color: var(--coral);
    opacity: 0.95;
}

/* --- Persönliche Anrede (nur Intro-Karte) --- */
.recipient-line {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 15px;
    color: var(--coral);
    text-align: center;
    margin: 0 0 14px;
}

/* --- Kicker (Eyebrow-Ersatz) --- */
.kicker-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.kicker-line {
    width: 22px;
    height: 1px;
    background: var(--border-soft);
}
.kicker {
    font-family: 'Manrope', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.62;
}

h1 {
    margin: 26px 0 4px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 52px;
    line-height: 1.12;
    color: var(--ink);
}
h1 .line {
    display: block;
    opacity: 0;
    animation: lineRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
h1 .line:nth-of-type(1) { animation-delay: 0.15s; }
h1 .line:nth-of-type(2) { animation-delay: 0.38s; }
@keyframes lineRise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
h1 .accent {
    font-style: italic;
    font-weight: 500;
    font-size: 1.06em;
    color: var(--coral);
}

.subline {
    color: var(--ink-soft);
    margin: 20px 0 46px;
    font-size: 14.5px;
    line-height: 1.7;
    font-weight: 500;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Button-Arena --- */
.button-arena {
    position: relative;
    min-height: 150px;
    padding-top: 4px;
}

.btn {
    border: none;
    background: none;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* --- Ja-Button --- */
.yes-btn {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    background: var(--coral);
    color: var(--cream);
    z-index: 2;
    padding: 15px 28px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    white-space: nowrap;
    animation: yesGlow 2.4s ease-in-out infinite;
}
@keyframes yesGlow {
    0%, 100% { box-shadow: 0 8px 20px -10px oklch(48% 0.12 35 / 35%); }
    50%      { box-shadow: 0 12px 30px -8px oklch(48% 0.12 35 / 70%); }
}
.yes-btn:hover {
    background: var(--coral-dark);
    transform: translate(-50%, -1px);
    box-shadow: 0 10px 24px -10px oklch(48% 0.12 35 / 55%);
    animation-play-state: paused;
}

.no-btn {
    position: absolute;
    left: 50%;
    top: 66px;
    transform: translate(-50%, 0);
    background: none;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--border-soft);
    transition: left 0.6s cubic-bezier(0.34, 1.2, 0.64, 1),
                top 0.6s cubic-bezier(0.34, 1.2, 0.64, 1),
                transform 0.3s ease,
                opacity 0.2s ease;
    padding: 10px 14px;
}
.no-btn:hover {
    color: var(--coral-dark);
}

/* --- Ausweich-Reaktion (Nein-Klick) --- */
.dodge-mark {
    position: fixed;
    z-index: 9998;
    pointer-events: none;
    font-size: 13px;
    color: var(--coral);
    transform: translate(-50%, -50%);
    animation: dodgeBurst 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes dodgeBurst {
    0%   { opacity: 0.9; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1) rotate(15deg); }
}

/* --- Assistent --- */
.progress-track {
    height: 2px;
    background: var(--border-soft);
    margin-bottom: 34px;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--coral);
    transition: width 0.5s ease;
}
.step-viewport {
    position: relative;
    overflow: hidden;
    perspective: 1200px;
}
.step-panel {
    text-align: center;
    opacity: 1;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}
.step-panel.cube-out {
    animation: cubeOut 0.42s cubic-bezier(0.6, 0, 0.9, 0.4) forwards;
}
.step-panel.cube-out-back {
    animation: cubeOutBack 0.42s cubic-bezier(0.6, 0, 0.9, 0.4) forwards;
}
.step-panel.cube-in {
    animation: cubeIn 0.46s cubic-bezier(0.15, 0.6, 0.35, 1) forwards;
}
.step-panel.cube-in-back {
    animation: cubeInBack 0.46s cubic-bezier(0.15, 0.6, 0.35, 1) forwards;
}
.step-back {
    display: inline-block;
    border: none;
    background: none;
    padding: 4px;
    margin-bottom: 22px;
    font-size: 0.82em;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-soft);
    transition: color 0.2s ease;
}
.step-back:hover {
    color: var(--coral-dark);
}
.step-title {
    margin: 0 0 30px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.75em;
    color: var(--ink);
}

.options-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin: 0 auto;
}
.option-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-soft);
    cursor: pointer;
    transition: color 0.2s ease, padding-left 0.2s ease;
    font-size: 0.98em;
    font-weight: 600;
    color: var(--ink);
    background: none;
    text-align: left;
}
.option-item:hover {
    padding-left: 8px;
    color: var(--coral-dark);
    background: oklch(48% 0.12 35 / 4%);
}
/* Warmes Aufleuchten: Ersatz fuer Hover auf beruehrungsbasierten Geraeten */
.option-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: oklch(48% 0.12 35 / 14%);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.option-item:active {
    color: var(--coral-dark);
}
.option-item:active::before {
    opacity: 1;
    transform: scaleX(1);
    transition: opacity 0s, transform 0s;
}
.option-item.selected {
    color: var(--coral);
    font-weight: 700;
}
.option-item input[type="radio"] { display: none; }
.option-item span { text-align: left; }
.option-check {
    font-size: 0.85em;
    color: var(--coral);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.option-item.selected .option-check {
    opacity: 1;
    transform: translateX(0);
}

.summary-list {
    margin-bottom: 34px;
}
.recap-details {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-soft);
    margin: 0 0 34px;
    text-align: left;
}
.recap-details div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
}
.recap-details div:last-child {
    border-bottom: none;
}
.recap-details dt {
    color: var(--ink-soft);
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    white-space: nowrap;
}
.recap-details dd {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--ink);
    font-size: 1.25em;
    text-align: right;
}

.confirm-btn {
    position: relative;
    overflow: hidden;
    background: var(--coral);
    color: var(--cream);
    width: 100%;
    max-width: 340px;
    padding: 17px;
    font-size: 1.02em;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    transition: background 0.2s ease, transform 0.15s ease;
    margin: 0 auto;
}
.confirm-btn:hover {
    background: var(--coral-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px oklch(48% 0.12 35 / 50%);
}
.confirm-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
/* Warmes Aufleuchten: Ersatz fuer Hover auf beruehrungsbasierten Geraeten */
.confirm-btn:not(:disabled) {
    animation: confirmBreathe 3.2s ease-in-out infinite;
}
@keyframes confirmBreathe {
    0%, 100% { box-shadow: 0 6px 18px -10px oklch(48% 0.12 35 / 35%); }
    50%      { box-shadow: 0 10px 28px -8px oklch(48% 0.12 35 / 62%); }
}
.confirm-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, oklch(96% 0.02 70 / 50%), transparent 68%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}
.confirm-btn:active {
    transform: scale(0.97);
}
.confirm-btn:active::after {
    opacity: 1;
    transform: scale(1.35);
    transition: opacity 0s, transform 0s;
}

/* --- Datum & Uhrzeit frei wählen --- */
.datetime-fields {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 12px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}
.field-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
.field-label {
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.65;
}
.field-input {
    width: 100%;
    padding: 10px 2px;
    font-family: 'Manrope', sans-serif;
    font-size: 1.05em;
    font-weight: 700;
    color: var(--ink);
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
    transition: border-color 0.2s ease;
}
.field-input:hover {
    border-color: var(--ink-soft);
}
.field-input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 1px 0 0 var(--coral);
}
.datetime-fields .confirm-btn {
    margin-top: 12px;
}

/* --- Abschließender Wunsch / Nachricht --- */
.wish-field {
    max-width: 320px;
    margin: 0 auto;
    text-align: left;
}
.wish-textarea {
    display: block;
    width: 100%;
    min-height: 92px;
    padding: 12px 2px;
    margin-bottom: 18px;
    font-family: 'Manrope', sans-serif;
    font-size: 1em;
    font-weight: 500;
    line-height: 1.55;
    color: var(--ink);
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
    resize: none;
    transition: border-color 0.2s ease;
}
.wish-textarea::placeholder {
    color: var(--ink-soft);
    opacity: 0.55;
}
.wish-textarea:hover {
    border-color: var(--ink-soft);
}
.wish-textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 1px 0 0 var(--coral);
}

/* --- "Gespeichert"-Hinweis --- */
.save-toast {
    position: fixed;
    left: 50%;
    top: 24px;
    transform: translate(-50%, -10px);
    background: var(--cream);
    border: 1px solid var(--border-soft);
    padding: 11px 24px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.85em;
    letter-spacing: 0.02em;
    color: var(--teal);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.save-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* --- Fehlermeldung --- */
.step-error {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    color: var(--coral-dark);
    font-weight: 600;
    font-size: 0.85em;
    text-align: center;
    line-height: 1.5;
}

/* --- Verliebtheits-Meter, Herz-Spur, Klick-Effekte, Sticker, Glühwürmchen ---
   Für die "Warm Editorial"-Richtung bewusst entfernt (siehe script.js) –
   diese Klassen werden nicht mehr erzeugt. */

/* --- COUNTDOWN --- */
.countdown-wrap {
    margin-top: 40px;
    padding-top: 34px;
    border-top: 1px solid var(--border-soft);
}
.countdown-unified {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
}
.cd-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}
.cd-seg span {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 2.1em;
    color: var(--ink);
    line-height: 1;
    animation: gentlePulse 2.8s ease-in-out infinite;
}
@keyframes gentlePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.68; transform: scale(1.04); }
}
.cd-seg small {
    color: var(--ink-soft);
    font-size: 0.62em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 6px;
    opacity: 0.65;
}
.cd-colon {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8em;
    font-weight: 500;
    color: var(--border-soft);
    align-self: flex-start;
    margin-top: 2px;
}
.countdown-caption {
    margin-top: 22px;
    font-weight: 600;
    color: var(--ink-soft);
    font-size: 0.85em;
}

.over-message {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--coral);
    font-size: 1.5em;
    margin: 16px 0 0;
    font-weight: 500;
}

/* --- Konfetti & Herzen --- */
#confetti-container,
#hearts-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}
.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 0.85;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}
.floating-heart {
    position: absolute;
    top: -40px;
    font-size: 20px;
    color: var(--coral);
    animation: fall linear forwards;
}
@keyframes fall {
    to { transform: translateY(110vh) rotate(180deg); }
}

/* --- BANNER (Karten-Reveal) --- */
#banner-container {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: oklch(20% 0.03 40 / 0%);
    backdrop-filter: blur(0px);
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
}
#banner-container.scrim {
    background: oklch(20% 0.03 40 / 60%);
    backdrop-filter: blur(6px);
}
.banner-full {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 48px 34px;
    background: oklch(19% 0.025 40);
    border: 1px solid oklch(48% 0.12 35 / 45%);
    box-shadow: 0 40px 90px -24px oklch(0% 0 0 / 55%);
    color: var(--cream);
    text-align: center;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) rotate(-3deg);
}
.banner-full::before {
    content: '';
    position: absolute;
    left: -40%; right: -40%; top: -30%;
    height: 180%;
    background: radial-gradient(circle, oklch(48% 0.12 35 / 38%), transparent 65%);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}
.banner-full.show {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition: opacity 0.4s ease, transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.banner-full.show::before {
    animation: glowBreathe 3.2s ease-in-out 0.4s infinite;
}
.banner-full.hide {
    opacity: 0;
    transform: scale(0.92) translateY(-10px);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.4, 0, 1, 1);
}
@keyframes glowBreathe {
    0% { opacity: 0; transform: scale(0.9); }
    30%, 100% { opacity: 0.8; transform: scale(1.06); }
}
.banner-full .ornament-light {
    position: relative;
    z-index: 1;
    color: var(--coral);
    opacity: 1;
    margin-bottom: 22px;
}
.banner-full .ornament-light .draw-path {
    stroke-dasharray: 42;
    stroke-dashoffset: 42;
}
.banner-full.show .ornament-light .draw-path {
    animation: ornamentDraw 0.65s ease-out 0.12s forwards;
}
.banner-full .ornament-light .draw-dot {
    transform-origin: 28px 8px;
    transform: scale(0);
}
.banner-full.show .ornament-light .draw-dot {
    animation: dotPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s forwards;
}
@keyframes ornamentDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes dotPop {
    to { transform: scale(1); }
}
.banner-full .main-text {
    position: relative;
    z-index: 1;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(19px, 5.5vw, 23px);
    line-height: 1.45;
    opacity: 0;
    transform: translateY(10px);
}
.banner-full.show .main-text {
    animation: textRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}
@keyframes textRise {
    to { opacity: 1; transform: translateY(0); }
}
.banner-full .sub-text { display: none; }

/* --- Responsive Anpassungen --- */
@media (max-width: 500px) {
    .card {
        padding: 48px 26px;
    }
    h1 { font-size: 40px; }
    .subline { font-size: 0.92em; }

    .cd-seg { min-width: 40px; }
    .cd-seg span { font-size: 1.7em; }

    .admin-reset {
        font-size: 0.72em;
        padding: 7px 12px;
        top: 12px; right: 12px;
    }

    .banner-full { padding: 40px 26px; }
    #banner-container { padding: 18px; }
}
