:root {
    --bg: #0a0f0d;
    --bg-2: #0d1512;
    --panel: #101815;
    --panel-2: #141f1a;
    --border: #1e2b25;
    --text: #eaf5ef;
    --muted: #8fa89c;
    --muted-2: #6f847a;
    --primary: #00a473;
    --glow: #00fcb1;
    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1080px;
    --font-display: "Space Grotesk", "Inter", Arial, sans-serif;
    --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1000px 520px at 12% -8%, rgba(0, 164, 115, 0.16), transparent 60%),
        radial-gradient(900px 520px at 104% 6%, rgba(0, 252, 177, 0.08), transparent 55%),
        var(--bg);
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 8vw, 90px); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--glow);
}
.eyebrow::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--glow);
    box-shadow: 0 0 10px var(--glow);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

p { color: var(--muted); line-height: 1.65; margin: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--glow);
    color: #001912;
    box-shadow: 0 0 0 0 rgba(0, 252, 177, 0.5);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-icon:active { transform: scale(0.94); }

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(10, 15, 13, 0.72);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.nav-brand { display: flex; align-items: center; gap: 10px; margin-left: clamp(14px, 3vw, 40px); flex-shrink: 0; }
.nav-brand img { height: 34px; width: auto; flex-shrink: 0; }
.nav-brand span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links a.navlink {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}
.nav-cta { display: flex; align-items: center; gap: 12px; margin-right: clamp(14px, 3vw, 40px); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
    .nav-links.navlist { display: none; }
}

/* ---------- Hero ---------- */

.hero {
    padding: 96px 0 70px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.06;
    margin-top: 18px;
    max-width: 15ch;
}
.hero h1 em {
    font-style: normal;
    color: var(--glow);
}
.hero p.lead {
    margin-top: 20px;
    font-size: 17.5px;
    max-width: 46ch;
}
.hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.hero-meta {
    margin-top: 34px;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.hero-meta div { font-size: 13px; color: var(--muted-2); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 21px; color: var(--text); font-weight: 700; }

/* ---------- Hero device mock (live prayer-times preview) ---------- */

.device {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    position: relative;
}
.device::after {
    content: "myvakit.com/ihre-gemeinde";
    position: absolute;
    top: -12px; left: 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--muted-2);
    letter-spacing: 0.03em;
}
.device-screen {
    background: radial-gradient(120% 140% at 15% 0%, #0c130f 0%, #060a08 100%);
    border-radius: var(--radius-sm);
    padding: 26px 22px;
    border: 1px solid var(--border);
}
.device-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 11px;
    color: var(--muted-2);
    letter-spacing: 0.04em;
}
.device-top .d-name { color: var(--text); font-weight: 700; font-size: 12.5px; }
.device-clock {
    text-align: center;
    margin: 22px 0 18px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(46px, 6vw, 64px);
    color: var(--glow);
    letter-spacing: 0.02em;
    line-height: 1;
}
.device-remaining {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 22px;
}
.device-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.device-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
    transition: background 200ms ease, border-color 200ms ease;
}
.device-card.active { background: var(--glow); border-color: var(--glow); }
.device-card .dl {
    font-size: 8.5px;
    letter-spacing: 0.06em;
    color: var(--muted-2);
    text-transform: uppercase;
    font-weight: 700;
}
.device-card.active .dl { color: #001912; }
.device-card .dt {
    margin-top: 5px;
    font-weight: 700;
    font-size: 12px;
    color: var(--text);
}
.device-card.active .dt { color: #001912; }

@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 40px; }
    .device-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Section shell ---------- */

section.block { padding: 84px 0; border-top: 1px solid var(--border); }
.block-head { max-width: 640px; margin-bottom: 44px; }
.block-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin-top: 14px; }
.block-head p { margin-top: 14px; font-size: 15.5px; }

/* ---------- Features ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.feature {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), border-color 200ms ease;
}
.feature .fi {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(0, 252, 177, 0.12);
    color: var(--glow);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
}
.feature h3 { font-size: 16.5px; font-weight: 700; }
.feature p { margin-top: 8px; font-size: 14px; }

@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Themes showcase ---------- */

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.theme-card {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), border-color 200ms ease;
}
.theme-preview {
    background: #060a08;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
}
.theme-preview .tp-top {
    display: flex; justify-content: space-between; align-items: center;
}
.theme-preview .tp-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--glow); }
.theme-preview .tp-line { width: 40px; height: 7px; border-radius: 4px; background: var(--text); opacity: 0.35; }
.theme-preview .tp-clock {
    text-align: center; margin-top: 14px;
    font-family: var(--font-display); font-weight: 700; color: var(--glow); font-size: 15px;
}
.theme-preview .tp-row { display: flex; gap: 4px; margin-top: 10px; }
.theme-preview .tp-cell { flex: 1; height: 15px; border-radius: 6px; border: 1px solid var(--glow); opacity: 0.55; }
.theme-preview.split .tp-body { display: flex; gap: 6px; margin-top: 12px; }
.theme-preview.split .tp-num { flex: 1; text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--glow); font-size: 14px; border-right: 1px solid var(--border); }
.theme-preview.split .tp-cols { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.theme-preview.split .tp-cols .tp-cell { height: 7px; }
.theme-preview.list .tp-body { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 12px; }
.theme-preview.list .tp-cell { height: 8px; }
.theme-meta { padding: 18px 20px 22px; }
.theme-meta h3 { font-size: 15.5px; font-weight: 700; }
.theme-meta p { margin-top: 6px; font-size: 13.5px; }

@media (max-width: 860px) { .theme-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.step {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    background: rgba(255, 255, 255, 0.015);
    transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), border-color 200ms ease;
}
.step .sn {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--glow);
    letter-spacing: 0.05em;
}
.step h3 { margin-top: 10px; font-size: 15px; font-weight: 700; }
.step p { margin-top: 6px; font-size: 13.5px; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */

.cta-band {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(0, 164, 115, 0.16), rgba(0, 252, 177, 0.05));
    border-radius: 24px;
    padding: 54px 44px;
    text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin: 14px auto 0; max-width: 50ch; }
