/* ==========================================================================
   Serian Services – Stylesheet
   Ohne Frameworks und ohne externe Ressourcen (Schrift wird lokal geladen).
   Hell-/Dunkelmodus folgt automatisch der Systemeinstellung.
   Nach Änderungen die Versionsnummer (?v=…) in den HTML-Dateien erhöhen.
   ========================================================================== */

/* ---------- Schrift: Archivo (variabel, Latin) – SIL Open Font License ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  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;
}

/* ---------- Design-Tokens ---------- */
:root {
  color-scheme: light dark;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Markenfarben – abgeleitet aus dem Logo */
  --navy-950: #090e2b;
  --navy-900: #0d1438;
  --navy-850: #111a45;
  --navy-800: #16215a;
  --navy-700: #1d2c72;
  --navy-600: #26398c;
  --navy-500: #3249b4;
  --peri-400: #7f8ade;
  --peri-300: #a5aeee;
  --peri-200: #c9cef7;
  --peri-100: #e8eafc;

  /* Helles Farbschema */
  --bg: #fbfbfe;
  --bg-alt: #f3f4fa;
  --surface: #ffffff;
  --surface-2: #f4f5fb;
  --text: #161a2e;
  --text-muted: #4f566e;
  --text-subtle: #676d88;
  --line: #e2e5f0;
  --line-strong: #cbd0e4;
  --link: #26398c;
  --link-hover: #1d2c72;
  --btn-bg: #26398c;
  --btn-bg-hover: #1d2c72;
  --btn-text: #ffffff;
  --btn-shadow: 0 12px 24px -14px rgb(38 57 140 / .8);
  --icon-bg: #eceefc;
  --icon-fg: #26398c;
  --grid-stroke: rgb(38 57 140 / .34);
  --grid-faint: rgb(38 57 140 / .065);
  --glow: rgb(127 138 222 / .26);
  --sphere-hi: #f3f4ff;
  --sphere-mid: #9aa2dc;
  --sphere-lo: #3a4592;
  --notice-bg: #fff6e6;
  --notice-border: #efd29a;
  --notice-text: #5b3e05;
  --notice-icon: #b7791f;
  --focus: #3249b4;
  --shadow-sm: 0 1px 2px rgb(13 20 56 / .06), 0 1px 1px rgb(13 20 56 / .04);
  --shadow-md: 0 18px 40px -22px rgb(13 20 56 / .3), 0 6px 14px -8px rgb(13 20 56 / .1);
  --shadow-lg: 0 34px 70px -34px rgb(13 20 56 / .5);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090e26;
    --bg-alt: #0c1330;
    --surface: #10183a;
    --surface-2: #141e46;
    --text: #e8eaf6;
    --text-muted: #aab1ce;
    --text-subtle: #8f96b6;
    --line: #1f2950;
    --line-strong: #2d3967;
    --link: #b3bdf8;
    --link-hover: #d6dbff;
    --btn-bg: #aab5f7;
    --btn-bg-hover: #c8cfff;
    --btn-text: #0b1130;
    --btn-shadow: 0 12px 26px -16px rgb(140 155 255 / .7);
    --icon-bg: #1a2453;
    --icon-fg: #b3bdf8;
    --grid-stroke: rgb(165 174 238 / .3);
    --grid-faint: rgb(165 174 238 / .055);
    --glow: rgb(80 96 220 / .3);
    --sphere-hi: #ffffff;
    --sphere-mid: #aeb5ef;
    --sphere-lo: #4b57b3;
    --notice-bg: #2a2111;
    --notice-border: #5b4518;
    --notice-text: #f3dcaa;
    --notice-icon: #e9b65a;
    --focus: #aab5f7;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .45);
    --shadow-md: 0 18px 40px -22px rgb(0 0 0 / .7), 0 6px 14px -8px rgb(0 0 0 / .45);
    --shadow-lg: 0 34px 70px -34px rgb(0 0 0 / .8);
  }
}

/* ---------- Grundlagen ---------- */
*, *::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) + 20px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 640;
  font-stretch: 112%;
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  hyphenate-limit-chars: 12 5 5;
}
h1 { font-size: clamp(2rem, 1.1rem + 3vw, 3.4rem); font-stretch: 106%; line-height: 1.06; letter-spacing: -0.024em; font-weight: 660; }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.8rem); }
h3 { font-size: 1.22rem; font-stretch: 106%; font-weight: 620; line-height: 1.28; letter-spacing: -0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; hyphens: auto; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .2s;
}
a:hover { color: var(--link-hover); }

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

