/* ==========================================================================
   NUVYRO – Stylesheet
   Layout-Idee: Schweizer Raster mit 12 Spalten, linksbündig, viel Weissraum.
   Helle Sektionen tragen den Inhalt, dunkle Sektionen setzen Akzente.
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, keine Drittanbieter) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Mockup Serif"; src: url("../fonts/mockup-serif.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Mockup Serif"; src: url("../fonts/mockup-serif-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

/* ---------- Design-Tokens ---------- */
:root {
  /* Markenfarben */
  --ink: #171717;          /* Tiefes Anthrazit */
  --paper: #F5F3EE;        /* Warmes Off-White */
  --white: #FFFFFF;
  --champagne: #B9A184;    /* Akzent: Linien, Rahmen, Markierungen */
  --stone: #858585;        /* Dezentes Grau, nur für grosse Schrift oder auf Dunkel */

  /* Abgeleitete Töne für gut lesbare Kontraste (WCAG AA) */
  --ink-2: #55534E;            /* Sekundärtext auf Hell */
  --champagne-text: #7A6548;   /* Champagner als Text auf Hell */
  --on-dark: #F5F3EE;
  --on-dark-2: #A3A3A3;        /* Sekundärtext auf Dunkel */
  --sand: #ECE8DF;
  --line: rgba(23, 23, 23, 0.12);
  --line-strong: rgba(23, 23, 23, 0.24);
  --line-dark: rgba(245, 243, 238, 0.14);
  --error: #A3362B;

  /* Typografie */
  --font-display: "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: clamp(1.375rem, 1.17rem + 0.75vw, 1.75rem);
  --fs-xl: clamp(2.125rem, 1.45rem + 2.4vw, 3.375rem);
  --fs-2xl: clamp(2.5rem, 1.7rem + 2.9vw, 3.875rem);

  /* Formen und Tiefe */
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(23, 23, 23, 0.04), 0 18px 40px -22px rgba(23, 23, 23, 0.22);
  --shadow-device: 0 1px 2px rgba(23, 23, 23, 0.05), 0 34px 70px -34px rgba(23, 23, 23, 0.42);

  /* Raster und Abstände */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(88px, 11vw, 168px);
  --stack: clamp(48px, 6vw, 88px);
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-feature-settings: "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
:where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--champagne); color: var(--ink); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 500; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--champagne); }
.on-dark .form-card :focus-visible { outline-color: var(--ink); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typografie ---------- */
h1, h2, h3, .display { overflow-wrap: break-word; }
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); letter-spacing: -0.042em; line-height: 0.99; }
h2 { font-size: var(--fs-xl); }
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
}
.lead { font-size: var(--fs-md); line-height: 1.6; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.on-dark .lead { color: var(--on-dark-2); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.tnum { font-variant-numeric: tabular-nums; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease);
}
.text-link:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h);
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease),
    box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { --btn-h: 44px; padding: 0 20px; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover {
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(185, 161, 132, 0.75), 0 14px 28px -16px rgba(23, 23, 23, 0.55);
  transform: translateY(-1px);
}
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--white); border-color: var(--ink); transform: translateY(-1px); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--white); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.6); transform: translateY(-1px); }
.btn--outline-light { background: transparent; color: var(--on-dark); border-color: rgba(245, 243, 238, 0.3); }
.btn--outline-light:hover { border-color: var(--champagne); color: var(--white); transform: translateY(-1px); }
.btn--champagne { background: var(--champagne); color: var(--ink); }
.btn--champagne:hover { background: #C8B497; box-shadow: 0 16px 30px -16px rgba(185, 161, 132, 0.65); transform: translateY(-1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 420px) {
  .btn { white-space: normal; padding-block: 12px; }
  .form-card .btn, .contact-intro .btn, .hero .btn { width: 100%; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-solid,
.site-header.is-menu-open {
  background: rgba(245, 243, 238, 0.9);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-menu-open { background: var(--paper); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem;
  letter-spacing: 0.24em; text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--champagne); }
.on-dark .logo { color: var(--on-dark); }

.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; display: block; padding: 10px 14px;
  font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none;
  transition: color 0.25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--champagne); opacity: 0; transform: translateY(3px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { opacity: 1; transform: none; }

.menu-toggle {
  display: none; width: 46px; height: 46px; flex: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.menu-toggle:hover { border-color: var(--ink); background: var(--white); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 59;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--paper); overflow-y: auto;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  letter-spacing: -0.03em; line-height: 1.15; text-decoration: none;
}
.mobile-menu-foot { display: grid; gap: 16px; }
.mobile-menu-foot .btn { width: 100%; }
.mobile-menu-foot p { font-size: var(--fs-sm); color: var(--ink-2); }

@media (max-width: 1060px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
}

/* ---------- Sektionen ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stack); }
.section-inner > * { min-width: 0; }
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; align-items: end;
}
.section-head > h2 { grid-column: 1 / span 7; }
.section-head > .lead { grid-column: 8 / span 5; }
.section-head--stack > h2, .section-head--stack > .lead { grid-column: 1 / span 8; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head > h2, .section-head > .lead { grid-column: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 104px));
  padding-bottom: clamp(72px, 9vw, 136px);
}
.hero-grid {
  position: absolute; inset: 0 var(--gutter); max-width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: repeat(6, 1fr); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
}
.hero-grid span { border-left: 1px solid rgba(23, 23, 23, 0.055); }
.hero-grid span:last-child { border-right: 1px solid rgba(23, 23, 23, 0.055); }
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 32px; align-items: center;
}
.hero-copy { grid-column: 1 / span 6; display: grid; gap: 28px; justify-items: start; }
.hero-intro { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-sm); color: var(--ink-2); }
.hero-intro::before { content: ""; width: 28px; height: 1px; background: var(--champagne); }
.hero .lead { max-width: 30em; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  padding-top: 26px; margin-top: 8px; border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--ink-2);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 17px; height: 17px; color: var(--champagne-text); stroke-width: 2; }

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-inner > .hero-copy { grid-column: auto; }
  .hero-inner > .showcase { grid-column: auto; width: 100%; max-width: 760px; }
}

/* Einmalige Ladesequenz im Hero */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-device { from { opacity: 0; transform: translateY(36px) scale(0.985); } to { opacity: 1; transform: none; } }
.hero-anim > * { animation: rise 0.9s var(--ease) both; }
.hero-anim > :nth-child(1) { animation-delay: 0.05s; }
.hero-anim > :nth-child(2) { animation-delay: 0.14s; }
.hero-anim > :nth-child(3) { animation-delay: 0.24s; }
.hero-anim > :nth-child(4) { animation-delay: 0.34s; }
.hero-anim > :nth-child(5) { animation-delay: 0.44s; }
.showcase { animation: rise-device 1.2s var(--ease) 0.25s both; }

/* ---------- Geräte-Rahmen ---------- */
.browser {
  position: relative; overflow: hidden; container-type: inline-size;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-device), 0 0 0 1px rgba(23, 23, 23, 0.07);
}
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  height: 36px; padding: 0 14px;
  background: #FAF9F6; border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(23, 23, 23, 0.2); }
.browser-url {
  flex: 1; max-width: 62%; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 22px; padding: 0 10px; border-radius: 6px; background: var(--paper);
  font-size: 11px; color: var(--ink-2); letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden;
}
.browser-url .icon { width: 11px; height: 11px; stroke-width: 2; }
.browser-url > span { overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 380px) {
  .browser-bar { gap: 8px; height: 30px; padding: 0 10px; }
  .browser-tag { display: none; }
  .browser-url { max-width: 78%; font-size: 10px; }
}
.browser-tag {
  font-size: 10.5px; font-weight: 500; color: var(--champagne-text);
  border: 1px solid rgba(185, 161, 132, 0.55); border-radius: var(--radius-pill); padding: 1px 8px;
}
.screen { position: relative; overflow: hidden; container-type: inline-size; background: var(--white); }
.browser .screen { aspect-ratio: 16 / 10; }
.phone {
  position: relative; padding: 6px; background: var(--ink);
  border-radius: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-device), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone .screen { aspect-ratio: 9 / 19; border-radius: clamp(15px, 2.4vw, 24px); }
.phone::after {
  content: ""; position: absolute; top: 12px; left: 50%; width: 26%; height: 5px; margin-left: -13%;
  border-radius: 4px; background: rgba(23, 23, 23, 0.85); z-index: 2;
}

/* Showcase im Hero */
.showcase { grid-column: 7 / span 6; position: relative; padding-right: 9%; padding-bottom: 8px; }
.showcase .screen > .ms { transition: opacity 0.8s var(--ease), transform 1.1s var(--ease); }
.showcase .screen > .ms:not(.is-active) { opacity: 0; transform: scale(1.03); }
.showcase-phone { position: absolute; right: 0; bottom: 0; width: 25%; }
.showcase-phone-float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.showcase-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  width: 76%; margin-top: 22px;
}
.showcase-caption { font-size: var(--fs-xs); color: var(--ink-2); }
.showcase-tabs { display: flex; gap: 20px; }
.showcase-tab {
  position: relative; padding: 8px 0 10px; border: 0; background: none;
  font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2);
  transition: color 0.25s;
}
.showcase-tab::before, .showcase-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
}
.showcase-tab::before { background: var(--line-strong); }
.showcase-tab::after { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.showcase-tab:hover, .showcase-tab[aria-pressed="true"] { color: var(--ink); }
.showcase-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink);
}
.showcase-toggle:hover { border-color: var(--ink); background: var(--white); }
.showcase-toggle .icon { width: 14px; height: 14px; stroke-width: 2; }
.showcase-toggle .icon-play { display: none; }
.showcase-toggle[aria-pressed="true"] .icon-pause { display: none; }
.showcase-toggle[aria-pressed="true"] .icon-play { display: block; }
.showcase-tabs { align-items: center; }
.showcase-tab[aria-pressed="true"]::after { transform: scaleX(1); }
.showcase.is-playing .showcase-tab[aria-pressed="true"]::after { animation: progress var(--cycle, 5s) linear both; }
.showcase.is-paused .showcase-tab[aria-pressed="true"]::after { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 560px) {
  .showcase { padding-right: 12%; }
  .showcase-phone { width: 30%; bottom: 52px; }
  .showcase-controls { width: 100%; }
  .showcase-caption { display: none; }
}