.cta-band .hero-cta { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */

footer.site-footer {
    border-top: 1px solid var(--border);
    padding: 50px 0 34px;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 24px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted-2); font-weight: 700; margin-bottom: 12px;
}
.footer-col a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; }
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    color: var(--muted-2);
}

/* ---------- Legal pages ---------- */

.legal-page { padding: 70px 0 100px; }
.legal-page .container { max-width: 780px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 38px); }
.legal-page h2 { font-size: 19px; margin-top: 40px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.legal-page ul { padding-left: 20px; }
.legal-page a.inline { color: var(--glow); text-decoration: underline; }
.legal-page .back-link { display: inline-block; margin-bottom: 30px; font-size: 13.5px; color: var(--muted-2); }
.legal-page .placeholder {
    background: rgba(0, 252, 177, 0.08);
    border: 1px dashed rgba(0, 252, 177, 0.4);
    color: var(--glow);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 0.95em;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    max-width: 620px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    z-index: 200;
    transform: translateY(140%);
    transition: transform 350ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 13.5px; color: var(--muted); margin: 0; }
.cookie-banner a.inline { color: var(--glow); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 13px; }

@media (max-width: 500px) {
    .cta-band { padding: 40px 22px; }
    .footer-grid { flex-direction: column; }
}

/* ---------- Scroll-Reveal (Feature-/Theme-/Schritt-Karten) ----------
   Gestaffeltes Einblenden beim Reinscrollen statt starrem Erscheinen -
   respektiert prefers-reduced-motion (siehe unten). */
.mv-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms cubic-bezier(0.23, 1, 0.32, 1), transform 500ms cubic-bezier(0.23, 1, 0.32, 1);
}
.mv-reveal.in-view { opacity: 1; transform: translateY(0); }
.features .mv-reveal:nth-child(1), .theme-grid .mv-reveal:nth-child(1), .steps .mv-reveal:nth-child(1) { transition-delay: 0ms; }
.features .mv-reveal:nth-child(2), .theme-grid .mv-reveal:nth-child(2), .steps .mv-reveal:nth-child(2) { transition-delay: 60ms; }
.features .mv-reveal:nth-child(3), .theme-grid .mv-reveal:nth-child(3), .steps .mv-reveal:nth-child(3) { transition-delay: 120ms; }
.features .mv-reveal:nth-child(4), .theme-grid .mv-reveal:nth-child(4), .steps .mv-reveal:nth-child(4) { transition-delay: 180ms; }
.features .mv-reveal:nth-child(5) { transition-delay: 240ms; }
.features .mv-reveal:nth-child(6) { transition-delay: 300ms; }

/* ---------- Hover-Effekte gebündelt und nur für Maus/Trackpad ----------
   Die Landingpage wird stark auf Handy/Tablet besucht - dort bleiben
   Hover-Zustände nach dem Antippen sonst kleben, bis woanders getippt wird. */
@media (hover: hover) and (pointer: fine) {
    .nav-links a.navlink:hover { color: var(--text); }
    .btn-primary:hover { box-shadow: 0 6px 26px rgba(0, 252, 177, 0.28); }
    .btn-ghost:hover { border-color: var(--primary); color: var(--glow); }
    .btn-icon:hover {
        border-color: var(--primary);
        color: var(--glow);
        background: rgba(0, 252, 177, 0.08);
        box-shadow: 0 6px 22px rgba(0, 252, 177, 0.2);
    }
    .feature:hover, .theme-card:hover, .step:hover {
        transform: translateY(-3px);
        border-color: var(--primary);
    }
    .footer-col a:hover { color: var(--glow); }
}

/* ---------- Barrierefreiheit: reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cookie-banner { transition: opacity 200ms ease !important; transform: none !important; }
    .cookie-banner:not(.visible) { opacity: 0; pointer-events: none; }
    .cookie-banner.visible { opacity: 1; }
    .feature:hover, .theme-card:hover, .step:hover { transform: none; }
    .btn:active, .btn-icon:active { transform: none !important; }
    .mv-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
