/* ==========================================================================
   ch!li cooperation — Redesign im Apple-Stil
   Farben: Apple-Palette (Schwarz/Weiß/Blau), Orange nur als Logo-Akzent
   ========================================================================== */

:root {
  --bg: #f5f5f7;
  --bg-elev: #ffffff;
  --bg-soft: #fafafa;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --accent: #0b0a3f;
  --accent-hover: #1c1a5c;
  --accent-soft: rgba(11, 10, 63, 0.09);
  --orange: #f2930d;
  --orange-deep: #e4610f;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 0, 0, 0.08);
  --grad-from: #1d1d1f;
  --grad-to: #86868b;
  --blob-a: #d2d2d7;
  --blob-b: #e8e8ed;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
  --card-radius: 28px;
  --nav-h: 56px;
  --font-head: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #000000;
  --bg-elev: #161617;
  --bg-soft: #0b0b0c;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --accent: #9aa4ec;
  --accent-hover: #b2baf1;
  --accent-soft: rgba(154, 164, 236, 0.16);
  --glass: rgba(22, 22, 23, 0.62);
  --glass-strong: rgba(22, 22, 23, 0.85);
  --border: rgba(255, 255, 255, 0.12);
  --grad-from: #f5f5f7;
  --grad-to: #86868b;
  --blob-a: #3a3a3c;
  --blob-b: #48484a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg) !important; }

body {
  font-family: var(--font-body) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* Überschriften-System (übernommen aus chili-neu): Display-Font Outft,
   leichtes Grundgewicht, hervorgehobene Wörter in 700 */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h1 strong, h2 strong, h3 strong, h4 strong,
h1 b, h2 b, h3 b, h4 b,
h1 .grad, h1 .grad-color, h1 .grad-blue, h1 .grad-orange, h1 .grad-green,
h2 .grad, h2 .grad-color, h2 .grad-blue, h2 .grad-orange, h2 .grad-green {
  font-weight: 700;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }

/* ==================== Navigation (Liquid Glass) ==================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: var(--glass);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, height 0.3s ease;
}
/* Minimal schrumpfen beim Runterscrollen */
.nav.scrolled { height: 48px; }
.nav.scrolled .logo { font-size: 17.5px; }
.nav.scrolled .logo img { width: 22px; height: 22px; }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.logo b { font-weight: 700; }
.logo .thin { font-weight: 300; }
.logo { transition: font-size 0.3s ease; }
.logo img { width: 26px; height: 26px; flex-shrink: 0; border-radius: 7px; transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease; }
.logo:hover img { transform: scale(1.14) rotate(-4deg); }

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  opacity: 0.82;
  font-size: 13.5px;
  transition: opacity 0.2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--accent); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  color: var(--text);
  opacity: 0.82;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
.nav-dropdown-trigger:hover, .nav-dropdown-trigger.active { opacity: 1; color: var(--accent); }
/* Ohne dieses explizite background hier würde das aktive WordPress-Theme
   (Hello Elementor) seinen eigenen globalen Hover-/Fokus-Stil für <button>
   (ein rosarotes rgb(204,51,102)) durchsetzen – gleicher Fix wie bei
   .theme-toggle/.chip/.burger etc., siehe deren Kommentare. */
.nav-dropdown-trigger:hover, .nav-dropdown-trigger:focus { background: none; }
.nav-dropdown-caret { font-size: 10px; transition: transform 0.2s ease; }
.nav-dropdown-menu.open ~ .nav-dropdown-trigger .nav-dropdown-caret,
.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-caret,
.nav-dropdown:hover .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 8px;
  padding-top: 8px;
  transform: translate(-50%, -8px);
  min-width: 170px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}
.nav-dropdown-menu-inner {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-menu.open,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown-menu a {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--accent-soft); }