/* ---------- Mini-Websites (Konzept-Mockups) ----------
   Alle Grössen in cqw: Die Mockups skalieren mit ihrem Rahmen und schalten
   in schmalen Rahmen auf die Smartphone-Ansicht um. */
.ms {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ms-bg); color: var(--ms-fg);
  font-family: var(--ms-font, var(--font-body)); line-height: 1.35;
  --ms-pad: 4.4cqw;
  user-select: none;
}
.ms span { display: block; }
.ms .ms-nav { display: flex; align-items: center; gap: 3cqw; padding: 2.3cqw var(--ms-pad); border-bottom: 1px solid var(--ms-line); }
.ms .ms-logo {
  font-family: var(--ms-title-font, var(--font-display)); font-size: 1.85cqw; font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap;
}
.ms .ms-logo em { font-style: normal; font-weight: 400; opacity: 0.62; }
.ms .ms-links { display: flex; gap: 2.6cqw; margin-left: auto; font-size: 1.25cqw; opacity: 0.78; }
.ms .ms-btn {
  font-size: 1.2cqw; font-weight: 500; padding: 0.85cqw 1.8cqw; white-space: nowrap;
  border-radius: var(--ms-radius, 99cqw); background: var(--ms-accent); color: var(--ms-accent-fg);
}
.ms .ms-burger { display: none; }
.ms .ms-hero {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 4cqw; align-items: center;
  padding: 3.2cqw var(--ms-pad);
}
.ms .ms-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5cqw; }
.ms .ms-kicker { font-size: 1.2cqw; letter-spacing: 0.02em; color: var(--ms-muted); }
.ms .ms-title {
  font-family: var(--ms-title-font, var(--font-display)); font-weight: var(--ms-title-weight, 500);
  font-style: var(--ms-title-style, normal); text-transform: var(--ms-title-case, none);
  font-size: var(--ms-title-size, 5.3cqw); line-height: 1.02; letter-spacing: var(--ms-title-tracking, -0.035em);
  text-wrap: balance;
}
.ms .ms-text { font-size: 1.5cqw; line-height: 1.5; color: var(--ms-muted); max-width: 36ch; }
.ms .ms-cta {
  margin-top: 1cqw; font-size: 1.3cqw; font-weight: 500; padding: 1.15cqw 2.4cqw;
  border-radius: var(--ms-radius, 99cqw); background: var(--ms-accent); color: var(--ms-accent-fg);
}
.ms .ms-art { align-self: stretch; min-height: 0; overflow: hidden; border-radius: var(--ms-art-radius, 1.2cqw); }
.ms .ms-art svg { width: 100%; height: 100%; }
.ms .ms-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw;
  padding: 2.1cqw var(--ms-pad) 2.5cqw; border-top: 1px solid var(--ms-line);
  font-size: 1.15cqw; color: var(--ms-muted);
}
.ms .ms-strip b { display: block; margin-bottom: 0.3cqw; font-size: 1.3cqw; font-weight: 600; color: var(--ms-fg); }

