/*
Theme Name: Crimendine
Theme URI: https://crimendine.example
Author: Crimendine
Description: Individuelles, SEO/GEO-optimiertes WordPress-Theme fuer crimendine.de.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: crimendine
*/

:root {
    /* Markenpalette (aus dem Relume-Wireframe crime-n-dine-startseite.html) */
    --ink: #14151c;
    --ink-2: #1c1e29;
    --parchment: #f3ead5;
    --parchment-2: #eaddc0;
    --wine: #7c1f2e;
    --wine-deep: #5a1520;
    --brass: #c6a15b;
    --brass-light: #e3c688;
    --text-dark: #221f1a;
    --text-light: #f2ead7;
    --muted-dark: #6b6153;
    --muted-light: #a89d86;

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Work Sans', system-ui, -apple-system, sans-serif;
    --mono: 'Space Mono', 'Courier New', monospace;
    --maxw: 1180px;

    /* Legacy-Tokens: bestehende generische Seitenstile (Beitraege, Seiten)
       nutzen diese Namen und erben dadurch automatisch die neue Markenpalette. */
    --color-text: var(--text-dark);
    --color-muted: var(--muted-dark);
    --color-surface: var(--parchment-2);
    --color-border: rgba(34, 31, 26, .14);
    --color-accent: var(--wine);
    --color-accent-dark: var(--wine-deep);
    --content-width: var(--maxw);
    --reading-width: 46rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--parchment);
    color: var(--color-text);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
:focus-visible { outline: 2.5px solid var(--brass); outline-offset: 3px; }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
    z-index: 100000; top: 1rem; left: 1rem; width: auto; height: auto;
    padding: .75rem 1rem; margin: 0; color: var(--text-light); background: var(--ink); clip: auto;
}

/* ---------- Eyebrow / Stempel-Label ---------- */
.cd-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
    border: 1.5px solid var(--brass); color: var(--brass);
    padding: 6px 13px; border-radius: 3px; transform: rotate(-1.4deg);
}
.cd-eyebrow--dark { border-color: var(--wine); color: var(--wine); }

/* ---------- Buttons ---------- */
.cd-btn {
    display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem;
    padding: 14px 26px; border-radius: 2px; border: 1px solid transparent;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.cd-btn-primary { background: var(--wine); color: var(--text-light); border-color: var(--wine-deep); box-shadow: 0 6px 18px rgba(124, 31, 46, .35); }
.cd-btn-primary:hover { background: var(--wine-deep); transform: translateY(-2px); }
.cd-btn-brass { background: var(--brass); color: var(--ink); border-color: var(--brass-light); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.cd-btn-brass:hover { background: var(--brass-light); transform: translateY(-2px); }
.cd-btn-link { font-family: var(--mono); font-size: .8rem; letter-spacing: .05em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Header / Navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; background: var(--ink);
    border-bottom: 1px solid rgba(198, 161, 91, .25);
}
.cd-nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }
.site-branding { display: flex; align-items: center; gap: 10px; color: var(--text-light); }
.site-branding img { max-height: 44px; width: auto; }
.site-branding__title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.28rem; }
.site-branding__title a { color: var(--text-light); }
.site-description { display: none; }
.main-navigation { display: flex; align-items: center; gap: 34px; }
.main-navigation ul { display: flex; align-items: center; gap: 34px; padding: 0; margin: 0; list-style: none; }
.main-navigation a { color: var(--muted-light); font-size: .92rem; font-weight: 500; transition: color .15s ease; }
.main-navigation a:hover { color: var(--text-light); }
.cd-nav-actions { display: flex; align-items: center; gap: 22px; }
.cd-header-utility ul { display: flex; gap: 22px; padding: 0; margin: 0; list-style: none; }
.cd-header-utility a { color: var(--muted-light); font-size: .88rem; }
.cd-header-utility a:hover { color: var(--text-light); }
/* Warenkorb im Header */
.cd-cart-link { position: relative; display: flex; align-items: center; color: var(--muted-light); padding: 4px; transition: color .15s ease; }
.cd-cart-link:hover { color: var(--brass-light); }
.cd-cart-link__count {
    position: absolute; top: -4px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px;
    display: flex; align-items: center; justify-content: center;
    background: var(--wine); color: var(--text-light);
    font-family: var(--mono); font-size: .64rem; line-height: 1; border-radius: 9px;
}
.cd-cart-link__count.is-empty { display: none; }

