/* ══════════════════════════════════════════════════════════
   Webdesign-Unterseite  ·  druehe.com/webdesign
   Midnight Luxe · vollflächige Sektionen · gescopet unter .druehe-wd
   Platzierung: Divi > Code-Modul > [druehe_webdesign]
   ══════════════════════════════════════════════════════════ */

/* ── Divi-Wrapper neutralisieren (Section/Row/Column/Module) ─────────
   Das Code-Modul steckt in Divi-Containern mit Padding & max-width.
   Wir brechen sie auf, damit die Sektionen full-bleed laufen.
   (Ergänzt den :has()-Reset in functions.php) */
.et_pb_section:has(.druehe-wd),
.et_pb_section:has(.druehe-wd) .et_pb_row,
.et_pb_section:has(.druehe-wd) .et_pb_column,
.et_pb_section:has(.druehe-wd) .et_pb_module {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* ── Tokens & Reset ───────────────────────────────────────────────── */
.druehe-wd {
    /* Tokens aus dem zentralen Design-System (design-system.css) */
    --wd-ground:   var(--ds-bg);
    --wd-surface:  var(--ds-surface);
    --wd-slate:    var(--ds-slate);
    --wd-text:     var(--ds-text);
    --wd-dim:      var(--ds-text-dim);
    --wd-accent:   var(--ds-accent);
    --wd-line:     var(--ds-line);
    --wd-line-2:   var(--ds-line-2);
    --wd-band:     var(--ds-accent);
    --wd-band-ink: var(--ds-accent-ink);
    --wd-max:      var(--ds-content-max);

    --wd-sans:  var(--ds-font-sans);
    --wd-serif: var(--ds-font-serif);
    /* vereinheitlicht auf 2 Schriften: Mono-Labels -> Inter (uppercase, gesperrt) */
    --wd-mono:  var(--ds-font-sans);

    position: relative;
    background: var(--wd-ground);
    color: var(--wd-text);
    font-family: var(--wd-sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow: clip;
}
.druehe-wd *,
.druehe-wd *::before,
.druehe-wd *::after { box-sizing: border-box; }
.druehe-wd p,
.druehe-wd h2,
.druehe-wd h3,
.druehe-wd h4 { margin: 0; padding: 0; }

/* globaler Noise-Overlay (0.05) */
.druehe-wd::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Sektions-Grundgerüst ─────────────────────────────────────────── */
.druehe-wd .wd-sec { position: relative; z-index: 1; width: 100%; }
.druehe-wd .wd-inner { max-width: var(--wd-max); margin: 0 auto; padding: var(--ds-section-y) var(--ds-gutter); }
.druehe-wd .wd-eyebrow {
    font-family: var(--wd-sans); font-size: var(--ds-label); font-weight: var(--ds-w-semibold); letter-spacing: .14em;
    text-transform: uppercase; color: var(--wd-accent); margin: 0 0 var(--ds-space-4);
}

/* Buttons — magnetisch */
.druehe-wd .wd-btn {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--wd-sans); font-size: 15px; font-weight: 600; letter-spacing: .005em;
    color: var(--wd-band-ink); background: var(--wd-accent);
    border: none; border-radius: 999px; padding: 14px 26px; text-decoration: none;
    transition: transform .5s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow .5s;
    will-change: transform;
}
.druehe-wd .wd-btn:hover { transform: scale(1.03) translateY(-1px); box-shadow: 0 12px 30px rgba(201,168,76,.28); }
.druehe-wd .wd-btn.ghost { background: transparent; color: var(--wd-text); border: 1px solid var(--wd-line); }
.druehe-wd .wd-btn.ghost:hover { box-shadow: none; border-color: var(--wd-accent); }

/* ── 1 · HERO ─────────────────────────────────────────────────────── */
.druehe-wd .wd-hero {
    /* Header-Bild analog zur Homepage (bei Bedarf hier tauschen) */
    --wd-hero-img: url("https://images.unsplash.com/photo-1519501025264-65ba15a82390?auto=format&fit=crop&w=1920&q=80");
    min-height: 88vh; display: flex; align-items: flex-end;
    background:
        linear-gradient(to top, var(--wd-ground) 8%, color-mix(in srgb, var(--wd-ground) 70%, transparent) 48%, color-mix(in srgb, var(--wd-ground) 32%, transparent) 100%),
        linear-gradient(90deg, color-mix(in srgb, var(--wd-ground) 80%, transparent), transparent 62%),
        var(--wd-hero-img) center 30% / cover no-repeat;
    border-bottom: 1px solid var(--wd-line);
}
.druehe-wd .wd-hero .wd-inner { padding-bottom: clamp(56px, 8vw, 100px); }
.druehe-wd .wd-hero-headline { text-wrap: balance; }
.druehe-wd .wd-hero-headline .l1 {
    display: block; font-size: var(--ds-h1); font-weight: var(--ds-w-semibold);
    letter-spacing: -.02em; color: var(--wd-text); opacity: 1;
}
.druehe-wd .wd-hero-headline .l2 {
    display: block; font-family: var(--wd-serif); font-style: italic; font-weight: var(--ds-w-regular);
    font-size: var(--ds-display); line-height: .95; letter-spacing: -.015em; margin-top: var(--ds-space-2);
    color: var(--wd-accent);  /* Display in Champagne — konsistent mit Homepage-Hero */
}
.druehe-wd .wd-hero-sub { max-width: var(--ds-measure); font-size: var(--ds-lead); color: var(--wd-text); opacity: .88; margin: var(--ds-space-8) 0; }

/* ── 2 · BAND (Champagne, der eine Rhythmusbruch) ─────────────────── */
.druehe-wd .wd-band { background: var(--wd-band); color: var(--wd-band-ink); }
.druehe-wd .wd-band .wd-inner {
    padding-top: clamp(44px,6vw,72px); padding-bottom: clamp(44px,6vw,72px);
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.druehe-wd .wd-band-statement {
    font-family: var(--wd-serif); font-style: italic; font-size: clamp(23px, 3.2vw, 34px);
    line-height: 1.24; margin: 0; max-width: 24ch; text-wrap: balance;
}
.druehe-wd .wd-band-lbl {
    font-family: var(--wd-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
    color: rgba(23,19,7,.6); margin: 0 0 14px;
}
.druehe-wd .wd-band-names { display: flex; flex-wrap: wrap; gap: 9px; }
.druehe-wd .wd-band-names span {
    font-family: var(--wd-mono); font-size: 11px; letter-spacing: .02em; color: rgba(23,19,7,.82);
    border: 1px solid rgba(23,19,7,.28); border-radius: 7px; padding: 6px 13px;
}

/* Divi setzt für h-Tags eine eigene (dunkle) Farbe → hier Ivory erzwingen.
   Champagne-Serifen (l2, promise-big) sind Spans/Absätze und bleiben unberührt. */
.druehe-wd h1,
.druehe-wd h2,
.druehe-wd h3,
.druehe-wd h4 { color: var(--ds-text) !important; }

/* ── 3 · PROJEKTE ─────────────────────────────────────────────────── */
.druehe-wd .wd-proj-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px;
}
.druehe-wd .wd-proj-head h2 { font-size: var(--ds-h2); font-weight: var(--ds-w-semibold); letter-spacing: -.02em; }
.druehe-wd .wd-proj-head .idx { font-family: var(--wd-mono); font-size: 12px; letter-spacing: .05em; color: var(--wd-dim); }

.druehe-wd .wd-featured { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.druehe-wd .wd-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.druehe-wd .wd-rowb { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }

.druehe-wd .wd-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--wd-surface); border: 1px solid var(--wd-line);
    border-radius: 24px; text-decoration: none; color: inherit;
    transition: transform .5s cubic-bezier(0.25,0.46,0.45,0.94), border-color .5s;
}
.druehe-wd a.wd-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,.4); }
.druehe-wd .wd-shot-wrap { position: relative; overflow: hidden; background: var(--wd-slate); }
.druehe-wd .wd-shot {
    display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center;
    transition: transform .8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.druehe-wd a.wd-card:hover .wd-shot { transform: scale(1.04); }
.druehe-wd .wd-card.lead .wd-shot-wrap { height: 340px; }
.druehe-wd .wd-side .wd-shot-wrap { height: 132px; }
.druehe-wd .wd-rowb .wd-shot-wrap { height: 168px; }

.druehe-wd .wd-card-body { padding: 20px 22px 24px; }
.druehe-wd .wd-side .wd-card-body { padding: 15px 18px 18px; }
.druehe-wd .wd-cat {
    font-family: var(--wd-mono); font-size: 10.5px; letter-spacing: .06em;
    text-transform: uppercase; color: var(--wd-accent);
}
.druehe-wd .wd-card h3 { margin-top: 9px; font-size: var(--ds-h3); font-weight: var(--ds-w-semibold); letter-spacing: -.01em; }
.druehe-wd .wd-card.lead h3 { font-size: var(--ds-h3); }
.druehe-wd .wd-card .wd-desc { margin-top: 11px; font-size: 13.5px; color: var(--wd-dim); line-height: 1.55; }
.druehe-wd .wd-card.lead .wd-desc { font-size: 15px; max-width: 50ch; }
.druehe-wd .wd-side .wd-desc { font-size: 12.5px; }

/* ── 4 · VERSPRECHEN (Slate) ──────────────────────────────────────── */
.druehe-wd .wd-promise { background: var(--wd-slate); border-top: 1px solid var(--wd-line); border-bottom: 1px solid var(--wd-line); }
.druehe-wd .wd-promise .wd-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 52px; align-items: start; }
.druehe-wd .wd-promise-big {
    font-family: var(--wd-serif); font-style: italic; font-size: clamp(26px, 3.8vw, 44px);
    line-height: 1.16; margin: 0; text-wrap: balance;
}
.druehe-wd .wd-pt { padding: 18px 0; border-top: 1px solid var(--wd-line-2); }
.druehe-wd .wd-pt:first-child { border-top: none; padding-top: 0; }
.druehe-wd .wd-pt h4 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 11px; }
.druehe-wd .wd-pt h4 .n { font-family: var(--wd-mono); font-size: 11px; font-weight: 500; color: var(--wd-accent); }
.druehe-wd .wd-pt p { margin: 6px 0 0 28px; font-size: 14px; color: var(--wd-dim); line-height: 1.5; max-width: 40ch; }