@container (max-width: 260px) {
  .ms { --ms-pad: 6cqw; }
  .ms .ms-nav { padding: 9cqw var(--ms-pad) 4cqw; }
  .ms .ms-logo { font-size: 5.4cqw; }
  .ms .ms-links, .ms .ms-btn { display: none; }
  .ms .ms-burger { display: flex; flex-direction: column; gap: 1.3cqw; width: 6cqw; margin-left: auto; }
  .ms .ms-burger i { display: block; height: 0.7cqw; min-height: 1px; border-radius: 1cqw; background: currentColor; }
  .ms .ms-hero { flex: none; grid-template-columns: 1fr; align-content: start; gap: 5.5cqw; padding: 5cqw var(--ms-pad); }
  .ms .ms-art { order: -1; height: 60cqw; border-radius: var(--ms-art-radius-m, 4cqw); }
  .ms .ms-copy { gap: 3.2cqw; }
  .ms .ms-kicker { font-size: 3.5cqw; }
  .ms .ms-title { font-size: var(--ms-title-size-m, 10.5cqw); }
  .ms .ms-text { font-size: 4cqw; }
  .ms .ms-cta { align-self: stretch; text-align: center; font-size: 3.9cqw; padding: 3.4cqw 5cqw; }
  .ms .ms-strip { grid-template-columns: 1fr; gap: 3.4cqw; padding: 5cqw var(--ms-pad); font-size: 3.5cqw; }
  .ms .ms-strip b { font-size: 3.9cqw; }
}

/* Branchen-Varianten: eigene Farben, Schriften und Anordnung */
.ms--maler {
  --ms-bg: #FBFAF7; --ms-fg: #1E2A30; --ms-muted: #5A656A; --ms-accent: #2F4858; --ms-accent-fg: #FFFFFF;
  --ms-line: rgba(30, 42, 48, 0.1); --ms-radius: 0.6cqw;
}
.ms--coiffeur {
  --ms-bg: #1B1B1B; --ms-fg: #F2EEE8; --ms-muted: #A9A39A; --ms-accent: #E7DCCB; --ms-accent-fg: #1B1B1B;
  --ms-line: rgba(242, 238, 232, 0.12); --ms-title-weight: 500; --ms-title-case: uppercase;
  --ms-title-tracking: -0.01em; --ms-title-size: 4.6cqw; --ms-title-size-m: 9.4cqw; --ms-art-radius: 0;
}
.ms--coiffeur .ms-hero { grid-template-columns: 1fr 1.05fr; }
.ms--coiffeur .ms-art { order: -1; }
.ms--restaurant {
  --ms-bg: #203A2D; --ms-fg: #F3EDE2; --ms-muted: #B9C3B5; --ms-accent: #D9A55B; --ms-accent-fg: #1D2A22;
  --ms-line: rgba(243, 237, 226, 0.14); --ms-title-font: "Mockup Serif", Georgia, serif; --ms-title-weight: 500;
  --ms-title-tracking: -0.012em; --ms-radius: 0.4cqw; --ms-title-size: 5cqw; --ms-title-size-m: 10cqw;
}
.ms--kosmetik {
  --ms-bg: #F6EFEA; --ms-fg: #3A2E29; --ms-muted: #76665E; --ms-accent: #A9806E; --ms-accent-fg: #FFFFFF;
  --ms-line: rgba(58, 46, 41, 0.1); --ms-title-font: "Mockup Serif", Georgia, serif; --ms-title-weight: 400;
  --ms-title-style: italic; --ms-title-tracking: -0.015em; --ms-title-size: 6cqw; --ms-title-size-m: 12cqw;
  --ms-art-radius: 40cqw 40cqw 1cqw 1cqw; --ms-art-radius-m: 60cqw 60cqw 3cqw 3cqw;
}
.ms--handwerk {
  --ms-bg: #F7F3EC; --ms-fg: #2B2118; --ms-muted: #6B5D50; --ms-accent: #2B2118; --ms-accent-fg: #F7F3EC;
  --ms-line: rgba(43, 33, 24, 0.12); --ms-radius: 0; --ms-art-radius: 0;
}

