/* ===================================================
   FARBEN & SCHRIFTEN – hier das Design anpassen
   =================================================== */
:root {
    --bg: #050505;
    --surface: rgba(20, 17, 14, 0.72);
    --line: rgba(245, 158, 11, 0.22);
    --text: #ece7df;
    --muted: #a39b8f;
    --accent: #f59e0b;
    --accent-soft: #fbbf24;
    --accent-deep: #b45309;
    --radius: 18px;
    --max-width: 1100px;

    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Cinzel', serif;
    --font-script: 'Caveat', cursive;

    --glow: 0 0 14px rgba(245, 158, 11, 0.55), 0 0 30px rgba(245, 158, 11, 0.25);
}

/* ===================================================
   GRUNDLAGEN
   =================================================== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(245, 158, 11, 0.18), transparent 60%),
        radial-gradient(900px 700px at 100% 100%, rgba(180, 83, 9, 0.12), transparent 60%),
        var(--bg);
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.page {
    position: relative;
    z-index: 1;
    flex: 1;
    width: min(var(--max-width), 100% - 2rem);
    margin: 0 auto;
    padding: 2rem 0 0;
}

#embers {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.script {
    font-family: var(--font-script);
}

.display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent-soft);
}

.glow {
    text-shadow: var(--glow);
}

.title {
    margin: 0;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--accent);
}

.lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 300;
    color: #cfc7bb;
    margin: 0;
}

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

.small {
    font-size: 0.9rem;
}

.eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ===================================================
   NAVIGATION & PLAYER
   =================================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav__inner {
    width: min(var(--max-width), 100% - 2rem);
    margin: 0 auto;
    padding: 0.75rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--accent-soft);
    text-decoration: none;
    transition: color 0.3s;
}

.brand i {
    color: var(--accent);
    font-size: 1.4rem;
    transition: transform 0.3s;
}

.brand:hover {
    color: #fde68a;
}

.brand:hover i {
    transform: scale(1.15);
}

.nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav__links a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #cfc7bb;
    text-decoration: none;
    transition: color 0.3s;
}

.nav__links a i {
    color: var(--accent);
    opacity: 0.8;
}

.nav__links a:hover {
    color: var(--accent-soft);
}

.player {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #111;
    transition: box-shadow 0.4s;
}

.player.is-playing {
    box-shadow: 0 0 22px -6px rgba(245, 158, 11, 0.5);
}

.player__btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.player__btn:hover {
    background: var(--accent-soft);
}

.player__btn:active {
    transform: scale(0.94);
}

.player__btn i {
    font-size: 0.75rem;
}

.player__info {
    display: flex;
    flex-direction: column;
    max-width: 150px;
    font-size: 0.75rem;
    line-height: 1.25;
}

.player__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #fde68a;
}

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

.player__volume {
    width: 70px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
    display: grid;
    gap: 2.5rem;
    text-align: center;
}

.hero__media {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.8),
        0 0 60px -10px rgba(245, 158, 11, 0.25);
}

.hero__media img {
    width: 100%;
    height: min(70vh, 520px);
    object-fit: cover;
    filter: saturate(0.85) brightness(0.85);
    transition: transform 1.2s ease;
}

.hero__media:hover img {
    transform: scale(1.04);
}

.hero__caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    text-align: left;
    background: linear-gradient(to top, #050505 8%, rgba(5, 5, 5, 0.4) 55%, transparent);
}

.hero__caption-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent-soft);
    margin-bottom: 0.5rem;
}

.hero__caption p {
    max-width: 36rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 300;
    color: #cfc7bb;
}

.hero__text {
    max-width: 52rem;
    margin: 0 auto;
    display: grid;
    gap: 1.2rem;
}

.quote {
    margin: 1.5rem auto 0;
    padding: 1.5rem 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(120, 53, 15, 0.25), rgba(20, 17, 14, 0.8));
    box-shadow: 0 0 40px -10px rgba(245, 158, 11, 0.3);
}

.quote p {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.2;
    color: var(--accent-soft);
}

/* ===================================================
   SEKTIONEN & KARTEN
   =================================================== */
.section {
    margin-top: 7rem;
    scroll-margin-top: 90px;
}

