/* VISTO Website. Schriften liegen lokal, es werden keine externen Dienste geladen. */
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #682c92;
  --purple-deep: #4a1d6b;
  --purple-soft: #efe6f6;
  --purple-line: #dccbe9;
  --night: #1a1228;
  --night-2: #261a3a;
  --ink: #1b1524;
  --ink-soft: #564d63;
  --paper: #fbf9f6;
  --paper-2: #f4efe9;
  --white: #ffffff;
  --line: rgba(27, 21, 36, 0.12);
  --crema: #c98a4b;
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --font-body: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --shadow: 0 1px 2px rgba(27, 21, 36, 0.05), 0 12px 32px -12px rgba(27, 21, 36, 0.18);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img, canvas, svg { max-width: 100%; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--purple); color: #fff; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
section[id], div[id] { scroll-margin-top: 88px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--night); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: #fff; }

/* Typografie */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display em, .h2 em { font-style: normal; color: var(--purple); }
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--purple);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.86rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 10px 24px -12px rgba(104, 44, 146, 0.8); }
.btn-primary:hover { background: var(--purple-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--purple-soft); color: var(--night); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.94rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 246, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.96rem; }
.nav a:hover { color: var(--purple); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--line); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header-cta .btn { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 82% 38%, rgba(104, 44, 146, 0.16), transparent 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(201, 138, 75, 0.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-soft); font-size: 0.95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.hero-stage { position: relative; aspect-ratio: 1 / 1.05; min-height: 380px; }
.hero-stage canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.hero-stage canvas:active { cursor: grabbing; }
.stage-hint {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  font-size: 0.82rem; color: var(--ink-soft); background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; white-space: nowrap;
}
.cup-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.cup-fallback svg { width: 46%; height: auto; opacity: 0.9; }

@media (max-width: 960px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { aspect-ratio: 1 / 0.9; min-height: 300px; max-width: 460px; margin: 0 auto; width: 100%; }
}

/* Referenzleiste */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; padding-top: 18px; padding-bottom: 18px; }
.trust-label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 650; color: var(--ink-soft); }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 32px; font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; }
.trust-list span { color: var(--ink-soft); font-weight: 450; font-size: 0.9rem; margin-left: 6px; }

/* Sektionen */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--night); color: #fff; }
.section-dark .lead, .section-dark .muted { color: rgba(255, 255, 255, 0.72); }
.section-dark .eyebrow { color: #c9a4e6; }
.section-dark .h2 em { color: #c9a4e6; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 780px; }

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.stat { padding: 28px 24px 8px 0; border-right: 1px solid rgba(255, 255, 255, 0.16); margin-right: 24px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.stat-num small { font-size: 0.45em; letter-spacing: 0; margin-left: 4px; font-family: var(--font-body); font-weight: 600; }
.stat p { margin-top: 12px; color: rgba(255, 255, 255, 0.72); font-size: 0.96rem; }
.footnote { margin-top: 28px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); max-width: 80ch; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; margin-right: 0; padding-right: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); padding-bottom: 24px; }
}