/* ---------- Branchen-Leiste ---------- */
.industries { border-block: 1px solid var(--line); padding-block: 26px; }
.industries-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.industries-label { font-size: var(--fs-sm); color: var(--ink-2); }
.industries-list { display: flex; flex-wrap: wrap; gap: 8px 30px; font-family: var(--font-display); font-size: var(--fs-md); letter-spacing: -0.01em; }
.industries-list li { display: inline-flex; align-items: baseline; gap: 10px; }
.industries-list li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--champagne); transform: translateY(-3px); }
@media (max-width: 640px) {
  .industries-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: var(--fs-sm); }
}

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.service { display: grid; gap: 10px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.service h3 { font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.01em; }
.service p { font-size: var(--fs-sm); color: var(--ink-2); max-width: 34ch; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- Ausgewählte Projekte (echte Referenzen) ---------- */
.reference {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 32px; align-items: center;
}
.reference-media { position: relative; grid-column: 1 / span 7; margin: 0; padding: 0 12% 40px 0; }
.reference-browser { transition: translate 0.8s var(--ease), box-shadow 0.8s var(--ease); }
.reference-browser picture, .reference-phone picture { display: block; }
.reference-shot { display: block; width: 100%; height: auto; }
.reference-phone { position: absolute; right: 0; bottom: 0; width: 25%; transition: translate 0.8s var(--ease); }
.reference-phone .reference-shot { border-radius: clamp(14px, 2.2vw, 22px); }
.reference:hover .reference-browser { translate: 0 -4px; box-shadow: var(--shadow-device), 0 0 0 1px rgba(23, 23, 23, 0.07), 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.reference:hover .reference-phone { translate: 0 -8px; }
.browser-tag--live { display: inline-flex; align-items: center; gap: 5px; color: #3F6B4E; border-color: rgba(63, 107, 78, 0.4); }
.browser-tag--live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #4F8A63; }

.reference-info { grid-column: 9 / span 4; display: grid; gap: 20px; justify-items: start; }
.reference-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border: 1px solid rgba(185, 161, 132, 0.55); border-radius: var(--radius-pill);
  background: rgba(185, 161, 132, 0.12); color: var(--champagne);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em;
}
.reference-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); }
.reference .badge--light { border-color: rgba(245, 243, 238, 0.28); color: var(--on-dark); }
.reference-info .project-meta { color: var(--on-dark-2); }
.reference-info h3 { font-size: var(--fs-xl); letter-spacing: -0.03em; line-height: 1.05; }
.reference-text { font-size: var(--fs-sm); color: var(--on-dark-2); max-width: 46ch; }
.reference-details {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px;
  padding-top: 40px; border-top: 1px solid var(--line-dark);
}
.reference-features { grid-column: 1 / span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.reference-details .reference-note { grid-column: 9 / span 4; align-self: start; }
.reference-features-title { margin-bottom: 12px; font-size: var(--fs-xs); font-weight: 600; color: var(--on-dark); }
.reference-features .checklist .icon { color: var(--champagne); }
.reference-features .checklist--extra .icon { color: var(--on-dark-2); }
.reference-features .checklist--extra li { color: var(--on-dark-2); }
.reference-note {
  padding-left: 16px; border-left: 2px solid var(--champagne);
  font-size: var(--fs-sm); color: var(--on-dark-2); max-width: 48ch;
}
.reference-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding-top: 36px; border-top: 1px solid var(--line-dark);
}
.reference-cta p { font-family: var(--font-display); font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.2; color: var(--on-dark); max-width: 26ch; text-wrap: balance; }
@media (max-width: 1080px) {
  .reference { grid-template-columns: minmax(0, 1fr); }
  .reference-media, .reference-info, .reference-details { grid-column: auto; }
  .reference-media { max-width: 760px; }
  .reference-details { grid-template-columns: minmax(0, 1fr); }
  .reference-features, .reference-details .reference-note { grid-column: auto; }
}
@media (max-width: 640px) {
  .reference-media { padding: 0 14% 28px 0; }
  .reference-phone { width: 30%; }
  .reference-features { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .reference-cta .btn { width: 100%; }
}

/* Hervorhebung des Pakets nach Klick auf «START-Paket entdecken» */
@keyframes plan-highlight {
  0% { box-shadow: 0 0 0 0 rgba(185, 161, 132, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(185, 161, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(185, 161, 132, 0); }
}
.plan.is-highlight { border-color: var(--champagne); animation: plan-highlight 1.4s var(--ease) 2; }

/* ---------- Konzeptprojekte ---------- */
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 32px; }
.project { display: grid; gap: 22px; align-content: start; grid-column: span 4; }
.project--lg { grid-column: span 7; }
.project--md { grid-column: span 5; }
.project-media {
  position: relative; display: grid; align-items: center;
  padding: clamp(20px, 3.2vw, 44px); border-radius: var(--radius-lg); background: var(--sand);
  overflow: hidden;
}
.project--lg .project-media { padding-right: clamp(64px, 9vw, 120px); }
.project-media .phone { position: absolute; right: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px); width: 21%; }
.project-media .browser { transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease); }
.project:hover .project-media .browser { transform: translateY(-4px); }
.project-info { display: grid; gap: 10px; justify-items: start; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--ink-2); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  border: 1px solid rgba(122, 101, 72, 0.4); color: var(--champagne-text);
  font-size: var(--fs-xs); font-weight: 500;
}
.project-info h3 { font-size: var(--fs-lg); }
.project-info p { font-size: var(--fs-sm); color: var(--ink-2); max-width: 46ch; }
.project-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; font-size: var(--fs-sm); }
.project-foot .project-plan { color: var(--ink-2); }
.project-foot .project-plan strong { color: var(--ink); font-weight: 600; letter-spacing: 0.06em; }
.link-btn { border: 0; background: none; padding: 0 0 2px; color: var(--ink); }
.projects-note { font-size: var(--fs-sm); color: var(--ink-2); max-width: 62ch; }
@media (max-width: 980px) {
  .project, .project--lg, .project--md { grid-column: span 6; }
  .project--lg { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .projects { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .project, .project--lg, .project--md { grid-column: auto; }
}

/* ---------- Projekt-Dialog ---------- */
.project-dialog {
  width: min(1140px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.project-dialog::backdrop { background: rgba(23, 23, 23, 0.6); }
.project-dialog[open] { animation: dialog-in 0.45s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.99); } to { opacity: 1; transform: none; } }
.pd-inner {
  display: grid; gap: 28px; padding: clamp(20px, 3vw, 40px);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
}
.pd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pd-head h2 { font-size: var(--fs-lg); letter-spacing: -0.02em; margin-top: 8px; }
.pd-close {
  flex: none; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent;
}
.pd-close:hover { border-color: var(--ink); background: var(--white); }
.pd-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 230px); gap: clamp(20px, 3vw, 40px); align-items: end;
  padding: clamp(16px, 3vw, 40px); border-radius: var(--radius-md); background: var(--sand);
}
.pd-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; }
.pd-foot p { color: var(--ink-2); font-size: var(--fs-sm); max-width: 62ch; }
.pd-foot .pd-note { font-size: var(--fs-xs); margin-top: 6px; }
@media (max-width: 720px) {
  .pd-stage { grid-template-columns: minmax(0, 1fr); }
  .pd-stage .phone { width: 58%; max-width: 230px; justify-self: center; }
  .pd-foot { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Preise ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; padding-top: 24px; }
.plan {
  --plan-pad: clamp(26px, 2.8vw, 40px);
  position: relative; display: flex; flex-direction: column; gap: 22px;
  padding: var(--plan-pad); border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--paper);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.3s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.plan-head { display: grid; gap: 10px; }
.plan-flag { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 500; color: var(--champagne-text); }
.plan-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.plan-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: 0.16em; line-height: 1.2; }
.plan-tagline { font-size: var(--fs-sm); color: var(--ink-2); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan-currency { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.plan-amount {
  font-family: var(--font-display); font-size: clamp(2.75rem, 2.25rem + 1.5vw, 3.5rem);
  font-weight: 500; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums;
}
.plan-unit { flex-basis: 100%; font-size: var(--fs-xs); color: var(--ink-2); }
.plan-desc, .plan-fit { font-size: var(--fs-sm); color: var(--ink-2); }
.plan-fit strong { display: block; margin-bottom: 2px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); }
.plan-cta { width: 100%; }
.plan-features { display: grid; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan-features-title { font-size: var(--fs-xs); font-weight: 600; }
.checklist { display: grid; gap: 11px; font-size: var(--fs-sm); line-height: 1.45; }
.checklist li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 11px; align-items: start; }
.checklist .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--champagne-text); stroke-width: 1.8; }
.checklist small { display: block; font-size: var(--fs-xs); color: var(--ink-2); }