.nav-tools { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 3px;
}
.lang-switch button {
  border: none;
  background: transparent;
  font-size: 15px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 99px;
  cursor: pointer;
  opacity: 0.45;
  transition: all 0.25s;
}
.lang-switch button.active {
  opacity: 1;
  background: var(--bg-elev);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.lang-switch button:hover { opacity: 1; }

.nav-talk {
  display: inline-block;
  background: linear-gradient(120deg, #ffb800, #ff5500);
  color: #fff;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s, filter 0.2s;
  box-shadow: 0 6px 16px rgba(255, 90, 0, 0.28);
}
.nav-talk:hover { transform: scale(1.05); filter: brightness(1.06); }

@media (max-width: 520px) {
  .nav-talk { padding: 7px 13px; font-size: 13px; }
}
@media (max-width: 920px) {
  .nav-talk { display: none !important; }
}

.theme-toggle {
  border: none;
  background: var(--accent-soft);
  color: var(--text);
  width: 32px !important; height: 32px !important;
  border-radius: 99px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
  display: grid !important;
  place-items: center;
  transition: transform 0.3s;
}
/* Ohne dieses explizite background hier würde das aktive WordPress-Theme
   (Hello Elementor) seinen eigenen globalen Hover-/Fokus-Stil für <button>
   (ein rosarotes rgb(204,51,102)) durchsetzen – höhere CSS-Spezifität, weil
   unsere Basis-Regel für .theme-toggle selbst kein :hover kennt. */
.theme-toggle:hover, .theme-toggle:focus {
  background: var(--accent-soft);
  transform: rotate(20deg) scale(1.08);
}

.cart-wrap { position: relative; }
.cart-toggle:hover { transform: scale(1.08); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: #d6432c; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
  display: none; align-items: center; justify-content: center;
}
.cart-panel {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 300px; max-width: 86vw;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow);
  padding: 16px; z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.cart-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-empty { color: var(--text-2); font-size: 14px; padding: 6px 0; }
.cart-line { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.cart-line:last-of-type { border-bottom: none; }
.cart-line-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-price { color: var(--text-2); white-space: nowrap; }
.cart-line-remove { background: none; border: none; cursor: pointer; font-size: 17px; line-height: 1; color: var(--text-2); padding: 0 2px; flex-shrink: 0; }
.cart-line-remove:hover { color: #d6432c; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; padding-top: 12px; margin-top: 4px; border-top: 2px solid var(--border); }
.cart-checkout { display: block; text-align: center; width: 100%; margin-top: 14px; }
.cart-configurator-link { display: block; text-align: center; width: 100%; margin-top: 10px; }

.burger {
  display: none;
  border: none; background: none;
  color: var(--text);
  font-size: 22px;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
}
.burger:hover, .burger:focus { background: none; }

/* ==================== Buttons ==================== */

.btn {
  display: inline-block !important;
  padding: 12px 26px !important;
  border-radius: 99px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  box-shadow: none !important;
}
.btn-primary {
  background: var(--accent) !important;
  color: #fff !important;
}
.btn-primary:hover { background: var(--accent-hover) !important; transform: scale(1.03); }
.btn-ghost {
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
}
.btn-ghost:hover { background: var(--accent-soft) !important; }
.btn-lg { padding: 15px 34px !important; font-size: 18px !important; }
.btn-dark {
  background: var(--text) !important;
  color: var(--bg) !important;
}
.btn-dark:hover { transform: scale(1.03); opacity: 0.88; }

/* ==================== Hero ==================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 950px;
}

/* Zweispaltiger, linksbündiger Hero mit Bild + XXL-Chili */
.hero--split {
  text-align: left;
  align-items: stretch;
  min-height: auto;
  padding: 150px 24px 90px;
}
.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero--split .hero-text { max-width: 620px; }
.hero--split h1 { font-size: clamp(40px, 5.6vw, 74px); max-width: none; }
.hero--split .sub { margin-left: 0; max-width: 540px; }
.hero--split .hero-cta { justify-content: flex-start; }

/* Startseite: der Hero-Block war zu hoch und zu leer für den kurzen Claim –
   weniger Polster oben/unten, dafür eine breitere Textspalte, damit die
   Headline mehr Platz bekommt statt viel Leerraum drumherum. */
.hero--home { padding-top: 100px; padding-bottom: 60px; }
.hero--home .hero-grid { max-width: 1320px; grid-template-columns: 1.2fr 0.8fr; }
.hero--home .hero-text { max-width: 720px; }
@media (max-width: 900px) {
  .hero--home { padding-top: 120px; padding-bottom: 30px; }
}

.hero-visual { position: relative; }
.hero-shot {
  position: relative;
  z-index: 1;
  transform: perspective(1400px) rotateY(-9deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.hero-shot img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 26px 44px rgba(11, 10, 63, 0.22));
}
.hero-visual:hover .hero-shot { transform: perspective(1400px) rotateY(0) rotateX(0); }

/* Hero-Bild unten bündig auf der Kante, ohne Neigung/Animation */
.hero--split:has(.hero-visual--flush) { padding-bottom: 0; }
.hero--split:has(.hero-visual--flush) .hero-text { padding-bottom: 64px; }
.hero--split .hero-visual--flush { align-self: end; }
.hero-visual--flush .hero-shot { transform: none !important; transition: none; }
.hero-visual--flush .hero-shot img {
  filter: none; display: block;
  width: 118%; max-width: none;
  margin-left: -9%;
}
/* Beratung: Bild ~12 % kleiner, damit der Hero nicht zu hoch wird */
body.theme-blue .hero-visual--flush .hero-shot img { width: 104%; margin-left: -2%; }
@media (max-width: 900px) {
  .hero--split:has(.hero-visual--flush) { padding-bottom: 0; }
  .hero--split:has(.hero-visual--flush) .hero-text { padding-bottom: 20px; }
  .hero--split .hero-visual--flush { margin: 8px auto 0; }
  .hero-visual--flush .hero-shot img { width: 100%; margin-left: 0; }
}

.hero-chili {
  position: absolute;
  z-index: 2;
  width: clamp(180px, 22vw, 300px);
  top: -96px;
  right: -54px;
  pointer-events: none;
  filter: drop-shadow(0 22px 34px rgba(226, 74, 15, 0.32));
  transform-origin: 70% 30%;
  animation: heroChili 7s ease-in-out infinite;
}
@keyframes heroChili {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-22px) rotate(7deg); }
}

@media (max-width: 900px) {
  .hero--split { text-align: center; padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero--split .hero-text { max-width: 620px; margin: 0 auto; }
  .hero--split .sub { margin-left: auto; margin-right: auto; }
  .hero--split .hero-cta { justify-content: center; }
  .hero-visual { max-width: 460px; margin: 8px auto 0; order: 2; }
  .hero-shot { transform: none; }
  .hero-chili { top: -60px; right: 0; width: clamp(130px, 32vw, 190px); }
}

.hero h1 .grad {
  background: linear-gradient(180deg, var(--grad-from) 30%, var(--grad-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Farbige Akzent-Verläufe für Schlüsselwörter (wie apple.com/ipad-pro)
   Drei Kernbereiche als Zweiton-Verläufe:
   Beratung = Cyan→Blau, Marketing = Gelb→Orange, Webdesign = Grün→Türkis */
/* Marken-Akzent: einfacher Orange-Verlauf (keine Dreifachverläufe) */
.grad-color {
  background: linear-gradient(95deg, #ffb800 0%, #ff5500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.grad-blue {
  background: linear-gradient(95deg, #00b3ff 0%, #0056d6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-orange {
  background: linear-gradient(95deg, #ffb800 0%, #ff6a00 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-green {
  background: linear-gradient(95deg, #28c150 0%, #009e93 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-pink {
  background: linear-gradient(95deg, #ff5e8a 0%, #bf5af2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Bereichs-Pill + Farbglow für Sub-Heros (H1-Bereiche) */
.hero .area-pill,
.sub-hero .area-pill,
.area-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 99px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
  background: linear-gradient(95deg, var(--ap1, #00b3ff), var(--ap2, #0056d6));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  position: relative;
  z-index: 1;
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: -140px;
  transform: translateX(-50%);
  width: min(780px, 90vw);
  height: 440px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.2;
  pointer-events: none;
  background: linear-gradient(95deg, var(--ap1, #00b3ff), var(--ap2, #0056d6));
}

/* Bildunterschrift unterhalb der Peek-Karte (nicht im Feld) */
.media-caption {
  margin-top: 16px;
  text-align: center;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ==================== Bereichs-Themes (Unterseiten in Blockfarben) ==================== */

body.theme-blue   { --tc1: #00b3ff; --tc2: #0056d6; --tc: #0a63d0; --tc-soft: rgba(10, 99, 215, 0.1);  --tc-glow: rgba(0, 179, 255, 0.3); }
body.theme-orange { --tc1: #ffb800; --tc2: #ff6a00; --tc: #f56300; --tc-soft: rgba(245, 99, 0, 0.1);   --tc-glow: rgba(255, 159, 10, 0.28); }
body.theme-green  { --tc1: #28c150; --tc2: #009e93; --tc: #128a56; --tc-soft: rgba(40, 193, 80, 0.12); --tc-glow: rgba(40, 193, 80, 0.26); }
body.theme-pink   { --tc1: #ff5e8a; --tc2: #bf5af2; --tc: #c13aa8; --tc-soft: rgba(193, 58, 168, 0.1); --tc-glow: rgba(191, 90, 242, 0.26); }

/* Animierte Lordicon-Lottie-Icons (dunkelblaue Outline). Im Dark Mode weiße runde Box. */
.lottie-icon { width: 64px; height: 64px; margin-bottom: 16px; }
.lottie-icon svg { display: block; width: 100%; height: 100%; }
html[data-theme="dark"] .lottie-icon {
  background: #fff;
  border-radius: 18px;
  padding: 9px;
  width: 66px; height: 66px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}
.feature-tile .lottie-icon { margin-bottom: 16px; }

body[class*="theme-"] .blob-1 { background: var(--tc1); }
body[class*="theme-"] .blob-2 { background: var(--tc2); }
html:not([data-theme="dark"]) body[class*="theme-"] .blob { opacity: 0.24; }
body[class*="theme-"] .kicker,
body[class*="theme-"] .section-head .kicker { color: var(--tc) !important; }
body[class*="theme-"] .btn-primary { background: linear-gradient(120deg, var(--tc1), var(--tc2)); }
body[class*="theme-"] .btn-primary:hover { filter: brightness(1.07); transform: scale(1.03); }
body[class*="theme-"] .split ul li::before { color: var(--tc); }
body[class*="theme-"] .rail-card .icon { background: var(--tc-soft); }
body[class*="theme-"] .paddle:hover { background: var(--tc); color: #fff; }
body[class*="theme-"] .feature-tile:hover { box-shadow: 0 20px 50px var(--tc-soft), var(--shadow-soft); }
body[class*="theme-"] main a:not(.btn) { color: var(--tc); }

/* Chili-Pulver-Wolke im Hero */
.chili-powder {
  position: absolute;
  width: min(440px, 42vw);
  right: -150px;
  top: -70px;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Schwebende Chilis (Maskottchen-Animation) */
.chili-float {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.chili-float .chili-inner {
  display: inline-block;
  animation: chiliBob 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}
.chili-1 { top: 20%; left: 7%; font-size: 42px; }
.chili-2 { top: 26%; right: 9%; font-size: 58px; }
.chili-2 .chili-inner { animation-delay: 1.4s; animation-duration: 7s; }
.chili-3 { bottom: 15%; left: 13%; font-size: 30px; opacity: 0.65; filter: blur(1px); }
.chili-3 .chili-inner { animation-delay: 2.3s; }
@keyframes chiliBob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(9deg); }
}
.chili-4 { top: 55%; right: 16%; font-size: 34px; opacity: 0.75; }
.chili-4 .chili-inner { animation-delay: 0.8s; animation-duration: 8s; }
.chili-inner.spin { animation: spinSlow 16s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@media (max-width: 920px) { .chili-float { display: none; } }

.hero p.sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.4vw, 19px) !important;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.5;
  font-weight: 400;
}

.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* schwebende Parallax-Blobs im Hero */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform;
}
.blob-1 { width: 520px; height: 520px; background: var(--blob-a); top: -140px; left: -160px; }
.blob-2 { width: 460px; height: 460px; background: var(--blob-b); bottom: -120px; right: -140px; }
.blob-3 { width: 320px; height: 320px; background: var(--blob-a); top: 42%; right: 14%; opacity: 0.2; }

/* Im Light Mode dezenter, damit kein Grauschleier entsteht */
html:not([data-theme="dark"]) .blob { opacity: 0.4; }
html:not([data-theme="dark"]) .blob-3 { opacity: 0.22; }

/* ==================== Sections ==================== */

.section { padding: 110px 24px; position: relative; }
.section-tight { padding: 70px 24px; }
.section-elev { background: var(--bg-soft); }
.wrap { max-width: 1100px; margin: 0 auto; }
.wrap-wide { max-width: 1320px; margin: 0 auto; }

.section-head { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.section-head .kicker {
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.section-head p {
  margin-top: 18px;
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ==================== Horizontale Scroll-Galerie (Apple-Style) ==================== */

.rail-wrap { position: relative; }

.rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px max(24px, calc((100vw - 1100px) / 2)) 40px;
  scrollbar-width: none;
  perspective: 1200px;
}
.rail::-webkit-scrollbar { display: none; }

.rail-card {
  flex: 0 0 auto;
  width: min(380px, 82vw);
  scroll-snap-align: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.3s;
  will-change: transform;
}
.rail-card:hover { box-shadow: var(--shadow); }
a.rail-card { color: var(--text); }

.rail-card .icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 22px;
  background: var(--accent-soft);
}

/* Farbige Icon-Tints (dezente Apple-Farbakzente) */
.tint-blue   { background: rgba(0, 144, 247, 0.14) !important; }
.tint-purple { background: rgba(94, 92, 230, 0.14) !important; }
.tint-pink   { background: rgba(255, 55, 95, 0.12) !important; }
.tint-green  { background: rgba(48, 209, 88, 0.14) !important; }
.tint-teal   { background: rgba(90, 200, 245, 0.16) !important; }
.tint-indigo { background: rgba(191, 90, 242, 0.13) !important; }
.tint-orange { background: rgba(245, 99, 0, 0.12) !important; }

/* ==================== Kernbereich-Karten (Startseite) ==================== */

/* Deckende Apple-Farbverläufe, weißer Text – keine verweißlichten Tönungen */
.core-card {
  --cc1: #2997ff;
  --cc2: #0055d4;
  position: relative;
  display: block;
  background: linear-gradient(160deg, var(--cc1) 0%, var(--cc2) 100%);
  border: none;
  border-radius: var(--card-radius);
  padding: 36px 30px 30px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.core-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 18% -8%, rgba(255, 255, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.core-card:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.25); }
.core-card .icon {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 22px;
  display: grid; place-items: center;
  font-size: 48px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px rgba(0, 0, 0, 0.14);
}
.core-card h3 {
  font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
}
.core-card > p { color: rgba(255, 255, 255, 0.88); font-size: 16px; line-height: 1.6; margin-bottom: 16px; }
.core-card ul { list-style: none; margin: 0 0 18px; }
.core-card ul li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; color: #fff; }
.core-card ul li::before {
  content: "✓";
  position: absolute; left: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}
.core-card .more {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 9px 18px;
  border-radius: 99px;
  background: #fff;
  color: var(--accent);
  font-size: 14.5px; font-weight: 600;
  transition: transform 0.25s ease;
}
.core-card .more:hover { transform: scale(1.04); }
.core-card .more::after { content: " ›"; }
.core-note {
  text-align: center;
  color: var(--text-2);
  font-size: 14.5px;
  margin-top: 28px;
}

/* Icon-Animation beim Hover */
.core-card:hover .icon,
.rail-card:hover .icon,
.feature-tile:hover .icon { animation: iconPop 0.5s ease; }
@keyframes iconPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.2) rotate(-7deg); }
  100% { transform: scale(1); }
}
.rail-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.rail-card p { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.rail-card .more {
  display: inline-flex; align-items: center; gap: 2px;
  margin-top: 18px;
  padding: 9px 18px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 14.5px; font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease;
}
.rail-card .more:hover { background: var(--accent-hover); transform: scale(1.04); }
.rail-card .more::after { content: " ›"; }

.rail-card.img-card { padding: 0; overflow: hidden; }
.rail-card.img-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.rail-card.img-card .cap { padding: 18px 24px 22px; }
.rail-card.img-card .cap h3 { font-size: 19px; margin-bottom: 0; }
.rail-card.img-card .cap p { font-size: 14.5px; }

/* CSS-Browser-Mockups für neue Referenzen (BT, Zoobähnle, Stahltag) */
.site-mock {
  aspect-ratio: 16/10;
  display: flex; flex-direction: column;
  background: var(--sm-bg, #111);
  overflow: hidden;
}
.site-mock__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.14);
  flex-shrink: 0;
}
.site-mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.site-mock__bar span {
  margin-left: 8px; font-size: 10.5px; color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.14); border-radius: 20px; padding: 2px 12px;
  font-family: var(--font-body);
}
.site-mock__body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 20px 24px;
  background: var(--sm-body, #111);
  position: relative;
}
.site-mock__logo { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--sm-logo, #fff); }
.site-mock__h { font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 3vw, 28px); line-height: 1.05; color: #fff; margin-bottom: 12px; }
.site-mock__h em { font-style: normal; color: var(--sm-accent, #fff); }
.site-mock__btns { display: flex; gap: 8px; }
.site-mock__btn { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; padding: 6px 13px; border-radius: 20px; background: var(--sm-accent, #fff); color: var(--sm-btn-fg, #111); }
.site-mock__btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.site-mock__deco { position: absolute; font-size: 30px; opacity: 0.9; }

/* Paddle-Buttons wie bei Apple */
.paddles {
  display: flex; gap: 12px;
  justify-content: flex-end;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.paddles-below {
  justify-content: center;
  margin-top: 18px;
}
.paddle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: grid; place-items: center;
  line-height: 1;
}
.paddle:hover { background: var(--accent); color: #fff; transform: scale(1.08); }
.paddle:disabled { opacity: 0.3; pointer-events: none; }

/* ==================== Glass-Panels / Feature-Grids ==================== */

.glass-panel {
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; row-gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 26px; row-gap: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 22px; row-gap: 48px; }

.feature-tile {
  padding: 34px 30px;
  border-radius: var(--card-radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.feature-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-tile .icon { font-size: 34px; margin-bottom: 16px; }
.feature-tile h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature-tile p { color: var(--text-2); font-size: 16px; line-height: 1.6; }
a.feature-tile, a.feature-tile h3 { color: var(--text); }

/* ==================== Hintergrund-Foto (dezent, ~10% Deckkraft, hinter Blöcken) ==================== */

.bg-photo { position: relative; isolation: isolate; }
.bg-photo::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image: var(--bgphoto);
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
}
html[data-theme="dark"] .bg-photo::before { opacity: 0.14; }

/* ==================== Logo-Karussell (Zufriedene Kunden) ==================== */

.logo-strip { padding: 20px 0 44px; }
.logo-strip .logo-strip-label {
  text-align: center; font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 22px;
}
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: logoScroll 32s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track .logo-tile {
  width: 128px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.logo-track img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.logo-track img:hover { opacity: 1; filter: grayscale(0); }
html[data-theme="dark"] .logo-track img { filter: grayscale(1) invert(1); opacity: 0.5; }
html[data-theme="dark"] .logo-track img:hover { filter: grayscale(0) invert(1); opacity: 0.9; }
@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; } }

.testimonial-card {
  padding: 30px 28px;
  border-radius: var(--card-radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.testimonial-card .stars { color: #f5a623; font-size: 15px; letter-spacing: 2px; }
.testimonial-card p { color: var(--text-2); font-size: 15.5px; line-height: 1.6; margin: 0; }
.testimonial-card .author { font-weight: 700; font-size: 14.5px; color: var(--text); margin-top: auto; }

.testi-rail-wrap { position: relative; }
.testi-rail {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(24px, calc((100vw - 1100px) / 2)) 24px;
  scrollbar-width: none;
}
.testi-rail::-webkit-scrollbar { display: none; }
.testi-rail .testimonial-card { flex: 0 0 auto; width: min(360px, 84vw); scroll-snap-align: start; }

/* ==================== Stats / Zahlen ==================== */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--grad-from) 30%, var(--grad-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .lbl { color: var(--text-2); font-size: 15px; margin-top: 6px; }

/* ==================== Split-Sektionen (Bild + Text) ==================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Freigestelltes Bild links- und unten-bündig, ohne Karten-Rahmen */
.media--flush {
  align-self: end;
  display: flex;
  justify-content: center;
}
.media--flush img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 20px 34px rgba(0,0,0,0.16));
}
.split .media.media--flush {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  padding: 24px 24px 0;
}
html[data-theme="dark"] .split .media.media--flush { background: linear-gradient(165deg, #ececed 0%, #c4c5cc 100%); border-color: rgba(0,0,0,0.1); }
@media (max-width: 920px) {
  .media--flush { justify-content: center; }
  .media--flush img { max-width: 280px; }
}
.split h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 18px; }
.split p { color: var(--text-2); font-size: 16px; line-height: 1.6; margin-bottom: 14px; }
.split ul { list-style: none; margin: 20px 0; }
.split ul li { padding: 9px 0 9px 34px; position: relative; font-size: 16.5px; }
.split ul li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}
.split .media {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

/* Peek-Karten: freigestelltes Bild ragt oben aus der runden Karte, unten bündig */
.peek,
.media.peek {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  padding: 0 34px;
  overflow: visible;
}
.peek > img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -56px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18));
  will-change: transform;
}

/* Dark Mode: Karten mit echten Bildern sanft hell hinterlegen (Grau-Verlauf,
   kein grelles Weiß), damit Screenshots und freigestellte PNGs sauber wirken */
html[data-theme="dark"] .peek,
html[data-theme="dark"] .media.peek {
  background: linear-gradient(165deg, #ececed 0%, #c4c5cc 100%);
  border-color: rgba(0, 0, 0, 0.1);
}
/* .rail-card.img-card bewusst NICHT mehr aufgehellt: die Karte wird von
   object-fit:cover-Bildern ohnehin komplett verdeckt, das Aufhellen sorgte
   nur dafür, dass einzelne Referenz-Kacheln im Darkmode weiß blieben,
   während die übrigen Karten korrekt dunkel wurden. */

/* 3D-Rotation beim Scrollen */
.rotate-in { transform: perspective(1100px) rotateY(-16deg) translateX(40px); opacity: 0; transition: transform 1s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.8s; }
.rotate-in.flip { transform: perspective(1100px) rotateY(16deg) translateX(-40px); }
.rotate-in.visible { transform: perspective(1100px) rotateY(0) translateX(0); opacity: 1; }

/* Reveal beim Scrollen */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ==================== CTA-Banner ==================== */

/* Deckender Apple-Verlauf (Lila → Blau → Türkis), weißer Text */
.cta-banner {
  text-align: center;
  padding: 90px 40px;
  border-radius: 36px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #ffb800 0%, #ff5500 100%);
  border: none;
  color: #fff;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 320px at 22% -10%, rgba(255, 255, 255, 0.22), transparent 65%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 400; letter-spacing: -0.025em; margin-bottom: 16px; color: #fff; position: relative; }
.cta-banner p { color: rgba(255, 255, 255, 0.88); font-size: 19px; max-width: 620px; margin: 0 auto 32px; position: relative; }
.cta-banner .btn {
  background: #fff !important;
  color: #1d1d1f !important;
  border: none !important;
  position: relative;
}
.cta-banner .btn:hover { transform: scale(1.05); }
.section:has(> .wrap > .cta-banner) { padding-bottom: 50px; }

/* ==================== Konfigurator ==================== */

.config-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }

.config-group { margin-bottom: 38px; }
.config-group h3 { font-size: 21px; font-weight: 600; margin-bottom: 16px; letter-spacing: -0.02em; }

.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.opt {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  cursor: pointer;
  background: var(--bg-elev);
  box-shadow: var(--shadow-soft);
  transition: all 0.22s ease;
  display: block;
}
.opt:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.opt input { position: absolute; opacity: 0; }
.opt .t { font-weight: 700; font-size: 17px; font-family: var(--font-head); letter-spacing: -0.01em; display: block; margin-bottom: 4px; }
.opt .d { color: var(--text-2); font-size: 13.5px; line-height: 1.45; display: block; }
.opt .pr {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.opt.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-soft);
}
.opt.selected .pr { background: var(--accent); color: #fff; }
.opt.selected::after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.config-summary {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  padding: 30px 28px;
}
.config-summary h3 { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.config-summary ul { list-style: none; margin-bottom: 18px; }
.config-summary li { display: flex; justify-content: space-between; font-size: 14.5px; padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--text-2); gap: 10px; }
.config-summary li span:last-child { white-space: nowrap; }
.config-summary .total { display: flex; justify-content: space-between; font-size: 22px; font-weight: 700; margin: 16px 0 22px; }
.config-summary .total .val { color: var(--accent); }
.config-summary .hint { font-size: 12.5px; color: var(--text-2); margin-top: 14px; line-height: 1.5; }
.config-summary .btn { width: 100%; text-align: center; }

/* ==================== Kontakt / Formulare ==================== */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

.kontakt-form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
@media (max-width: 800px) { .kontakt-form-grid { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }

.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.contact-card {
  text-align: center;
  padding: 32px 22px;
  border-radius: var(--card-radius);
  transition: transform 0.3s;
}
.contact-card:hover { transform: translateY(-5px); }
.contact-card .icon { font-size: 32px; margin-bottom: 12px; }
.contact-card h3 { font-size: 17px; margin-bottom: 6px; }
.contact-card a { font-size: 15.5px; }

/* ==================== Marquee (Referenz-Logos) ==================== */

.trust-strip { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0.9; }
.trust-strip img { height: 44px; width: auto; }
.trust-strip .t-item { color: var(--text-2); font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* ==================== Footer ==================== */

footer {
  border-top: 1px solid var(--border);
  padding: 44px 24px 28px;
  background: var(--bg-soft);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-inner h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 7px; }
.footer-inner a { color: var(--text-2); font-size: 13.5px; }
.footer-inner a:hover { color: var(--accent); }
.footer-brand p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin-top: 8px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--text-2);
  transition: background 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  max-width: 1100px; margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-2); font-size: 12.5px;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--accent); }
.footer-credit { display: inline-flex; align-items: center; gap: 7px; }

/* ==================== Sub-Hero (Unterseiten) ==================== */

.sub-hero {
  padding: 160px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sub-hero h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; max-width: 900px; margin: 0 auto; }
.sub-hero p { margin: 22px auto 0; font-size: clamp(17px, 1.4vw, 19px) !important; color: var(--text-2); max-width: 640px; line-height: 1.5; }
.sub-hero .hero-cta { justify-content: center; }

/* ==================== Responsive ==================== */

@media (max-width: 920px) {
  .nav-inner { flex-wrap: nowrap !important; gap: 8px !important; padding: 0 14px !important; }
  .nav-tools { gap: 6px !important; }
  .lang-switch { transform: scale(0.9); }
  .nav-links {
    position: fixed !important;
    display: flex !important;
    top: var(--nav-h) !important; left: 0 !important; right: 0 !important;
    flex-direction: column !important;
    background: var(--glass-strong);
    backdrop-filter: blur(30px);
    padding: 24px !important;
    gap: 18px !important;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0) !important; }
  /* Im Mobil-Menü ist eh alles schon aufgeklappt (vertikale Liste) – ein
     zusätzliches Dropdown wäre nur ein Extra-Tap ohne Mehrwert, deshalb
     zeigt sich das Angebot-Untermenü hier direkt eingerückt und offen. */
  .nav-dropdown { display: flex; flex-direction: column; gap: 14px; }
  .nav-dropdown-trigger { font-size: 15px; opacity: 1; }
  .nav-dropdown-menu {
    position: static;
    margin-top: 0;
    padding-top: 0;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .nav-dropdown-menu-inner {
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 0 16px;
    gap: 14px;
  }
  .nav-dropdown-menu a { padding: 0; font-size: 15px; }
  .burger {
    display: grid !important;
    place-items: center;
    width: 32px !important; height: 32px !important;
    padding: 0 !important;
    flex-shrink: 0;
  }
  .grid-3, .grid-4, .contact-cards { grid-template-columns: 1fr 1fr; }
  .split, .grid-2, .config-layout, .form-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .config-summary { position: static; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .contact-cards, .opt-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 18px; }
}

/* ==================== Animierte Wachstums-Chart ==================== */

.chart-card { padding: 30px 30px 24px; }
.chart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; gap: 12px;
}
.chart-head .chart-title { font-size: 15px; font-weight: 600; color: var(--text-2); }
.chart-badge {
  background: linear-gradient(95deg, #ffd60a, #ff7a00);
  color: #fff;
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 15px;
  font-weight: 700;
  transform: scale(0);
  white-space: nowrap;
}
.visible .chart-badge { animation: badgePop 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) 1.7s forwards; }
@keyframes badgePop { to { transform: scale(1); } }

.chart-plot {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 220px;
}
.chart-plot .bar {
  flex: 1;
  height: var(--h);
  background: var(--blob-a);
  border-radius: 8px 8px 3px 3px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--d, 0s);
}
.visible .chart-plot .bar { transform: scaleY(1); }
.chart-plot .bar.hot {
  background: linear-gradient(180deg, #ffd60a, #ff7a00);
  position: relative;
}
.chart-plot .bar.hot::after {
  content: "🌶️";
  position: absolute;
  top: -34px; left: 50%;
  margin-left: -13px;
  font-size: 26px;
  opacity: 0;
  transform: translateY(10px) scale(0.4);
  transition: all 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) 1.5s;
}
.visible .chart-plot .bar.hot::after { opacity: 1; transform: translateY(0) scale(1); }

.chart-line {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.chart-line path {
  fill: none;
  stroke: var(--text);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  opacity: 0.85;
}
.visible .chart-line path { animation: lineDraw 1.5s ease-out 0.5s forwards; }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }

.chart-foot { margin-top: 16px; font-size: 12.5px; color: var(--text-2); text-align: center; }

/* ==================== Schärfegrad-Chips (Konfigurator) ==================== */

.opt { padding-right: 74px; }
.opt .heat {
  position: absolute;
  top: 16px; right: 14px;
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ==================== Animierte Bereichs-Grafiken (aus Schwester-Entwurf) ==================== */

.anim-cards { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 22px; row-gap: 48px; }
.anim-card {
  position: relative;
  padding: 30px 28px 26px;
  border-radius: var(--card-radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 12px;
  color: var(--text);
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.3,1), box-shadow 0.4s;
}
.anim-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.anim-card .illu {
  width: 100%; aspect-ratio: 12/9;
  border-radius: 18px;
  background: var(--bg-soft);
  display: block; margin-bottom: 4px;
  padding: 10px;
}
.anim-card .illu svg { width: 100%; height: 100%; display: block; }
.anim-card h3 { font-size: 27px; margin: 0; font-weight: 700; }
.anim-card > p { color: var(--text-2); font-size: 16px; line-height: 1.6; margin: 0; }
.anim-card .more {
  display: inline-flex; align-items: center; gap: 2px;
  margin-top: auto;
  padding: 9px 18px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-weight: 600; font-size: 14.5px;
  width: fit-content;
  transition: transform 0.25s ease, background 0.25s ease;
}
.anim-card .more:hover { background: var(--accent-hover); transform: scale(1.04); }
.anim-card .more::after { content: " ›"; }
.anim-card.area-blue   { --ac: #0a63d0; }
.anim-card.area-orange { --ac: #f56300; }
.anim-card.area-green  { --ac: #128a3d; }
.anim-card.area-pink   { --ac: #c13aa8; }
.anim-card h3 span { color: var(--ac); }
.anim-card h3 { color: var(--text); }

/* Alle Grafiken laufen DURCHGEHEND (Endlos-Loops), starten beim Sichtbarwerden.
   Grundfläche grau; bei .visible übernimmt die Loop-Animation die Bereichsfarbe. */
.fx-fill { fill: #e3e6ef; }
html[data-theme="dark"] .fx-fill { fill: #26264c; }

/* Balken (Marketing): wachsen, halten, zurück – als Endlos-Zyklus */
.fx-bar { transform-origin: bottom; transform: scaleY(0); }
.reveal.visible .fx-fill--blue   { animation: fxColorBlue 6s ease-in-out infinite; }
.reveal.visible .fx-fill--green  { animation: fxColorGreen 6s ease-in-out infinite; }
.reveal.visible .fx-bar.fx-fill--orange { animation: fxBarOrange 6s ease-in-out infinite; }
.reveal.visible .fx-bar:nth-of-type(2) { animation-delay: 0.15s; }
.reveal.visible .fx-bar:nth-of-type(3) { animation-delay: 0.3s; }
.reveal.visible .fx-bar:nth-of-type(4) { animation-delay: 0.45s; }
@keyframes fxBarOrange {
  0%, 6%   { transform: scaleY(0); fill: #e3e6ef; }
  34%, 82% { transform: scaleY(1); fill: #ff8a1e; }
  100%     { transform: scaleY(0); fill: #e3e6ef; }
}
@keyframes fxColorGreen { 0%,10% { fill: #e3e6ef; } 40%,85% { fill: #2ac04e; } 100% { fill: #e3e6ef; } }
@keyframes fxColorBlue  { 0%,10% { fill: #e3e6ef; } 40%,85% { fill: #00a0ec; } 100% { fill: #e3e6ef; } }
.reveal.visible .fx-fill--pink   { animation: fxColorPink 6s ease-in-out infinite; }
@keyframes fxColorPink  { 0%,10% { fill: #e3e6ef; } 40%,85% { fill: #d24bb0; } 100% { fill: #e3e6ef; } }
@media (max-width: 1100px) { .anim-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .anim-cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* Draw (Trendlinie/Analyse-Kurve): zeichnet sich immer wieder */
.fx-draw { stroke-dasharray: 260; stroke-dashoffset: 260; }
.reveal.visible .fx-draw { animation: fxDraw 6s ease-in-out infinite; }
@keyframes fxDraw { 0%,12% { stroke-dashoffset: 260; } 46%,82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 260; } }

/* Pop (Pfeil/Datenpunkte): erscheinen zyklisch */
.fx-pop { opacity: 0; }
.reveal.visible .fx-pop { animation: fxPop 6s ease-in-out infinite; }
@keyframes fxPop { 0%,48% { opacity: 0; transform: translateY(8px); } 62%,86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }

/* Sprechblasen-Punkte ("tippt…"), gestaffelt – für Beratung/Gespräch */
.fx-typing { opacity: 0; }
.reveal.visible .fx-typing { animation: fxTyping 1.2s ease-in-out infinite; animation-delay: 1.4s; }
.reveal.visible .fx-typing.d2 { animation-delay: 1.55s; }
.reveal.visible .fx-typing.d3 { animation-delay: 1.7s; }
@keyframes fxTyping { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* Website-Zeilen (Webdesign-Monitor): laden zeilenweise wie eine echte Seite */
.fx-site { opacity: 0; transform: translateX(-4px); }
.reveal.visible .fx-site { animation: fxSite 6s ease-in-out infinite; }
.reveal.visible .fx-site:nth-of-type(3) { animation-delay: 0.5s; }
.reveal.visible .fx-site:nth-of-type(4) { animation-delay: 0.7s; }
.reveal.visible .fx-site:nth-of-type(5) { animation-delay: 1.0s; }
@keyframes fxSite {
  0%, 22% { opacity: 0; transform: translateX(-4px); }
  38%, 84% { opacity: inherit; transform: none; }
  100% { opacity: 0; transform: translateX(-4px); }
}

/* Wellen (Beratung/Signal) pulsieren durchgehend */
.fx-wave { opacity: 0; transform-origin: center; }
.reveal.visible .fx-wave { animation: fxWave 2.6s ease-out infinite; }
.reveal.visible .fx-wave:nth-of-type(2) { animation-delay: 0.45s; }
.reveal.visible .fx-wave:nth-of-type(3) { animation-delay: 0.9s; }
@keyframes fxWave { 0% { opacity: 0; transform: scale(0.6); } 35% { opacity: 0.85; } 100% { opacity: 0; transform: scale(1.3); } }

@media (max-width: 900px) { .anim-cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ==================== Vorteils-Kachelreihe (horizontal, aus Schwester-Entwurf) ==================== */

.perk-rail-wrap { position: relative; }
.perk-rail {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(24px, calc((100vw - 1100px) / 2)) 24px;
  scrollbar-width: none;
}
.perk-rail::-webkit-scrollbar { display: none; }
.perk {
  flex: 0 0 auto;
  width: min(400px, 84vw);
  scroll-snap-align: start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px 34px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.perk:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.perk .em { font-size: 46px; line-height: 1; }
.perk p {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.perk p strong { font-weight: 700; }
.perk.perk-accent {
  background: linear-gradient(150deg, #ffb800, #ff5500);
  border: none;
}
.perk.perk-accent p { color: #fff; }

/* ==================== Konfigurator: Bereiche, Upload, Stil, Anfrage ==================== */

.cfg-group { margin-bottom: 40px; }
.cfg-group__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cfg-group__head .num {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 9px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #fff;
  background: var(--cg, #0071e3);
}
.cfg-group--web    { --cg: #128a3d; }
.cfg-group--mkt    { --cg: #f56300; }
.cfg-group--ber    { --cg: #0a63d0; }
.cfg-group--grafik { --cg: #c13aa8; }
.cfg-group--brand  { --cg: #1d1d1f; }
.cfg-group h3.cfg-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.cfg-group__sub { color: var(--text-2); font-size: 15px; margin: 2px 0 16px 42px; }
.cfg-sub-h { font-size: 16px; font-weight: 600; margin: 24px 0 12px; color: var(--text); }

/* Datei-Upload (Logo & CI) */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg-elev);
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone .up-icon { font-size: 34px; }
.upload-zone p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }
.upload-zone p b { color: var(--text); font-weight: 600; }
.upload-zone input[type="file"] { display: none; }
.upload-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.up-thumb {
  position: relative;
  width: 82px; height: 82px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.up-thumb img { width: 100%; height: 100%; object-fit: contain; }
.up-thumb .file-ext { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--text-2); }
.up-thumb button {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.6); color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.up-thumb button:hover, .up-thumb button:focus { background: rgba(0,0,0,0.6); }

/* Farbwähler */
.color-row { display: flex; gap: 16px; flex-wrap: wrap; }
.color-field { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.color-field input[type="color"] {
  width: 42px; height: 42px; padding: 0; border: 1px solid var(--border);
  border-radius: 12px; background: none; cursor: pointer;
}
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.color-field input[type="color"]::-webkit-color-swatch { border: none; border-radius: 8px; }

/* Stil-Chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 9px 18px;
  font-size: 14.5px;
  cursor: pointer;
  background: var(--bg-elev);
  color: var(--text);
  transition: all 0.2s;
  user-select: none;
}
/* Gleicher Grund wie bei .theme-toggle: explizites background nötig, sonst
   gewinnt der globale Theme-Hover-Stil (rosarot) gegen unsere Basis-Regel. */
.chip:hover, .chip:focus { background: var(--bg-elev); border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on:hover, .chip.on:focus { background: var(--accent); }

/* Design-Vorbilder (URLs) */
.ref-list { display: flex; flex-direction: column; gap: 10px; }
.ref-row { display: flex; gap: 8px; }
.ref-row input { flex: 1; }
.ref-row button {
  flex-shrink: 0; width: 48px; border-radius: 14px;
  border: 1.5px solid var(--border); background: var(--bg-elev);
  color: var(--text-2); font-size: 18px; cursor: pointer;
}
.ref-row button:hover, .ref-row button:focus { background: var(--bg-elev); border-color: #ff375f; color: #ff375f; }
.ref-add {
  margin-top: 10px; background: none; border: none;
  color: var(--accent); font-size: 14.5px; font-weight: 600; cursor: pointer; padding: 0;
}
.ref-add:hover, .ref-add:focus { background: none; }

/* Anfrage-Block */
.cfg-request { margin-top: 8px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.consent input { margin-top: 3px; flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--accent); }
.cfg-feedback { margin-top: 14px; font-size: 14.5px; padding: 14px 16px; border-radius: 14px; display: none; }
.cfg-feedback.ok  { display: block; background: rgba(40,193,80,0.12); color: #128a3d; }
.cfg-feedback.err { display: block; background: rgba(255,55,95,0.12); color: #d11d43; }

/* Paket-Schnellauswahl (Shop) */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 18px; row-gap: 40px; margin-bottom: 10px; }
.pkg {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 26px 24px;
  background: var(--bg-elev);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex; flex-direction: column; gap: 8px;
}
.pkg:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.pkg .pkg-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 20px;
  background: linear-gradient(95deg, #ffb800, #ff5500); color: #fff;
}
.pkg .em { font-size: 30px; }
.pkg h4 { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.pkg p { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0; }
.pkg .pkg-price { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--accent); margin-top: auto; }

@media (max-width: 920px) {
  .cfg-request { margin-top: 24px; }
}

/* ==================== Vorteils-Checkliste (Referenzen-Hero) ==================== */

.check-list { list-style: none; margin: 26px 0 0; display: grid; gap: 14px; max-width: 640px; }
.check-list li { position: relative; padding-left: 40px; font-size: 17.5px; line-height: 1.45; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(150deg, #28c150, #009e93);
  color: #fff; font-size: 15px; font-weight: 700;
  display: grid; place-items: center;
}
.hero--left { text-align: left; align-items: flex-start; }
.hero--left .hero-cta { justify-content: flex-start; }

/* ==================== Referenz-Galerie (Grid) ==================== */

.ref-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ref-tile {
  border-radius: 0;
  overflow: visible;
  background: none;
  border: none;
  box-shadow: none;
  transition: transform 0.35s ease;
  display: block; color: var(--text);
}
.ref-tile:hover { transform: translateY(-6px); }
.ref-tile img { width: 100%; aspect-ratio: 16/11; object-fit: cover; object-position: top; border-radius: var(--card-radius); }
.ref-tile .rt-cap { padding: 16px 4px 18px; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
@media (max-width: 860px) { .ref-gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ref-gallery { grid-template-columns: 1fr; } }

/* ==================== Branchen-Peek (Bild bricht aus, wandert beim Scrollen) ==================== */

.branch-peek {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  min-height: 300px;
  overflow: visible;
}
html[data-theme="dark"] .branch-peek { background: linear-gradient(165deg, #ececed, #c4c5cc); }
.branch-peek > img {
  position: absolute;
  bottom: 0; right: -46px;
  width: 108%; max-width: none;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,0.22));
  will-change: transform;
}

/* ==================== Terminbuchung / Calendly ==================== */

.booking { background: var(--bg-soft); }
.calendly-inline-widget { border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--border); background: var(--bg-elev); }
.booking-note { text-align: center; color: var(--text-2); font-size: 14.5px; margin-top: 14px; }

/* ==================== Popup / Modal (Branchen) ==================== */

.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(11, 10, 63, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-elev);
  border-radius: 30px;
  max-width: 860px; width: 100%;
  overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  box-shadow: 0 40px 90px rgba(0,0,0,0.4);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.3,1);
  position: relative;
}
.modal-overlay.open .modal { transform: none; }
.modal__body { padding: 40px 38px; }
.modal__body .kick { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.modal__body h3 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px; }
.modal__body p { color: var(--text-2); font-size: 16px; line-height: 1.55; margin-bottom: 22px; }
.modal__media { position: relative; overflow: hidden; background: linear-gradient(160deg, #ffb800, #ff5500); }
.modal__media img { position: absolute; width: 128%; max-width: none; bottom: -6%; left: -8%; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.28)); }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.9); color: #1d1d1f;
  font-size: 18px; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.modal__branches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.modal__branches span { background: var(--accent-soft); color: var(--accent); border-radius: 20px; padding: 5px 14px; font-size: 13.5px; font-weight: 600; }
@media (max-width: 720px) {
  .modal { grid-template-columns: 1fr; max-width: 460px; }
  .modal__media { min-height: 200px; order: -1; }
  .modal__media img { position: relative; width: 100%; bottom: 0; left: 0; }
}

/* ==================== Team ==================== */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; } }

.team-card { text-align: center; }
/* Freigestelltes rundes Portrait – kein Kasten, „für sich sprechen" */
.team-photo {
  width: 100%; aspect-ratio: 1;
  display: grid; place-items: center;
}
.team-photo img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.3, 1.2, 0.4, 1);
  will-change: transform;
}
.team-card:hover .team-photo img { transform: rotate(5deg) scale(1.07); }
.team-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin: 10px 0 2px; }
.team-card .role { color: var(--text-2); font-size: 14px; line-height: 1.45; max-width: 240px; margin: 0 auto; }

/* LinkedIn + Mail Buttons */
.team-links { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.team-links a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--border); color: var(--text);
  transition: all 0.2s; font-weight: 700;
}
.team-links a:hover { transform: translateY(-3px); }
.team-links a.li:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.team-links a.ml:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.team-links svg { width: 19px; height: 19px; }

/* Freelancer-Reihe (kleiner) */
.team-mini { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; }
.team-mini .team-card { max-width: 200px; }
.team-mini .team-photo { max-width: 150px; margin: 0 auto; }

/* ==================== Ausklappbare Blöcke (Accordion) ==================== */

.acc { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.acc__item {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-elev);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.acc__item[open] { box-shadow: var(--shadow-soft); border-color: var(--accent); }
.acc__item summary {
  cursor: pointer; list-style: none;
  padding: 22px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary .plus {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 20px; line-height: 1;
  transition: transform 0.35s ease;
}
.acc__item[open] summary .plus { transform: rotate(135deg); }
.acc__body { padding: 0 26px 24px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.acc__body p { margin: 0 0 10px; }

/* ==================== Rechtstexte ==================== */

.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 40px 0 14px; letter-spacing: -0.01em; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.legal li { margin-bottom: 4px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .stand { color: var(--text-2); font-size: 13.5px; margin-bottom: 30px; }
.legal-form-sample {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 16px 0 20px;
}
.legal-form-sample p { margin-bottom: 18px; }
.legal-form-sample p:last-child { margin-bottom: 0; }
.legal .table-scroll { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.legal table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 13.5px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); font-weight: 700; color: var(--text); white-space: nowrap; }
.legal td { color: var(--text-2); }

/* ==================== Barrierefreiheit ==================== */

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--accent); color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  z-index: 3000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-links a.active { font-weight: 600; }

/* ==================== Cookie-/Consent-Hinweis (externe Dienste) ==================== */

.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2500;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
  padding: 18px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.3,1);
}
.consent-banner.show { transform: translateY(0); }
.consent-banner p { flex: 1 1 320px; margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.consent-banner p a { text-decoration: underline; }
.consent-banner .consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-banner .btn { padding: 10px 20px; font-size: 14.5px; }

/* Platzhalter für noch nicht freigegebene externe Einbettungen (z.B. Calendly) */
.embed-gate {
  border: 1.5px dashed var(--border);
  border-radius: var(--card-radius);
  padding: 50px 30px;
  text-align: center;
  background: var(--bg-soft);
}
.embed-gate p { color: var(--text-2); font-size: 15px; margin-bottom: 16px; max-width: 440px; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .fx-fill { fill: #e3e6ef; }
  .fx-draw { stroke-dashoffset: 0; }
  .fx-bar { transform: none; }
  .fx-pop, .fx-wave { opacity: 1; }
}

/* ==================== Desktop-/Mobil-Fassung derselben Seite ====================
   Steht auf derselben WordPress-Seite sowohl [chili name="x"] als auch
   [chili name="x-mobil"] (Registry::wrap_for_device() umschließt beide mit
   .chili-device--desktop/--mobil), zeigt reines CSS je nach Bildschirmbreite
   nur eine der beiden Fassungen – die andere bleibt im DOM, ist aber
   ausgeblendet. Kein JavaScript nötig, funktioniert auch ohne aktiviertes JS. */
@media (max-width: 767px) {
  .chili-device--desktop { display: none !important; }
}
@media (min-width: 768px) {
  .chili-device--mobile { display: none !important; }
}

/* ==================== Blog-Übersicht ==================== */

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card-media { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; }
.blog-card-date { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.blog-card-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.blog-card-excerpt { font-size: 14.5px; color: var(--text-2); line-height: 1.55; margin-bottom: 4px; }
.blog-card .more { margin-top: auto; }

/* Aufmacher: der neueste Beitrag, groß und farbig abgesetzt */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(165deg, var(--accent-soft), var(--bg-elev) 70%);
  border: 1.5px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-featured-media { aspect-ratio: 16/9; overflow: hidden; }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-featured-body { padding: 30px 32px 34px; }
.blog-featured-body .shop-tag { position: static; display: inline-block; margin-bottom: 14px; }
.blog-featured-body h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.blog-featured-body p { color: var(--text-2); font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.blog-featured-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (min-width: 760px) {
  .blog-featured { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
  .blog-featured-media { aspect-ratio: auto; height: 100%; }
  .blog-featured-body { display: flex; flex-direction: column; justify-content: center; }
}