.section__head {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section__head .display {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.divider {
    width: 96px;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 20px 50px -20px rgba(245, 158, 11, 0.35);
}

.card__img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8);
    transition: transform 0.8s ease;
}

.card:hover .card__img img {
    transform: scale(1.08);
}

.card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.9), transparent 60%);
}

.card__label {
    position: absolute;
    left: 1rem;
    bottom: 0.5rem;
    z-index: 1;
    font-size: 1.9rem;
    color: var(--accent-soft);
}

.card__text {
    margin: 0;
    padding: 1.2rem 1.4rem 1.5rem;
    font-size: 0.92rem;
    color: var(--muted);
}

/* ===================================================
   DANKE & KERZE
   =================================================== */
.split {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.split > div:first-child {
    display: grid;
    gap: 1.2rem;
}

.split .title {
    font-size: clamp(2.8rem, 6vw, 4rem);
}

.note {
    margin: 0.5rem 0 0;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    font-size: 1.9rem;
    color: #fde68a;
}

.candle-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12), transparent 60%),
        var(--surface);
}

.candle-box .display {
    margin: 0.3rem 0 0.4rem;
    font-size: 1.2rem;
}

.candle {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.2rem 0 0.5rem;
    padding: 0.5rem;
    border: 0;
    border-radius: 12px;
    background: none;
    color: inherit;
    cursor: pointer;
}

.candle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
}

.candle.pulse {
    animation: pulse 0.3s ease;
}

.candle__flame {
    width: 22px;
    height: 40px;
    margin-bottom: 4px;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse at bottom, #fff 0%, #fef08a 25%, #f59e0b 60%, transparent 100%);
    opacity: 0.2;
    transform: scale(0.8);
    transition: opacity 0.6s, transform 0.6s;
}

.candle.is-lit .candle__flame {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 14px #f59e0b);
    animation: flicker 1.8s infinite alternate ease-in-out;
}

.candle__wick {
    width: 3px;
    height: 12px;
    background: #333;
}

.candle__body {
    width: 84px;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #fef3c7, #fde68a 40%, #d6a25b);
    box-shadow:
        inset -8px 0 14px rgba(0, 0, 0, 0.15),
        0 0 40px -10px rgba(245, 158, 11, 0.35);
    color: rgba(120, 53, 15, 0.75);
}

.candle__body i {
    font-size: 1.2rem;
    opacity: 0.5;
}

.candle__body small {
    margin-top: 0.4rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.candle__holder {
    width: 120px;
    height: 14px;
    margin-top: -2px;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    background: #1f1f1f;
}

.counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 0.85rem;
    color: var(--muted);
}

.counter i {
    color: var(--accent);
}

.counter strong {
    color: var(--accent-soft);
}

.status {
    min-height: 2em;
    margin: 0.8rem 0 0;
    font-size: 1.5rem;
    color: var(--accent-soft);
}

/* ===================================================
   FÜR IMMER & FUSSZEILE
   =================================================== */
.forever {
    display: grid;
    gap: 1.2rem;
    justify-items: center;
    padding: 5rem 1rem;
    border-top: 1px solid var(--line);
    text-align: center;
}

.forever__icon {
    font-size: 2.5rem;
    color: rgba(245, 158, 11, 0.8);
}

.forever .display {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.forever .muted {
    max-width: 40rem;
}

.signature {
    margin: 0.5rem 0 0;
    font-size: 2rem;
    color: var(--accent-soft);
}

.footer {
    margin-top: 5rem;
    padding: 2rem 1rem;
    border-top: 1px solid var(--line);
    background: #000;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer p {
    margin: 0;
}

/* ===================================================
   ANIMATIONEN
   =================================================== */
@keyframes flicker {
    0%   { transform: scale(1) rotate(-1deg);       opacity: 0.95; }
    50%  { transform: scale(1.08, 0.95) rotate(1.5deg); opacity: 1; }
    100% { transform: scale(0.96, 1.04) rotate(-0.5deg); opacity: 0.9; }
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (min-width: 640px) {
    .hero__caption {
        padding: 2.5rem;
    }
}

@media (min-width: 860px) {
    .hero__media img {
        height: 480px;
    }

    .split {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

@media (max-width: 640px) {
    .nav__links span {
        display: none;
    }

    .quote {
        padding: 1.2rem 1.4rem;
    }
}

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