.cd-burger { display: none; background: none; border: none; padding: 8px; }
.cd-burger span { display: block; width: 24px; height: 2px; background: var(--text-light); margin: 5px 0; }
.cd-mobile-panel { display: none; }

@media (max-width: 900px) {
    .main-navigation { display: none; }
    .cd-header-utility { display: none; }
    .cd-burger { display: block; }
    .cd-mobile-panel.is-open {
        display: block; background: var(--ink);
        border-top: 1px solid rgba(198, 161, 91, .2); padding: 10px 28px 22px;
    }
    .cd-mobile-panel ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
    .cd-mobile-panel a { display: block; color: var(--text-light); padding: 12px 0; border-bottom: 1px solid rgba(242, 234, 215, .08); font-size: .98rem; }
}

/* ---------- Zonen ---------- */
.cd-zone-dark { background: var(--ink); color: var(--text-light); }
.cd-zone-light { background: var(--parchment); color: var(--text-dark); }

.cd-board-texture {
    background-image: radial-gradient(circle at 1px 1px, rgba(198, 161, 91, .10) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* ---------- Hero ---------- */
.cd-hero { padding: 90px 0 70px; }
.cd-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.cd-hero h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); line-height: 1.08; margin: 22px 0 22px; }
.cd-hero p.cd-lead { font-size: 1.08rem; color: var(--muted-light); max-width: 46ch; margin-bottom: 34px; }
.cd-hero__ctas { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.cd-hero__ctas .cd-btn-link { color: var(--brass-light); }
.cd-hero__media { max-width: 420px; }
@media (max-width: 900px) {
    .cd-hero__grid { grid-template-columns: 1fr; }
    .cd-hero__media { order: -1; margin-inline: auto; }
}

.cd-download-strip { border-top: 1px solid rgba(198, 161, 91, .22); padding: 40px 0; }
.cd-download-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cd-stamp-icon {
    flex-shrink: 0; width: 60px; height: 60px; border: 2px solid var(--brass); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transform: rotate(-6deg);
}
.cd-download-row h3 { color: var(--text-light); font-size: 1.2rem; margin-bottom: 6px; }
.cd-download-row p { color: var(--muted-light); max-width: 56ch; font-size: .96rem; }

/* ---------- Shop-Archiv ---------- */
.cd-shop-hero { padding: 72px 0 56px; }
.cd-shop-hero h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.1; margin: 20px 0 18px; }
.cd-shop-hero .cd-lead { font-size: 1.05rem; color: var(--muted-light); max-width: 52ch; }

.cd-shop-filters { background: #fff; border: 1px solid rgba(34, 31, 26, .1); padding: 22px 24px; margin-bottom: 34px; }
.cd-shop-filters__legend {
    font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--wine); margin: 0 0 16px;
}
.cd-shop-filters__fields { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 18px; align-items: end; }
.cd-shop-filters .cd-field { margin-bottom: 0; }
.cd-shop-filters__actions { display: flex; align-items: center; gap: 16px; }
.cd-shop-filters__reset { color: var(--muted-dark); }
@media (max-width: 820px) {
    .cd-shop-filters__fields { grid-template-columns: 1fr; }
    .cd-shop-filters__actions { justify-content: space-between; }
}

.cd-shop-count { font-family: var(--mono); font-size: .78rem; color: var(--muted-dark); margin-bottom: 22px; }
.cd-shop-empty { color: var(--muted-dark); }
.cd-shop-empty a { color: var(--wine); border-bottom: 1px solid var(--wine); }

.cd-kit-card__link { display: block; }
.cd-kit-body h3 a { color: inherit; }
.cd-kit-body h3 a:hover { color: var(--wine); }
.cd-kit-foot .cd-kit-buy.added { display: none; }
.cd-kit-foot .added_to_cart { font-size: .8rem; font-weight: 600; color: var(--wine); border-bottom: 1px solid var(--wine); padding-bottom: 2px; margin-left: 10px; }

.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; padding: 0; list-style: none; }
.woocommerce-pagination a, .woocommerce-pagination span {
    display: block; padding: 8px 14px; font-family: var(--mono); font-size: .8rem;
    border: 1px solid rgba(34, 31, 26, .18); background: #fff;
}
.woocommerce-pagination span.current { background: var(--wine); color: var(--text-light); border-color: var(--wine-deep); }