/* ── 5 · PROZESS ──────────────────────────────────────────────────── */
.druehe-wd .wd-flow-lead { font-size: 16px; font-weight: 500; color: var(--wd-dim); margin: 0 0 40px; max-width: 56ch; }
.druehe-wd .wd-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 40px; }
.druehe-wd .wd-step { position: relative; padding: 0 22px 4px 0; }
.druehe-wd .wd-step::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 1px; background: var(--wd-line); }
.druehe-wd .wd-step:last-child::before { right: 60%; }
.druehe-wd .wd-node { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--wd-accent); background: var(--wd-ground); position: relative; z-index: 2; }
.druehe-wd .wd-step .s-lbl { font-family: var(--wd-mono); font-size: 10.5px; letter-spacing: .05em; color: var(--wd-accent); margin: 16px 0 7px; }
.druehe-wd .wd-step h4 { font-size: 16px; font-weight: 600; }
.druehe-wd .wd-step p { margin-top: 5px; font-size: 13px; color: var(--wd-dim); line-height: 1.5; }
.druehe-wd .wd-reassure {
    border-left: 2px solid var(--wd-accent); padding: 6px 0 6px 24px;
    font-family: var(--wd-serif); font-style: italic; font-size: clamp(19px, 2.6vw, 26px);
    line-height: 1.32; text-wrap: balance; max-width: 48ch;
}