/* Karten */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 12px; align-content: start;
}
.card p { color: var(--ink-soft); }
.icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--purple-soft); color: var(--purple);
  display: grid; place-items: center; margin-bottom: 6px;
}
.icon svg { width: 24px; height: 24px; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 1.1rem; color: var(--purple); font-weight: 600;
}
.step p { color: var(--ink-soft); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* Konfigurator */
.konf { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; align-items: start; }
.konf-stage {
  position: sticky; top: 92px; border-radius: 24px; overflow: hidden; height: min(680px, calc(100vh - 116px)); min-height: 420px;
  background: radial-gradient(75% 65% at 50% 42%, #ffffff 0%, #f3eef8 55%, #e2d8ee 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.konf-stage canvas { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 64px); touch-action: pan-y; cursor: grab; }
.konf-stage canvas:active { cursor: grabbing; }
.konf-toolbar { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.85);
  color: var(--ink); font-weight: 600; font-size: 0.9rem; cursor: pointer; backdrop-filter: blur(8px);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.chip svg { width: 16px; height: 16px; }
.konf-badge {
  position: absolute; top: 16px; left: 16px; font-size: 0.8rem; color: var(--ink-soft); font-weight: 550;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
}
.konf-panel {
  background: #fff; color: var(--ink); border-radius: 24px; padding: 24px; display: grid; gap: 22px; align-content: start;
}
.field { display: grid; gap: 10px; }
.field-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
  cursor: pointer; padding: 0; position: relative; transition: transform 0.12s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--purple); }
.swatch-custom { overflow: hidden; background: conic-gradient(#f43f5e, #f59e0b, #84cc16, #06b6d4, #6366f1, #d946ef, #f43f5e); }
.swatch-custom input { position: absolute; inset: -8px; width: 60px; height: 60px; opacity: 0; cursor: pointer; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--paper-2); padding: 5px; border-radius: 12px; }
.seg button {
  min-height: 38px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft);
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(27, 21, 36, 0.14); }
.input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
}
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upload {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px dashed var(--purple-line); background: #faf6fd; cursor: pointer; font-weight: 600; color: var(--purple);
}
.upload:hover, .upload.drag { border-color: var(--purple); background: var(--purple-soft); }
.upload small { display: block; font-weight: 450; color: var(--ink-soft); font-size: 0.82rem; }
.upload svg { width: 22px; height: 22px; flex: none; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--purple); font-weight: 600; cursor: pointer; font-size: 0.82rem; text-transform: none; letter-spacing: 0; }
input[type="range"] { width: 100%; accent-color: var(--purple); height: 28px; }
.konf-actions { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.konf-actions .btn { width: 100%; }
.konf-note { font-size: 0.82rem; color: var(--ink-soft); }
.presets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.presets::-webkit-scrollbar { display: none; }
.preset {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 0.9rem;
}
.preset:hover { border-color: var(--purple); }
.preset i { width: 24px; height: 24px; border-radius: 50%; display: block; border: 1px solid var(--line); }
@media (max-width: 960px) {
  .konf { grid-template-columns: 1fr; }
  .konf-stage { top: 80px; height: 46vh; min-height: 300px; z-index: 2; }
  .konf-stage canvas { height: calc(100% - 52px); }
  .konf-toolbar { left: 8px; right: 8px; bottom: 8px; gap: 5px; flex-wrap: nowrap; }
  .chip { min-height: 36px; padding: 0 10px; font-size: 0.8rem; gap: 5px; }
  .konf-badge { top: 10px; left: 10px; font-size: 0.74rem; }
}

/* Referenzen */
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; align-content: start; }
.case-top { padding: 24px 28px; background: var(--purple-soft); display: grid; gap: 4px; }
.case-top .tag { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); }
.case-top .name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; }
.case dl { margin: 0; padding: 22px 28px 26px; display: grid; gap: 14px; }
.case dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.case dd { margin: 2px 0 0; }

/* Rechner */
.calc { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; box-shadow: var(--shadow); }
.calc-out { display: grid; gap: 22px; }
.calc-big { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-weight: 500; color: var(--purple); font-variant-numeric: tabular-nums; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-variant-numeric: tabular-nums; }
.calc-row strong { font-size: 1.5rem; }
.calc-scale { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 800px) { .calc { grid-template-columns: 1fr; } }

/* Partner */
.partner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.ticks { display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.ticks li::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--purple) center / 14px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  margin-top: 1px;
}
.ticks strong { display: block; }
.ticks span { color: var(--ink-soft); }
@media (max-width: 860px) { .partner { grid-template-columns: 1fr; } }

/* Über uns */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.about blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; letter-spacing: -0.015em; }
.about-text { display: grid; gap: 16px; color: var(--ink-soft); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 650; font-size: 1.12rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--purple); border-bottom: 2px solid var(--purple);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-soft); max-width: 70ch; }