/* ---------- Produktdetailseite ---------- */
.cd-product-hero { padding: 72px 0; }
.cd-product-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .cd-product-hero__grid { grid-template-columns: 1fr; } }
.cd-product-hero__title { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; margin: 20px 0 18px; }
.cd-product-hero .cd-lead { color: var(--muted-light); font-size: 1.05rem; margin-bottom: 24px; }
.cd-badges--light .cd-badge { background: rgba(242, 234, 215, .1); color: var(--text-light); }
.cd-product-hero__media img { width: 100%; height: auto; border: 1px solid rgba(198, 161, 91, .25); }
.cd-product-hero__summary .price { display: block; font-family: var(--mono); font-weight: 700; font-size: 1.6rem; color: var(--brass-light); margin: 26px 0 20px; }
.cd-product-hero__summary .price del { color: var(--muted-light); font-weight: 400; font-size: 1.1rem; margin-right: 10px; }
.cd-product-hero__summary .woocommerce-product-rating { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: .85rem; color: var(--muted-light); }
.cd-product-hero__summary .button,
.cd-product-hero__summary button[type=submit] {
    display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem;
    padding: 15px 30px; border-radius: 2px; border: 1px solid var(--wine-deep);
    background: var(--wine); color: var(--text-light); cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.cd-product-hero__summary .button:hover,
.cd-product-hero__summary button[type=submit]:hover { background: var(--wine-deep); transform: translateY(-2px); }
.cd-product-hero__summary .quantity input {
    width: 74px; padding: 13px 10px; margin-right: 12px;
    background: transparent; color: var(--text-light); border: 1px solid rgba(242, 234, 215, .3);
}
.cd-product-hero__summary form.cart { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.cd-content-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; margin-top: 8px; }
@media (max-width: 820px) { .cd-content-list { grid-template-columns: 1fr; } }
.cd-content-list li { display: flex; align-items: flex-start; gap: 14px; font-size: .96rem; }
.cd-content-list__icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--wine); margin-top: 2px; }

.cd-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; }
@media (max-width: 820px) { .cd-facts { grid-template-columns: 1fr; } }
.cd-fact { background: #fff; border: 1px solid rgba(34, 31, 26, .1); padding: 22px 24px; }
.cd-fact dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 8px; }
.cd-fact dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }

.cd-faq { max-width: 760px; }
.cd-faq__item { border-bottom: 1px solid rgba(34, 31, 26, .14); }
.cd-faq__question { cursor: pointer; padding: 18px 0; list-style: none; display: flex; align-items: center; gap: 12px; }
.cd-faq__question::-webkit-details-marker { display: none; }
.cd-faq__question::before { content: "+"; font-family: var(--mono); color: var(--wine); font-size: 1.1rem; flex-shrink: 0; }
.cd-faq__item[open] .cd-faq__question::before { content: "–"; }
.cd-faq__question h3 { font-size: 1.02rem; margin: 0; font-family: var(--sans); font-weight: 600; }
.cd-faq__answer { padding: 0 0 20px 28px; color: var(--muted-dark); font-size: .95rem; }

.cd-product-reviews .cd-section-head { margin-bottom: 16px; }
.cd-product-reviews .woocommerce-Reviews-title {
    font-family: var(--serif); font-weight: 600; letter-spacing: -.01em;
    font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 16px 0 32px;
}
.cd-product-reviews .comment-form-rating .stars a { color: var(--brass); }
.cd-product-reviews ol.commentlist { list-style: none; padding: 0; }
.cd-product-reviews .comment_container { background: #fff; border: 1px solid rgba(34, 31, 26, .1); padding: 22px 24px; margin-bottom: 18px; }
.cd-product-reviews input[type=text], .cd-product-reviews input[type=email], .cd-product-reviews textarea {
    width: 100%; padding: 11px 12px; border: 1px solid rgba(34, 31, 26, .22); font-family: var(--sans); background: #fff;
}
.cd-product-reviews .submit {
    background: var(--wine); color: var(--text-light); border: 1px solid var(--wine-deep);
    padding: 13px 26px; font-weight: 600; cursor: pointer;
}

/* ---------- Rezeptbereich ---------- */
.cd-shop-filters__fields--two { grid-template-columns: 1fr auto; }
@media (max-width: 820px) { .cd-shop-filters__fields--two { grid-template-columns: 1fr; } }
.cd-recipe-free { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); }

