/* =========================================================================
   direkt-kirche.de — "Heiliger Pomp trifft Onlineshop"
   ========================================================================= */
:root {
    --bordeaux: #5a0f18;
    --bordeaux-deep: #3a0910;
    --gold: #c9a227;
    --gold-soft: #e6c65c;
    --marble: #f6f0e2;
    --ink: #241a12;
    --parchment: #fbf6ea;
    --shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "EB Garamond", Georgia, "Times New Roman", serif;
    color: var(--marble);
    background:
        radial-gradient(circle at 50% -10%, rgba(201,162,39,.25), transparent 55%),
        linear-gradient(180deg, var(--bordeaux) 0%, var(--bordeaux-deep) 60%, #250409 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
}

/* Deckenfresko-Himmel hinter dem Hero (Andrea Pozzo, Sant'Ignazio) + Lichtstrahl */
.halo {
    position: fixed;
    inset: 0 0 auto 0;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,244,200,.30), transparent 55%),
        linear-gradient(180deg, rgba(58,9,16,.45) 0%, rgba(58,9,16,.72) 45%, rgba(37,4,9,.96) 78%, #250409 100%),
        url('../img/hero-fresko.jpg');
    background-size: auto, auto, cover;
    background-position: center, center, center top;
    background-repeat: no-repeat;
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--gold-soft); }

/* ---------- Header ---------- */
.site-header { text-align: center; padding: 2.4rem 1rem 1rem; }
.brand {
    display: inline-flex; align-items: center; gap: .6rem;
    text-decoration: none; color: var(--marble);
}
.brand-cross { color: var(--gold); font-size: 1.6rem; }
.brand-name {
    font-family: "Cinzel", serif; font-weight: 700;
    font-size: clamp(1.4rem, 4vw, 2.1rem); letter-spacing: .04em;
}
.brand-tld { color: var(--gold); }
.brand-motto {
    font-style: italic; color: var(--gold-soft);
    margin: .3rem 0 0; letter-spacing: .05em; font-size: .95rem;
}