/* CTA */
.cta { text-align: center; display: grid; gap: 24px; justify-items: center; }
.cta .lead { margin: 0 auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-contact { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; color: rgba(255, 255, 255, 0.72); }
.cta-contact a { color: #fff; }

/* Footer */
.footer { background: var(--night); color: rgba(255, 255, 255, 0.7); border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 48px 0 32px; font-size: 0.94rem; }
.footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h3 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 14px; font-weight: 650; }
.footer li { margin-bottom: 8px; }
.footer .logo img { height: 22px; margin-bottom: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.86rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Rechtstexte */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.02em; margin-bottom: 28px; line-height: 1.1; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal address { font-style: normal; color: var(--ink); line-height: 1.7; }

/* Einblenden */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.row label { display: grid; gap: 2px; font-weight: 600; }

/* Case Studies */
.case-top h3.name { margin: 0; }
.case-body { padding: 22px 28px 26px; display: grid; gap: 18px; }
.case-body > p { color: var(--ink); font-size: 1.04rem; }
.case-body dl { padding: 18px 0 0; border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; gap: 16px 24px; }
@media (max-width: 520px) { .case-body dl { grid-template-columns: 1fr; } }

/* Karten */
.map { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; align-content: start; }
.map img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--line); }
.map figcaption { padding: 20px 24px 24px; display: grid; gap: 6px; }
.map figcaption .tag { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); }
.map figcaption strong { font-size: 1.12rem; line-height: 1.35; letter-spacing: -0.01em; }
.map figcaption span:last-child { color: var(--ink-soft); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pills li { padding: 8px 16px; border-radius: 999px; background: var(--purple-soft); color: var(--purple-deep); font-weight: 600; font-size: 0.94rem; }
.calc-formula { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 961px) and (max-width: 1180px) { .nav { gap: 18px; } .nav a { font-size: 0.9rem; } }

/* ===== Konfigurator, zweite Fassung ===== */
.konf { grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.8fr); gap: 20px; align-items: stretch; }
.konf-stage {
  position: relative; top: auto; height: auto; min-height: 640px; border-radius: 28px; border: 0;
  background:
    radial-gradient(60% 34% at 50% 80%, rgba(104, 44, 146, 0.1), transparent 70%),
    linear-gradient(180deg, #fbf9fd 0%, #f4eff9 58%, #e9e0f3 58.2%, #f3edf9 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.konf-stage canvas { height: calc(100% - 128px); }
.konf-stage:fullscreen { border-radius: 0; }
.konf-badge { display: inline-flex; align-items: center; gap: 8px; top: 18px; left: 18px; }
.konf-badge i { width: 8px; height: 8px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 4px rgba(47, 179, 107, 0.18); }
.konf-icon {
  position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.85); color: var(--ink); display: grid; place-items: center;
}
.konf-icon:hover { border-color: var(--ink); }
.konf-icon svg { width: 18px; height: 18px; }
.konf-dock { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; gap: 12px; justify-items: center; }
.konf-views { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.konf-360 {
  width: min(560px, 100%); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px 8px 8px;
  box-shadow: 0 10px 30px -18px rgba(27, 21, 36, 0.5); backdrop-filter: blur(10px);
}
.spin-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--purple); color: #fff; cursor: pointer; display: grid; place-items: center; }
.spin-btn:hover { background: var(--purple-deep); }
.spin-btn svg { width: 16px; height: 16px; }
.spin-btn[aria-pressed="true"] .i-play, .spin-btn[aria-pressed="false"] .i-pause { display: none; }
.konf-360 input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: ew-resize; --p: 0%;
}
.konf-360 input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--purple) var(--p), #e3d9ee var(--p));
}
.konf-360 input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: #e3d9ee; }
.konf-360 input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--purple); }
.konf-360 input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; margin-top: -8px;
  background: #fff; border: 2px solid var(--purple); box-shadow: 0 2px 6px rgba(27, 21, 36, 0.25);
}
.konf-360 input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--purple); }
.konf-360 .deg { font-size: 0.86rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 86px; text-align: right; }
.konf-360 .deg b { color: var(--ink); font-size: 1rem; }

