/* ═══════════════════════════════════════════════════════════════════
   Candor Enquire — Guide Design-Themes v163.5
   Drei Themes wählbar per [ce_guide slug="..." theme="X"]
   oder per Guide-Einstellung im Admin.

   Theme A: cinematic  (default) — warm, filmisch, Cormorant + Lato
   Theme B: hochglanz  — edgy, kontrastreich, Modern Serif + Sans
   Theme C: homepage   — hell, klar, CTA-orientiert, systemfonts
   ═══════════════════════════════════════════════════════════════════ */

/* ── Basis ──────────────────────────────────────────────────────── */
.ce-guide-wrap {
    --ce-farbe-akzent: var(--ce-akzent, var(--mup-accent, var(--gm-gold, #c9a84c)));
    box-sizing: border-box;
}
.ce-guide-wrap *, .ce-guide-wrap *::before, .ce-guide-wrap *::after {
    box-sizing: inherit;
}

/* ════════════════════════════════════════════════════════════════
   THEME A: cinematic  (Standard — wie bisher + Verbesserungen)
   ════════════════════════════════════════════════════════════════ */
.ce-guide-wrap[data-theme="cinematic"],
.ce-guide-wrap:not([data-theme]) {
    --ce-bg:        #faf7f2;
    --ce-bg-alt:    #f5f1ea;
    --ce-text:      #2a2a2a;
    --ce-muted:     #6b6b6b;
    --ce-border:    rgba(201,168,76,.18);
    --ce-overlay:   rgba(18,16,14,.58);
    --ce-font-h:    "Cormorant Garamond", Georgia, serif;
    --ce-font-sk:   "Dancing Script", cursive;
    --ce-font-body: "Lato", system-ui, sans-serif;
    --ce-radius:    4px;

    background: var(--ce-bg);
    color: var(--ce-text);
    font-family: var(--ce-font-body);
    max-width: 1180px;
    margin: 2rem auto;
}

/* Seiten */
[data-theme="cinematic"] .ce-guide-seite,
.ce-guide-wrap:not([data-theme]) .ce-guide-seite {
    position: relative;
    padding: 3.5rem 4rem;
    border-bottom: 1px solid var(--ce-border);
    min-height: 480px;
    background: #fefcf8;
}
[data-theme="cinematic"] .ce-guide-seite:nth-child(even),
.ce-guide-wrap:not([data-theme]) .ce-guide-seite:nth-child(even) {
    background: var(--ce-bg);
}

/* Typografie cinematic */
[data-theme="cinematic"] .ce-headline,
.ce-guide-wrap:not([data-theme]) .ce-headline {
    font-family: var(--ce-font-h);
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 0.6rem;
    color: var(--ce-text);
}
[data-theme="cinematic"] .ce-kicker,
.ce-guide-wrap:not([data-theme]) .ce-kicker {
    font-family: var(--ce-font-sk);
    font-size: 1rem;
    color: var(--ce-farbe-akzent);
    display: block;
    margin-bottom: 0.4rem;
}
[data-theme="cinematic"] .ce-text,
.ce-guide-wrap:not([data-theme]) .ce-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ce-muted);
    max-width: 68ch;
}
[data-theme="cinematic"] .ce-zitat-block,
.ce-guide-wrap:not([data-theme]) .ce-zitat-block {
    border-left: 3px solid var(--ce-farbe-akzent);
    padding: 0.8rem 0 0.8rem 1.6rem;
    margin: 1.6rem 0;
    font-family: var(--ce-font-h);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--ce-text);
}
[data-theme="cinematic"] .ce-zitat-autor,
.ce-guide-wrap:not([data-theme]) .ce-zitat-autor {
    display: block;
    font-size: 0.85rem;
    color: var(--ce-farbe-akzent);
    margin-top: 0.5rem;
    font-style: normal;
}
[data-theme="cinematic"] .ce-gold-rule,
.ce-guide-wrap:not([data-theme]) .ce-gold-rule {
    width: 60px;
    height: 2px;
    background: var(--ce-farbe-akzent);
    border: none;
    margin: 1rem 0 1.4rem;
}