strong { font-weight: 650; }
address { font-style: normal; }
::selection { background: var(--peri-200); color: var(--navy-900); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 100;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--btn-text); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lead {
  font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  margin: 0 0 1.1rem;
  color: var(--link);
  font-size: .78rem;
  font-weight: 650;
  font-stretch: 120%;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.7em;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .8em 1.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-stretch: 106%;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .icon-move { transform: translateX(3px); }
.btn:hover .icon-out { transform: translate(2px, -2px); }

.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-text); transform: translateY(-1px); }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--link); color: var(--link); }

.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--peri-100); color: var(--navy-900); transform: translateY(-1px); }

.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / .32); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgb(255 255 255 / .08); }

.btn-sm { min-height: 40px; padding: .6em 1.15em; font-size: .95rem; }

/* ---------- Kopfbereich & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--line);
}
@supports (animation-timeline: scroll()) {
  .site-header {
    border-bottom-color: transparent;
    animation: header-elevate linear both;
    animation-timeline: scroll(root);
    animation-range: 0 96px;
  }
  @keyframes header-elevate {
    to { border-bottom-color: var(--line); box-shadow: 0 12px 30px -26px rgb(13 20 56 / .55); }
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { flex: none; display: block; border-radius: 8px; }
.brand img { width: auto; height: 44px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
/* getrennte Regeln: ein unbekannter Selektor würde sonst die ganze Liste ungültig machen */
.site-header:has(.site-nav:popover-open) .nav-toggle .icon-menu { display: none; }
.site-header:has(.site-nav:popover-open) .nav-toggle .icon-close { display: block; }
.site-header:has(.site-nav.is-open) .nav-toggle .icon-menu { display: none; }
.site-header:has(.site-nav.is-open) .nav-toggle .icon-close { display: block; }

.site-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.btn) {
  display: block;
  padding: .55rem .9rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 520;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-nav .nav-cta { margin-left: 8px; }

@media (min-width: 900px) {
  .site-nav[popover] {
    display: block;
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: inherit;
  }
}

@media (max-width: 899.98px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + 8px) var(--gutter) auto auto;
    width: min(360px, calc(100vw - 2 * var(--gutter)));
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: .85rem 1rem; border-radius: 12px; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 8px 0 0; }
  .site-nav .btn { width: 100%; }
  .site-nav::backdrop { background: rgb(9 14 43 / .3); }
  .site-nav.nav-fallback { display: none; }
  .site-nav.nav-fallback.is-open { display: block; }
}

@media (max-width: 899.98px) and (prefers-reduced-motion: no-preference) {
  .site-nav[popover] {
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transition: opacity .2s, transform .25s var(--ease), overlay .25s allow-discrete, display .25s allow-discrete;
  }
  .site-nav[popover]:popover-open { opacity: 1; transform: none; }
  @starting-style {
    .site-nav[popover]:popover-open { opacity: 0; transform: translateY(-8px) scale(.98); }
  }
}

@media (max-width: 420px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 88px) clamp(64px, 8vw, 120px);
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-faint) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 78% 18%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 75% at 78% 18%, #000 10%, transparent 70%);
}
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -38%;
  right: -22%;
  width: min(940px, 95vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.hero .lead { max-width: 58ch; margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.1rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(24px, 4vw, 44px);
  margin: 2.6rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong {
  color: var(--text);
  font-size: 1.3rem;
  font-stretch: 116%;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.hero-facts span { color: var(--text-muted); font-size: .93rem; }

.hero-visual { position: relative; }
.hero-art { width: 100%; height: auto; overflow: visible; }
.hero-lines path { fill: none; stroke: var(--grid-stroke); stroke-width: 3.4; stroke-linecap: round; }
.hero-dot { fill: var(--peri-400); stroke: var(--bg); stroke-width: 3; }
.hero-ball { filter: drop-shadow(0 6px 9px rgb(13 20 56 / .28)); }
.hero-pulse { fill: none; stroke: var(--peri-400); stroke-width: 1.4; opacity: 0; }
.sphere-hi { stop-color: var(--sphere-hi); }
.sphere-mid { stop-color: var(--sphere-mid); }
.sphere-lo { stop-color: var(--sphere-lo); }

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .42em .85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.2;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 15px));
}
.hero-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--peri-400);
  box-shadow: 0 0 0 3px rgb(127 138 222 / .25);
}
.chip-1 { left: 55.84%; top: 21.08%; }
.chip-2 { left: 20.27%; top: 31.97%; }
.chip-3 { left: 53.5%; top: 40.37%; }
.chip-4 { left: 33.63%; top: 68.46%; }
.chip-5 { left: 81.84%; top: 42.75%; }
.chip-6 { left: 50.09%; top: 59.65%; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: 100%; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .hero-chip { font-size: .72rem; padding: .36em .7em; }
  .hero-chip.is-optional { display: none; }
}

