/* ==========================================================================
   WindowShop – Design System 2026
   Ruhige Flächen, große Typografie, Glas-Oberflächen, weiche Bewegung.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-soft-2: #eff0f3;
  --ink: #0b0b0e;
  --ink-2: #2b2b31;
  --muted: #6e6e76;
  --line: rgba(11, 11, 14, 0.08);
  --line-strong: rgba(11, 11, 14, 0.14);
  --blue: #0071e3;
  --blue-dark: #0058b0;
  --blue-soft: rgba(0, 113, 227, 0.08);
  --green: #1c9c52;
  --amber: #b8730a;
  --red: #c0392b;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --shadow-xs: 0 1px 2px rgba(11, 11, 14, 0.05);
  --shadow-sm: 0 2px 6px rgba(11, 11, 14, 0.04), 0 14px 32px rgba(11, 11, 14, 0.05);
  --shadow-md: 0 10px 30px rgba(11, 11, 14, 0.07), 0 40px 80px rgba(11, 11, 14, 0.08);
  --shadow-lg: 0 30px 70px rgba(11, 11, 14, 0.14);
  --glass: rgba(255, 255, 255, 0.72);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(0, 113, 227, 0.18); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.06;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1400px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- Buttons */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, opacity 0.2s;
  box-shadow: 0 1px 2px rgba(11, 11, 14, 0.12);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 11, 14, 0.16); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn--primary { --btn-bg: var(--blue); }
.btn--primary:hover { --btn-bg: var(--blue-dark); }
.btn--light {
  --btn-bg: rgba(255, 255, 255, 0.92);
  --btn-fg: #0b0b0e;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--lg { padding: 17px 34px; font-size: 17px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--blue); font-size: 16px;
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* -------------------------------------------------------------- Header */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 19px;
}
.logo svg { width: 30px; height: 30px; flex: none; }
.logo small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -2px;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, #0a84ff, #004b9e);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px rgba(0, 113, 227, 0.28);
}
.logo-mark svg { width: 19px; height: 19px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: rgba(11, 11, 14, 0.05); color: var(--ink); }
.nav a.is-active { color: var(--blue); background: var(--blue-soft); }

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-dropdown > a::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 280px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; font-size: 14.5px;
}
.nav-menu a:hover { background: rgba(11, 11, 14, 0.05); }
.nav-menu .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  padding: 9px 12px; border-radius: 999px;
}
.header-phone:hover { background: rgba(11, 11, 14, 0.05); }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.menu-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink);
}

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto;
  z-index: 99;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px 26px;
  display: none;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; animation: slideDown 0.28s var(--ease); }
.mobile-nav a {
  display: block; padding: 13px 8px; font-size: 17px; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav .btn { margin-top: 18px; width: 100%; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 84px;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(10, 132, 255, 0.16), transparent 60%),
    radial-gradient(800px 500px at 88% 0%, rgba(48, 209, 88, 0.12), transparent 55%),
    radial-gradient(700px 500px at 60% 100%, rgba(94, 92, 230, 0.10), transparent 60%),
    linear-gradient(180deg, #fbfbfd 0%, #ffffff 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(11, 11, 14, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
  opacity: 0.55;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #0a84ff 10%, #5e5ce6 55%, #30d158 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 33em;
}
.hero-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin-top: 26px; font-size: 13.5px; color: var(--muted); font-weight: 500;
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--green); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 113, 227, 0.16);
  backdrop-filter: blur(8px);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

.hero-visual { position: relative; }
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff, #f1f3f7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  padding: 18px;
  overflow: hidden;
}
.hero-card__art {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, #dfe9f6, #f6f8fb);
  aspect-ratio: 4 / 3.4;
  position: relative;
}
.hero-card__art svg,
.hero-card__art img { width: 100%; height: 100%; object-fit: cover; }
.hero-card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 6px 4px;
}
.hero-card__meta strong { display: block; font-size: 15px; }
.hero-card__meta span { font-size: 12.5px; color: var(--muted); }
.hero-card__price {
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap;
}
.hero-card__price small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); text-align: right; }

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  animation: floaty 7s ease-in-out infinite;
}
.float-card strong { font-size: 13.5px; display: block; line-height: 1.2; }
.float-card span { font-size: 11.5px; color: var(--muted); }
.float-card__icon {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(48, 209, 88, 0.14); color: #1c9c52; flex: none;
}
.float-card__icon svg { width: 16px; height: 16px; }
.float-card--a { top: -18px; left: -26px; }
.float-card--b { bottom: -74px; right: -24px; animation-delay: -3s; }
.float-card--b .float-card__icon { background: rgba(10, 132, 255, 0.14); color: var(--blue); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------------------------------------------------------------- Stats */

.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 30px 0;
}
.stat { text-align: center; padding: 8px 12px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px; background: var(--line);
}
.stat strong {
  display: block; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600; letter-spacing: -0.035em;
}
.stat span { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------- Sections */

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: #0b0b0e; color: #f5f5f7;
  --ink: #f5f5f7; --ink-2: #d6d6db; --muted: #9b9ba2; --line: rgba(255, 255, 255, 0.12);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(34px, 4vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }
.section-head--center p { margin-left: auto; margin-right: auto; }
.section-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --------------------------------------------------------- Product cards */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  --accent: #0a84ff;
  position: relative;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(11, 11, 14, 0.02); }
.product-card__art {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 62%),
    linear-gradient(160deg, #f7f8fa, #eceef2);
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
}
.product-card__art svg,
.product-card__art img { width: 80%; height: auto; transition: transform 0.6s var(--ease); }
.product-card:hover .product-card__art svg,
.product-card:hover .product-card__art img { transform: scale(1.035); }
.product-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__kicker {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
}
.product-card h3 { margin: 0; font-size: 1.3rem; }
.product-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.product-card__foot {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.product-card__price { font-size: 13px; color: var(--muted); }
.product-card__price strong { display: block; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }

/* ------------------------------------------------------------- USP grid */

.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usp {
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.usp__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  margin-bottom: 16px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.usp__icon svg { width: 20px; height: 20px; }
.usp h3 { font-size: 1.06rem; margin-bottom: 6px; letter-spacing: -0.01em; transition: color 0.2s var(--ease); }
.usp p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.5; }

.usp-grid .usp {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.usp-grid .usp::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #64b5ff);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .usp-grid .usp:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 113, 227, 0.26);
    box-shadow: 0 16px 36px rgba(11, 11, 14, 0.1), 0 4px 10px rgba(0, 113, 227, 0.06);
  }
  .usp-grid .usp:hover::before { transform: scaleX(1); }
  .usp-grid .usp:hover .usp__icon {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px) rotate(-3deg);
    box-shadow: 0 8px 18px rgba(0, 113, 227, 0.22);
  }
  .usp-grid .usp:hover h3 { color: var(--blue-dark); }
}

/* ---------------------------------------------------------------- Split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, #e8eef7, #f7f8fa);
  border: 1px solid var(--line);
  aspect-ratio: 5 / 4;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.split__media svg,
.split__media img { width: 100%; height: 100%; object-fit: contain; }
.split__media svg { width: 86%; }
.split h2 { margin-bottom: 18px; }
.split p { color: var(--muted); }
.split .checklist { margin-top: 24px; }

/* ------------------------------------------------ Homepage 3D preview */