.plan--business {
  margin-block: -24px; padding-block: calc(var(--plan-pad) + 24px);
  background: var(--ink); color: var(--on-dark); border-color: var(--champagne);
  box-shadow: 0 44px 90px -44px rgba(23, 23, 23, 0.7);
}
.plan--business::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(185, 161, 132, 0.32); border-radius: calc(var(--radius-lg) - 7px);
  transition: border-color 0.5s var(--ease);
}
.plan--business:hover { box-shadow: 0 54px 100px -44px rgba(23, 23, 23, 0.75); }
.plan--business:hover::before { border-color: rgba(185, 161, 132, 0.7); }
.plan--business .plan-tagline, .plan--business .plan-desc, .plan--business .plan-fit,
.plan--business .plan-currency, .plan--business .plan-unit, .plan--business .checklist small { color: var(--on-dark-2); }
.plan--business .plan-fit strong, .plan--business .plan-features-title { color: var(--on-dark); }
.plan--business .plan-price, .plan--business .plan-features { border-color: var(--line-dark); }
.plan--business .checklist .icon { color: var(--champagne); }
.plan--business :focus-visible { outline-color: var(--champagne); }
.plan-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--champagne); color: var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; line-height: 1; white-space: nowrap;
}

.plan--premium { background: var(--white); border-color: var(--line-strong); }
.plan--premium::after {
  content: ""; position: absolute; top: -1px; left: var(--plan-pad); width: 56px; height: 2px; background: var(--champagne);
}
.plan--premium .plan-flag { color: var(--ink-2); }