.cd-recipe-hero { padding: 72px 0 40px; }
.cd-recipe-hero h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.1; margin: 20px 0 18px; }
.cd-recipe-hero .cd-lead { font-size: 1.05rem; color: var(--muted-light); max-width: 56ch; margin-bottom: 24px; }
.cd-recipe-hero .cd-badge { text-decoration: none; }
.cd-recipe-hero__media { padding-bottom: 56px; }
.cd-recipe-hero__media img { width: 100%; height: auto; border: 1px solid rgba(198, 161, 91, .25); }

.cd-recipe-content { max-width: 760px; }
.cd-recipe-content > * { margin-block: 1.25rem; }
.cd-recipe-content > :first-child { margin-top: 0; }
.cd-recipe-content h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-top: 2.5rem; }
.cd-recipe-content h3 { font-size: 1.2rem; margin-top: 2rem; }
.cd-recipe-content ul, .cd-recipe-content ol { padding-left: 1.4rem; }
.cd-recipe-content ul li { list-style: disc; margin-bottom: .4rem; }
.cd-recipe-content ol li { list-style: decimal; margin-bottom: .4rem; }
.cd-recipe-content .wp-block-gallery img { border: 1px solid rgba(34, 31, 26, .12); }

.cd-serving { display: flex; align-items: flex-start; gap: 22px; background: #fff; border: 1px solid rgba(34, 31, 26, .1); padding: 30px 32px; max-width: 760px; }
.cd-serving__icon { flex-shrink: 0; color: var(--wine); }
.cd-serving h2 { font-size: 1.3rem; margin-bottom: 10px; }
.cd-serving p { color: var(--muted-dark); font-size: .96rem; }

.cd-newsletter { padding: 72px 0 0; }
.cd-newsletter__inner { max-width: 620px; margin-inline: auto; text-align: center; }
.cd-newsletter h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.cd-newsletter p { color: var(--muted-light); margin-bottom: 26px; }
.cd-newsletter__form input[type=email], .cd-newsletter__form input[type=text] {
    padding: 13px 14px; border: 1px solid rgba(242, 234, 215, .3); background: transparent; color: var(--text-light);
}
.cd-newsletter__form input[type=submit], .cd-newsletter__form button {
    background: var(--brass); color: var(--ink); border: none; padding: 14px 26px; font-weight: 600; cursor: pointer;
}

/* ---------- WP Recipe Maker ----------
   WPRM laeuft mit der Vorlage "blend-in". Deren Name ist irrefuehrend: Sie
   bringt eigene Systemschriften, einen grauen Hintergrund und !important auf
   den Fliesstext mit. Ihr CSS wird ausserdem erst im Footer ausgegeben, steht
   in der Kaskade also nach diesem Stylesheet. Die Ueberschreibungen unten
   greifen deshalb ueber die Template-Klasse und spiegeln WPRMs !important.
   Betroffen ist nur die Darstellung - Rezeptdaten, Umrechnung, Druckansicht
   und die Recipe-Auszeichnung bleiben unveraendert bei WPRM. */
.wprm-recipe-container {
    background: #fff; border: 1px solid rgba(34, 31, 26, .12);
    padding: 32px 34px; margin-block: 2.5rem; position: relative;
}
/* Case-Etikett wie bei den Kit-Karten */
.wprm-recipe-container::before {
    content: "REZEPT"; position: absolute; top: -12px; left: 26px;
    background: var(--wine); color: var(--text-light); font-family: var(--mono);
    font-size: .64rem; letter-spacing: .1em; padding: 5px 10px; transform: rotate(-1.6deg);
}

.wprm-recipe-container .wprm-recipe {
    margin: 0; max-width: none; background-color: transparent;
    font-family: var(--sans); color: var(--text-dark); font-size: 1rem;
}
.wprm-recipe-container .wprm-recipe p,
.wprm-recipe-container .wprm-recipe li {
    font-family: var(--sans) !important;
    font-size: .98rem !important;
    line-height: 1.6 !important;
    color: var(--text-dark);
}
.wprm-recipe-container .wprm-recipe a { color: var(--wine); }

.wprm-recipe-container .wprm-recipe .wprm-recipe-name {
    font-family: var(--serif); font-weight: 600; letter-spacing: -.01em;
    font-size: 1.55rem; line-height: 1.15; color: var(--text-dark); margin: 0;
}
.wprm-recipe-container .wprm-recipe .wprm-recipe-summary { color: var(--muted-dark); }

.wprm-recipe-container .wprm-recipe .wprm-recipe-header,
.wprm-recipe-container .wprm-recipe .wprm-recipe-ingredients-header,
.wprm-recipe-container .wprm-recipe .wprm-recipe-instructions-header,
.wprm-recipe-container .wprm-recipe .wprm-recipe-notes-header,
.wprm-recipe-container .wprm-recipe .wprm-recipe-equipment-header {
    font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--wine); margin-top: 1.8rem; margin-bottom: .8rem;
}
.wprm-recipe-container .wprm-recipe .wprm-recipe-meta-container {
    border-block: 1px solid rgba(34, 31, 26, .12); padding-block: 14px; margin-block: 18px;
}
.wprm-recipe-container .wprm-recipe .wprm-recipe-details-label {
    font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark);
}
.wprm-recipe-container .wprm-recipe .wprm-recipe-details { font-family: var(--mono); font-weight: 700; }