/* Deckblatt cinematic */
[data-theme="cinematic"] .ce-seite-deckblatt,
.ce-guide-wrap:not([data-theme]) .ce-seite-deckblatt {
    min-height: 520px;
    display: flex;
    align-items: center;
    background: var(--ce-overlay);
    color: #fff;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}
[data-theme="cinematic"] .ce-seite-deckblatt .ce-headline,
.ce-guide-wrap:not([data-theme]) .ce-seite-deckblatt .ce-headline {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

/* ════════════════════════════════════════════════════════════════
   THEME B: hochglanz  — dunkel, kontrastreich, modern
   ════════════════════════════════════════════════════════════════ */
.ce-guide-wrap[data-theme="hochglanz"] {
    --ce-bg:        #111418;
    --ce-bg-alt:    #181c22;
    --ce-text:      #f0ebe0;
    --ce-muted:     #9a9080;
    --ce-border:    rgba(201,168,76,.22);
    --ce-overlay:   rgba(6,8,10,.72);
    --ce-font-h:    "Playfair Display", "Cormorant Garamond", Georgia, serif;
    --ce-font-sk:   "Cinzel", serif;
    --ce-font-body: "Inter", "Helvetica Neue", sans-serif;
    --ce-radius:    0;

    background: var(--ce-bg);
    color: var(--ce-text);
    font-family: var(--ce-font-body);
    max-width: 1200px;
    margin: 0 auto;
}
[data-theme="hochglanz"] .ce-guide-seite {
    background: var(--ce-bg);
    border-bottom: 1px solid var(--ce-border);
    padding: 4rem 5rem;
    min-height: 500px;
}
[data-theme="hochglanz"] .ce-guide-seite:nth-child(even) {
    background: var(--ce-bg-alt);
}
[data-theme="hochglanz"] .ce-headline {
    font-family: var(--ce-font-h);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ce-text);
    margin: 0 0 0.5rem;
}
[data-theme="hochglanz"] .ce-kicker {
    font-family: var(--ce-font-sk);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ce-farbe-akzent);
    display: block;
    margin-bottom: 1rem;
}
[data-theme="hochglanz"] .ce-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ce-muted);
    max-width: 65ch;
}
[data-theme="hochglanz"] .ce-zitat-block {
    border: none;
    padding: 2rem;
    margin: 2rem 0;
    background: rgba(201,168,76,.06);
    border-left: 4px solid var(--ce-farbe-akzent);
    font-family: var(--ce-font-h);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--ce-text);
}
[data-theme="hochglanz"] .ce-zitat-autor {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--ce-farbe-akzent);
    font-style: normal;
    display: block;
    margin-top: 0.8rem;
}
[data-theme="hochglanz"] .ce-gold-rule {
    width: 40px;
    height: 1px;
    background: var(--ce-farbe-akzent);
    border: none;
    margin: 1.2rem 0 1.6rem;
}
[data-theme="hochglanz"] .ce-tipps-liste li {
    color: var(--ce-muted);
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: 0.5rem 0;
}
[data-theme="hochglanz"] .ce-tipps-liste li::before {
    content: "→";
    color: var(--ce-farbe-akzent);
    margin-right: 0.6rem;
    font-size: 0.8rem;
}
[data-theme="hochglanz"] .ce-cta-btn {
    background: transparent;
    border: 1px solid var(--ce-farbe-akzent);
    color: var(--ce-farbe-akzent);
    padding: 0.85rem 2.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: background .2s, color .2s;
}
[data-theme="hochglanz"] .ce-cta-btn:hover {
    background: var(--ce-farbe-akzent);
    color: #111;
}
/* Dual: Foto links, Text rechts */
[data-theme="hochglanz"] .ce-seite-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    padding: 0;
}
[data-theme="hochglanz"] .ce-dual-foto {
    overflow: hidden;
}
[data-theme="hochglanz"] .ce-dual-foto img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: brightness(.92) contrast(1.05);
}
[data-theme="hochglanz"] .ce-dual-text {
    padding: 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ════════════════════════════════════════════════════════════════
   THEME C: homepage
   ────────────────────────────────────────────────────────────────
   Greift auf die CSS-Custom-Properties der jeweiligen Homepage zu:
     --mup-accent        (MUP Brand & Globals / Lumen Akzentfarbe)
     --mup-font-haupt    (MUP Brand & Globals / Heading-Font)
     --mup-font-skript   (MUP Brand & Globals / Skript-Font)
     --mup-brand-bg      (optional, Kadence-Child-Theme)
     --mup-brand-text    (optional)

   PHP-Seite (guide-modul.php) schreibt zusätzlich --ce-hp-* Vars
   direkt auf das .ce-guide-wrap Element, falls die MUP-Vars
   nicht im Kadence-Child-Theme gesetzt sind.
   ════════════════════════════════════════════════════════════════ */
.ce-guide-wrap[data-theme="homepage"] {
    /* Farb-Kaskade: Lumen-Override → MUP-Brand → Kadence-Child → Fallback */
    --ce-akzent-hp:   var(--ce-akzent, var(--mup-accent, var(--mup-brand-akzent, var(--gm-gold, #c9a84c))));
    --ce-bg-hp:       var(--ce-hp-bg,   var(--mup-brand-bg,   #ffffff));
    --ce-bg-alt-hp:   var(--ce-hp-bg-alt, #f8f9fa);
    --ce-text-hp:     var(--ce-hp-text, var(--mup-brand-text, #1a1a1a));
    --ce-muted-hp:    var(--ce-hp-muted, #555555);
    --ce-border-hp:   var(--ce-hp-border, rgba(0,0,0,.1));

    /* Font-Kaskade: MUP-Brand-Font → System */
    --ce-font-h-hp:   var(--mup-font-haupt,  var(--ce-hp-font-h,  "Inter", "Helvetica Neue", Arial, sans-serif));
    --ce-font-sk-hp:  var(--mup-font-skript, var(--ce-hp-font-sk, "Cormorant Garamond", Georgia, serif));
    --ce-font-bd-hp:  var(--mup-font-body,   var(--ce-hp-font-bd, "Inter", system-ui, sans-serif));

    --ce-radius-hp:   var(--ce-hp-radius, 8px);
    --ce-shadow-hp:   0 2px 16px rgba(0,0,0,.07);

    background:   var(--ce-bg-hp);
    color:        var(--ce-text-hp);
    font-family:  var(--ce-font-bd-hp);
    max-width:    1100px;
    margin:       2rem auto;
}
[data-theme="homepage"] .ce-guide-seite {
    background:    var(--ce-bg-hp);
    border-radius: var(--ce-radius-hp);
    box-shadow:    var(--ce-shadow-hp);
    margin-bottom: 1.5rem;
    padding:       3rem 3.5rem;
    border:        1px solid var(--ce-border-hp);
    min-height:    400px;
}
[data-theme="homepage"] .ce-guide-seite:nth-child(even) {
    background: var(--ce-bg-alt-hp);
}
[data-theme="homepage"] .ce-headline {
    font-family:    var(--ce-font-h-hp);
    font-weight:    700;
    font-size:      clamp(1.6rem, 3vw, 2.4rem);
    line-height:    1.2;
    letter-spacing: -0.025em;
    color:          var(--ce-text-hp);
    margin:         0 0 0.5rem;
}
[data-theme="homepage"] .ce-kicker {
    font-family:    var(--ce-font-bd-hp);
    font-size:      0.75rem;
    font-weight:    600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color:          var(--ce-akzent-hp);
    background:     color-mix(in srgb, var(--ce-akzent-hp) 12%, transparent);
    display:        inline-block;
    padding:        0.2em 0.7em;
    border-radius:  3px;
    margin-bottom:  0.8rem;
}
/* Fallback für Browser ohne color-mix */
@supports not (background: color-mix(in srgb, red 1%, blue)) {
    [data-theme="homepage"] .ce-kicker {
        background: rgba(201, 168, 76, 0.1);
    }
}
[data-theme="homepage"] .ce-text {
    font-size:   1rem;
    line-height: 1.7;
    color:       var(--ce-muted-hp);
    max-width:   64ch;
}
[data-theme="homepage"] .ce-zitat-block {
    background:    rgba(0,0,0,.025);
    border:        1px solid var(--ce-akzent-hp);
    border-left:   4px solid var(--ce-akzent-hp);
    border-radius: var(--ce-radius-hp);
    padding:       1.4rem 1.8rem;
    margin:        1.8rem 0;
    font-family:   var(--ce-font-sk-hp);
    font-size:     1.25rem;
    line-height:   1.5;
    color:         var(--ce-text-hp);
    font-style:    italic;
}
[data-theme="homepage"] .ce-zitat-autor {
    font-family:  var(--ce-font-bd-hp);
    font-size:    0.85rem;
    color:        var(--ce-akzent-hp);
    font-style:   normal;
    display:      block;
    margin-top:   0.6rem;
    font-weight:  600;
}
[data-theme="homepage"] .ce-gold-rule {
    height:        3px;
    width:         48px;
    background:    var(--ce-akzent-hp);
    border:        none;
    border-radius: 2px;
    margin:        0.8rem 0 1.2rem;
}
[data-theme="homepage"] .ce-tipps-liste {
    background:    var(--ce-bg-alt-hp);
    border-radius: var(--ce-radius-hp);
    padding:       1.2rem 1.6rem;
    list-style:    none;
    margin:        1.2rem 0;
}
[data-theme="homepage"] .ce-tipps-liste li {
    padding:       0.45rem 0;
    border-bottom: 1px solid var(--ce-border-hp);
    font-size:     0.95rem;
    color:         var(--ce-muted-hp);
    display:       flex;
    gap:           0.6rem;
    align-items:   baseline;
}
[data-theme="homepage"] .ce-tipps-liste li:last-child { border-bottom: none; }
[data-theme="homepage"] .ce-tipps-liste li::before {
    content:     "✓";
    color:       var(--ce-akzent-hp);
    font-weight: 700;
    flex-shrink: 0;
}
[data-theme="homepage"] .ce-cta-btn {
    background:    var(--ce-akzent-hp);
    color:         #fff;
    border:        none;
    border-radius: var(--ce-radius-hp);
    padding:       0.85rem 2rem;
    font-size:     0.95rem;
    font-weight:   600;
    font-family:   var(--ce-font-bd-hp);
    text-decoration: none;
    display:       inline-block;
    transition:    opacity .2s, transform .15s;
    box-shadow:    0 2px 8px rgba(0,0,0,.15);
}
[data-theme="homepage"] .ce-cta-btn:hover {
    opacity:   .9;
    transform: translateY(-1px);
}
[data-theme="homepage"] .ce-seite-dual {
    display:       grid;
    grid-template-columns: 42% 1fr;
    gap:           0;
    border-radius: var(--ce-radius-hp);
    overflow:      hidden;
    min-height:    380px;
    padding:       0;
    border:        1px solid var(--ce-border-hp);
}
[data-theme="homepage"] .ce-dual-foto { overflow: hidden; }
[data-theme="homepage"] .ce-dual-foto img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
[data-theme="homepage"] .ce-dual-text {
    padding:        2.5rem 3rem;
    background:     var(--ce-bg-hp);
    display:        flex;
    flex-direction: column;
    justify-content: center;
}

/* ════════════════════════════════════════════════════════════════
   GEMEINSAME KOMPONENTEN (alle Themes)
   ════════════════════════════════════════════════════════════════ */

/* Bild-Container */
.ce-seite-bild {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1.6rem;
}
.ce-seite-bild.ce-bild-gross { height: 340px; }
.ce-seite-bild.ce-bild-mittel { height: 240px; }
.ce-seite-bild img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* Vollbild */
.ce-seite-fullbild {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    padding: 0;
}
.ce-seite-fullbild .ce-fb-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
}
.ce-seite-fullbild .ce-fb-bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.ce-seite-fullbild .ce-fb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 60%);
}
.ce-seite-fullbild .ce-fb-content {
    position: relative;
    z-index: 2;
    padding: 3rem 4rem;
    margin-top: 360px;
    color: #fff;
}

/* Tipps */
.ce-tipps-liste {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.ce-tipps-liste li { margin-bottom: 0.6rem; }

/* CTA-Seite */
.ce-seite-cta {
    text-align: center;
    padding: 5rem 4rem;
}
.ce-seite-cta .ce-headline { margin-bottom: 1rem; }
.ce-seite-cta .ce-text {
    margin: 0 auto 2rem;
}

/* Kapitel-Nummer + Name */
.ce-kapitel-nr {
    font-size: 3.4rem;
    line-height: 1;
    color: var(--ce-farbe-akzent);
    margin-right: 0.8rem;
    vertical-align: middle;
    display: inline-block;
}
.ce-kapitel-name {
    color: var(--ce-farbe-akzent);
    font-size: 1.1rem;
}

/* Navigations-Buttons */
.ce-guide-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: rgba(201,168,76,.06);
    border-top: 1px solid rgba(201,168,76,.15);
}
.ce-guide-nav button {
    padding: 0.6rem 1.4rem;
    background: transparent;
    border: 1px solid var(--ce-farbe-akzent);
    color: var(--ce-farbe-akzent);
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 3px;
    transition: background .15s;
}
.ce-guide-nav button:hover {
    background: rgba(201,168,76,.1);
}
.ce-guide-nav .ce-nav-seite {
    font-size: 0.85rem;
    color: var(--ce-muted, #888);
}

/* Responsive */
@media (max-width: 768px) {
    .ce-guide-seite { padding: 2rem 1.5rem; }
    [data-theme="hochglanz"] .ce-seite-dual,
    [data-theme="homepage"] .ce-seite-dual {
        grid-template-columns: 1fr;
    }
    [data-theme="hochglanz"] .ce-dual-foto,
    [data-theme="homepage"] .ce-dual-foto {
        height: 220px;
    }
    [data-theme="hochglanz"] .ce-dual-text,
    [data-theme="homepage"] .ce-dual-text {
        padding: 2rem;
    }
    .ce-seite-cta { padding: 3rem 2rem; }
    .ce-seite-fullbild .ce-fb-content { margin-top: 280px; padding: 2rem; }
}