/* ---------- DEV-Modus ---------- */
.dev-banner {
    position: sticky; top: 0; z-index: 20;
    text-align: center; font-family: "Cinzel", serif; letter-spacing: .04em;
    background: repeating-linear-gradient(45deg, #2a1204, #2a1204 12px, #3a1a06 12px, #3a1a06 24px);
    color: var(--gold-soft); border-bottom: 2px solid var(--gold);
    padding: .55rem 1rem; font-size: .9rem;
}
.dev-pay-btn { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; cursor: pointer; border: none; border-radius: 999px;
    font-family: "Cinzel", serif; font-weight: 600; letter-spacing: .03em;
    padding: .7rem 1.5rem; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .95rem 2.2rem; font-size: 1.1rem; }
.btn-gold {
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    color: #3a2a04; box-shadow: 0 8px 24px rgba(201,162,39,.4);
}
.btn-select {
    background: transparent; color: var(--gold-soft);
    border: 1.5px solid var(--gold); width: 100%; margin-top: auto;
}
.btn-select:hover { background: var(--gold); color: #3a2a04; }

/* ---------- Hero ---------- */
.hero { text-align: center; max-width: 780px; margin: 1rem auto 3rem; padding: 0 1.2rem; }
.hero-eyebrow { font-style: italic; color: var(--gold-soft); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.hero-title {
    font-family: "UnifrakturMaguntia", "Cinzel", serif;
    font-size: clamp(2.6rem, 9vw, 5rem); line-height: 1.05; margin: .4rem 0;
    color: var(--marble); text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.hero-sub { font-size: 1.15rem; color: #efe6cf; }
.hero-trust { margin-top: 1.2rem; color: var(--gold-soft); font-size: .9rem; letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section-title {
    font-family: "Cinzel", serif; text-align: center; color: var(--gold-soft);
    font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: .3rem;
}
.section-sub { text-align: center; color: #e7dcc2; margin-top: 0; margin-bottom: 2rem; font-style: italic; }

/* ---------- Ablass-Zähler ---------- */
.counter-band { text-align: center; margin: 0 auto 3rem; padding: 0 1.2rem; }
.counter-num {
    font-family: "Cinzel", serif; font-weight: 700; margin: 0;
    font-size: clamp(2.8rem, 10vw, 5rem); color: var(--gold-soft);
    text-shadow: 0 2px 20px rgba(201,162,39,.5); line-height: 1;
}
.counter-cap { margin: .3rem 0 0; color: #e7dcc2; font-style: italic; letter-spacing: .04em; }

/* ---------- Shop / Produktkarten ---------- */
.shop { max-width: 1100px; margin: 0 auto 4rem; padding: 2rem 1.2rem; }
.product-grid {
    display: grid; gap: 1.4rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.product-card {
    position: relative; display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--parchment), var(--marble));
    color: var(--ink); border-radius: 14px; padding: 1.6rem 1.4rem;
    border: 1px solid rgba(201,162,39,.6); box-shadow: var(--shadow);
}
.product-card--premium {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, #fff7dd, #f4e6b8);
    box-shadow: 0 14px 46px rgba(201,162,39,.55);
    transform: translateY(-6px);
}
.ribbon {
    position: absolute; top: 14px; right: -6px; background: var(--bordeaux);
    color: var(--gold-soft); font-family: "Cinzel", serif; font-size: .75rem;
    padding: .3rem .9rem; border-radius: 4px 0 0 4px; letter-spacing: .1em;
}
.product-medallion {
    width: 94px; height: 94px; border-radius: 50%;
    margin: .2rem auto 1rem; background-size: cover; background-repeat: no-repeat;
    border: 3px solid var(--gold);
    box-shadow: 0 5px 16px rgba(0,0,0,.28), inset 0 0 0 2px rgba(255,255,255,.45);
}
.product-card--premium .product-medallion { width: 108px; height: 108px; border-width: 4px; }
.product-title { font-family: "Cinzel", serif; margin: 0 0 .1rem; color: var(--bordeaux); font-size: 1.25rem; }
.product-duration { margin: 0; font-style: italic; color: #6b5a3a; font-size: .9rem; }
.product-price { font-family: "Cinzel", serif; font-weight: 700; font-size: 2rem; color: var(--bordeaux); margin: .6rem 0 .4rem; }
.product-blurb { margin: 0 0 .6rem; font-size: .98rem; }
.product-sins { margin: 0 0 1.2rem; color: #7a5a10; font-size: .9rem; }

/* ---------- Checkout ---------- */
.checkout { max-width: 560px; margin: 0 auto 4rem; padding: 0 1.2rem; }
.checkout-card {
    position: relative; background: linear-gradient(180deg, var(--parchment), var(--marble));
    color: var(--ink); border-radius: 16px; padding: 2rem 1.8rem;
    border: 2px solid var(--gold); box-shadow: var(--shadow);
}
.checkout-close {
    position: absolute; top: .6rem; right: .8rem; background: none; border: none;
    font-size: 1.8rem; line-height: 1; color: var(--bordeaux); cursor: pointer;
}
.checkout-title { font-family: "Cinzel", serif; color: var(--bordeaux); margin: 0 0 .6rem; }
.checkout-chosen { margin: 0 0 1.2rem; font-size: 1.05rem; }
.checkout-price { float: right; font-family: "Cinzel", serif; font-weight: 700; color: var(--bordeaux); }
.field-label { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field-input {
    width: 100%; padding: .8rem 1rem; font-size: 1.05rem; font-family: inherit;
    border: 1.5px solid #c9b78a; border-radius: 10px; background: #fffdf7; color: var(--ink);
}
.field-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.3); }
.field-hint { color: #a11; margin: .4rem 0 0; font-size: .9rem; }
.consent { margin-top: 1.2rem; }
.consent-label {
    display: flex; align-items: flex-start; gap: .6rem;
    font-size: .92rem; color: var(--ink); cursor: pointer; line-height: 1.45;
}
.consent-label input[type="checkbox"] {
    flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .1rem;
    accent-color: var(--bordeaux); cursor: pointer;
}
.consent-label a { color: var(--bordeaux); text-decoration: underline; }
.paypal-wrap { margin-top: 1.4rem; min-height: 50px; }
.checkout-status { min-height: 1.4em; margin: .8rem 0 0; color: #2a6a2a; font-weight: 600; }
.checkout-status.is-error { color: #a11; }
.checkout-legal { font-size: .82rem; color: #6b5a3a; margin: 1rem 0 0; }

/* ---------- Steps ---------- */
.steps { max-width: 900px; margin: 0 auto 4rem; padding: 0 1.2rem; text-align: center; }
.step-list { list-style: none; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; }
.step-list li {
    background: rgba(255,255,255,.06); border: 1px solid rgba(201,162,39,.4);
    border-radius: 12px; padding: 1.4rem; font-size: 1.1rem;
}
.step-num { display: block; font-family: "Cinzel", serif; font-size: 2rem; color: var(--gold); }

/* ---------- Erschaffung-Adams-Bühne (Parallax) ---------- */
.fresco-band {
    position: relative;
    min-height: 62vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 4.5rem 1.2rem; margin: 0 0 4rem;
    background:
        linear-gradient(rgba(37,4,9,.5), rgba(37,4,9,.78)),
        url('../img/erschaffung.jpg');
    background-size: cover; background-position: center;
    background-attachment: fixed;
}
.fresco-caption {
    max-width: 640px; padding: 2rem 2.2rem;
    background: rgba(37,4,9,.42); border: 1px solid rgba(201,162,39,.45);
    border-radius: 16px; box-shadow: var(--shadow);
}
.fresco-caption h2 { font-family: "Cinzel", serif; color: var(--gold-soft); font-size: clamp(1.5rem, 4.5vw, 2.2rem); margin: 0 0 .8rem; }
.fresco-caption p { margin: 0; font-size: 1.1rem; color: #f3ead2; }

/* ---------- Zertifikatsseite ---------- */
.cert-success, .cert-invalid { max-width: 720px; margin: 1rem auto 4rem; padding: 0 1.2rem; text-align: center; }
.cert-success {
    padding: 2.5rem 1.4rem 3rem; border-radius: 18px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(37,4,9,.15), rgba(37,4,9,.72) 70%),
        url('../img/gloria.jpg');
    background-size: cover; background-position: center top; background-repeat: no-repeat;
    border: 1px solid rgba(201,162,39,.4); box-shadow: var(--shadow);
}
.cert-eyebrow { color: var(--gold-soft); font-style: italic; letter-spacing: .06em; }
.cert-headline { font-family: "UnifrakturMaguntia", "Cinzel", serif; font-size: clamp(2.2rem, 7vw, 3.6rem); margin: .2rem 0 1.6rem; }
.ablassbrief {
    background: linear-gradient(180deg, var(--parchment), #f0e6cd);
    color: var(--ink); border-radius: 10px; padding: .8rem; box-shadow: var(--shadow); margin-bottom: 2rem;
}
.ab-frame { border: 3px double var(--gold); padding: 2rem 1.4rem; }
.ab-title { font-family: "UnifrakturMaguntia", serif; color: var(--bordeaux); font-size: 2.6rem; margin: 0; }
.ab-sub { font-style: italic; color: #6b5a3a; margin: .2rem 0 0; }
.ab-rule { border: none; border-top: 1px solid var(--gold); max-width: 60%; margin: 1.2rem auto; }
.ab-intro { margin: 0; }
.ab-name { font-family: "Cinzel", serif; font-size: 1.9rem; color: var(--bordeaux); margin: .4rem 0; }
.ab-level { font-style: italic; font-size: 1.15rem; margin: 0 0 1rem; }
.ab-body { max-width: 80%; margin: 0 auto 1.4rem; }
.ab-seal-img {
    display: inline-block; width: 132px; height: auto; margin: .4rem 0;
    filter: drop-shadow(0 5px 9px rgba(0,0,0,.4));
}
.ab-meta { margin: 1.2rem 0 0; font-size: .9rem; color: #6b5a3a; }
.cert-hint { color: var(--gold-soft); font-size: .9rem; margin-top: 1rem; }
.share { margin-top: 2.4rem; }
.share-title { font-family: "Cinzel", serif; color: var(--gold-soft); margin: 0 0 .8rem; }
.share-buttons { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.share-btn {
    display: inline-block; cursor: pointer; text-decoration: none;
    font-family: "Cinzel", serif; font-size: .9rem; letter-spacing: .02em;
    padding: .55rem 1.1rem; border-radius: 999px;
    background: rgba(255,255,255,.08); color: var(--gold-soft);
    border: 1.5px solid var(--gold); transition: background .15s, color .15s;
}
.share-btn:hover { background: var(--gold); color: #3a2a04; }
.share-copied { color: #7fd08a; margin-top: .8rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 2.4rem 1.2rem 3rem; border-top: 1px solid rgba(201,162,39,.3); margin-top: 2rem; }
.satire-note {
    max-width: 720px; margin: 0 auto 1rem; font-size: .9rem; color: #e7dcc2;
    background: rgba(0,0,0,.2); border: 1px solid rgba(201,162,39,.35);
    border-radius: 10px; padding: 1rem 1.2rem;
}
.footer-links { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: .8rem; }
.copyright { color: var(--gold-soft); font-size: .85rem; }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 760px; margin: 1rem auto 4rem; padding: 0 1.4rem; }
.legal h1 { font-family: "Cinzel", serif; color: var(--gold-soft); }
.legal h2 { font-family: "Cinzel", serif; color: var(--gold-soft); margin-top: 2rem; }
.legal h3 { font-family: "Cinzel", serif; color: var(--gold-soft); margin-top: 1.4rem; font-size: 1.2rem; }
.legal h4 { color: var(--gold-soft); margin: 1.2rem 0 .3rem; font-size: 1rem; }
.legal a { color: var(--gold-soft); }
.legal ol { padding-left: 1.4rem; }
.legal li { margin-bottom: .4rem; }
.legal .todo { background: rgba(0,0,0,.25); border-left: 3px solid var(--gold); padding: .6rem 1rem; font-style: italic; }
.legal .legal-box {
    background: rgba(0,0,0,.22); border: 1px solid rgba(201,162,39,.4);
    border-radius: 10px; padding: 1rem 1.3rem; margin: 1.4rem 0;
}
.legal .legal-box h3 { margin-top: 0; }

@media (max-width: 600px) {
    .checkout-price { float: none; display: block; margin-top: .3rem; }
    .ab-body, .ab-rule { max-width: 100%; }
    .fresco-band { background-attachment: scroll; min-height: 50vh; }
}