.wprm-recipe-container .wprm-recipe .wprm-recipe-ingredient {
    padding-block: .35rem; border-bottom: 1px dashed rgba(34, 31, 26, .14);
}
.wprm-recipe-container .wprm-recipe .wprm-recipe-ingredient:last-child { border-bottom: 0; }
.wprm-recipe-container .wprm-recipe .wprm-recipe-ingredient-amount,
.wprm-recipe-container .wprm-recipe .wprm-recipe-ingredient-unit { font-family: var(--mono); font-weight: 700; }
.wprm-recipe-container .wprm-recipe .wprm-recipe-instruction { padding-block: .5rem; }

/* Druck-/Sprung-Buttons: WPRM setzt die Farbe inline, daher !important. */
.wprm-recipe-print,
.wprm-recipe-jump,
.wprm-recipe-jump-video,
.wprm-recipe-template-snippet-basic-buttons a {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--wine); color: var(--text-light) !important;
    border: 1px solid var(--wine-deep); padding: 11px 20px; border-radius: 2px;
    font-weight: 600; font-size: .85rem; text-decoration: none;
}
.wprm-recipe-print:hover,
.wprm-recipe-jump:hover,
.wprm-recipe-template-snippet-basic-buttons a:hover { background: var(--wine-deep); }
.wprm-recipe-print svg, .wprm-recipe-jump svg,
.wprm-recipe-template-snippet-basic-buttons a svg { fill: currentColor; }
.wprm-recipe-template-snippet-basic-buttons { text-align: left; }

.wprm-recipe-rating-stars, .wprm-recipe-rating .wprm-rating-star { color: var(--brass); }

@media (max-width: 620px) { .wprm-recipe-container { padding: 26px 20px; } }

/* ---------- Menues ---------- */
.cd-menu-download { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.cd-menu-download__hint { font-family: var(--mono); font-size: .72rem; color: var(--muted-light); }

.cd-courses { counter-reset: none; margin-top: 8px; }
.cd-course {
    display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start;
    background: #fff; border: 1px solid rgba(34, 31, 26, .1); padding: 24px 26px; margin-bottom: 18px;
}
@media (max-width: 820px) { .cd-course { grid-template-columns: auto 1fr; } .cd-course__media { display: none; } }
.cd-course__num {
    font-family: var(--mono); font-size: .78rem; color: var(--brass); border: 1.5px solid var(--brass);
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.cd-course__label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wine); margin-bottom: 6px; }
.cd-course__body h3 { font-size: 1.14rem; margin-bottom: 8px; }
.cd-course__body h3 a { color: inherit; }
.cd-course__body h3 a:hover { color: var(--wine); }
.cd-course__text { color: var(--muted-dark); font-size: .92rem; }
.cd-course__media img { width: 128px; height: 96px; object-fit: cover; display: block; }

.cd-menu-card { background: #fff; border: 1px solid rgba(34, 31, 26, .1); padding: 26px 28px; margin-bottom: 20px; }
.cd-menu-card__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.cd-menu-card__head h3 { font-size: 1.2rem; }
.cd-menu-card__head h3 a { color: inherit; }
.cd-menu-card__head h3 a:hover { color: var(--wine); }
.cd-menu-card__courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 26px; border-top: 1px solid rgba(34, 31, 26, .1); padding-top: 18px; }
.cd-menu-card__label { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 4px; }
.cd-menu-card__courses a { font-size: .95rem; border-bottom: 1px solid rgba(124, 31, 46, .35); }
.cd-menu-card__courses a:hover { color: var(--wine); border-color: var(--wine); }