/* ---------- Abschnitte ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > p:not(.eyebrow) { margin-top: 1.1rem; color: var(--text-muted); font-size: 1.12rem; }

/* Leistungskarten */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -30%;
  bottom: -60%;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: 0;
  transition: opacity .4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); color: inherit; }
.card:hover::after { opacity: 1; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2.5px solid var(--focus); outline-offset: 3px; }
.card h3 { margin-top: 6px; }
.card p { margin: 0; color: var(--text-muted); font-size: 1rem; }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: auto;
  padding-top: 8px;
  color: var(--link);
  font-size: .97rem;
  font-weight: 600;
}
.card-more .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.card:hover .card-more .icon { transform: translateX(4px); }

.tile-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  background: var(--icon-bg);
  color: var(--icon-fg);
}
.tile-icon .icon { width: 26px; height: 26px; }

/* Dunkler Abschnitt: Stand der Technik */
.section-dark {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 88% 0%, rgb(70 86 200 / .38), transparent 62%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #e6e9f8;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(165 174 238 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(165 174 238 / .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--peri-300); }
.section-dark .section-head > p:not(.eyebrow) { color: #b9c0df; }
@media (prefers-color-scheme: dark) {
  .section-dark {
    background:
      radial-gradient(ellipse 80% 60% at 88% 0%, rgb(70 86 200 / .3), transparent 62%),
      linear-gradient(160deg, #0f1741, #141f53);
    border-block: 1px solid var(--line);
  }
}

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.feature {
  padding: 28px;
  border: 1px solid rgb(255 255 255 / .09);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / .04);
  transition: background-color .3s, border-color .3s;
}
.feature:hover { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .16); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgb(165 174 238 / .14);
  color: var(--peri-200);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 10px; }
.feature p { margin: 0; color: #b9c0df; font-size: .99rem; }

/* Eigene Praxis */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.split .lead { margin-top: 1.2rem; }

.checklist { display: grid; gap: 12px; margin: 1.7rem 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; }
.check {
  width: 1.45em;
  height: 1.45em;
  margin-top: .1em;
  padding: .22em;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-fg);
  stroke-width: 2.6;
}

.shop-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border: 1.5px solid transparent;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--peri-300), var(--navy-600) 55%, var(--peri-400)) border-box;
  box-shadow: var(--shadow-lg);
}
.shop-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40%;
  right: -35%;
  width: 80%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.shop-label {
  margin: 0 0 .6rem;
  color: var(--text-subtle);
  font-size: .78rem;
  font-weight: 650;
  font-stretch: 120%;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.shop-card h3 { margin-bottom: .8rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-stretch: 114%; }
.shop-card p { color: var(--text-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.4rem 0 1.9rem; padding: 0; list-style: none; }
.tags li {
  padding: .36em .85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: .88rem;
  font-weight: 560;
}

/* Arbeitsweise */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--peri-300), var(--line));
}
.step { position: relative; }
.step-no {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--link);
  font-weight: 650;
  font-stretch: 120%;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-muted); font-size: 1rem; }

/* Hinweisbox */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--notice-border);
  border-radius: 16px;
  background: var(--notice-bg);
  color: var(--notice-text);
  font-size: .98rem;
  line-height: 1.55;
}
.notice .icon { width: 1.35em; height: 1.35em; margin-top: .05em; color: var(--notice-icon); }
.notice strong { color: inherit; }