.home-3d {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(150deg, #e7f0fb, #f7f9fc);
}
.home-3d__fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.45s var(--ease);
}
.home-3d__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
  transition: opacity 0.5s var(--ease);
}
.home-3d__canvas:active { cursor: grabbing; }
.home-3d.is-ready .home-3d__fallback { opacity: 0; }
.home-3d.is-ready .home-3d__canvas { opacity: 1; }

.home-3d__badge,
.home-3d__hint {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 2px 8px rgba(11, 11, 14, 0.08);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s 0.1s var(--ease), transform 0.3s 0.1s var(--ease);
}
.home-3d__badge {
  top: 14px;
  left: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-3d__hint {
  bottom: 14px;
  left: 14px;
  color: var(--muted);
  font-weight: 500;
}
.home-3d.is-ready .home-3d__badge,
.home-3d.is-ready .home-3d__hint { opacity: 1; transform: none; }

.home-3d__loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(247, 249, 252, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: var(--muted);
  font-size: 12px;
}
.home-3d__loading[hidden] { display: none; }
.home-3d__spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(0, 113, 227, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: home3dSpin 0.75s linear infinite;
}
@keyframes home3dSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .home-3d__fallback,
  .home-3d__canvas,
  .home-3d__badge,
  .home-3d__hint { transition: none; }
  .home-3d__spinner { animation: none; }
}