/* ---------- Sektionen ---------- */
.cd-section { padding: 84px 0; }
.cd-section-head { max-width: 640px; margin-bottom: 48px; }
.cd-section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 16px 0 14px; }
.cd-section-head p { color: var(--muted-dark); font-size: 1rem; }
.cd-section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Kit-Karten ---------- */
.cd-kit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 34px; margin-top: 8px; }
.cd-kit-card {
    background: #fff; position: relative; border: 1px solid rgba(34, 31, 26, .10);
    box-shadow: 0 10px 26px rgba(20, 21, 28, .10); transition: transform .18s ease, box-shadow .18s ease;
    padding-top: 14px;
}
.cd-kit-card:nth-child(odd) { transform: rotate(-.6deg); }
.cd-kit-card:nth-child(even) { transform: rotate(.55deg); }
.cd-kit-card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 16px 34px rgba(20, 21, 28, .16); }
.cd-kit-card::before {
    content: attr(data-case); position: absolute; top: -13px; left: 22px;
    background: var(--wine); color: var(--text-light); font-family: var(--mono); font-size: .66rem;
    letter-spacing: .09em; padding: 5px 10px; transform: rotate(-2deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .28);
}
.cd-kit-photo { position: relative; height: 168px; margin: 0 14px 0; overflow: hidden; background: var(--ink-2); }
.cd-kit-photo img { width: 100%; height: 100%; object-fit: cover; }
.cd-kit-body { padding: 20px 22px 24px; }
.cd-kit-body h3 { font-size: 1.14rem; margin-bottom: 8px; }
.cd-kit-body p.cd-desc { color: var(--muted-dark); font-size: .9rem; margin-bottom: 16px; }
.cd-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cd-badge { font-family: var(--mono); font-size: .68rem; letter-spacing: .03em; color: var(--muted-dark); background: var(--parchment-2); padding: 5px 9px; border-radius: 2px; }
.cd-kit-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(34, 31, 26, .10); padding-top: 16px; }
.cd-price { font-family: var(--mono); font-weight: 700; font-size: 1rem; }
.cd-kit-buy { font-size: .85rem; font-weight: 600; color: var(--wine); border-bottom: 1px solid var(--wine); padding-bottom: 2px; }
.cd-kit-buy:hover { color: var(--wine-deep); border-color: var(--wine-deep); }