.plan--custom {
  grid-column: 1 / -1; margin-top: 28px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 32px; align-items: start;
  background: var(--paper); border-color: rgba(185, 161, 132, 0.6);
}
.plan--custom:hover { transform: none; }
.custom-intro { grid-column: 1 / span 5; display: grid; gap: 14px; }
.custom-intro .display { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); letter-spacing: -0.03em; }
.custom-body { grid-column: 6 / span 4; display: grid; gap: 16px; }
.custom-action { grid-column: 10 / span 3; display: grid; gap: 14px; }
.custom-price { font-family: var(--font-display); font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.2; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  background: var(--white); font-size: var(--fs-xs);
}
@media (max-width: 1080px) {
  .custom-intro { grid-column: 1 / -1; }
  .custom-body { grid-column: 1 / span 7; }
  .custom-action { grid-column: 8 / span 5; }
}
@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .plan .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .plan--business { margin-block: 12px 0; padding-block: var(--plan-pad); }
  .plan--custom { margin-top: 0; grid-template-columns: minmax(0, 1fr); }
  .custom-intro, .custom-body, .custom-action { grid-column: auto; }
}
@media (max-width: 640px) {
  .plan .checklist { grid-template-columns: minmax(0, 1fr); }
}

/* Vergleich */
.compare-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; min-width: 0; }
.compare-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.compare-head h3 { font-size: var(--fs-lg); }
.compare-wrap {
  position: relative;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
}
.compare { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; font-size: var(--fs-sm); line-height: 1.45; }
.compare col.c-label { width: 34%; }
.compare col.c-plan { width: 22%; }
.compare th, .compare td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { padding-block: 24px 20px; vertical-align: bottom; font-weight: 500; }
.compare thead .c-name { display: block; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.14em; }
.compare thead .c-price { display: block; margin-top: 4px; font-size: var(--fs-sm); font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.compare th[scope="row"] { font-weight: 400; color: var(--ink); }
.compare .is-featured { background: rgba(185, 161, 132, 0.1); }
.compare thead .is-featured { box-shadow: inset 0 2px 0 var(--champagne); }
.compare .group th {
  padding-block: 12px; background: var(--paper);
  font-size: var(--fs-xs); font-weight: 600; color: var(--champagne-text);
}
.compare .yes, .compare .no { display: inline-flex; }
.compare .yes .icon { color: var(--ink); stroke-width: 2; }
.compare .no .icon { color: rgba(23, 23, 23, 0.3); }
.compare th[scope="row"], .compare .group th { position: sticky; left: 0; z-index: 1; background: var(--white); }
.compare .group th { background: var(--paper); }
.compare tfoot td, .compare tfoot th { border-top: 1px solid var(--line-strong); border-bottom: 0; padding-block: 20px; }
.compare tfoot .text-link { padding-block: 4px 3px; }
.compare tfoot th { position: sticky; left: 0; background: var(--white); font-weight: 600; }
.compare tfoot .is-featured { background: rgba(185, 161, 132, 0.1); }
.compare-foot { font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 700px) {
  .compare-wrap { overflow: visible; }
  .compare { display: block; min-width: 0; font-size: var(--fs-xs); }
  .compare colgroup { display: none; }
  .compare thead, .compare tbody, .compare tfoot { display: block; }
  .compare tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child, .compare tfoot tr { border-bottom: 0; }
  .compare th, .compare td { border-bottom: 0; padding: 6px 10px 14px; }
  .compare td { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
  .compare thead { position: sticky; top: var(--header-h); z-index: 3; background: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .compare thead tr { border-bottom: 1px solid var(--line-strong); }
  .compare thead th { padding: 16px 10px 14px; }
  .compare thead th:first-child { display: none; }
  .compare thead .c-name { font-size: var(--fs-xs); letter-spacing: 0.1em; }
  .compare thead .c-price { font-size: var(--fs-xs); }
  .compare th[scope="row"], .compare .group th, .compare tfoot th { grid-column: 1 / -1; position: static; background: transparent; }
  .compare th[scope="row"] { padding: 14px 10px 4px; font-weight: 500; }
  .compare .group th { background: var(--paper); padding: 10px; }
  .compare tfoot tr { border-top: 1px solid var(--line-strong); }
  .compare tfoot td, .compare tfoot th { border-top: 0; padding-block: 8px 16px; }
  .compare tfoot th { padding-top: 16px; }
}

/* Kostentransparenz */
.cost-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cost-note { display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.cost-note h3 { font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.01em; }
.cost-note p { font-size: var(--fs-sm); color: var(--ink-2); }
.vat-note {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  border-radius: var(--radius-md); background: var(--paper); font-size: var(--fs-sm);
}
.vat-note::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); }
@media (max-width: 820px) { .cost-notes { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- Individuelles Angebot ---------- */
.custom-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }
.custom-aside { grid-column: 1 / span 5; display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 32px); }
.custom-aside .plan-name { color: var(--champagne-text); }
.custom-aside .price-line { font-family: var(--font-display); font-size: var(--fs-lg); letter-spacing: -0.02em; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.custom-aside .price-line small { display: block; margin-top: 6px; font-family: var(--font-body); font-size: var(--fs-sm); letter-spacing: 0; color: var(--ink-2); }
.mini-steps { display: grid; gap: 16px; counter-reset: step; }
.mini-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; font-size: var(--fs-sm); color: var(--ink-2); counter-increment: step; }
.mini-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
}
.mini-steps strong { display: block; color: var(--ink); font-weight: 500; }
.assurances { display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.assurances li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.assurances .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--champagne-text); stroke-width: 1.8; }
.custom-form-wrap { grid-column: 6 / span 7; }
@media (max-width: 980px) {
  .custom-aside, .custom-form-wrap { grid-column: 1 / -1; position: static; }
}