.konf-panel { border-radius: 28px; padding: 0; gap: 0; grid-template-rows: auto 1fr auto; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tabs button {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 0 8px;
  border: 0; background: transparent; cursor: pointer; font-weight: 650; font-size: 0.92rem; color: var(--ink-soft);
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button span { width: 22px; height: 22px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-size: 0.76rem; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--purple); }
.tabs button[aria-selected="true"] span { background: var(--purple); color: #fff; }
.pane { padding: 24px; display: grid; gap: 24px; align-content: start; }
.konf-actions { padding: 18px 24px 22px; border-top: 1px solid var(--line); background: #fcfafe; }
.konf-nav { display: flex; justify-content: space-between; gap: 10px; }
.konf-nav .btn { width: auto; flex: 1; }
.konf-nav .btn[hidden] + .btn { margin-left: auto; }
.link-btn { font-size: 0.82rem; }

.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl {
  display: grid; justify-items: center; gap: 8px; padding: 14px 6px 10px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--line); background: linear-gradient(180deg, #fbf9fd, #f1ebf7); transition: border-color 0.15s ease, transform 0.15s ease;
}
.tpl:hover { border-color: var(--purple); transform: translateY(-2px); }
.tpl[aria-pressed="true"] { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.tpl-name { font-size: 0.84rem; font-weight: 650; }
.tpl-cup { position: relative; width: 44px; height: 58px; display: block; filter: drop-shadow(0 6px 6px rgba(27, 21, 36, 0.18)); }
.tpl-cup::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; border-radius: 4px 4px 2px 2px; background: var(--lid);
  box-shadow: inset 0 0 0 1px rgba(27, 21, 36, 0.12); z-index: 1;
}
.tpl-cup i {
  position: absolute; left: 2px; right: 2px; top: 7px; bottom: 0; display: block;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); background: var(--c);
}
.tpl-cup i::after { content: ""; position: absolute; left: 30%; right: 30%; top: 34%; height: 3px; border-radius: 2px; background: var(--t); box-shadow: 0 7px 0 -0.5px var(--t); opacity: 0.9; }
.tpl-cup[data-p="band"] i { background: linear-gradient(var(--c) 82%, var(--c2) 82%); }
.tpl-cup[data-p="arc"] i { background: radial-gradient(60% 40% at 0% 105%, var(--c2) 98%, transparent 100%), radial-gradient(60% 40% at 100% 105%, var(--c2) 98%, transparent 100%), var(--c); }
.tpl-cup[data-p="gradient"] i { background: linear-gradient(var(--c) 35%, var(--c2) 140%); }
.tpl-cup[data-p="grid"] i { background: radial-gradient(circle, var(--c2) 0.9px, transparent 1.2px) 0 0 / 6px 6px, var(--c); }

@media (max-width: 960px) {
  .konf { grid-template-columns: 1fr; }
  .konf-stage { position: sticky; top: 76px; z-index: 2; min-height: 0; height: 54vh; border-radius: 22px; }
  .konf-stage canvas { height: calc(100% - 112px); }
  .konf-dock { left: 10px; right: 10px; bottom: 10px; gap: 8px; }
  .konf-360 { gap: 10px; padding: 6px 12px 6px 6px; }
  .konf-360 .deg { min-width: 0; font-size: 0.78rem; }
  .konf-360 .deg b { font-size: 0.86rem; }
  .spin-btn { width: 34px; height: 34px; }
  .konf-panel { border-radius: 22px; }
  .tabs button { font-size: 0.84rem; gap: 6px; min-height: 54px; }
  .pane { padding: 20px 18px; }
  .konf-actions { padding: 16px 18px 20px; }
}

.konf { align-items: start; }
@media (min-width: 961px) {
  .konf-stage { position: sticky; top: 88px; height: min(760px, calc(100vh - 108px)); min-height: 520px; }
}
.tpl-cup[data-p="panorama"] i { background: linear-gradient(165deg, transparent 62%, var(--c2) 62.5%) , linear-gradient(195deg, transparent 70%, color-mix(in srgb, var(--c2) 55%, var(--c)) 70.5%), var(--c); }
@media (max-width: 960px) {
  .konf { grid-template-columns: minmax(0, 1fr); }
  .konf-panel { min-width: 0; }
}
@media (max-width: 520px) {
  .tabs button { font-size: 0.8rem; gap: 5px; padding: 0 4px; }
  .tabs button span { width: 20px; height: 20px; }
  .tpls { gap: 8px; }
}
.tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tpls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pane { grid-template-columns: minmax(0, 1fr); }
.pane .field, .pane .row { min-width: 0; }
.seg { overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { padding: 0 8px; white-space: nowrap; }
@media (max-width: 520px) {
  .tabs button span { display: none; }
  .tabs button { font-size: 0.84rem; }
  .seg button { font-size: 0.82rem; padding: 0 6px; }
  .pane .row { grid-template-columns: minmax(0, 1fr); }
}
