/* ============================================================
   BLACKRIDGE – Landingpage
   Farbwelt: Schwarz / Dunkel mit goldenen Akzenten
   ============================================================ */

:root {
    /* Farben */
    --black:        #050505;
    --bg:           #0a0a0a;
    --bg-elev:      #111010;
    --bg-card:      #14120e;
    --line:         rgba(212, 175, 55, 0.16);

    --gold:         #d4af37;
    --gold-bright:  #f4d67a;
    --gold-deep:    #b8860b;
    --gold-soft:    rgba(212, 175, 55, 0.10);

    --text:         #f3efe6;
    --text-dim:     #b6afa0;
    --text-mut:     #8a8377;

    /* Verläufe */
    --grad-gold: linear-gradient(135deg, #f4d67a 0%, #d4af37 45%, #b8860b 100%);

    /* Raster */
    --maxw: 1140px;
    --radius: 16px;

    /* Schrift */
    --font-display: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--black); }

/* ---------- Hintergrund-Layer ---------- */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -2;
    /* Reihenfolge: Verlauf (Lesbarkeit) -> Gold-Glow -> Bergbild -> Grundfarbe */
    background:
        linear-gradient(180deg,
            rgba(5, 5, 5, 0.86) 0%,
            rgba(5, 5, 5, 0.62) 32%,
            rgba(5, 5, 5, 0.78) 68%,
            rgba(5, 5, 5, 0.94) 100%),
        radial-gradient(55% 40% at 50% 12%, rgba(212, 175, 55, 0.12), transparent 70%),
        url("../assets/background.webp") center bottom / cover no-repeat,
        var(--bg);
    pointer-events: none;
}

.bg-grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(8px);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 1.05rem;
    color: var(--gold-bright);
}

.nav__logo {
	width: 44px;
	height: 44px;
	filter: drop-shadow(0 2px 10px rgba(212,175,55,0.25));
	border-radius: 120px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.nav__links a { color: var(--text-dim); transition: color 0.2s ease; }
.nav__links a:hover { color: var(--gold-bright); }

.nav__cta {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--gold-bright) !important;
}
.nav__cta:hover { background: var(--gold-soft); }

/* ---------- Hero ---------- */
.hero {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__logo {
	width: min(220px, 46vw);
	height: auto;
	margin-bottom: 1.5rem;
	filter: drop-shadow(0 10px 40px rgba(212, 175, 55, 0.28));
	animation: floatIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
	border-radius: 120px;
}

.hero__eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    animation: fadeUp 0.7s 0.1s ease both;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.8rem, 9vw, 6rem);
    letter-spacing: 0.06em;
    line-height: 1;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 40px rgba(212, 175, 55, 0.2);
    animation: fadeUp 0.7s 0.2s ease both;
}

.hero__subtitle {
    max-width: 560px;
    margin: 1.25rem auto 0;
    color: var(--text-dim);
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    animation: fadeUp 0.7s 0.3s ease both;
}

/* ---------- Countdown ---------- */
.countdown {
    margin: 3rem auto 2.5rem;
    padding: 2rem 1.5rem 1.75rem;
    max-width: 640px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(212,175,55,0.05), rgba(0,0,0,0.2));
    box-shadow: 0 20px 60px -30px rgba(212, 175, 55, 0.4);
    animation: fadeUp 0.7s 0.4s ease both;
}

.countdown__label {
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-mut);
    margin-bottom: 1.25rem;
}

/* Zustandssteuerung: nur der aktive Block ist sichtbar */
.countdown__teaser,
.countdown__grid,
.countdown__live { display: none; }

.countdown[data-state="teaser"]   .countdown__teaser { display: block; }
.countdown[data-state="counting"] .countdown__grid   { display: grid; }
.countdown[data-state="live"]     .countdown__live   { display: block; }

[hidden] { display: none !important; }

/* Teaser-Zustand */
.countdown__teaser { padding: 0.75rem 0 0.25rem; }

.countdown__teaser-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.1;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

.countdown__teaser-text {
    margin-top: 0.75rem;
    color: var(--text-dim);
    font-size: 0.98rem;
}

.countdown__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.4rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.08);
}

.countdown__num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    line-height: 1;
    color: var(--gold-bright);
    font-variant-numeric: tabular-nums;
}

.countdown__unit {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mut);
}

.countdown__date {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    color: var(--gold);
    font-size: 1rem;
}

.countdown__live {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    letter-spacing: 0.04em;
    color: var(--gold-bright);
    padding: 1.5rem 0;
}

/* ---------- Buttons ---------- */
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeUp 0.7s 0.5s ease both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
    border: 1px solid transparent;
    will-change: transform;
}

.btn--primary {
    background: var(--grad-gold);
    color: #1a1400;
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(212, 175, 55, 0.75); }

.btn--ghost {
    background: transparent;
    color: var(--gold-bright);
    border-color: var(--gold);
}
.btn--ghost:hover { background: var(--gold-soft); transform: translateY(-2px); }

.btn--lg { padding: 1.05rem 2.6rem; font-size: 1.05rem; }

/* ---------- Section Head ---------- */
.section-head { text-align: center; margin-bottom: 3rem; }

.section-head__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.section-head__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.05em;
    color: var(--text);
}

/* ---------- Features ---------- */
.features {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card {
    padding: 2rem 1.75rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--grad-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 24px 50px -30px rgba(212, 175, 55, 0.5);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
    font-size: 2rem;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--gold-soft);
    border: 1px solid var(--line);
    margin-bottom: 1.25rem;
}

.card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    color: var(--gold-bright);
    margin-bottom: 0.6rem;
}

.card__text { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- CTA ---------- */
.cta {
    max-width: var(--maxw);
    margin: 2rem auto 5rem;
    padding: 0 1.5rem;
}

.cta__inner {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background:
        radial-gradient(80% 120% at 50% 0%, rgba(212,175,55,0.14), transparent 70%),
        var(--bg-elev);
    box-shadow: 0 30px 80px -50px rgba(212, 175, 55, 0.6);
}

.cta__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    letter-spacing: 0.04em;
    color: var(--gold-bright);
    margin-bottom: 0.9rem;
}

.cta__text {
    max-width: 500px;
    margin: 0 auto 2rem;
    color: var(--text-dim);
}

/* ---------- Footer ---------- */
.footer {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
    text-align: center;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.footer__logo { width: 36px; height: 36px; opacity: 0.8; }
.footer__copy { color: var(--text-mut); font-size: 0.82rem; max-width: 520px; }

/* ---------- Animationen ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50%      { opacity: 0.88; filter: brightness(1.25); }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
    .nav__links { gap: 1rem; font-size: 0.85rem; }
    .nav__links a:not(.nav__cta) { display: none; }
    .countdown__grid { gap: 0.5rem; }
    .countdown__item { padding: 0.8rem 0.2rem; }
    .cta__inner { padding: 3rem 1.25rem; }
}