/* ---------- Formulare ---------- */
.form-card {
  position: relative; background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 1px 0 rgba(23, 23, 23, 0.04), 0 30px 60px -40px rgba(23, 23, 23, 0.3);
}
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.form-section { display: grid; gap: 20px; border: 0; padding: 0; margin: 0; min-width: 0; }
.form-section > legend { padding: 0; margin-bottom: 20px; font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.01em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field-legend { font-size: var(--fs-sm); font-weight: 500; }
.form-section > legend.field-legend { margin-bottom: 14px; font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; }
.optional { margin-left: 6px; font-size: var(--fs-xs); font-weight: 400; color: var(--ink-2); }
.input {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white);
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #8A8780; }
.input:hover { border-color: rgba(23, 23, 23, 0.42); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(185, 161, 132, 0.32); }
textarea.input { min-height: 190px; resize: vertical; line-height: 1.55; }
select.input {
  -webkit-appearance: none; appearance: none; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23171717' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.input[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(163, 54, 43, 0.18); }
.field-hint { font-size: var(--fs-xs); color: var(--ink-2); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 500; color: var(--error); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  overflow-wrap: anywhere;
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--white);
  font-size: var(--fs-sm); line-height: 1.3; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip span::before {
  content: ""; flex: none; width: 15px; height: 15px; border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--white) center / 11px no-repeat; transition: background-color 0.2s, border-color 0.2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:checked + span::before {
  border-color: var(--champagne); background-color: var(--champagne);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3L9.6 3.6' fill='none' stroke='%23171717' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.form-submit { display: grid; gap: 16px; justify-items: start; padding-top: 8px; }
.form-legal { font-size: var(--fs-xs); color: var(--ink-2); max-width: 60ch; }
.form-legal a { color: var(--ink); }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid currentColor; border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.notice {
  display: grid; gap: 12px; padding: 22px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--paper);
  font-size: var(--fs-sm);
}
.notice--error { border-color: rgba(163, 54, 43, 0.35); background: #FBF4F2; }
.notice-title { font-weight: 600; color: var(--ink); }
.notice p { color: var(--ink-2); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notice-address { font-size: var(--fs-sm); }
.notice-address a { color: var(--ink); font-weight: 500; word-break: break-all; }
.notice-text { min-height: 150px; font-size: var(--fs-xs); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.notice-setup { padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: var(--fs-xs); }
.notice-setup code { font-size: 0.95em; }

.form-success { display: grid; gap: 16px; justify-items: start; padding-block: 16px; }
.form-success:focus { outline: none; }
.success-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--champagne); }
.success-mark .icon { width: 24px; height: 24px; stroke-width: 2; }
.form-success h3 { font-size: var(--fs-lg); }
.form-success p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-submit .btn { width: 100%; }
}

/* ---------- Ablauf ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.process::before {
  content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px;
  background: var(--line-strong); transform-origin: left center;
}
.step { position: relative; display: grid; gap: 12px; align-content: start; padding-top: 40px; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px;
  border-radius: 50%; border: 1px solid var(--ink); background: var(--white);
}
.step:last-child::before { background: var(--champagne); border-color: var(--champagne); }
.step-no { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--champagne-text); font-variant-numeric: tabular-nums; }
.step p { font-size: var(--fs-sm); color: var(--ink-2); max-width: 32ch; }
.step-tag { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 500; color: var(--ink); }
.step-tag .icon { width: 16px; height: 16px; color: var(--champagne-text); stroke-width: 2; }
@media (max-width: 900px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-left: 40px; }
  .process::before { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; transform-origin: center top; }
  .step { padding-top: 0; }
  .step::before { left: -40px; top: 4px; }
}

/* ---------- Warum ---------- */
.why-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }
.why-intro { grid-column: 1 / span 5; display: grid; gap: 24px; justify-items: start; position: sticky; top: calc(var(--header-h) + 32px); }
.why-list { grid-column: 7 / span 6; }
.why-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 24px; border-top: 1px solid var(--line-dark); }
.why-item:last-child { border-bottom: 1px solid var(--line-dark); }
.why-item dt { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.01em; color: var(--on-dark); }
.why-item dd { font-size: var(--fs-sm); color: var(--on-dark-2); max-width: 52ch; }
@media (max-width: 900px) {
  .why-intro, .why-list { grid-column: 1 / -1; position: static; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }
.faq-intro { grid-column: 1 / span 4; display: grid; gap: 20px; justify-items: start; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list { grid-column: 6 / span 7; border-bottom: 1px solid var(--line-strong); }
.faq-item { border-top: 1px solid var(--line-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #000; }
.faq-toggle {
  position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s;
}
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px;
  background: var(--ink); transition: transform 0.35s var(--ease), background-color 0.3s;
}
.faq-toggle::after { transform: rotate(90deg); }
.faq-item summary:hover .faq-toggle { border-color: var(--ink); }
.faq-item[open] .faq-toggle { background: var(--ink); border-color: var(--ink); }
.faq-item[open] .faq-toggle::before, .faq-item[open] .faq-toggle::after { background: var(--white); }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-answer { overflow: hidden; }
.faq-answer-inner { display: grid; gap: 12px; padding: 0 56px 28px 0; color: var(--ink-2); max-width: 66ch; }
@media (max-width: 900px) {
  .faq-intro, .faq-list { grid-column: 1 / -1; position: static; }
  .faq-answer-inner { padding-right: 0; }
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }
.contact-intro { grid-column: 1 / span 5; display: grid; gap: 28px; justify-items: start; }
.contact-direct { display: grid; gap: 6px; padding-top: 24px; border-top: 1px solid var(--line-dark); width: 100%; }
.contact-direct span { font-size: var(--fs-xs); color: var(--on-dark-2); }
.contact-direct a { font-size: var(--fs-md); text-decoration: none; word-break: break-word; }
.contact-direct a:hover { color: var(--champagne); }
.contact-form-wrap { grid-column: 7 / span 6; }
@media (max-width: 980px) { .contact-intro, .contact-form-wrap { grid-column: 1 / -1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: 72px 40px; }
.footer-top {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px;
  padding-top: 56px; border-top: 1px solid var(--line-dark);
}
.footer-brand { grid-column: 1 / span 4; display: grid; gap: 16px; align-content: start; justify-items: start; }
.footer-brand p { font-size: var(--fs-sm); color: var(--on-dark-2); max-width: 30ch; }
.footer-col { grid-column: span 2; display: grid; gap: 14px; align-content: start; }
.footer-col:first-of-type { grid-column: 6 / span 2; }
.footer-col:last-child { grid-column: span 3; }
.footer-col h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; color: var(--on-dark-2); }
.footer-col ul { display: grid; gap: 10px; font-size: var(--fs-sm); list-style: none; padding: 0; }
.footer-col a { display: inline-block; padding-block: 3px; text-decoration: none; color: var(--on-dark); transition: color 0.2s; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--champagne); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-dark);
  font-size: var(--fs-xs); color: var(--on-dark-2);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; }
.footer-bottom a { display: inline-block; padding-block: 4px; color: var(--on-dark-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--on-dark); }
.site-footer--plain .footer-top { border-top: 0; padding-top: 0; }


/* ---------- Kleine Bildschirme: 12er-Raster auf eine Spalte ---------- */
@media (max-width: 980px) {
  .custom-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .why-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:first-of-type, .footer-col:last-child { grid-column: auto; }
}
@media (max-width: 560px) {
  .footer-top > .footer-col:last-child { grid-column: 1 / -1; }
}

/* ---------- Rechtliche Seiten ---------- */
.page-main { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); padding-bottom: var(--section-y); }
.legal { max-width: 780px; }
.legal-head { display: grid; gap: 16px; padding-bottom: 40px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.legal-head h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3.75rem); -webkit-hyphens: auto; hyphens: auto; }
.legal-head p { color: var(--ink-2); }
.legal h2 { margin-top: 56px; font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.2; }
.legal h3 { margin-top: 28px; font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.01em; }
.legal p, .legal ul, .legal ol, .legal address, .legal dl { margin-top: 14px; color: var(--ink-2); max-width: 68ch; }
.legal ul, .legal ol { padding-left: 1.2em; display: grid; gap: 6px; }
.legal address { font-style: normal; line-height: 1.7; color: var(--ink); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); }
.legal dl { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 10px 24px; }
.legal dt { color: var(--ink); font-weight: 500; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal dd { margin-bottom: 10px; } }
.todo {
  padding: 0 0.3em; border-radius: 3px; border-bottom: 1px dashed var(--champagne-text);
  background: rgba(185, 161, 132, 0.22); color: var(--ink); font-style: normal;
}
.draft-banner {
  display: grid; gap: 6px; margin-bottom: 40px; padding: 20px 22px;
  border: 1px solid rgba(163, 54, 43, 0.35); border-radius: var(--radius-md); background: #FBF4F2;
  font-size: var(--fs-sm); color: var(--ink);
}
.draft-banner strong { font-weight: 600; }
.legal-note { margin-top: 56px; padding: 20px 22px; border-radius: var(--radius-md); background: var(--sand); font-size: var(--fs-sm); color: var(--ink-2); }

