/*
Theme Name: Dravone
Theme URI: https://dravone.de
Author: Dravone — Metin Güngördü
Author URI: https://dravone.de
Description: Block-Theme (Full Site Editing) für dravone.de — der erste Messerblock mit Kindersicherung aus Solingen. Vollständig im WordPress-Site-Editor bearbeitbar: Apple-Style Scroll-Hero als Pattern, dunkle Technik-Sektion, FAQ-Akkordeon, WooCommerce-Unterstützung für Messerblock und Einzelmesser.
Version: 2.6.6
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dravone
Tags: full-site-editing, block-patterns, e-commerce, custom-colors, translation-ready
WC requires at least: 8.0
*/

/* Alles Strukturelle kommt aus theme.json — hier stehen nur die Effekte,
   die Blöcke nicht abbilden können: Textverläufe, der Scroll-Hero, das
   FAQ-Akkordeon-Icon und feine WooCommerce-Anpassungen. */

/* ============ Text-Verläufe (als zusätzliche CSS-Klasse am Block) ===== */
.text-gradient-ink {
	background: linear-gradient(180deg, #14171c, #3a4049);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}
.text-gradient-copper {
	background: linear-gradient(120deg, #c07e42, #ad6f34 60%, #96612c);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}

/* ============ Fixierter Header ============ */
.dv-logo a { text-decoration: none; color: inherit; }
/* der Kaufen-Button darf nie zeichenweise umbrechen */
.dv-nav .wp-block-button__link { white-space: nowrap; }
/* Navigations-Fallback (ohne angelegtes Menü) sauber halten */
.dv-nav .wp-block-navigation { flex-shrink: 1; min-width: 0; }

.dv-nav {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	/* deckend weiß statt 85 % + Blur: über dem schwarzen Startseiten-Hero
	   wirkte die Leiste sonst grau (Nutzer-Feedback) */
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body { padding-top: 0; }
.dv-nav + * { padding-top: 3.5rem; }
.editor-styles-wrapper .dv-nav { position: static; }

/* ============ Scroll-Hero ============ */
.dv-hero { position: relative; background: #fff; height: 375vh; }
/* Die Kamerafahrt sitzt im Messerblock-Hero; volle Breite nötig, weil
   .mb-hero ein zentrierter Flex-Container ist. */
.mb-hero .dv-hero { width: 100%; }
/* Dunkle Variante der Kamerafahrt (aktuell ungenutzt, bleibt verfügbar) */
.dv-hero.is-dark { background: #000; }
.dv-hero.is-dark .dv-hero-hint { color: #8a8a8a; }
.dv-hero.is-dark .dv-hero-hint::after { background: #4a4a4a; }

/* Messerblock-Hero HELL: die Kamerafahrt läuft auf Weiß, Texte entsprechend
   dunkel (sonst weiße Schrift auf weißem Grund). */
.mb-hero.is-light,
.mb-hero.is-light .mb-hero-top,
.mb-hero.is-light .mb-hero-bottom { background: #fff; }
.mb-hero.is-light .mb-hero-h1,
.mb-hero.is-light .mb-hero-h1 em { color: #16191f; }
.mb-hero.is-light .mb-hero-eyebrow { color: #9a6430; }
.mb-hero.is-light .mb-hero-sub { color: #5a626d; }

/* Statischer Hero der Startseite: dunkle Bühne (wie zuvor beim Messerblock),
   damit das freigestellte Produktbild maximal wirkt. Textfarben sind für den
   dunklen Grund angepasst — der Ink-Verlauf wäre auf Schwarz unsichtbar. */
.dv-hero-static {
	background: #000; text-align: center;
	/* oben +4.5rem: die H1 klebte sonst fast an der Navigationsleiste */
	padding: clamp(7.5rem, 8vh + 4.5rem, 10.5rem) 1.5rem clamp(2rem, 4vh, 3.5rem);
}
/* Gesamter Hero-Text rein weiß — überschreibt beide Farbverläufe (Ink und
   Kupfer), die sonst per background-clip:text eingefärbt würden. */
.dv-hero-static .dv-hero-h1 .text-gradient-ink,
.dv-hero-static .dv-hero-h1 .text-gradient-copper {
	background: none;
	-webkit-background-clip: border-box; background-clip: border-box;
	color: #fff; -webkit-text-fill-color: #fff;
}
.dv-hero-static .has-muted-color { color: #fff !important; }
.dv-hero-static .wp-block-button__link { background: #fff; color: #0a0a0a; }
.dv-hero-static .is-style-outline .wp-block-button__link {
	background: transparent; color: #fff; border-color: #fff;
}
/* Produktbild in maximaler Größe — füllt nahezu die volle Bildschirmhöhe */
.dv-hero-static-img {
	display: block; margin: clamp(1.5rem, 3vh, 2.5rem) auto 0;
	width: auto; max-width: 100%; height: auto;
	max-height: min(88vh, 1200px);
}
.dv-hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.dv-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dv-hero-intro {
	position: absolute; left: 0; right: 0; top: 10vh; z-index: 10;
	display: flex; flex-direction: column; align-items: center;
	text-align: center; padding: 0 1.5rem;
}
.dv-hero-h1 {
	font-size: var(--wp--custom--text-hero) !important;
	font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; margin: 0;
	max-width: 100%; overflow-wrap: break-word;
}
/* KEIN nowrap: mit der System-Schrift könnte eine feste Zeile sonst über
   den Rand laufen und abgeschnitten werden. Der <br> hält die zwei Zeilen,
   bei Bedarf umbricht der Text zusätzlich statt zu überlaufen. */
.dv-hero-h1 .line { display: inline; }
.dv-hero-hint {
	position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
	z-index: 10; text-align: center; color: #5a626d;
	font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
}
.dv-hero-hint::after {
	content: ""; display: block; width: 1px; height: 1.5rem; margin: 0.5rem auto 0;
	background: #d4d4d4; animation: dv-hint 1.8s ease-in-out infinite;
}
@keyframes dv-hint { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.dv-caption {
	position: absolute; z-index: 10; opacity: 0; max-width: 24rem;
	left: 1rem; right: 1rem; bottom: 8vh;
	/* Mobil liegt die Caption auf dem Foto — helle Fläche sichert den
	   Kontrast (WCAG 1.4.3); ab 768px übernimmt die Ausweichlogik. */
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 1rem;
	padding: 1rem;
}
@media (min-width: 768px) {
	.dv-caption { left: 7vw; right: auto; top: 50%; bottom: auto; transform: translateY(-50%); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; padding: 0; }
	.dv-caption.right { left: auto; right: 7vw; text-align: right; }
}
/* Im Site-/Seiten-Editor: Hero flach und alles sichtbar, damit sich Texte
   bequem bearbeiten lassen */
.editor-styles-wrapper .dv-hero { height: auto; }
.editor-styles-wrapper .dv-hero-sticky { height: auto; position: static; padding: 2rem 0; }
.editor-styles-wrapper .dv-hero-intro { position: static; }
.editor-styles-wrapper .dv-caption { position: static; opacity: 1; transform: none; margin: 1.5rem auto; border: 1px dashed #d4d4d4; border-radius: 1rem; padding: 1rem; }
.editor-styles-wrapper .dv-hero-canvas,
.editor-styles-wrapper .dv-hero-hint { display: none; }

.hero-rise { opacity: 0; animation: hero-rise 1s var(--wp--custom--ease-out-expo) forwards; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
/* Hero-Bild: sanftes Heranzoomen beim Öffnen der Startseite. Bewusst NUR
   transform (kein Opacity-Fade) — das Bild ist das LCP-Element und muss
   sofort in voller Deckkraft painten. */
@keyframes hero-zoom { from { transform: scale(0.94); } to { transform: scale(1); } }
/* 4.5s + sanfte Quad-Kurve: Expo legte fast die ganze Bewegung in die
   erste halbe Sekunde — der Zoom wirkte abrupt beendet. */
.dv-hero-static-img { animation: hero-zoom 4.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.editor-styles-wrapper .hero-rise { opacity: 1; animation: none; }
.editor-styles-wrapper .dv-hero-static-img { animation: none; }
@media (prefers-reduced-motion: reduce) {
	.hero-rise { animation: none; opacity: 1; }
	.dv-hero-static-img { animation: none; }
	.dv-hero-hint::after { animation: none; }
}

/* ============ Kicker / Eyebrow ============ */
.dv-eyebrow {
	font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.32em;
	text-transform: uppercase;
}

/* ============ Karten ============ */
.dv-card {
	border: 1px solid rgba(229, 229, 229, 0.7);
	border-radius: 1.5rem;
	transition: box-shadow 0.5s;
}
.dv-card:hover { box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.15); }
.dv-card-dark { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 1.5rem; }

/* ============ FAQ (core/details) ============ */
.dv-faq { border: 1px solid rgba(229,229,229,0.7); border-radius: 1.5rem; overflow: hidden; background: #fff; }
.dv-faq .wp-block-details { border-bottom: 1px solid rgba(229,229,229,0.7); padding: 0; margin: 0; }
.dv-faq .wp-block-details:last-child { border-bottom: 0; }
.dv-faq summary {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	cursor: pointer; list-style: none; padding: 1.25rem 1.5rem;
	font-weight: 600; letter-spacing: -0.01em;
}
.dv-faq summary::-webkit-details-marker { display: none; }
.dv-faq summary::after {
	content: "+"; font-size: 1.25rem; font-weight: 300;
	color: #9a6430; transition: transform 0.3s;
}
.dv-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.dv-faq summary:hover { background: #fafafa; }
.dv-faq .wp-block-details > :not(summary) { padding: 0 1.5rem; color: #3a4049; font-size: 0.9rem; }
.dv-faq .wp-block-details > :last-child { padding-bottom: 1.5rem; }

/* ============ Footer ============ */
/* Links im dunklen Footer: hell statt der globalen Ink-Linkfarbe,
   Listen ohne Aufzählungspunkte */
.dv-footer a { color: #d4d4d4; text-decoration: none; transition: color 0.3s; }
.dv-footer a:hover { color: #ffffff; }
.dv-footer ul { list-style: none; padding-left: 0; margin-left: 0; }
.dv-footer li { padding: 0.25rem 0; }

/* ============ WooCommerce ============ */
.woocommerce ul.products li.product {
	background: #fff; border: 1px solid rgba(229,229,229,0.7);
	border-radius: 1.5rem; padding: 1.5rem; transition: box-shadow 0.5s;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 20px 50px -20px rgba(0,0,0,0.15); }
.woocommerce .button, .woocommerce a.button, .woocommerce button.button.alt,
.wc-block-components-button {
	background: #0a0a0a !important; color: #fff !important; border-radius: 9999px !important;
}
.woocommerce .button:hover, .woocommerce a.button:hover { background: #6b4a32 !important; }
.woocommerce .onsale { background: #c98a4a; }

/* ============ Kleinigkeiten ============ */
.dv-trust-list { list-style: none; padding: 1.5rem 0 0; margin: 2rem 0 0; border-top: 1px solid rgba(0,0,0,0.1); }
.dv-trust-list li { font-size: 0.85rem; color: #5a626d; padding: 0.3rem 0; }

/* ==========================================================================
   1:1-PORTIERUNG DES LOKALEN DESIGNS — Geist-Schrift + Original-CSS
   ========================================================================== */

/* Geist selbst gehostet (variable Schrift, alle Schnitte 100–900 in einer
   Datei) — KEIN Google-Fonts-CDN mehr: kein DSGVO-IP-Transfer an Google und
   keine render-blockierende Drittanbieter-Anfrage. */
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/geist-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/geist-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Geist als Hauptschrift (wie im Original) */
body, .wp-site-blocks, .tech-zone, .mb-page,
h1, h2, h3, h4, p, a, li, button, input, textarea, select {
	font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Sichtbarkeit garantieren, falls das Reveal-JS (noch) nicht lief:
   Basiszustände der Original-Animationen auf sichtbar setzen. */
.no-js .tech-zone .reveal,
.no-js .mb-ch-tag, .no-js .mb-ch-h, .no-js .mb-ch-p,
.no-js .mb-feature-img img, .no-js .mb-is-item, .no-js .mb-is-sep { opacity: 1 !important; transform: none !important; }

/* ===== tech-zone.css (1:1) ===== */
/* Technology zone — ported 1:1 from the dravone.de homepage */

.tech-zone {
  --accent: #c98a4a;
  background: #000;
  color: #e0d8cf;
}

.tech-zone .page-hero {
  padding: clamp(120px, 18vw, 200px) clamp(24px, 6vw, 80px)
    clamp(60px, 8vw, 100px);
  background: #070809;
  text-align: center;
  color: #fff;
}
.tech-zone .page-hero .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}
.tech-zone .page-hero h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 780px;
  margin: 0 auto;
}
.tech-zone .page-hero .sub {
  margin-top: 22px;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.tech-section {
  padding: clamp(60px, 10vw, 120px) clamp(24px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}
.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.tech-split.flip {
  direction: rtl;
}
.tech-split.flip > * {
  direction: ltr;
}
.tech-split img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.tech-text .label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.tech-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: #f0e8d8;
}
.tech-text p {
  color: rgba(224, 216, 207, 0.8);
  line-height: 1.7;
  font-size: 1rem;
  max-width: 45ch;
}
.tech-text ul {
  margin-top: 18px;
  list-style: none;
  padding: 0;
}
.tech-text ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(220, 212, 202, 0.75);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tech-text ul li::before {
  content: "•";
  color: var(--accent);
  font-weight: 900;
  font-size: 1.2rem;
}

.tech-zone .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}
.tech-zone .feature-card {
  background: #111315;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.tech-zone .feature-card .icon {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 9px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.tech-zone .feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #e8dfd4;
}
.tech-zone .feature-card p {
  font-size: 0.88rem;
  color: rgba(200, 192, 182, 0.75);
  line-height: 1.6;
}

.tech-dark {
  background: #070809;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 80px);
  text-align: center;
  color: #fff;
}
.tech-dark h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.tech-dark p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 55ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* light product-photo rows */
.tech-photos-light {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.tech-photos-row {
  padding: clamp(60px, 8vw, 100px) 0;
}
.tech-photos-light .tech-section {
  color: #16191f;
}
.tech-photos-light .tech-text .label {
  /* dunklerer Kupferton auf hellem Grund: 4.95:1 → WCAG AA (das helle
     --accent #c98a4a erreichte nur 2.91:1). Auf dunklem Grund bleibt --accent. */
  color: #9a6430;
}
.tech-photos-light .tech-text h2 {
  color: #16191f;
  opacity: 1;
  transform: none;
}
.tech-photos-light .tech-text p,
.tech-photos-light .tech-text ul li {
  color: rgba(22, 25, 31, 0.65);
}
.tech-photos-light .tech-text ul li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.tech-light-img {
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
  background: transparent;
  -webkit-mask-image: radial-gradient(
    ellipse 96% 96% at 52% 50%,
    black 58%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 96% 96% at 52% 50%,
    black 58%,
    transparent 100%
  );
}

/* first photo row: image fills the whole panel */
.tech-photos-row:first-child {
  padding: 0 !important;
}
.tech-photos-row:first-child .tech-section {
  padding: 0 !important;
  max-width: 100% !important;
}
.tech-photos-row:first-child .tech-split {
  align-items: stretch !important;
  gap: 0 !important;
  min-height: clamp(500px, 60vh, 800px);
}
.tech-photos-row:first-child .tech-split .tech-light-img {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(500px, 60vh, 800px) !important;
  object-fit: contain !important;
  /* pin the product to the section's bottom edge — no gap below */
  object-position: center bottom !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
.tech-photos-row:first-child .tech-text {
  padding: clamp(40px, 6vw, 90px) clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* enlarged product shot: all extra width bleeds LEFT so the copy on the
   right keeps its full column */
@media (min-width: 721px) {
  .tech-photos-row:first-child .tech-split .tech-light-img {
    width: 145% !important;
    max-width: none;
    margin-left: -45%;
  }
}

/* scroll reveal */
.tech-zone .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.tech-zone .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .tech-split {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .tech-split.flip {
    direction: ltr;
  }
  .tech-split .tech-light-img {
    order: -1;
    width: 100%;
  }
  .tech-zone .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .tech-zone .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-zone .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== messerblock.css (1:1) ===== */
/* Messerblock product page — ported 1:1 from dravone.de/en/messerblock */

.mb-page {
  --accent: #c98a4a;
  /* secondary text on the dark surfaces: 0.55 alpha keeps 4.5:1 (WCAG AA)
     on both #000 and #16191f — 0.45 was 4.4:1 and failed */
  --mb-text-muted: rgba(255, 255, 255, 0.55);
  background: #070809;
  color: #eef2f7;
  /* clip statt hidden: `overflow-x: hidden` macht das Element laut Spec zu
     einem Scroll-Container, an dem die `position: sticky` der eingebetteten
     Kamerafahrt kleben bleibt — sie scrollte dadurch aus dem Bild. `clip`
     beschneidet identisch, ohne Scroll-Container zu erzeugen. */
  overflow-x: clip;
}

@keyframes appleReveal {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroPop {
  to {
    transform: scale(1);
  }
}
@keyframes statReveal {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Hero ---------- */
.mb-hero {
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}
.mb-hero-top {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(100px, 14vw, 160px) clamp(20px, 6vw, 80px)
    clamp(28px, 4vw, 48px);
  width: 100%;
  background: #000;
}
.mb-hero-h1 {
  font-size: clamp(1.8rem, 4.2vw, 4rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: #fff;
  margin-bottom: 28px;
  opacity: 0;
  animation: appleReveal 0.9s ease-out 0.3s forwards;
}
.mb-hero-h1 em {
  font-style: normal;
  color: #fff;
  display: inline-block;
  opacity: 0;
  animation: appleReveal 0.9s ease-out 0.5s forwards;
}
.mb-hero-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.mb-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 110vh;
  object-fit: contain;
  object-position: center center;
  /* Das Bild ist das LCP-Element: sofort in Endopazität sichtbar (kein
     opacity-Fade, kein Delay). Nur der dezente Scale wird animiert. */
  opacity: 0.92;
  transform: scale(1.04);
  animation: heroPop 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mb-hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    transparent 25%,
    transparent 75%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.mb-hero-bottom {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 6vw, 80px)
    clamp(48px, 7vh, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: #000;
}
.mb-hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--mb-text-muted);
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.8s forwards;
}
.mb-hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--mb-text-muted);
  max-width: 48ch;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.7s ease 1.3s forwards;
}

/* ---------- Chapters ---------- */
.mb-chapters {
  background: #000;
}
.mb-chapter {
  padding: clamp(80px, 14vh, 140px) clamp(24px, 8vw, 120px);
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.mb-chapter:first-child {
  border-top: none;
}
.mb-ch-left {
  padding-top: 8px;
}
.mb-ch-tag {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.mb-ch-num {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  transition: color 0.7s ease 0.1s;
}
.mb-ch-num::before {
  content: attr(data-num);
}
.mb-ch-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mb-ch-h {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease 0.1s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.mb-ch-p {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--mb-text-muted);
  line-height: 1.8;
  max-width: 52ch;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease 0.25s,
    transform 0.7s ease 0.25s;
}
.mb-chapter.in .mb-ch-tag,
.mb-chapter.in .mb-ch-h,
.mb-chapter.in .mb-ch-p {
  opacity: 1;
  transform: none;
}
.mb-chapter.in .mb-ch-num {
  color: rgba(255, 255, 255, 0.1);
}

/* ---------- Feature images ---------- */
.mb-feature-img {
  position: relative;
  width: 100%;
  height: clamp(55vh, 80vw, 90vh);
  overflow: hidden;
  background: #000;
}
.mb-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.4s ease,
    transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}
.mb-feature-img.in img {
  opacity: 1;
  transform: scale(1);
}
.mb-fi-caption {
  position: absolute;
  bottom: clamp(28px, 5vw, 56px);
  left: clamp(24px, 6vw, 80px);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s ease 0.4s,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.mb-feature-img.in .mb-fi-caption {
  opacity: 1;
  transform: none;
}
.mb-fi-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  /* wie .mb-fi-desc: lesbar auch über hellen Bildpartien */
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85);
}
.mb-fi-desc {
  font-size: clamp(1.15rem, 2.2vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 22ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

/* ---------- Info strip ---------- */
.mb-infostrip {
  background: #16191f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(18px, 3vh, 28px) clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mb-is-items {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
}
.mb-is-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mb-is-num {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.mb-is-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mb-text-muted);
  font-weight: 500;
}
.mb-is-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 1.4rem;
  font-weight: 300;
  user-select: none;
  align-self: center;
}
.mb-is-item,
.mb-is-sep {
  opacity: 0;
  transform: translateY(18px);
}
.mb-infostrip.in .mb-is-items > :nth-child(1) {
  animation: statReveal 0.55s ease-out 0.04s forwards;
}
.mb-infostrip.in .mb-is-items > :nth-child(2) {
  animation: statReveal 0.4s ease-out 0.13s forwards;
}
.mb-infostrip.in .mb-is-items > :nth-child(3) {
  animation: statReveal 0.55s ease-out 0.21s forwards;
}
.mb-infostrip.in .mb-is-items > :nth-child(4) {
  animation: statReveal 0.4s ease-out 0.29s forwards;
}
.mb-infostrip.in .mb-is-items > :nth-child(5) {
  animation: statReveal 0.55s ease-out 0.37s forwards;
}
.mb-infostrip.in .mb-is-items > :nth-child(6) {
  animation: statReveal 0.4s ease-out 0.45s forwards;
}
.mb-infostrip.in .mb-is-items > :nth-child(7) {
  animation: statReveal 0.55s ease-out 0.53s forwards;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .mb-chapter {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mb-ch-num {
    font-size: 3rem;
  }
  .mb-infostrip {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .mb-is-sep {
    display: none;
  }
  .mb-is-items {
    gap: 20px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mb-hero-h1,
  .mb-hero-h1 em,
  .mb-hero-img,
  .mb-hero-eyebrow,
  .mb-hero-sub,
  .mb-ch-tag,
  .mb-ch-h,
  .mb-ch-p,
  .mb-feature-img img,
  .mb-fi-caption,
  .mb-is-item,
  .mb-is-sep {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Foto-Sektionen: helle Hintergründe (im Original per Inline-Style gesetzt) */
.tech-photos-row:first-child {
	background:
		radial-gradient(120% 90% at 78% 28%, #f4efe9 0%, transparent 60%),
		radial-gradient(90% 80% at 10% 96%, #efe6dd 0%, transparent 60%),
		linear-gradient(160deg, #ffffff, #f7f5f2 60%, #f2efea);
}
.tech-photos-row + .tech-photos-row { background: #ffffff; }

/* ==== FIX v2.3.3: Tech-Bilder proportional (weiße Lücken vermeiden) ==== */
/* Alle Tech-Bilder aus dem height-Attribut lösen und proportional skalieren. */
.tech-split img { height: auto; }
/* Zweite Foto-Reihe (hohes Hochformat, img-543eebf0ef): exakt wie im lokalen
   Design — Breite = Spaltenbreite, Höhe proportional. width:100% bindet das
   Bild robust an die Grid-Spalte und verhindert das Aufblähen auf die native
   Bildhöhe (3384px) im WordPress-Kontext, OHNE die Höhe künstlich zu kappen.
   Lokal misst dieses Bild ~481×814; mit dieser Regel misst es das Theme ~483×817. */
.tech-photos-row:not(:first-child) .tech-light-img {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: none !important;
}

/* ==== Kontaktformular ==== */
.dv-kontaktform label { display:block; font-size:.8rem; font-weight:600; color:#16191f; margin:1.1rem 0 .35rem; }
.dv-kontaktform .dv-form-row { display:flex; gap:1rem; }
.dv-kontaktform .dv-form-row label { flex:1; }
.dv-kontaktform input, .dv-kontaktform textarea, .dv-kontaktform select {
	width:100%; padding:.7rem .9rem; font-size:.95rem; font-family:inherit;
	border:1px solid #d4d4d4; border-radius:.75rem; background:#fff; margin-top:.35rem;
}
.dv-kontaktform input:focus, .dv-kontaktform textarea:focus, .dv-kontaktform select:focus {
	outline:none; border-color:#16191f; box-shadow:0 0 0 2px rgba(22,25,31,.15);
}
.dv-kontaktform .dv-check { display:flex; gap:.6rem; align-items:flex-start; font-weight:400; font-size:.8rem; color:#5a626d; margin-top:1.25rem; }
.dv-kontaktform .dv-check input { width:auto; margin-top:.15rem; }
.dv-kontaktform button {
	margin-top:1.5rem; border:0; cursor:pointer; background:#0a0a0a; color:#fff;
	font-size:.875rem; font-weight:500; padding:.8rem 1.9rem; border-radius:9999px;
}
.dv-kontaktform button:hover { background:#6b4a32; }
.dv-form-hint { font-size:.72rem; color:#8a919b; margin-top:.9rem; }

/* ==== FIX v2.2.2: weiße Bänder zwischen Sektionen entfernen ====
   WordPress fügt im flow-Layout 24px Abstand zwischen Blöcken ein — auf
   weißem Body erscheinen sie als weiße Streifen. Sektionen sollen randlos
   aneinanderstoßen (Header/Main/Footer und alle Sektionen im Main). */
.wp-site-blocks > *,
main.wp-block-group > *,
main.is-layout-flow > *,
main.wp-block-group > .tech-zone,
main > section, main > div {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* ==== Kontaktformular: Erfolgs-/Fehlermeldung ==== */
.dv-form-success {
	display: flex; gap: 1rem; align-items: center;
	background: #e8f5ec; border: 1.5px solid #86c99e; color: #14532d;
	border-radius: 1rem; padding: 1.5rem 1.75rem; font-size: 1.05rem; line-height: 1.5;
	box-shadow: 0 14px 40px -16px rgba(20, 83, 45, 0.35);
	scroll-margin-top: 6rem;
}
.dv-form-success-icon {
	flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 999px;
	background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center;
	font-size: 1.5rem; font-weight: 700; line-height: 1;
}
.dv-form-error {
	background: #fdecec; border: 1.5px solid #f0a9a9; color: #7f1d1d;
	border-radius: 1rem; padding: 1.1rem 1.4rem; font-size: 0.95rem; margin-bottom: 1.25rem; line-height: 1.5;
}
.dv-form-error a { color: #7f1d1d; font-weight: 600; }
/* Honeypot-Feld unsichtbar */
.dv-kontaktform .dv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ==== FIX v2.3.1: Formularfelder box-sizing (Vorname/Nachname überlappten) ==== */
.dv-kontaktform input, .dv-kontaktform textarea, .dv-kontaktform select { box-sizing: border-box; }
.dv-kontaktform .dv-form-row { gap: 1.25rem; flex-wrap: wrap; }
.dv-kontaktform .dv-form-row label { flex: 1 1 12rem; min-width: 0; }


/* v2.6.0: FAQ-Fragen sind als h2 anspringbar (Screenreader-Kurznavigation),
   sehen aber exakt aus wie zuvor der summary-Text */
.wp-block-details .dv-faq-frage {
	display: inline;
	font: inherit;
	margin: 0;
	color: inherit;
	letter-spacing: inherit;
}

/* v2.6.0: sichtbarer Tastatur-Fokus in der Navigation */
.wp-block-navigation a:focus-visible {
	outline: 2px solid #0a0a0a;
	outline-offset: 2px;
	border-radius: 2px;
}

/* v2.6.6: Caption-Überschriften deckend fast-schwarz. Ohne eigene Farbe
   erbten sie das helle #eef2f7 der dunklen Seiten-Hülle und waren auf dem
   weißen Hero unlesbar. */
.dv-caption h2 {
	color: #0a0a0a;
}