/* ---------- So funktioniert's ---------- */
.cd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 8px; }
.cd-step { position: relative; padding: 28px 22px 24px; background: #fff; border: 1px solid rgba(34, 31, 26, .10); }
.cd-step .cd-num {
    font-family: var(--mono); font-size: .78rem; color: var(--brass); border: 1.5px solid var(--brass);
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.cd-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.cd-step p { color: var(--muted-dark); font-size: .9rem; }
.cd-steps-more { margin-top: 30px; }
@media (max-width: 820px) { .cd-steps { grid-template-columns: 1fr; } }

/* ---------- Vorteile ---------- */
.cd-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 8px; }
.cd-benefit__icon { color: var(--wine); margin-bottom: 16px; }
.cd-benefit h3 { font-size: 1.04rem; margin-bottom: 8px; }
.cd-benefit p { color: var(--muted-dark); font-size: .9rem; }
@media (max-width: 820px) { .cd-benefits { grid-template-columns: 1fr; } }

/* ---------- Finder ---------- */
.cd-finder-section { background: var(--parchment-2); }
.cd-finder-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; margin-top: 10px; }
@media (max-width: 820px) { .cd-finder-grid { grid-template-columns: 1fr; } }
.cd-filter-panel { background: #fff; border: 1px solid rgba(34, 31, 26, .1); padding: 28px 26px; }
.cd-field { margin-bottom: 22px; }
.cd-field label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 9px; }
.cd-field select {
    width: 100%; padding: 11px 12px; font-family: var(--sans); font-size: .92rem;
    border: 1px solid rgba(34, 31, 26, .22); background: #fff; color: var(--text-dark);
}
.cd-field input[type=range] { width: 100%; accent-color: var(--wine); }
.cd-range-val { font-family: var(--mono); font-size: .82rem; color: var(--wine); margin-top: 6px; display: inline-block; }
.cd-result-panel { background: #fff; border: 1px solid rgba(34, 31, 26, .1); padding: 30px; min-height: 270px; position: relative; }
.cd-result-panel::before {
    content: "AKTE GEÖFFNET"; position: absolute; top: -13px; left: 26px; background: var(--ink); color: var(--brass-light);
    font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; padding: 5px 10px; transform: rotate(-1.6deg);
}
.cd-finder__title { font-size: 1.22rem; margin: 6px 0 10px; font-family: var(--serif); }
.cd-finder__desc { color: var(--muted-dark); font-size: .92rem; margin-bottom: 18px; }
.cd-finder__empty { color: var(--muted-dark); font-size: .92rem; }

/* ---------- Testimonials ---------- */
.cd-testimonials { background: var(--ink); color: var(--text-light); }
.cd-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
@media (max-width: 900px) { .cd-testi-grid { grid-template-columns: 1fr; } }
.cd-testi-card { background: var(--ink-2); border: 1px solid rgba(198, 161, 91, .18); padding: 26px 24px; }
.cd-stars { color: var(--brass); letter-spacing: 2px; font-size: .95rem; margin-bottom: 14px; }
.cd-testi-quote { font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; margin-bottom: 20px; }
.cd-testi-meta { font-family: var(--mono); font-size: .72rem; color: var(--muted-light); border-top: 1px solid rgba(242, 234, 215, .12); padding-top: 14px; }
.cd-testi-meta .cd-case { display: block; margin-top: 4px; color: var(--brass-light); }

/* ---------- Abschluss-CTA ---------- */
.cd-final-cta { background: var(--wine); color: var(--text-light); padding: 78px 0; text-align: center; }
.cd-final-cta h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.cd-final-cta p { max-width: 56ch; margin: 0 auto 32px; color: rgba(242, 234, 215, .85); }
.cd-final-cta .cd-btn-row { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding: 64px 0 28px; border-top: 1px solid rgba(198, 161, 91, .18); }
.cd-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
@media (max-width: 900px) { .cd-footer-grid { grid-template-columns: repeat(2, 1fr); } }
.cd-footer-brand__title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.28rem; letter-spacing: -.01em; }
.cd-footer-brand__title a { color: var(--text-light); }
.cd-footer-brand__text { font-size: .88rem; margin: 14px 0 6px; max-width: 32ch; }
.cd-footer-brand .cd-domain { font-family: var(--mono); font-size: .78rem; color: var(--brass-light); }
/* Optisch eine Spaltenueberschrift, semantisch bewusst keine (siehe footer.php). */
.cd-footer-col__title { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-light); margin: 0 0 16px; }
.cd-footer-col li { margin-bottom: 10px; }
.cd-footer-col a { font-size: .88rem; color: var(--muted-light); }
.cd-footer-col a:hover { color: var(--text-light); }
.cd-footer-bottom { margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(242, 234, 215, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; }

/* Copyright-Trick: Seitentitel als Teil der Copyright-Zeile */
.cd-page-origin { color: var(--muted-light); }
.cd-page-origin__title { color: var(--brass-light); }

/* ================= Generische Seiteninhalte (Beitraege, Seiten) ================= */
.site-main { padding-block: 3rem; width: min(100% - 2rem, var(--content-width)); margin-inline: auto; }
.content-area { max-width: var(--reading-width); }
.entry { margin-bottom: 3.5rem; }
.entry-title { margin: 0 0 .65rem; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; font-family: var(--serif); }
.entry-title a { color: inherit; text-decoration: none; }
.entry-meta { color: var(--color-muted); font-size: .9rem; }
.entry-content > * { margin-block: 1.25rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { line-height: 1.25; }
.entry-content blockquote { margin-inline: 0; padding: .5rem 1.25rem; border-left: .25rem solid var(--color-accent); }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--color-surface); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .5rem; border: 1px solid var(--color-border); text-align: left; }
.post-thumbnail { display: block; margin: 1.25rem 0; }
.post-thumbnail img { display: block; }
.nav-links { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.page-header { margin-bottom: 3rem; width: min(100% - 2rem, var(--content-width)); margin-inline: auto; }
.page-title { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; font-family: var(--serif); }
.not-found { max-width: var(--reading-width); width: min(100% - 2rem, var(--content-width)); margin-inline: auto; }

@media (max-width: 42rem) {
    .cd-nav-row { height: auto; padding-block: 16px; }
    .site-main { padding-block: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, html { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