.simple-page { display: grid; gap: 24px; justify-items: start; max-width: 640px; min-height: 50vh; align-content: center; }

/* ---------- Scroll-Reveal (nur für Inhalte unterhalb des ersten Bildschirms) ---------- */
.reveal { opacity: 0; translate: 0 16px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; translate: none; }
.process.reveal { opacity: 1; translate: none; }
.process.reveal::before { transform: scaleX(0); transition: transform 1.6s var(--ease) 0.15s; }
.process.reveal .step { opacity: 0; translate: 0 14px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); }
.process.reveal.is-visible::before { transform: none; }
.process.reveal.is-visible .step { opacity: 1; translate: none; }
.process.reveal.is-visible .step:nth-child(2) { transition-delay: 0.2s; }
.process.reveal.is-visible .step:nth-child(3) { transition-delay: 0.4s; }
.process.reveal.is-visible .step:nth-child(4) { transition-delay: 0.6s; }
@media (max-width: 900px) { .process.reveal::before { transform: scaleY(0); } .process.reveal.is-visible::before { transform: none; } }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .process.reveal .step { opacity: 1; translate: none; }
  .process.reveal::before { transform: none; }
  .showcase-phone-float { animation: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .mobile-menu, .showcase, .skip-link, .menu-toggle { display: none !important; }
  .section--dark, .site-footer { background: none; color: #000; }
  body { background: #fff; }
}