/* ── 6 · LEISTUNGEN ───────────────────────────────────────────────── */
.druehe-wd .wd-serv-head { font-size: var(--ds-h2); font-weight: var(--ds-w-semibold); letter-spacing: -.02em; margin: 0 0 var(--ds-space-6); }
.druehe-wd .wd-services { display: grid; grid-template-columns: 1fr 1fr; gap: 0 52px; }
.druehe-wd .wd-svc { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--wd-line-2); }
.druehe-wd .wd-svc .m { font-family: var(--wd-mono); font-size: 11px; color: var(--wd-accent); flex: 0 0 auto; }
.druehe-wd .wd-svc .t { font-size: 16px; font-weight: 500; }
.druehe-wd .wd-svc .d { margin-left: auto; font-family: var(--wd-mono); font-size: 12px; letter-spacing: .02em; color: var(--wd-dim); text-align: right; }

/* ── 7 · KONTAKT (Slate) ──────────────────────────────────────────── */
.druehe-wd .wd-cta { background: var(--wd-slate); border-top: 1px solid var(--wd-line); }
.druehe-wd .wd-cta .wd-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: end; }
.druehe-wd .wd-cta-big { font-size: var(--ds-h1); font-weight: var(--ds-w-semibold); letter-spacing: -.02em; line-height: 1.06; margin: 0 0 14px; max-width: 16ch; text-wrap: balance; }
.druehe-wd .wd-cta-lead { color: var(--wd-dim); max-width: 42ch; margin: 0 0 28px; font-size: 16px; }
.druehe-wd .wd-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.druehe-wd .wd-cta-side { font-size: 15px; color: var(--wd-dim); line-height: 1.6; border-top: 1px solid var(--wd-line); padding-top: 20px; }
.druehe-wd .wd-cta-side b { color: var(--wd-text); font-weight: 600; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .druehe-wd .wd-band .wd-inner,
    .druehe-wd .wd-promise .wd-inner,
    .druehe-wd .wd-cta .wd-inner { grid-template-columns: 1fr; gap: 30px; align-items: start; }
    .druehe-wd .wd-featured { grid-template-columns: 1fr; }
    .druehe-wd .wd-card.lead .wd-shot-wrap { height: 220px; }
    .druehe-wd .wd-side .wd-shot-wrap { height: 180px; }
    .druehe-wd .wd-rowb { grid-template-columns: 1fr; }
    .druehe-wd .wd-timeline { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .druehe-wd .wd-step::before,
    .druehe-wd .wd-step:last-child::before { display: none; }
    .druehe-wd .wd-services { grid-template-columns: 1fr; }
    .druehe-wd .wd-svc .d { display: none; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .druehe-wd .wd-btn,
    .druehe-wd .wd-card,
    .druehe-wd .wd-shot { transition: none !important; }
}
