/* ==========================================================================
   Re-Direction · Design System 2026
   Ein Stylesheet für alle Seiten. Ersetzt styles.css + premium.css.
   Schrift: Instrument Sans (SIL OFL), lokal gehostet – keine Drittanbieter.
   ========================================================================== */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("fonts/instrument-sans-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farben – abgeleitet vom Logo (#29ABE2) */
  --ink: #0c2340;          /* Überschriften, dunkle Flächen */
  --ink-2: #16335a;
  --blue: #0b6fb8;         /* Aktionen, Links (AA auf Weiss 5.3:1) */
  --blue-hover: #095c99;
  --cyan: #29abe2;         /* Logo-Blau, nur dekorativ / auf Ink */
  --tint: #e6f4fb;
  --mist: #f2f5f8;
  --paper: #ffffff;
  --slate: #4b5b6e;        /* Fliesstext */
  --muted: #6b7a8c;
  --line: #d9e1ea;
  --line-soft: #e8edf2;
  --ok: #0b6fb8;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 72px;

  --shadow-float: 0 1px 2px rgba(12, 35, 64, .06), 0 18px 40px -18px rgba(12, 35, 64, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue-hover); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
strong { color: var(--ink); font-weight: 600; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Elemente, die bewusst nicht mehr angezeigt werden (Inhalte bleiben für i18n im DOM) */
.section-label, .info-index, .eyebrow, .panel-label, .stat-kicker { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-md); border: 1px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { color: var(--btn-fg); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--blue); --btn-fg: #fff; --btn-border: var(--blue); }
.btn-primary:hover { --btn-bg: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn-secondary { --btn-bg: var(--paper); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .9375rem; border-radius: var(--radius-sm); }

/* Altes Trial-Button-Markup vereinfachen */
.trial-icon, .trial-arrow, .trial-duration { display: none !important; }
.trial-copy, .trial-label { display: inline; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--blue);
}
.text-link::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .18s var(--ease); }
.text-link:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.site-nav > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--ink); font-size: .9688rem; font-weight: 500; text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.site-nav > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--mist); color: var(--ink); }
.site-nav > a[aria-current="page"], .site-nav > a.is-current { color: var(--blue); }
.nav-trigger svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-group { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 340px;
  padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s linear .16s;
}
.nav-group.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-menu a { display: block; padding: 12px 14px; border-radius: var(--radius-md); text-decoration: none; }
.nav-menu a:hover { background: var(--mist); }
.nav-menu a[aria-current="page"] { background: var(--tint); }
.nav-menu strong { display: block; color: var(--ink); font-size: .9688rem; font-weight: 600; }
.nav-menu span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.4; margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-demo { display: inline-flex; }

/* Sprachwahl: natives Select über einer schlanken Anzeige (zugänglich) */
.language-switcher { position: relative; display: inline-flex; }
.language-current {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  color: var(--ink); font-size: .9375rem; font-weight: 600; pointer-events: none;
}
.language-current img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.language-current::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.language-switcher select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; font-size: 16px; }
.language-switcher:hover .language-current { background: var(--mist); }
.language-switcher:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: var(--radius-sm); }

.menu-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 1.75px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }
.mobile-only { display: none; }

@media (max-width: 1180px) { .header-demo { display: none; } }