/* Kontakt-Panel (dunkel, in beiden Farbschemata) */
.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgb(90 105 230 / .45), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
  color: #e6e9f8;
}
.contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(165 174 238 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(165 174 238 / .07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 100% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 100% 100%, #000, transparent 70%);
}
@media (prefers-color-scheme: dark) { .contact-panel { border: 1px solid var(--line-strong); } }
.contact-panel h2 { color: #fff; }
.contact-panel .eyebrow { color: var(--peri-300); }
.contact-panel p { color: #c3c9e6; }
.contact-panel .lead { margin-top: 1.1rem; color: #c3c9e6; }
.contact-panel .notice { margin-top: 1.7rem; border-color: rgb(255 214 140 / .3); background: rgb(255 214 140 / .1); color: #f6e3ba; }
.contact-panel .notice .icon { color: #f2c46d; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

.contact-list { display: grid; align-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 18px;
  background: rgb(255 255 255 / .06);
  color: #fff;
  text-decoration: none;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
a.contact-item:hover { border-color: rgb(255 255 255 / .24); background: rgb(255 255 255 / .1); color: #fff; transform: translateY(-2px); }
.contact-item .icon-wrap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: rgb(165 174 238 / .16);
  color: var(--peri-200);
}
.contact-item small {
  display: block;
  color: #a2aad0;
  font-size: .74rem;
  font-weight: 600;
  font-stretch: 116%;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.contact-item b { display: block; font-size: 1.06rem; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Unterseiten ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(44px, 7vw, 96px) clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 64ch; margin-top: 1.2rem; }

.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 2rem 0 0; padding: 0; list-style: none; }
.chip-nav a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .5em .95em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: .93rem;
  font-weight: 560;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.chip-nav a:hover { border-color: var(--link); color: var(--link); }
.chip-nav .icon { width: 1.05em; height: 1.05em; color: var(--link); }

/* Leistungen: Inhaltsverzeichnis + Abschnitte */
.services-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}
.toc { position: sticky; top: calc(var(--header-h) + 32px); }
.toc-title {
  margin: 0 0 .8rem;
  color: var(--text-subtle);
  font-size: .78rem;
  font-weight: 650;
  font-stretch: 120%;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc a {
  display: flex;
  gap: .7em;
  margin-left: -2px;
  padding: .5rem 0 .5rem 1rem;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  font-size: .96rem;
  font-weight: 520;
  line-height: 1.35;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.toc a span { padding-top: .12em; color: var(--text-subtle); font-size: .82em; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--text); }
.toc a.is-active { border-left-color: var(--link); color: var(--link); }

.service { padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.service:first-child { padding-top: 0; }
.service:last-child { border-bottom: 0; padding-bottom: 0; }
.service-head { display: flex; align-items: center; gap: 18px; margin-bottom: 1.6rem; }
.service-no {
  display: block;
  margin-bottom: .35rem;
  color: var(--text-subtle);
  font-size: .78rem;
  font-weight: 650;
  font-stretch: 120%;
  letter-spacing: .14em;
}
.service > p { max-width: 70ch; color: var(--text-muted); font-size: 1.06rem; }
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}
.service-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; }

.callout {
  display: flex;
  gap: 16px;
  margin-top: 2rem;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}
.callout .icon { width: 1.4em; height: 1.4em; margin-top: .1em; color: var(--link); }
.callout strong { display: block; margin-bottom: .25rem; color: var(--text); }
.callout p { margin: 0; color: var(--text-muted); font-size: .98rem; }

/* Rechtstexte */
.legal { padding-block: clamp(40px, 6vw, 80px) var(--section-y); }
.prose { max-width: 74ch; }
.prose h2 {
  margin: 2.8rem 0 1rem;
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem);
  font-stretch: 108%;
}
.prose h3 { margin: 1.8rem 0 .6rem; font-size: 1.1rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--peri-400); }
.prose strong { color: var(--text); }
.prose a { overflow-wrap: anywhere; }

.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 2rem 0 2.4rem; }
.legal-card { padding: 24px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.legal-card h2 {
  margin: 0 0 .8rem;
  color: var(--text-subtle);
  font-size: .78rem;
  font-weight: 650;
  font-stretch: 120%;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.legal-card p { margin: 0; color: var(--text); line-height: 1.75; }

.summary-box { margin: 0 0 2.6rem; padding: 24px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); }
.summary-box h2 { margin: 0; font-size: 1.1rem; }
.summary-box ul { display: grid; gap: 10px; margin: 1rem 0 0; padding: 0; list-style: none; }
.summary-box li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--text); }

.highlight-box {
  margin: 1.4rem 0;
  padding: 18px 22px;
  border-left: 3px solid var(--link);
  border-radius: 0 16px 16px 0;
  background: var(--surface-2);
}
.highlight-box p { margin: 0; }
.meta-note { color: var(--text-subtle); font-size: .92rem; }

.toc-inline { margin: 0 0 2.4rem; padding: 0; list-style: none; columns: 2 240px; column-gap: 32px; }
.toc-inline li { margin-bottom: .45rem; break-inside: avoid; }
.toc-inline a { text-decoration: none; }
.toc-inline a:hover { text-decoration: underline; }

/* 404 */
.error-page { padding-block: clamp(64px, 12vw, 160px); text-align: center; }
.error-page .lead { max-width: 52ch; margin: 1.2rem auto 0; }
.error-page .hero-actions { justify-content: center; }
.error-code {
  margin: 0 0 1rem;
  color: var(--link);
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  font-weight: 700;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ---------- Fußbereich ---------- */
.site-footer { padding-block: clamp(56px, 7vw, 88px) 28px; background: var(--navy-950); color: #b9bfdc; }
@media (prefers-color-scheme: dark) { .site-footer { border-top: 1px solid var(--line); background: #060a1f; } }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand img { width: 200px; height: auto; }
.footer-brand p { max-width: 34ch; margin-top: 1.3rem; font-size: .97rem; }
.site-footer h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 650;
  font-stretch: 120%;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.site-footer ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #b9bfdc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { line-height: 1.75; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / .1);
  color: #8f97ba;
  font-size: .9rem;
}
.footer-bottom p { display: inline-flex; align-items: center; gap: .5em; margin: 0; }
.footer-bottom .icon { width: 1.1em; height: 1.1em; color: var(--peri-300); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .card-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .services-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .split, .contact-panel { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .service-list, .legal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card-grid, .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .steps::before { display: block; top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--peri-300), var(--line)); }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; }
  .step-no { grid-row: span 2; margin: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 100%; }
}

/* ---------- Bewegung (respektiert „Bewegung reduzieren“) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s 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; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }

  .hero-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(.65, 0, .35, 1) forwards; }
  .hero-lines path:nth-child(1) { animation-delay: 0.00s; }
  .hero-lines path:nth-child(2) { animation-delay: 0.05s; }
  .hero-lines path:nth-child(3) { animation-delay: 0.10s; }
  .hero-lines path:nth-child(4) { animation-delay: 0.15s; }
  .hero-lines path:nth-child(5) { animation-delay: 0.20s; }
  .hero-lines path:nth-child(6) { animation-delay: 0.25s; }
  .hero-lines path:nth-child(7) { animation-delay: 0.30s; }
  .hero-lines path:nth-child(8) { animation-delay: 0.35s; }

  .hero-ball, .hero-dot { transform-box: fill-box; transform-origin: center; animation: pop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
  .hero-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 3.6s ease-out infinite; }
  .hero-chip { animation: chip-in .6s var(--ease) both; }
  .hero-node:nth-child(1) :is(.hero-ball, .hero-dot) { animation-delay: 0.55s; }
  .hero-node:nth-child(1) .hero-pulse { animation-delay: 1.60s; }
  .chip-1 { animation-delay: 0.85s; }
  .hero-node:nth-child(2) :is(.hero-ball, .hero-dot) { animation-delay: 0.67s; }
  .hero-node:nth-child(2) .hero-pulse { animation-delay: 2.15s; }
  .chip-2 { animation-delay: 0.97s; }
  .hero-node:nth-child(3) :is(.hero-ball, .hero-dot) { animation-delay: 0.79s; }
  .hero-node:nth-child(3) .hero-pulse { animation-delay: 2.70s; }
  .chip-3 { animation-delay: 1.09s; }
  .hero-node:nth-child(4) :is(.hero-ball, .hero-dot) { animation-delay: 0.91s; }
  .hero-node:nth-child(4) .hero-pulse { animation-delay: 3.25s; }
  .chip-4 { animation-delay: 1.21s; }
  .hero-node:nth-child(5) :is(.hero-ball, .hero-dot) { animation-delay: 1.03s; }
  .hero-node:nth-child(5) .hero-pulse { animation-delay: 3.80s; }
  .chip-5 { animation-delay: 1.33s; }
  .hero-node:nth-child(6) :is(.hero-ball, .hero-dot) { animation-delay: 1.15s; }
  .hero-node:nth-child(6) .hero-pulse { animation-delay: 4.35s; }
  .chip-6 { animation-delay: 1.45s; }

  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0% { opacity: .6; transform: scale(.55); } 70%, 100% { opacity: 0; transform: scale(1.3); } }
@keyframes chip-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
/* „translate“ statt „transform“, damit Hover-Effekte (transform) weiter greifen */
@keyframes reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Druck ---------- */
@media print {
  .site-header, .skip-link, .hero-visual, .nav-toggle, .contact-actions, .chip-nav, .toc { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .legal { padding-block: 24px; }
  .section-dark, .contact-panel, .site-footer { background: none !important; color: #000 !important; box-shadow: none !important; }
  .section-dark *, .contact-panel *, .site-footer * { color: #000 !important; }
  a { color: #000; }
}