.checklist { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.checklist li {
  position: relative; padding-left: 32px; font-size: 15.5px; color: var(--ink-2);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist li strong { display: block; font-weight: 600; }
.section--dark .checklist li { color: #d6d6db; }

/* -------------------------------------------------------------- Process */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step {
  counter-increment: step;
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.step::before {
  content: "0" counter(step);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: #6fa8ff;
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 14px; color: #9b9ba2; margin: 0; line-height: 1.5; }

.steps--light .step { background: #fff; border-color: var(--line); }
.steps--light .step::before { color: var(--blue); }
.steps--light .step h3 { color: var(--ink); }
.steps--light .step p { color: var(--muted); }

.steps--process .step {
  overflow: hidden;
  padding: 22px 24px 26px;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.steps--process .step::before { content: none; display: none; }
.steps--process .step::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0a84ff, #6fa8ff);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.step__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(10, 132, 255, 0.14);
  color: #6fa8ff;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step__icon svg { width: 22px; height: 22px; }
.step__num {
  color: #6fa8ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  transition: color 0.25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .steps--process .step:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(111, 168, 255, 0.44);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .steps--process .step:hover::after { transform: scaleX(1); }
  .steps--process .step:hover .step__icon {
    background: #0a84ff;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 18px rgba(10, 132, 255, 0.28);
  }
  .steps--process .step:hover .step__num { color: #9cc7ff; }
}

/* ---------------------------------------------------------- Configuration */

.config-page { padding-top: calc(var(--header-h) + 40px); }
.config-shell {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: start;
}
.config-panel {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 34px);
}
.config-panel h2 { font-size: 1.35rem; margin-bottom: 4px; }
.config-panel .hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.config-block { padding: 22px 0; border-top: 1px solid var(--line); }
.config-block:first-of-type { border-top: 0; padding-top: 4px; }
.config-block__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.config-block__head h3 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.config-block__head span { font-size: 12.5px; color: var(--muted); }

.field-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.input, .select, textarea.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  font-family: inherit;
  font-size: 15.5px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236e6e76' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.unit-input { position: relative; }
.unit-input .input { padding-right: 44px; }
.unit-input span {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--muted); pointer-events: none;
}

.color-swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(11, 11, 14, 0.12);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.swatch:hover { transform: translateY(-2px); }
.swatch.is-active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--blue);
}
.swatch span {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--muted); white-space: nowrap; display: none;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13.5px; font-weight: 500;
  background: #fff; color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.options { display: grid; gap: 9px; }
.option {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fff;
}
.option:hover { border-color: var(--line-strong); background: #fbfbfd; }
.option.is-active { border-color: var(--blue); background: rgba(0, 113, 227, 0.035); }
.option input { width: 19px; height: 19px; accent-color: var(--blue); flex: none; }
.option__text { flex: 1; min-width: 0; }
.option__text strong { display: block; font-size: 14.5px; font-weight: 500; }
.option__text span { font-size: 12.5px; color: var(--muted); }
.option__price { font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }

/* Sticky summary */
.config-summary {
  position: sticky; top: calc(var(--header-h) + 18px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.summary-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #eef2f8, #f8f9fb);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.summary-preview__frame {
  position: relative;
  height: 70%;
  width: auto;
  aspect-ratio: 1 / 1.5;
  max-width: 78%;
  border-radius: 12px;
  border: 13px solid #f7f5f0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(150deg, #d9e9f7, #f2f8fd);
  box-shadow: 0 22px 44px rgba(11, 11, 14, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: border-color 0.35s var(--ease), aspect-ratio 0.3s var(--ease);
}
.summary-preview__frame::before {
  content: ""; position: absolute; inset: 0;
  border-left: 1px solid rgba(11, 11, 14, 0.16);
  border-top: 1px solid rgba(11, 11, 14, 0.16);
}
.summary-preview__frame::after {
  content: ""; position: absolute; right: -22px; top: 55%;
  width: 7px; height: 34px; border-radius: 4px; background: #8d97a4;
}
.summary-preview__svg { position: relative; width: 100%; height: 100%; }
.summary-preview__badge {
  position: absolute; left: 14px; top: 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.summary-body { padding: 22px; }
.summary-body h3 { font-size: 1.15rem; margin-bottom: 2px; }
.summary-dims { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.summary-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; }
.summary-list li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13.5px; color: var(--ink-2);
}
.summary-list li span:last-child { font-weight: 600; white-space: nowrap; }
.summary-list li.is-muted { color: var(--muted); }
.summary-total {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.summary-total small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.summary-total strong { font-size: 1.9rem; letter-spacing: -0.04em; font-weight: 600; line-height: 1.1; }
.summary-actions { margin-top: 18px; display: grid; gap: 8px; }
.summary-note { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.45; }

/* --------------------------------------------------------------- Reviews */

.reviews-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 34px;
}
.rating-badge {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 18px;
  box-shadow: var(--shadow-xs);
  flex: none;
  white-space: nowrap;
}
.rating-badge strong { font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1; }
.rating-badge span { font-size: 12px; color: var(--muted); display: block; }
.rating-badge .stars { display: inline-flex; align-items: center; color: #f5a623; }
.rating-badge .stars svg { flex: none; }
.stars { display: inline-flex; gap: 2px; color: #f5a623; flex-wrap: nowrap; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }
.stars--lg svg { width: 18px; height: 18px; }

.review-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  height: 100%;
}
.review__top { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-size: 15px; color: #fff;
  background: linear-gradient(145deg, #6ea8fe, #0058b0);
  flex: none;
}
.avatar--2 { background: linear-gradient(145deg, #7ee2a8, #1c9c52); }
.avatar--3 { background: linear-gradient(145deg, #ffc773, #b8730a); }
.avatar--4 { background: linear-gradient(145deg, #a9a7ff, #4b48c9); }
.review__who strong { display: block; font-size: 14.5px; }
.review__who span { font-size: 12.5px; color: var(--muted); }
.review__text { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.review__foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.verified { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 600; }
.verified svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------------- FAQ */

.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
details.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 0 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
details.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 30px 20px 0;
  font-weight: 500;
  font-size: 15.8px;
  position: relative;
  letter-spacing: -0.01em;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
details.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
details.faq-item .faq-answer {
  padding: 0 0 22px; font-size: 15px; color: var(--muted); line-height: 1.6;
  max-width: 65ch;
}

/* ------------------------------------------------------------------ Blog */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f6; }
.post-card__media img, .post-card__media svg { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: var(--blue-soft); color: var(--blue);
}
.cat-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.post-card h3 { font-size: 1.2rem; line-height: 1.25; margin: 0; letter-spacing: -0.02em; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.post-card__foot {
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}

.post-card--featured { grid-column: span 2; flex-direction: row; }
.post-card--featured .post-card__media { aspect-ratio: auto; width: 48%; flex: none; }
.post-card--featured .post-card__body { padding: 32px; justify-content: center; }
.post-card--featured h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.category-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.category-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500;
  background: #fff;
  transition: all 0.2s;
}
.category-pill:hover { border-color: var(--ink); }
.category-pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.category-pill .dot { width: 8px; height: 8px; border-radius: 50%; }

/* Article */
.article-head { padding: calc(var(--header-h) + 54px) 0 40px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span.sep { opacity: 0.5; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 22ch; margin-bottom: 18px; }
.article-head .lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 24px; }
.article-cover {
  margin: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #eef1f6;
  aspect-ratio: 16 / 10;
}
.article-cover img, .article-cover svg { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 48px; }
.article-body { font-size: 17px; line-height: 1.72; color: var(--ink-2); max-width: 70ch; }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2.1em 0 0.6em; }
.article-body h3 { font-size: 1.22rem; margin: 1.7em 0 0.5em; }
.article-body > p:first-of-type { font-size: 1.16rem; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 1.3em; }
.article-body li { margin-bottom: 0.55em; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body a.btn { color: var(--btn-fg); text-decoration: none; }
.article-body a.btn:hover { color: var(--btn-fg); text-decoration: none; }
.article-body blockquote {
  margin: 1.8em 0; padding: 20px 24px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 0 14px 14px 0;
  font-size: 1rem; color: var(--ink-2);
}
.article-body blockquote p { margin: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14.5px; }
.article-body th {
  text-align: left; font-weight: 600; padding: 12px 14px;
  border-bottom: 1px solid var(--line-strong); background: var(--bg-soft);
}
.article-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.article-body tr:last-child td { border-bottom: 0; }
.article-body img { display: block; max-width: 100%; height: auto; border-radius: 16px; margin: 1.6em 0; }

/* Inhaltsverzeichnis */

.article-toc {
  position: relative;
  overflow: hidden;
  margin: 2.2em 0 2.5em;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(0, 113, 227, 0.07), transparent 70%),
    linear-gradient(135deg, rgba(0, 113, 227, 0.045), rgba(255, 255, 255, 0.96) 58%);
  box-shadow: var(--shadow-xs);
}
.article-toc::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), #64b5ff);
}
.article-toc__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-toc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.article-toc__title {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.article-toc__count {
  flex: none;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.article-body .article-toc__list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-toc__item { margin: 0; }
.article-body .article-toc__link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.article-body .article-toc__link:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
  text-decoration: none;
  transform: translateX(2px);
}
.article-toc__num {
  min-width: 24px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.article-toc__text { flex: 1; }
.article-toc__arrow {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
  opacity: 0.35;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.article-body .article-toc__link:hover .article-toc__arrow {
  color: var(--blue);
  opacity: 1;
  transform: translateX(2px);
}
.article-body .article-toc__item--sub .article-toc__link {
  padding-left: 43px;
  color: var(--muted);
  font-size: 13px;
}
.article-body .article-toc__item--sub .article-toc__link::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #a9c7ea;
}
.article-body .article-toc__item--sub .article-toc__link:hover { color: var(--blue-dark); }

@media (max-width: 620px) {
  .article-toc { margin: 1.8em 0 2.1em; padding: 18px 18px 16px; border-radius: 16px; }
  .article-body .article-toc__link { font-size: 13.5px; }
  .article-body .article-toc__item--sub .article-toc__link { padding-left: 34px; font-size: 12.5px; }
}

.article-aside { display: grid; gap: 16px; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 22px;
}
.aside-card--cta { background: #0b0b0e; color: #f5f5f7; border-color: #0b0b0e; }
.aside-card--cta h3 { color: #fff; font-size: 1.15rem; }
.aside-card--cta p { font-size: 14px; color: #9b9ba2; }
.aside-card h3 { font-size: 15px; margin-bottom: 12px; }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-card li a { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; }
.aside-card li a:hover { color: var(--blue); }

/* -------------------------------------------------------------- CTA band */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(10, 132, 255, 0.35), transparent 60%),
    radial-gradient(500px 300px at 85% 90%, rgba(48, 209, 88, 0.22), transparent 60%),
    #0b0b0e;
  color: #fff;
  padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.cta-band p { color: #b9b9c0; margin: 0; max-width: 50ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

/* --------------------------------------------------------- Page header */

.page-head {
  padding: calc(var(--header-h) + 56px) 0 48px;
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(10, 132, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #fbfbfd, #fff);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 24ch; margin-bottom: 16px; }
.page-head p { font-size: 1.1rem; color: var(--muted); max-width: 62ch; margin: 0; }
.page-head .btn-row { margin-top: 26px; }

/* -------------------------------------------------------------- Prose */

.prose { max-width: 72ch; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.2rem; margin: 1.7em 0 0.5em; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14.5px; }
.prose th { text-align: left; padding: 12px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line-strong); }
.prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }

/* ------------------------------------------------------------- Contact */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.contact-card__icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue);
}
.contact-card__icon svg { width: 18px; height: 18px; }
.contact-card strong { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card span, .contact-card a { font-size: 15.5px; font-weight: 500; color: var(--ink); }
.contact-card a:hover { color: var(--blue); }
.contact-card small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.form-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > .hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .field--full { grid-column: 1 / -1; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.check-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.honey { position: absolute; left: -9999px; opacity: 0; }

.alert {
  border-radius: 14px; padding: 14px 18px; font-size: 14.5px;
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert--ok { background: rgba(28, 156, 82, 0.08); border-color: rgba(28, 156, 82, 0.2); color: #126b37; }
.alert--err { background: rgba(192, 57, 43, 0.07); border-color: rgba(192, 57, 43, 0.18); color: #8f2a20; }
.alert--info { background: var(--blue-soft); border-color: rgba(0, 113, 227, 0.18); color: #084a8f; }

/* ------------------------------------------------------------- Locations */

.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.region-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 16px;
  background: #fff; font-size: 14.5px; font-weight: 500;
  transition: all 0.2s;
}
.region-chip:hover { border-color: var(--blue); color: var(--blue); background: rgba(0, 113, 227, 0.03); }
.region-chip small { font-size: 11px; color: var(--muted); font-weight: 500; }
.region-chip:hover small { color: var(--blue); }

/* ---------------------------------------------------------------- Table */

.table-basic { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-basic th { text-align: left; padding: 13px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line-strong); font-weight: 600; }
.table-basic td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.table-basic tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------- Footer */

.footer { background: #0b0b0e; color: #a1a1a8; padding: 70px 0 30px; font-size: 14px; }
.footer h3 { color: #fff; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; gap: 34px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand p { color: #8b8b93; line-height: 1.6; max-width: 32ch; margin-top: 14px; }
.footer .logo { color: #fff; }
.footer .logo small { color: #8b8b93; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 9px; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; margin-top: 3px; flex: none; color: #6fa8ff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; font-size: 12.5px; color: #8b8b93;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ----------------------------------------------------------- Cookie bar */

.consent {
  position: fixed; left: 18px; bottom: 18px; z-index: 95;
  width: min(430px, calc(100vw - 36px));
  animation: consentIn 0.4s var(--ease);
}
.consent[hidden] { display: none; }
.consent__card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  font-size: 13px; color: var(--muted); line-height: 1.55;
}
.consent__card h2 { font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.consent__card p { margin: 0 0 14px; }
.consent__card a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.consent__actions .btn { flex: 1 1 auto; }
.consent__link {
  margin-top: 12px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 2px;
}
.consent__link:hover { color: var(--ink); }
.consent__sub { font-size: 12.5px; }
.consent__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--line);
  cursor: default;
}
label.consent__row { cursor: pointer; }
.consent__info { display: grid; gap: 2px; }
.consent__info strong { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.consent__info span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.consent__locked {
  flex: none; font-size: 11px; font-weight: 600;
  color: var(--green); background: rgba(28, 156, 82, 0.1);
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.consent__note { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); }

.switch {
  appearance: none; -webkit-appearance: none;
  width: 46px; height: 28px; flex: none; margin: 0;
  border-radius: 999px; background: #d8d8de;
  position: relative; cursor: pointer;
  transition: background 0.22s var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s var(--ease);
}
.switch:checked { background: var(--blue); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.footer-cookie {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-size: inherit; color: inherit;
  cursor: pointer; text-decoration: none;
}
.footer-cookie:hover { color: #fff; }

@keyframes consentIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- Mobile CTA */

.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 88;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  gap: 8px;
}
.mobile-cta .btn { flex: 1; }

/* ------------------------------------------------------------- Reveal */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }
.reveal[data-delay="3"] { transition-delay: 0.21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- 404 */

.notfound {
  min-height: 76vh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  text-align: center;
  background:
    radial-gradient(600px 400px at 50% 0%, rgba(10, 132, 255, 0.12), transparent 65%),
    linear-gradient(180deg, #fbfbfd, #fff);
}
.notfound__code {
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700; letter-spacing: -0.07em; line-height: 0.9;
  background: linear-gradient(150deg, #0a84ff, #5e5ce6 60%, #30d158);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.notfound h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.notfound p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }
.notfound .btn-row { justify-content: center; }
.notfound__links { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.notfound__links a {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 13.5px; background: #fff;
}
.notfound__links a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------------------------------------------------------------- Login */

.auth-wrap {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
}
.auth-art {
  position: relative;
  background:
    radial-gradient(600px 500px at 20% 10%, rgba(10, 132, 255, 0.5), transparent 60%),
    radial-gradient(500px 400px at 80% 80%, rgba(48, 209, 88, 0.3), transparent 60%),
    #0b0b0e;
  color: #fff;
  padding: 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.auth-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
}
.auth-art h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); position: relative; z-index: 2; max-width: 18ch; }
.auth-art p { color: #b9b9c0; position: relative; z-index: 2; max-width: 40ch; }
.auth-art .auth-badge { position: relative; z-index: 2; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.auth-card .field { margin-bottom: 14px; }
.auth-note {
  margin-top: 22px; padding: 14px 16px; border-radius: 14px;
  background: rgba(0, 113, 227, 0.06); border: 1px solid rgba(0, 113, 227, 0.14);
  font-size: 12.5px; color: #3b5f86; line-height: 1.55;
}

/* ---------------------------------------------------------------- Admin */

.admin-body { background: #f5f5f7; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 258px; flex: none;
  background: #0b0b0e; color: #a1a1a8;
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .logo { color: #fff; padding: 6px 10px 20px; }
.admin-sidebar .logo small { color: #7d7d85; }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 11px;
  font-size: 14px; color: #b4b4bb;
  transition: background 0.2s, color 0.2s;
}
.admin-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.admin-nav a.is-active { background: rgba(10, 132, 255, 0.18); color: #fff; }
.admin-nav .badge-count {
  margin-left: auto; background: rgba(255, 255, 255, 0.12);
  font-size: 11px; padding: 2px 7px; border-radius: 999px;
}
.admin-nav__label {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #5f5f68; padding: 18px 12px 8px; font-weight: 600;
}
.admin-sidebar__foot { margin-top: auto; padding-top: 18px; font-size: 12px; color: #6b6b73; }
.admin-sidebar__foot a { color: #9bbcf0; }

.admin-main { flex: 1; min-width: 0; padding: 30px clamp(20px, 3vw, 44px) 60px; }
.admin-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
}
.admin-top h1 { font-size: 1.6rem; margin: 0; letter-spacing: -0.02em; }
.admin-top p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.admin-top__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.admin-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px;
}
.admin-stat span { font-size: 12px; color: var(--muted); font-weight: 500; }
.admin-stat strong { display: block; font-size: 2rem; letter-spacing: -0.04em; margin-top: 6px; }

.admin-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(18px, 2.4vw, 28px);
  margin-bottom: 18px;
}
.admin-card h2 { font-size: 1.1rem; margin-bottom: 4px; }
.admin-card > .hint { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.admin-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.admin-split--wide { grid-template-columns: 1.6fr 1fr; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th {
  text-align: left; padding: 10px 12px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.admin-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .muted { color: var(--muted); font-size: 12.5px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 12px; font-weight: 500; cursor: pointer;
  color: var(--ink-2); transition: all 0.2s;
}
.mini-btn:hover { border-color: var(--ink); }
.mini-btn--danger { color: var(--red); border-color: rgba(192, 57, 43, 0.28); }
.mini-btn--danger:hover { background: rgba(192, 57, 43, 0.06); border-color: var(--red); }
.mini-btn--ok { color: var(--green); border-color: rgba(28, 156, 82, 0.28); }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.status--neu { background: rgba(0, 113, 227, 0.1); color: var(--blue); }
.status--bearbeitet { background: rgba(184, 115, 10, 0.1); color: var(--amber); }
.status--erledigt { background: rgba(28, 156, 82, 0.1); color: var(--green); }

.inline-form { display: inline; }
.field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.admin-card .field-grid-2,
.admin-card .field-grid-3 { align-items: start; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.admin-note {
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
  background: #fafafc; border: 1px dashed var(--line-strong);
  border-radius: 14px; padding: 14px 16px; margin-top: 16px;
}
.review-admin { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 12px; background: #fcfcfd; }
.repeat-row { display: flex; gap: 10px; align-items: flex-start; }
.repeat-row > :first-child { flex: 1; }

@media (max-width: 1100px) {
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-split, .admin-split--wide { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; row-gap: 30px; }
  .article-layout, .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-aside { position: static; }
}

/* ----------------------------------------------------------- Responsive */

@media (max-width: 1080px) {
  .nav { display: none; }
  .header-phone { display: none; }
  .menu-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .config-shell { grid-template-columns: 1fr; }
  .config-summary { position: static; }
  .review-track { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--featured { grid-column: span 2; flex-direction: column; }
  .post-card--featured .post-card__media { width: 100%; aspect-ratio: 16 / 9; }
  .cta-band { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    width: 100%; height: auto; position: relative;
    padding: 14px 16px; gap: 0;
  }
  .admin-sidebar .logo { padding: 4px 6px 12px; }
  .admin-nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
  .admin-nav a { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
  .admin-nav__label { display: none; }
  .admin-sidebar__foot { display: none; }
  .admin-main { padding: 22px 16px 50px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: calc(var(--header-h) + 44px) 0 60px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat { padding: 16px 8px; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .faq-wrap { grid-template-columns: 1fr; }
  .reviews-head { flex-direction: column; align-items: flex-start; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-card--featured { grid-column: span 1; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .article-head { padding: calc(var(--header-h) + 36px) 0 30px; }
  .article-cover { aspect-ratio: 16 / 10; border-radius: var(--radius); }
  .mobile-cta { display: flex; }
  body { padding-bottom: 68px; }
  .consent { left: 12px; right: 12px; bottom: 80px; width: auto; }
  .consent__card { padding: 18px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .btn { grid-column: 1 / -1; }
  .float-card--a { left: -8px; top: -14px; }
  .float-card--b { right: -6px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .config-tip { display: none; }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card__art { aspect-ratio: 16 / 10; }
  .usp-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .review-track { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-grid-2, .field-grid-3 { grid-template-columns: 1fr; }
  .hero-note { gap: 6px 14px; font-size: 12.5px; }
  .hero-card { padding: 12px; }
  .btn-row .btn { width: 100%; }
  .section-foot .btn-row { width: 100%; }
  .region-grid { grid-template-columns: 1fr; }
  .summary-total strong { font-size: 1.6rem; }
  .notfound__links a { font-size: 12.5px; }
  .config-panel { padding: 18px; }
}

/* ------------------------------------------------------------- Print */

@media print {
  .header, .footer, .mobile-cta, .consent, .config-summary .summary-actions, .cta-band { display: none !important; }
  body { padding: 0; }
  .config-shell { grid-template-columns: 1fr; }
  a { text-decoration: none; color: #000; }
}

/* ===================================================== Konfigurator 2026 */
/* Vollflächige Vorschau + Schrittpanel, angelehnt an window4u. */

.page-configurator .mobile-cta { display: none !important; }

.cfg-head {
  padding: calc(var(--header-h) + 34px) 0 24px;
  background: linear-gradient(180deg, #f4f7fb 0%, #fafbfd 65%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.cfg-head h1 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.cfg-head__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px 36px; flex-wrap: wrap;
}
.cfg-head__row p { max-width: 480px; margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }

.cfg-page { padding: 20px 0 80px; }
.cfg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 18px;
  align-items: start;
}

/* --------------------------------------------------------------- Bühne */
.cfg-stage {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cfg-stage__scene {
  position: relative;
  height: clamp(340px, 47vh, 520px);
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f2f5fa 50%, #e9eef5 100%);
  padding: 26px 22px 26px;
  display: grid;
  place-items: center;
}
.cfg-scene { position: absolute; inset: 0; padding: 26px 22px 30px; }
.cfg-scene svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cfg-scene img { width: 82%; height: 82%; object-fit: contain; }
.cfg-scene__note {
  position: absolute; left: 22px; bottom: 12px; margin: 0;
  font-size: 10.5px; color: var(--muted); max-width: 72%; line-height: 1.35;
}
.cfg-badges {
  position: absolute; left: 18px; top: 16px; z-index: 2;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.cfg-badge {
  display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(11, 11, 14, 0.06);
  border-radius: 999px; padding: 6px 12px;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
}
.cfg-badge--muted { color: var(--muted); }

/* 3D-Bühne */
.cfg-3d {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
  background: linear-gradient(180deg, #dbe8f6 0%, #eaf1f9 52%, #e4e9f0 100%);
}
.cfg-3d[hidden] { display: none; }
.cfg-3d canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
.cfg-3d canvas:active { cursor: grabbing; }
.cfg-3d__loading {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12px; font-weight: 500; color: var(--muted);
  background: rgba(246, 248, 251, 0.72); backdrop-filter: blur(6px);
}
.cfg-3d__loading[hidden] { display: none; }
.cfg-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(11, 11, 14, 0.12); border-top-color: var(--blue);
  animation: cfgSpin 0.8s linear infinite;
}
@keyframes cfgSpin { to { transform: rotate(360deg); } }

.cfg-viewbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 14px; border-top: 1px solid var(--line); background: #fff;
}
.cfg-seg {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; background: #f1f3f7; border-radius: 10px;
}
.cfg-seg button {
  appearance: none; border: 0; background: transparent; font: inherit;
  font-size: 11.5px; font-weight: 600; line-height: 1; letter-spacing: 0.01em;
  color: var(--muted); padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.cfg-seg button:hover { color: var(--ink); }
.cfg-seg button.is-active {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 4px rgba(11, 11, 14, 0.14);
}
.cfg-seg--views button { font-weight: 500; }
.cfg-viewacts { margin-left: auto; display: flex; gap: 6px; }
.cfg-tool {
  border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 7px 10px; font: inherit; font-size: 11.5px; font-weight: 600;
  color: var(--ink-2); cursor: pointer; line-height: 1;
}
.cfg-tool:hover { border-color: #c6ccd6; }
.cfg-tool:disabled { opacity: 0.45; cursor: default; }
.cfg-tool[hidden] { display: none; }
.cfg.is-2d .cfg-seg--views, .cfg.is-2d .cfg-viewacts { display: none; }

.cfg-pricebar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 18px; flex-wrap: wrap;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}
.cfg-pricebar__label { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.01em; }
.cfg-pricebar__info strong {
  display: block; font-size: 1.95rem; letter-spacing: -0.04em;
  line-height: 1.08; font-weight: 650;
}
.cfg-pricebar__sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cfg-pricebar__actions { display: grid; gap: 5px; justify-items: center; }
.cfg-pricebar__phone { font-size: 11px; color: var(--muted); text-decoration: none; }
.cfg-pricebar__phone:hover { color: var(--blue); }

/* --------------------------------------------------------------- Panel */
.cfg-panel { display: grid; gap: 10px; }
.cfg-sec {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.cfg-sec__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em; text-align: left;
}
.cfg-sec__head:hover { background: #fbfbfd; }
.cfg-step {
  display: inline-grid; place-items: center;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; margin-right: 8px;
  vertical-align: middle;
}
.cfg-sec__value { font-size: 12px; font-weight: 500; color: var(--muted); text-align: right; }
.cfg-sec__head::after {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg); margin-top: -4px; margin-left: 2px;
  transition: transform 0.25s var(--ease);
}
.cfg-sec__head[aria-expanded="false"]::after { transform: rotate(-135deg); margin-top: 2px; }
.cfg-sec__body { padding: 0 18px 18px; }

/* Ausführung */
.cfg-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cfg-kind {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; background: #fff;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.cfg-kind:hover { border-color: var(--line-strong); }
.cfg-kind input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.cfg-kind:has(input:checked) { border-color: var(--blue); background: rgba(0, 113, 227, 0.04); box-shadow: 0 0 0 1px var(--blue); }
.cfg-kind:has(input:focus-visible) { outline: 3px solid rgba(0, 113, 227, 0.25); outline-offset: 2px; }
.cfg-kind__icon { color: var(--muted); flex: none; width: 30px; height: 30px; }
.cfg-kind__icon svg { width: 30px; height: 30px; display: block; }
.cfg-kind:has(input:checked) .cfg-kind__icon { color: var(--blue); }
.cfg-kind__text { min-width: 0; flex: 1; }
.cfg-kind__text strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.cfg-kind__text small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.3; margin-top: 1px; }
.cfg-kind__price { font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }

/* Maße */
.cfg-measure { padding: 6px 0 14px; }
.cfg-measure + .cfg-measure { border-top: 1px dashed var(--line); padding-top: 14px; }
.cfg-measure__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cfg-measure__top label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cfg-measure .unit-input .input {
  width: 128px; padding: 9px 40px 9px 12px; text-align: right;
  font-size: 15px; font-weight: 600; border-radius: 11px;
}
.cfg-measure .unit-input span { right: 12px; font-size: 11.5px; }
.cfg-range {
  width: 100%; appearance: none; -webkit-appearance: none;
  height: 22px; background: transparent; cursor: pointer;
}
.cfg-range::-webkit-slider-runnable-track {
  height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) var(--fill, 50%), #e6e8ee var(--fill, 50%), #e6e8ee 100%);
}
.cfg-range::-moz-range-track { height: 5px; border-radius: 999px; background: #e6e8ee; }
.cfg-range::-moz-range-progress { height: 5px; border-radius: 999px; background: var(--blue); }
.cfg-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong);
  box-shadow: 0 2px 8px rgba(11, 11, 14, 0.18); margin-top: -8.5px;
}
.cfg-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgba(11, 11, 14, 0.18);
}
.cfg-range__labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: -2px; }
.cfg-tip { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin: 8px 0 0; }

/* Farben */
.cfg-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cfg-color {
  position: relative; display: grid; grid-template-columns: 18px 1fr;
  grid-template-rows: auto auto; column-gap: 9px; align-items: center;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; background: #fff;
  transition: border-color 0.18s, background 0.18s;
}
.cfg-color:hover { border-color: var(--line-strong); }
.cfg-color input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.cfg-color:has(input:checked) { border-color: var(--blue); background: rgba(0, 113, 227, 0.04); box-shadow: 0 0 0 1px var(--blue); }
.cfg-color:has(input:focus-visible) { outline: 3px solid rgba(0, 113, 227, 0.25); outline-offset: 2px; }
.cfg-color__dot {
  grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%;
  background: var(--swatch); border: 1px solid rgba(11, 11, 14, 0.16);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.cfg-color__name { font-size: 12px; font-weight: 600; line-height: 1.2; }
.cfg-color__meta { font-size: 10px; color: var(--muted); line-height: 1.2; }

/* Ausstattung */
.cfg-options { display: grid; gap: 7px; }
.cfg-option {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px;
  cursor: pointer; background: #fff;
  transition: border-color 0.18s, background 0.18s;
}
.cfg-option:hover { border-color: var(--line-strong); }
.cfg-option input { width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.cfg-option:has(input:checked) { border-color: var(--blue); background: rgba(0, 113, 227, 0.04); }
.cfg-option__text { flex: 1; min-width: 0; }
.cfg-option__text strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.3; }
.cfg-option__text small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.cfg-option__price { font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }

/* Qualitätsstufen */
.cfg-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cfg-tier {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 10px 11px; border: 1px solid var(--line); border-radius: 13px;
  cursor: pointer; background: #fff;
  transition: border-color 0.18s, background 0.18s;
}
.cfg-tier:hover { border-color: var(--line-strong); }
.cfg-tier input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.cfg-tier:has(input:checked) { border-color: var(--ink); background: #fbfbfd; box-shadow: 0 0 0 1px var(--ink); }
.cfg-tier:has(input:focus-visible) { outline: 3px solid rgba(0, 113, 227, 0.25); outline-offset: 2px; }
.cfg-tier__name { font-size: 12.5px; font-weight: 650; }
.cfg-tier__hint { font-size: 9.5px; color: var(--muted); line-height: 1.25; min-height: 24px; }
.cfg-tier__price { font-size: 12px; font-weight: 650; margin-top: 4px; }

/* ------------------------------------------------------------- Dialog */
.cfg-dialog {
  position: fixed; inset: 0; z-index: 220;
  display: grid; place-items: center; padding: 18px;
}
.cfg-dialog[hidden] { display: none; }
.cfg-dialog__backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 11, 14, 0.42);
  backdrop-filter: blur(6px);
  animation: cfgFade 0.2s ease-out;
}
.cfg-dialog__card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 26px;
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-lg);
  animation: cfgDialogIn 0.28s var(--ease);
}
.cfg-dialog__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer;
}
.cfg-dialog__close:hover { color: var(--ink); border-color: var(--line-strong); }
.cfg-dialog__kicker { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--blue); }
.cfg-dialog__card h2 { font-size: 1.5rem; margin: 6px 0 4px; letter-spacing: -0.02em; }
.cfg-dialog__lead { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; line-height: 1.45; }
.cfg-dialog__items {
  list-style: none; margin: 0 0 16px; padding: 12px 14px;
  background: var(--bg-soft); border-radius: 14px;
  display: grid; gap: 6px;
}
.cfg-dialog__items li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); }
.cfg-dialog__items li strong { color: var(--ink-2); font-weight: 600; text-align: right; }
.cfg-dialog__items li.cfg-dialog__total { border-top: 1px solid var(--line); padding-top: 7px; margin-top: 2px; }
.cfg-dialog__items li.cfg-dialog__total strong { font-size: 15px; color: var(--ink); }
.cfg-dialog__note { font-size: 11px; color: var(--muted); margin: 10px 0 0; line-height: 1.4; }

@keyframes cfgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cfgDialogIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ Responsiv */
@media (max-width: 1080px) {
  .cfg-layout { grid-template-columns: 1fr; }
  .cfg-stage { position: static; }
  .cfg-stage__scene { height: clamp(300px, 46vh, 460px); }
  .cfg-pricebar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
    border-top: 1px solid var(--line); border-radius: 0;
    box-shadow: 0 -12px 32px rgba(11, 11, 14, 0.10);
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  }
  .cfg-pricebar__info strong { font-size: 1.5rem; }
  .cfg-pricebar__label { font-size: 10px; }
  .cfg-pricebar__sub { font-size: 10.5px; }
  .cfg-pricebar__phone { display: none; }
  .cfg-page { padding-bottom: 112px; }
  .page-configurator { padding-bottom: 88px; }
}

@media (max-width: 560px) {
  .cfg-head { padding-top: calc(var(--header-h) + 22px); }
  .cfg-head__row p { display: none; }
  .cfg-kinds { grid-template-columns: 1fr; }
  .cfg-colors { grid-template-columns: 1fr 1fr; }
  .cfg-color__name { font-size: 11.5px; }
  .cfg-tier__hint { display: none; }
  .cfg-tier__price { font-size: 11.5px; }
  .cfg-stage { border-radius: 22px; }
  .cfg-stage__scene { height: 340px; padding: 0; }
  .cfg-viewbar { padding: 7px 8px; gap: 5px; flex-wrap: nowrap; overflow-x: auto; }
  .cfg-seg { flex: 0 0 auto; }
  .cfg-seg button { padding: 5px 6px; font-size: 10px; }
  .cfg-tool { padding: 6px 7px; font-size: 10px; }
  .cfg-viewacts { margin-left: 2px; flex: 0 0 auto; }
  .cfg-scene { padding: 18px 12px 28px; }
  .cfg-scene__note { left: 14px; bottom: 8px; font-size: 9.5px; }
  .cfg-dialog__card { padding: 22px 18px 20px; }
  .cfg-dialog__items li { font-size: 12px; }
}

@media print {
  .cfg-pricebar, .cfg-dialog { display: none !important; }
}

body.cfg-locked { overflow: hidden; }

.cfg-page .alert[hidden] { display: none; }

/* ------------------------------------------------- Admin: Sprachwahl */
.admin-langbar {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 4px; margin: -6px 0 16px;
  font-size: 11px; color: var(--muted);
}
.admin-langbar span {
  margin-right: 4px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 10px;
}
.admin-langbar a {
  padding: 4px 9px; border-radius: 8px; border: 1px solid transparent;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 11.5px;
}
.admin-langbar a:hover { border-color: var(--line-strong); color: var(--ink); }
.admin-langbar a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------- Admin: Beitragseditor */
.ws-editor {
  border: 1px solid var(--line-strong); border-radius: 14px; background: #fff;
  overflow: hidden; box-shadow: 0 1px 2px rgba(11, 11, 14, 0.04);
}
.ws-editor__top {
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; background: #f7f7f9; border-bottom: 1px solid var(--line);
}
.ws-editor.is-ready .ws-editor__top { display: flex; }
.ws-editor__tabs {
  display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(11, 11, 14, 0.06);
}
.ws-editor__tab {
  border: 0; background: transparent; padding: 5px 13px; border-radius: 7px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.ws-editor__tab:hover { color: var(--ink); }
.ws-editor__tab.is-active {
  background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.ws-editor__modehint { font-size: 11.5px; color: var(--muted); }
.ws-editor__toolbar {
  display: none; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 7px 9px; border-bottom: 1px solid var(--line); background: #fff;
}
.ws-editor.is-ready .ws-editor__toolbar { display: flex; }
.ws-editor.is-html .ws-editor__toolbar { display: none; }
.ws-editor__group { display: flex; align-items: center; gap: 2px; }
.ws-editor__sep { width: 1px; height: 20px; background: var(--line-strong); margin: 0 5px; }
.ws-editor__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 30px; padding: 0; border: 0; border-radius: 7px;
  background: transparent; color: var(--ink-2); cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 650; transition: background 0.15s, color 0.15s;
}
.ws-editor__btn:hover { background: rgba(11, 11, 14, 0.05); color: var(--ink); }
.ws-editor__btn.is-active { background: var(--blue-soft); color: var(--blue); }
.ws-editor__btn svg { width: 16px; height: 16px; }
.ws-editor__btn--letter { font-family: Georgia, 'Times New Roman', serif; font-size: 14px; }
.ws-editor__btn--text { font-size: 12.5px; }
.ws-editor__visual { display: none; background: #fff; }
.ws-editor.is-visual .ws-editor__visual { display: block; }
.ws-editor.is-visual .ws-editor__source { display: none; }
.ws-editor__area {
  min-height: 420px; max-height: 70vh; overflow: auto;
  padding: 22px 24px 28px; outline: none; color: var(--ink);
  font-size: 15.5px; line-height: 1.7;
}
.ws-editor__area:focus { box-shadow: inset 0 0 0 2px var(--blue-soft); }
.ws-editor__area.is-empty::before {
  content: attr(data-placeholder); color: #a1a1aa; pointer-events: none;
}
.ws-editor__area > :first-child { margin-top: 0; }
.ws-editor__area p { margin: 0 0 1em; }
.ws-editor__area h2 {
  font-size: 1.65rem; line-height: 1.2; margin: 1.4em 0 0.5em; letter-spacing: -0.02em;
}
.ws-editor__area h3 {
  font-size: 1.28rem; line-height: 1.25; margin: 1.3em 0 0.45em; letter-spacing: -0.01em;
}
.ws-editor__area h4 {
  font-size: 1.05rem; line-height: 1.3; margin: 1.2em 0 0.4em;
}
.ws-editor__area ul, .ws-editor__area ol { margin: 0 0 1em; padding-left: 1.4em; }
.ws-editor__area ul { list-style: disc; }
.ws-editor__area ol { list-style: decimal; }
.ws-editor__area li { margin: 0.2em 0; }
.ws-editor__area blockquote {
  margin: 1.2em 0; padding: 10px 18px; border-left: 3px solid var(--blue);
  background: #f7f9fc; color: var(--ink-2); font-style: italic;
}
.ws-editor__area a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.ws-editor__area table {
  width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px;
}
.ws-editor__area th, .ws-editor__area td {
  border: 1px solid var(--line-strong); padding: 8px 10px; text-align: left; vertical-align: top;
}
.ws-editor__area th { background: #f7f7f9; font-weight: 650; }
.ws-editor__area hr { border: 0; border-top: 1px solid var(--line-strong); margin: 1.5em 0; }
.ws-editor__source {
  display: block; width: 100%; min-height: 420px; max-height: 70vh;
  border: 0; border-radius: 0; padding: 16px;
  background: #fbfbfd; color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.6; resize: vertical;
}
.ws-editor__source:focus { outline: 2px solid var(--blue-soft); outline-offset: -2px; }
.ws-editor__legend {
  display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.5;
}

@media (max-width: 700px) {
  .ws-editor__modehint { display: none; }
  .ws-editor__top { padding: 8px; }
  .ws-editor__toolbar { padding: 6px; gap: 2px; }
  .ws-editor__sep { margin: 0 2px; }
  .ws-editor__btn { width: 30px; height: 28px; }
  .ws-editor__area { min-height: 340px; padding: 16px; font-size: 15px; }
  .ws-editor__source { min-height: 340px; }
}
/* ------------------------------------------------- Admin: Medien */
.media-field-row { display: flex; align-items: center; gap: 8px; }
.media-field-row .input { flex: 1; min-width: 0; }
.media-field-row .btn { flex: 0 0 auto; white-space: nowrap; }
.media-featured-preview {
  margin-top: 14px; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: #f2f2f5;
}
.media-featured-preview img { display: block; width: 100%; height: auto; max-height: 280px; object-fit: cover; }

.media-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; min-height: 180px; padding: 24px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: 16px; background: #fbfbfd;
  transition: border-color 0.18s, background 0.18s;
}
.media-drop:hover, .media-drop.is-dragging { border-color: var(--blue); background: var(--blue-soft); }
.media-drop__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 2px;
  border-radius: 14px; background: #eef4ff; color: var(--blue);
}
.media-drop__icon svg { width: 22px; height: 22px; }
.media-drop strong { font-size: 14.5px; color: var(--ink); }
.media-drop > span:last-of-type { font-size: 12.5px; color: var(--muted); }
.media-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.media-upload__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 12px; font-size: 12.5px; color: var(--muted);
}
.media-upload__bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.media-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  margin-bottom: 18px;
}
.media-toolbar h2 { margin-bottom: 3px; }
.media-toolbar .hint { margin: 0; }
.media-search { max-width: 280px; }
.media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px;
}
.media-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.media-card__thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0;
  border: 0; background: #f2f2f5; overflow: hidden; cursor: pointer;
}
.media-card__thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.25s ease;
}
.media-card__thumb:hover img { transform: scale(1.035); }
.media-card__edit {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; border-radius: 8px;
  background: rgba(11, 11, 14, 0.74); color: #fff; font-size: 11.5px; font-weight: 600;
  opacity: 0; transition: opacity 0.18s;
}
.media-card__thumb:hover .media-card__edit,
.media-card__thumb:focus-visible .media-card__edit { opacity: 1; }
.media-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 12px 14px; }
.media-card__name {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12.5px; color: var(--ink);
}
.media-card__meta { font-size: 11px; color: var(--muted); }
.media-alt { display: flex; gap: 6px; margin-top: 3px; }
.media-alt .input { min-width: 0; padding: 7px 9px; border-radius: 9px; font-size: 12px; }
.media-alt .mini-btn { flex: 0 0 auto; padding: 5px 8px; font-size: 11.5px; }
.media-card__actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 5px; }
.media-card__actions .mini-btn { padding: 5px 8px; font-size: 11.5px; }
.media-empty {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 38px 20px;
  border: 1px dashed var(--line-strong); border-radius: 16px; background: #fbfbfd; text-align: center;
  color: var(--muted); font-size: 13px;
}
.media-empty strong { color: var(--ink); font-size: 14.5px; }
.media-no-results { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* Medien-Auswahl */
.media-picker {
  width: min(920px, calc(100vw - 28px)); max-height: min(84vh, 780px); margin: auto;
  padding: 0; border: 0; border-radius: 20px; background: #fff; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}
.media-picker::backdrop, .media-edit::backdrop { background: rgba(11, 11, 14, 0.52); }
.media-picker__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 22px 16px; border-bottom: 1px solid var(--line);
}
.media-picker__head h2 { margin: 0 0 3px; font-size: 1.15rem; }
.media-picker__head p { margin: 0; font-size: 12.5px; color: var(--muted); }
.media-picker__bar { padding: 12px 22px; border-bottom: 1px solid var(--line); }
.media-picker__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px;
  max-height: 53vh; padding: 16px 22px; overflow: auto;
}
.media-pick {
  display: flex; flex-direction: column; min-width: 0; padding: 6px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.media-pick:hover, .media-pick:focus-visible {
  border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); outline: none;
}
.media-pick__thumb {
  display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 8px; background: #f2f2f5;
}
.media-pick__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-pick__name {
  display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.media-pick__meta { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.media-picker__foot {
  display: flex; justify-content: flex-end; padding: 12px 22px; border-top: 1px solid var(--line);
}

/* Bildbearbeitung */
.media-edit {
  width: min(980px, calc(100vw - 28px)); max-height: 92vh; margin: auto; padding: 0;
  border: 0; border-radius: 20px; background: #fff; overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}
.media-edit__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 22px 16px; border-bottom: 1px solid var(--line);
}
.media-edit__head h2 { margin: 0 0 3px; font-size: 1.2rem; }
.media-edit__head p { margin: 0; font-size: 12.5px; color: var(--muted); }
.media-edit__close {
  display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer;
}
.media-edit__close:hover { color: var(--ink); border-color: var(--line-strong); }
.media-edit__layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; padding: 18px 22px;
}
.media-crop {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 0; overflow: hidden; border-radius: 12px; background: #111116;
  touch-action: none; align-self: start;
}
.media-crop img {
  display: block; width: 100%; height: 100%; object-fit: fill;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.media-crop__box {
  position: absolute; box-sizing: border-box; border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.48); cursor: move; touch-action: none;
}
.media-crop__box::before, .media-crop__box::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
}
.media-crop__box::before { border-left: 1px solid rgba(255, 255, 255, 0.55); border-right: 1px solid rgba(255, 255, 255, 0.55); left: 33.333%; right: 33.333%; }
.media-crop__box::after { border-top: 1px solid rgba(255, 255, 255, 0.55); border-bottom: 1px solid rgba(255, 255, 255, 0.55); top: 33.333%; bottom: 33.333%; }
.media-crop__handle {
  position: absolute; width: 14px; height: 14px; box-sizing: border-box;
  border: 2px solid var(--blue); border-radius: 50%; background: #fff;
}
.media-crop__handle[data-handle="nw"] { left: 4px; top: 4px; cursor: nwse-resize; }
.media-crop__handle[data-handle="ne"] { right: 4px; top: 4px; cursor: nesw-resize; }
.media-crop__handle[data-handle="sw"] { left: 4px; bottom: 4px; cursor: nesw-resize; }
.media-crop__handle[data-handle="se"] { right: 4px; bottom: 4px; cursor: nwse-resize; }
.media-edit__controls { display: flex; flex-direction: column; gap: 14px; }
.media-control__label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.media-control__hint { font-size: 11px; line-height: 1.45; color: var(--muted); }
.media-ratios {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
  padding: 3px; border-radius: 10px; background: #f2f2f5;
}
.media-ratios button {
  padding: 7px 3px; border: 0; border-radius: 7px; background: transparent;
  font: inherit; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.media-ratios button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.media-quality-value { float: right; color: var(--ink); }
.media-edit__info {
  margin: 0; padding: 10px 12px; border-radius: 10px; background: #f7f9fc;
  font-size: 12px; line-height: 1.5; color: var(--ink-2);
}
.media-edit__foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 22px; border-top: 1px solid var(--line);
}
.media-edit__note { margin-left: auto; font-size: 11.5px; color: var(--muted); }

.ws-editor__area img { display: block; max-width: 100%; height: auto; margin: 1em 0; border-radius: 12px; }

@media (max-width: 800px) {
  .media-edit__layout { grid-template-columns: 1fr; gap: 16px; }
  .media-edit__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .media-edit__controls .media-edit__info { grid-column: 1 / -1; }
  .media-edit__foot .media-edit__note { display: none; }
  .media-picker__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .media-search { max-width: none; }
}
@media (max-width: 520px) {
  .media-edit__controls { grid-template-columns: 1fr; }
  .media-upload__bar { flex-direction: column; align-items: stretch; }
  .media-upload__bar .btn { width: 100%; }
  .media-field-row { flex-direction: column; align-items: stretch; }
}