@media (max-width: 1023px) {
  .header-inner { gap: 12px; }
  .menu-toggle { display: inline-flex; order: 3; margin-left: 0; }
  .header-actions { margin-left: auto; order: 2; }
  .header-actions .btn-primary { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; order: 4;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 12px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(12, 35, 64, .3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav > a, .nav-trigger { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.0625rem; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: none; }
  .nav-trigger { pointer-events: none; color: var(--muted); font-size: .875rem; border-bottom: 0; padding-bottom: 4px; }
  .nav-trigger svg { display: none; }
  .nav-menu { position: static; min-width: 0; padding: 0 0 8px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; border-bottom: 1px solid var(--line-soft); }
  .nav-menu { border-radius: 0; }
  .nav-menu a { padding: 10px 4px; border-radius: 0; }
  .nav-menu a:hover, .nav-menu a[aria-current="page"] { background: none; }
  .nav-menu a[aria-current="page"] strong { color: var(--blue); }
  .mobile-only { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
  .mobile-only .btn { width: 100%; }
}
@media (max-width: 420px) { .brand-logo { height: 40px; } }

/* ---------- Sektionen & Überschriften ---------- */
.section { padding-block: var(--section); }
.section-muted { background: var(--mist); }
.section-intro { padding-top: clamp(56px, 7vw, 96px); }
.hero-section + .section-intro { padding-top: clamp(16px, 3vw, 40px); }

.section-heading { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-heading h2, .cta-shell h2, .hero-panel h2 {
  font-size: clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);
  font-stretch: 92%; font-weight: 600; line-height: 1.08; letter-spacing: -.022em;
}
.section-heading p { margin-top: 18px; font-size: 1.125rem; line-height: 1.6; max-width: 64ch; }
.section-heading-left { margin-bottom: 36px; }

h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.01em; }

/* Liste mit Häkchen */
.list { list-style: none; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 28px; line-height: 1.5; }
.list li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 14px; height: 8px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

.tag {
  display: inline-block; font-size: .875rem; font-weight: 600; color: var(--blue); line-height: 1.4;
}

/* ---------- Hero ---------- */
.hero-section { position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 112px); overflow: clip; }
.hero-backdrop { display: none; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy h1 {
  font-size: clamp(2.5rem, 1.55rem + 3.8vw, 4.4rem);
  font-stretch: 88%; font-weight: 620; line-height: 1.0; letter-spacing: -.032em;
  max-width: 14ch;
}
.hero-copy .lead { margin-top: 26px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.58; max-width: 52ch; color: var(--slate); }
.hero-copy .lead strong { font-weight: 500; color: inherit; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; padding: 0; list-style: none; font-size: .9375rem; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg) translateY(-2px); }
.hero-meta .swiss::before { display: none; }
.hero-meta .swiss img { width: 16px; height: 16px; border-radius: 3px; }

/* Seiten mit langen Titeln (Branchen) */
[data-page="gastro"] .hero-copy h1, [data-page="verwaltung"] .hero-copy h1 { max-width: 17ch; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }

/* Live-Showcase: echte Kundenseiten mit scanbarem QR-Code */
.showcase { position: relative; }
.showcase-stage {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(41, 171, 226, .22), transparent 60%),
    linear-gradient(180deg, var(--tint), var(--mist));
  overflow: hidden; isolation: isolate;
}
.showcase-stage::before { /* feines Raster als Anspielung auf QR-Module */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(12, 35, 64, .12) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.showcase-phone {
  position: absolute; right: 9%; top: 8%; width: 47%; margin: 0;
  padding: 9px; border-radius: 40px; background: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 50px 80px -36px rgba(12, 35, 64, .55), 0 18px 30px -18px rgba(12, 35, 64, .35);
}
.showcase-phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 28%; height: 16px; transform: translateX(-50%); border-radius: 10px; background: var(--ink); z-index: 2; }
.showcase-screen { position: relative; border-radius: 31px; overflow: hidden; aspect-ratio: 494 / 789; background: #dfe7ef; }
.showcase-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.showcase-screen img.is-leaving { opacity: 0; }

.showcase-qr-card {
  position: absolute; left: 7%; bottom: 9%; width: min(46%, 230px);
  padding: 16px 16px 14px; border-radius: var(--radius-lg); background: var(--paper);
  box-shadow: var(--shadow-float); border: 1px solid rgba(12, 35, 64, .06);
}
.showcase-qr-card svg { width: 100%; height: auto; aspect-ratio: 1; color: var(--ink); }
.showcase-url {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none;
  font-variant-numeric: tabular-nums; word-break: break-all;
}
.showcase-url:hover { color: var(--blue); }
.showcase-url svg { width: 14px; height: 14px; flex-shrink: 0; aspect-ratio: auto; color: currentColor; }
.showcase-hint { display: block; margin-top: 4px; font-size: .8125rem; color: var(--muted); line-height: 1.35; }

.showcase-tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin-top: 16px; padding: 4px;
  background: var(--mist); border-radius: var(--radius-md); overflow-x: auto; scrollbar-width: none;
}
.showcase-tabs::-webkit-scrollbar { display: none; }
.showcase-tabs button {
  min-width: 0; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: none;
  text-align: left; cursor: pointer; line-height: 1.25; transition: background-color .15s, box-shadow .15s;
}
.showcase-tabs button strong { display: block; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.showcase-tabs button span { display: block; font-size: .8125rem; color: var(--muted); }
.showcase-tabs button:hover { background: rgba(255, 255, 255, .6); }
.showcase-tabs button[aria-pressed="true"] { background: var(--paper); box-shadow: 0 1px 2px rgba(12, 35, 64, .08), 0 0 0 1px rgba(12, 35, 64, .05); }
.showcase-caption { margin-top: 12px; font-size: .875rem; color: var(--muted); }

/* Einmalige, orchestrierte Einstiegsbewegung */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .showcase-phone { animation: rise-phone 1s .15s var(--ease) both; }
  .showcase-qr-card { animation: rise .8s .45s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-phone { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { max-width: 16ch; }
  .showcase { max-width: 560px; }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .showcase-stage { aspect-ratio: 1 / 1.12; }
  .showcase-phone { width: 54%; right: 5%; padding: 7px; border-radius: 30px; }
  .showcase-screen { border-radius: 24px; }
  .showcase-phone::before { top: 11px; height: 12px; }
  .showcase-qr-card { left: 5%; width: 46%; padding: 10px 10px 10px; border-radius: 14px; }
  .showcase-url { font-size: .8125rem; margin-top: 8px; padding-top: 8px; }
  .showcase-hint { display: none; }
  .showcase-tabs { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Lösungen (2 Angebote) ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.industry-card { display: flex; flex-direction: column; gap: 14px; padding: 40px 48px 8px 0; }
.industry-card + .industry-card { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.industry-card h3 { font-size: 1.5rem; letter-spacing: -.015em; }
.industry-card .list { margin-top: 6px; margin-bottom: 14px; }
.industry-card .btn { margin-top: auto; align-self: flex-start; }
.industry-card .btn-primary { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-border: var(--line); }
.industry-card .btn-primary:hover { --btn-bg: var(--paper); color: var(--ink); border-color: var(--ink); }
@media (max-width: 820px) {
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card, .industry-card + .industry-card { padding: 32px 0; border-left: 0; }
  .industry-card + .industry-card { border-top: 1px solid var(--line); }
}

/* ---------- Nutzen: 4 Spalten mit Haarlinie statt Karten ---------- */
.four-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.info-card { padding-top: 22px; border-top: 2px solid var(--ink); }
.info-card h3 { margin-bottom: 10px; }
.info-card p { font-size: 1rem; }
@media (max-width: 960px) { .four-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .four-card-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Referenzen ---------- */
.reference-grid-modern { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.reference-card { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--paper); }
.reference-media { padding: 6px; border-radius: 30px; background: var(--ink); box-shadow: 0 30px 50px -30px rgba(12, 35, 64, .5); }
.reference-media img { width: 100%; aspect-ratio: 494 / 789; object-fit: cover; border-radius: 24px; }
.reference-content { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.reference-city { font-size: .875rem; font-weight: 600; color: var(--blue); }
.reference-content h3 { font-size: 1.3125rem; }
.reference-content p { font-size: 1rem; }
.reference-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.reference-pill { padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: .8125rem; font-weight: 500; }
.reference-content .text-link { margin-top: 6px; }
@media (max-width: 1080px) { .reference-grid-modern { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .reference-card { grid-template-columns: 1fr; padding: 20px; } .reference-media { max-width: 220px; } }

/* ---------- Vorteile / Ablauf ---------- */
.implementation-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.implementation-side { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) { .implementation-grid { grid-template-columns: 1fr; } .implementation-side { position: static; } }

/* Echte Abfolge: nummeriert, mit Verbindungslinie */
.timeline { display: grid; counter-reset: step; }
.timeline-item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 1.5px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-step {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; background: var(--paper);
}
.section-muted .timeline-step { background: var(--mist); }
.timeline-item h3 { margin: 9px 0 6px; }
.timeline-item p { font-size: 1rem; }

/* Keine Abfolge: Häkchen statt Nummern */
.timeline--plain .timeline-item { grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline--plain .timeline-item:last-child { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.timeline--plain .timeline-item::before { display: none; }
.timeline--plain .timeline-step { width: 28px; height: 28px; border: 0; background: var(--tint) !important; font-size: 0; position: relative; margin-top: 2px; }
.timeline--plain .timeline-step::after { content: ""; position: absolute; left: 8px; top: 9px; width: 12px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.timeline--plain .timeline-item h3 { margin: 0 0 6px; }

.quote-card-modern { padding: 4px 0 4px 28px; border-left: 3px solid var(--cyan); }
.quote-card-modern blockquote { margin: 0; color: var(--ink); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.quote-card-modern p { margin-top: 18px; font-size: 1rem; }

/* ---------- Probleme & Lösung (Branchenseiten) ---------- */
.split-showcase { display: block; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.comparison-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-xl); background: var(--mist); }
.comparison-card h3 { font-size: 1.375rem; margin: 10px 0 22px; }
.comparison-tag { font-size: .875rem; font-weight: 600; color: var(--muted); }
.comparison-card:not(.comparison-card-positive) .list li::before { width: 12px; height: 0; border-left: 0; border-bottom: 2px solid var(--muted); transform: none; top: .75em; }
.comparison-card-positive { background: var(--ink); }
.comparison-card-positive h3 { color: #fff; }
.comparison-card-positive .comparison-tag { color: var(--cyan); }
.comparison-card-positive .list li { color: rgba(255, 255, 255, .82); }
.comparison-card-positive .list li::before { border-color: var(--cyan); }
@media (max-width: 820px) { .comparison-grid { grid-template-columns: 1fr; } }

/* ---------- Einsatzbereiche ---------- */
.use-cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.use-case-card { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.use-case-card h3 { margin: 8px 0 10px; }
.use-case-card p { font-size: 1rem; }
@media (max-width: 960px) { .use-cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .use-cases-grid { grid-template-columns: 1fr; } }

/* ---------- Funktionsbausteine ---------- */
.feature-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.feature-panel .section-heading { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.feature-tile { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.feature-tile h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.feature-tile p { font-size: .9688rem; }
@media (max-width: 960px) { .feature-panel { grid-template-columns: 1fr; } .feature-panel .section-heading { position: static; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative; display: block; padding: 24px 56px 24px 0; cursor: pointer; list-style: none;
  color: var(--ink); font-size: 1.125rem; font-weight: 600; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s var(--ease);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0); }
.faq-item summary:hover { color: var(--blue); }
.faq-item p { padding: 0 56px 26px 0; max-width: 70ch; }

/* ---------- Abschluss-CTA ---------- */
.cta-shell {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: end;
  padding: clamp(36px, 6vw, 72px) !important; border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(41, 171, 226, .28), transparent 55%),
    var(--ink);
  max-width: var(--container); color: rgba(255, 255, 255, .8);
}
#kontakt > .cta-shell { width: calc(100% - 2 * var(--gutter)); }
.cta-shell h2 { color: #fff; max-width: 20ch; }
.cta-shell p { margin-top: 18px; max-width: 56ch; font-size: 1.0625rem; }
.cta-shell .hero-actions { margin-top: 32px; }
.cta-shell .btn-primary { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: #fff; }
.cta-shell .btn-primary:hover { --btn-bg: var(--tint); border-color: var(--tint); color: var(--ink); }
.cta-shell .btn-secondary { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .3); }
.cta-shell .btn-secondary:hover { border-color: #fff; color: #fff; }
.cta-side-card { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2); }
.cta-side-card h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.cta-side-card .list li { color: rgba(255, 255, 255, .8); font-size: .9688rem; }
.cta-side-card .list li::before { border-color: var(--cyan); }
@media (max-width: 900px) { .cta-shell { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .cta-shell { padding: 32px 22px !important; border-radius: var(--radius-lg); }
  #kontakt > .cta-shell { width: calc(100% - 2 * 16px); }
  .cta-shell .btn { width: 100%; white-space: normal; text-align: center; }
}

/* ---------- Preise ---------- */
.pricing-hero { padding-bottom: 0; }
.pricing-hero .hero-layout { grid-template-columns: 1fr; }
.pricing-hero .hero-copy h1 { max-width: 18ch; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.pricing-hero .hero-actions { display: none; }
.pricing-summary-panel { display: none !important; }
.pricing-trust-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: .9375rem; color: var(--muted); }
.pricing-trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.pricing-trust-row span::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg) translateY(-2px); }

#plans .section-heading { display: none; }
.billing-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.billing-toggle { display: inline-flex; padding: 4px; border-radius: var(--radius-md); background: var(--mist); }
.billing-toggle button { min-height: 40px; padding: 8px 18px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--slate); font-weight: 600; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(12, 35, 64, .08), 0 0 0 1px rgba(12, 35, 64, .05); }
.billing-note { font-size: .9375rem; color: var(--muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pricing-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
}
.pricing-card-featured { border: 2px solid var(--ink); padding: 27px 23px 23px; }
.popular-badge {
  position: absolute; top: -13px; left: 22px; padding: 4px 12px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600;
}
.pricing-card-head .tag { display: none; }
.pricing-card-head h3 { font-size: 1.375rem; }
.pricing-card-head p { margin-top: 8px; font-size: .9688rem; min-height: 4.8em; }
.price-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.price-line strong { color: var(--ink); font-size: 2.25rem; font-stretch: 90%; font-weight: 620; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-line .price-currency { font-size: .9375rem; font-weight: 600; color: var(--ink); align-self: flex-start; margin-top: 4px; }
.price-line > span { color: var(--muted); font-size: .9375rem; }
.year-price { margin-top: -8px; font-size: .875rem; color: var(--muted); min-height: 2.6em; }
.year-price .saving { display: block; color: var(--blue); font-weight: 600; }
.pricing-list { gap: 9px; margin-bottom: 4px; }
.pricing-list li { font-size: .9375rem; }
.pricing-card .btn { margin-top: auto; width: 100%; }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-card-head p, .year-price { min-height: 0; } }

.feature-comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.feature-comparison-grid .feature-tile { padding: 24px 0 28px; }
@media (max-width: 900px) { .feature-comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-comparison-grid { grid-template-columns: 1fr; } }

/* Funktionsvergleich */
.plan-details-accordion { display: block; }
.plan-details-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.plan-details-head h2 { font-size: clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem); font-stretch: 92%; line-height: 1.08; letter-spacing: -.022em; max-width: 22ch; }
.plan-details-content > p { max-width: 64ch; margin-bottom: 8px; }
.table-scroll-hint { display: none; font-size: .875rem; color: var(--muted); }
.plan-details-table-wrap { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.plan-details-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .9375rem; }
.plan-details-table thead th:first-child { width: 36%; }
.plan-details-table thead th {
  position: sticky; top: var(--header-h); z-index: 2;
  padding: 18px 16px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 600; text-align: center; font-size: 1rem;
}
.plan-details-table thead th:first-child { text-align: left; border-top-left-radius: var(--radius-lg); }
.plan-details-table thead th:last-child { border-top-right-radius: var(--radius-lg); }
.plan-details-table tbody th, .plan-details-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.plan-details-table tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.plan-details-table tbody td { text-align: center; color: var(--slate); font-variant-numeric: tabular-nums; }
.plan-details-table td.is-yes { color: var(--blue); font-weight: 700; }
.plan-details-table td.is-no { color: #b5c0cc; }
.plan-details-table tr[hidden] { display: none; }
.plan-details-table tr.plan-details-group th {
  position: relative; padding: 18px 16px 18px 48px; background: var(--mist); color: var(--ink);
  font-weight: 600; font-size: 1rem; cursor: pointer; user-select: none; border-bottom: 1px solid var(--line);
}
.plan-details-table tr.plan-details-group th::before {
  content: ""; position: absolute; left: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); transition: transform .2s var(--ease);
}
.plan-details-table tr.plan-details-group th[aria-expanded="true"]::before { transform: rotate(45deg); margin-top: -7px; }
.plan-details-table tr.plan-details-group th::after { content: attr(data-count); margin-left: 10px; color: var(--muted); font-weight: 500; font-size: .875rem; }
.plan-details-table tr.plan-details-group th:hover { background: var(--tint); }
.plan-details-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 860px) {
  .table-scroll-hint { display: block; }
  .plan-details-table-wrap { overflow-x: auto; }
  .plan-details-table { min-width: 640px; }
  .plan-details-table thead th { position: static; }
  .plan-details-table tbody th:first-child:not([colspan]), .plan-details-table thead th:first-child { position: sticky; left: 0; background: var(--paper); z-index: 1; box-shadow: 1px 0 0 var(--line-soft); }
}

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(56px, 7vw, 88px) 32px; background: var(--mist); border-top: 1px solid var(--line); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand-block { display: flex; flex-direction: column; gap: 14px; max-width: 34ch; }
.footer-logo { width: 150px; height: auto; }
.footer-col h2 { font-size: .9375rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--slate); text-decoration: none; }
.footer-col a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-origin { display: inline-flex; align-items: center; gap: 8px; }
.footer-origin img { width: 16px; height: 16px; border-radius: 3px; }
.footer-socials { display: flex; gap: 6px; }
.footer-socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); color: var(--slate); }
.footer-socials a:hover { background: var(--paper); color: var(--ink); }
.footer-socials svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand-block { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Alt-Komponenten, die nicht mehr verwendet werden */
.case-switcher-wrap, .stats-grid, .header-industry-links, .product-showcase, .panel-more { display: none !important; }

@media print {
  .site-header, .showcase-tabs, .site-footer, .cta-shell .hero-actions { display: none; }
  .section { padding-block: 32px; }
}
