/* ==========================================================================
   BladeCity – company.bladecity.cc
   Hell- und Dunkelmodus über Farbvariablen. Ohne Auswahl gilt die
   Systemeinstellung; data-theme="light|dark" auf <html> überschreibt sie.
   Keine externen Schriften oder CDNs.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --fill: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --nav-bg: rgba(251, 251, 253, .8);
  --nav-solid: #fbfbfd;
  --nav-text: rgba(0, 0, 0, .8);
  --nav-line: rgba(0, 0, 0, .08);
  --link: #0066cc;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --btn-text: #ffffff;
  --shadow: 0 30px 60px -34px rgba(0, 0, 0, .28);
  --device-edge: 0 0 0 1px rgba(0, 0, 0, .06);
  --todo-bg: #fff3c4;
  --todo-text: #6b4d00;
  --ok: #1d8a3e;
  --warn: #b35f00;

  --c-erp: #0066cc;
  --c-gold: #9a6400;
  --c-sky: #0058c4;
  --c-violet: #7b3fe4;

  color-scheme: light;

  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 22px;
  --wrap: 980px;
  --wrap-wide: 1260px;
  --nav-h: 48px;
  --subnav-h: 52px;
  --radius: 28px;
  --radius-s: 18px;
  --ease: cubic-bezier(.28, .11, .32, 1);
}

/* Dunkle Werte – zweimal, weil CSS keine Blöcke teilen kann */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #0f0f10;
    --fill: #1c1c1e;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: #424245;
    --line-soft: #2c2c2e;
    --nav-bg: rgba(22, 22, 23, .8);
    --nav-solid: #161617;
    --nav-text: rgba(255, 255, 255, .8);
    --nav-line: rgba(255, 255, 255, .08);
    --link: #2997ff;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
    --device-edge: 0 0 0 1px rgba(255, 255, 255, .1);
    --todo-bg: #4a3a00;
    --todo-text: #ffe08a;
    --ok: #30d158;
    --warn: #ffb340;
    --c-erp: #4aa3ff;
    --c-gold: #f2b233;
    --c-sky: #4aa3ff;
    --c-violet: #b583ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0f0f10;
  --fill: #1c1c1e;
  --surface: #1c1c1e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: #424245;
  --line-soft: #2c2c2e;
  --nav-bg: rgba(22, 22, 23, .8);
  --nav-solid: #161617;
  --nav-text: rgba(255, 255, 255, .8);
  --nav-line: rgba(255, 255, 255, .08);
  --link: #2997ff;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  --device-edge: 0 0 0 1px rgba(255, 255, 255, .1);
  --todo-bg: #4a3a00;
  --todo-text: #ffe08a;
  --ok: #30d158;
  --warn: #ffb340;
  --c-erp: #4aa3ff;
  --c-gold: #f2b233;
  --c-sky: #4aa3ff;
  --c-violet: #b583ff;
  color-scheme: dark;
}

/* Screenshots: passende Variante zeigen */
.shot--dark { display: none; }
:root[data-theme="dark"] .shot--light:not(.shot--both) { display: none; }
:root[data-theme="dark"] .shot--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot--light:not(.shot--both) { display: none; }
  :root:not([data-theme="light"]) .shot--dark { display: block; }
}

/* ---------- 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(--nav-h) + 12px);
}
.has-subnav { scroll-padding-top: calc(var(--subnav-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: inherit;
  hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
}
p { margin: 0; }
.lead { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--btn);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; text-decoration: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--wide { max-width: calc(var(--wrap-wide) + var(--gutter) * 2); }
.center { text-align: center; }

/* ---------- Globale Navigation ---------- */

.gnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-line);
}
.has-subnav .gnav { position: relative; }

.gnav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.gnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.gnav__brand:hover { text-decoration: none; }
.gnav__brand img { width: 26px; height: 26px; }

.gnav__list {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gnav__list a {
  color: var(--nav-text);
  font-size: 12.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color .2s;
}
.gnav__list a:hover, .gnav__list a[aria-current="page"] { color: var(--text); text-decoration: none; }

.gnav__tools { display: flex; align-items: center; gap: 2px; margin-right: -10px; }

.theme-toggle, .gnav__toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--nav-text);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text); }
.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
}

.gnav__toggle { display: none; }
.gnav__toggle span {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.gnav__toggle span:first-child { top: 16px; }
.gnav__toggle span:last-child { top: 23px; }
.nav-open .gnav__toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-open .gnav__toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .gnav__toggle { display: grid; }
  .gnav__list {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    flex-direction: column;
    gap: 0;
    padding: 20px 40px 40px;
    background: var(--nav-solid);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s var(--ease), visibility 0s linear .3s;
    overflow-y: auto;
  }
  .nav-open .gnav__list {
    visibility: visible;
    opacity: 1;
    transition: opacity .3s var(--ease), visibility 0s;
  }
  .gnav__list li {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav-open .gnav__list li { opacity: 1; transform: none; }
  .gnav__list a {
    display: block;
    padding: 7px 0;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: .004em;
    color: var(--text);
  }
  .nav-open { overflow: hidden; }
  /* backdrop-filter würde das fixierte Menü an die 48px hohe Leiste binden */
  .nav-open .gnav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--nav-solid);
  }
}

/* ---------- Produkt-Navigation ---------- */

.subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--subnav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-line);
}
.subnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.subnav__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .011em;
  white-space: nowrap;
}
.subnav__title img { width: 28px; height: 28px; }
.subnav__addon {
  margin-left: 4px;
  padding: 3px 9px;
  border-radius: 980px;
  background: var(--line-soft);
  color: var(--text-2);
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
@media (max-width: 520px) { .subnav__addon { display: none; } }
.subnav__title:hover { text-decoration: none; }
.subnav__menu { display: flex; align-items: center; gap: 24px; }
.subnav__links { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.subnav__links a { font-size: 12px; color: var(--text); opacity: .85; }
.subnav__links a:hover { opacity: 1; color: var(--link); text-decoration: none; }
@media (max-width: 833px) {
  .subnav__links { display: none; }
  .subnav__title { font-size: 19px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 980px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 17px;
  line-height: 1.18;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn--ghost { background: transparent; border-color: var(--link); color: var(--link); }
.btn--ghost:hover { background: var(--link); color: var(--bg); }
.btn--small { min-height: 28px; padding: 4px 12px; font-size: 12px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
  margin-top: 24px;
}

/* ---------- Typografie ---------- */

.eyebrow {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .011em;
  color: var(--text-2);
}
.display {
  font-size: clamp(38px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.headline {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.005em;
}
.title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
}
.subhead {
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: .007em;
}
.lead {
  font-size: clamp(19px, 1.9vw, 21px);
  line-height: 1.38;
  letter-spacing: .011em;
}
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.43; }

.accent-erp { color: var(--c-erp); }
.accent-gold { color: var(--c-gold); }
.accent-sky { color: var(--c-sky); }
.accent-violet { color: var(--c-violet); }

.statement {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: var(--text-3);
}
.statement strong { color: var(--text); font-weight: 600; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 980px;
  background: color-mix(in srgb, var(--c-violet) 16%, transparent);
  color: var(--c-violet);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.tag--erp { background: color-mix(in srgb, var(--c-erp) 14%, transparent); color: var(--c-erp); }

.footnote { margin-top: 28px; font-size: 12px; line-height: 1.5; color: var(--text-2); }

/* ---------- Abschnitte ---------- */

.section { padding: clamp(72px, 10vw, 140px) 0; background: var(--bg); --card: var(--fill); }
.section--alt { background: var(--bg-alt); --card: var(--surface); }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head p { margin-top: 16px; }
.section-head--start { margin-left: 0; text-align: left; }

/* ---------- Startseite: Einstieg ---------- */

.hero {
  padding: clamp(64px, 9vw, 120px) 0 0;
  background: var(--bg);
  text-align: center;
  overflow: hidden;
}
.hero .lead { max-width: 660px; margin: 22px auto 0; }

.dock {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 64px);
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding: 0 0 clamp(64px, 8vw, 110px);
  list-style: none;
}
.dock li { width: clamp(92px, 18vw, 180px); text-align: center; }
.dock a { display: block; color: var(--text); }
.dock a:hover { text-decoration: none; }
.dock img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.dock a:hover img { transform: translateY(-6px); }
.dock span { display: block; margin-top: 10px; font-size: clamp(13px, 1.5vw, 17px); font-weight: 500; }
.dock small { display: block; font-size: 12px; color: var(--text-2); }
@media (max-width: 600px) {
  .dock {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 16px;
    max-width: 360px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .dock li { width: auto; }
  .dock img { width: 112px; margin: 0 auto; }
}

/* ---------- Startseite: Produktkacheln ---------- */

.tiles { display: grid; gap: 12px; padding: 12px 12px 0; background: var(--bg); }
.tiles--two { grid-template-columns: 1fr 1fr; }
.tiles:last-of-type { padding-bottom: 12px; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 680px;
  padding: 56px var(--gutter) 0;
  border-radius: var(--radius-s);
  background: var(--bg-alt);
  overflow: hidden;
  text-align: center;
}
.tiles--two .tile { min-height: 600px; }
.tiles--two .tile .headline { font-size: clamp(32px, 3.6vw, 40px); }
.tiles--two .tile .subhead { font-size: clamp(19px, 1.8vw, 21px); }
.tile__head { position: relative; z-index: 1; max-width: 700px; }
.tile__head .subhead { margin-top: 6px; }
.tile__icon { width: 64px; height: 64px; margin: 0 auto 14px; }
.tile__visual {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  width: 100%;
  margin-top: 40px;
}
.tile__visual--center { align-items: center; padding-bottom: 48px; }
.tile .device--phone { margin-bottom: -150px; }
.tile .device--phone + .device--phone { transform: translateY(40px); }
.tile .device--tablet, .tile .device--browser { margin-bottom: -12%; }
.tile__hero-icon { width: clamp(200px, 24vw, 280px); }

@media (max-width: 833px) {
  .tiles--two { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding-top: 44px; }
  .tiles--two .tile { min-height: 0; }
  .tile__visual { flex: none; }
}
@media (max-width: 600px) {
  .tile .device--phone + .device--phone { display: none; }
}

/* ---------- Geräte mit echten Screenshots ---------- */

.device { margin: 0; flex-shrink: 0; }
.device img { width: 100%; height: auto; }

.device--phone {
  width: 300px;
  padding: 10px;
  border-radius: 52px;
  background: #1b1b1d;
  box-shadow:
    inset 0 0 0 1.5px #3a3a3c,
    inset 0 0 0 4px #0b0b0c,
    var(--device-edge),
    var(--shadow);
}
.device--phone .device__screen { border-radius: 42px; overflow: hidden; }

.device--tablet {
  width: 100%;
  max-width: 920px;
  padding: clamp(8px, 1.4%, 16px);
  border-radius: clamp(22px, 3.6%, 40px);
  background: #1b1b1d;
  box-shadow:
    inset 0 0 0 1.5px #3a3a3c,
    inset 0 0 0 4px #0b0b0c,
    var(--device-edge),
    var(--shadow);
}
.device--tablet .device__screen { border-radius: clamp(14px, 2.4%, 26px); overflow: hidden; }

.device--browser {
  width: 100%;
  max-width: 980px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--device-edge), var(--shadow);
}
.device__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--fill);
  border-bottom: 1px solid var(--line-soft);
}
.section--alt .device__bar { background: var(--line-soft); }
.device__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.device__bar span {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  padding: 3px 12px;
  border-radius: 7px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
}
.device-pair .device--phone:nth-child(2) { transform: translateY(40px); }
@media (max-width: 600px) {
  .device-pair .device--phone:nth-child(2) { display: none; }
}

@media (max-width: 734px) {
  .device--phone { width: 270px; padding: 9px; border-radius: 46px; }
  .device--phone .device__screen { border-radius: 37px; }
  /* Tablet und Browser laufen über den Rand, damit sie lesbar bleiben */
  .bleed { justify-content: flex-start !important; overflow: hidden; }
  .bleed .device--tablet { width: 165%; max-width: none; }
  .bleed .device--browser { width: 175%; max-width: none; }
}

/* ---------- Produktseiten: Einstieg ---------- */

.hero-product {
  padding: clamp(56px, 8vw, 100px) 0 0;
  background: var(--bg);
  text-align: center;
  overflow: hidden;
}
.hero-product__icon { width: clamp(96px, 12vw, 132px); height: auto; margin: 0 auto 22px; }
.hero-product .lead { max-width: 680px; margin: 20px auto 0; }
.hero-product__visual {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 7vw, 80px);
  padding: 0 var(--gutter);
}
.hero-product__visual--crop { margin-bottom: -7%; }
.hero-product__visual--phones { margin-bottom: -150px; }
@media (max-width: 734px) {
  .hero-product__visual--phones { margin-bottom: -120px; }
}

/* ---------- Text + Bild ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.split--wide { grid-template-columns: 5fr 7fr; }
.split--flip > :first-child { order: 2; }
.split__text .headline + p, .split__text .title + p { margin-top: 18px; }
.split__text p + p { margin-top: 14px; }
.split__visual { display: flex; justify-content: center; }
@media (max-width: 833px) {
  .split, .split--wide { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .split__text { text-align: center; max-width: 580px; margin: 0 auto; }
}

/* ---------- Karten ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.card--3 { grid-column: span 3; }
.card--4 { grid-column: span 4; }
.card--6 { grid-column: span 6; }
.card h3 { font-size: 24px; line-height: 1.17; letter-spacing: .009em; }
.card p { margin-top: 10px; color: var(--text-2); }
.card .card__kicker { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.card__icon { width: 30px; height: 30px; margin-bottom: 18px; color: var(--text); }
.card__big {
  margin-top: auto !important;
  padding-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
@media (max-width: 1068px) {
  .card, .card--3 { grid-column: span 3; }
  .card--4, .card--6 { grid-column: span 6; }
}
@media (max-width: 734px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .card, .card--3, .card--4, .card--6 { grid-column: auto; padding: 30px 26px; }
}

/* ---------- Spalten ---------- */

.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.columns--4 { grid-template-columns: repeat(4, 1fr); }
.col h3 { font-size: 21px; line-height: 1.19; letter-spacing: .011em; }
.col p { margin-top: 8px; color: var(--text-2); }
.col__num {
  display: block;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1068px) { .columns--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 734px) { .columns, .columns--4 { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Checkliste ---------- */

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 16px 0 16px 34px; border-top: 1px solid var(--line); }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
}
.checks strong { display: block; font-weight: 600; }
.checks span { color: var(--text-2); }
@media (max-width: 734px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Faktenraster (Recht, Belege) ---------- */

.law {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}
.law li { padding: 30px 28px 32px; background: var(--card); }
.law b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: .004em; }
.law span { display: block; margin-top: 6px; color: var(--text-2); }
@media (max-width: 833px) { .law { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .law { grid-template-columns: 1fr; } }

/* ---------- Zusammenspiel ---------- */

.flow { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: stretch; }
.flow__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 26px 30px;
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}
.flow__node img { width: 84px; height: 84px; }
.flow__node h3 { margin-top: 16px; font-size: 24px; }
.flow__where { margin-top: 2px; font-size: 14px; color: var(--text-2); }
.flow__node ul {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.4;
}
.flow__node li + li { margin-top: 6px; }
.flow__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  width: 128px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
}
.flow__arrow svg { width: 100%; height: 12px; margin-top: 4px; }
.flow__arrow--back svg { transform: rotate(180deg); }
@media (max-width: 1068px) {
  .flow { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .flow__link { flex-direction: row; justify-content: center; width: auto; padding: 14px 0; gap: 28px; }
  .flow__arrow svg { transform: rotate(90deg); width: 40px; height: 40px; margin: 0 auto; }
  .flow__arrow--back svg { transform: rotate(-90deg); }
}

/* ---------- Datenspeicherung & Backups ---------- */

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact { padding: 30px 28px 32px; border-radius: var(--radius-s); background: var(--card); }
.fact svg { width: 28px; height: 28px; margin-bottom: 16px; color: var(--c-erp); }
.fact h3 { font-size: 19px; line-height: 1.21; letter-spacing: .012em; }
.fact p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.47; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.tier {
  display: flex;
  flex-direction: column;
  padding: 34px 30px 32px;
  border-radius: var(--radius);
  background: var(--card);
}
.tier__label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.tier h3 { margin-top: 6px; font-size: 28px; line-height: 1.12; }
.tier__keep {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.tier__keep small { display: block; margin-top: 6px; font-family: var(--font-text); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.tier ul { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--text-2); font-size: 15px; }
.tier li { position: relative; padding-left: 22px; }
.tier li + li { margin-top: 8px; }
.tier li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--ok);
  border-bottom: 1.6px solid var(--ok);
  transform: rotate(-45deg);
}
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- Statuskarte (Betreuung) ---------- */

.status-card {
  width: 100%;
  max-width: 400px;
  padding: 22px 24px 10px;
  border-radius: 22px;
  background: var(--surface);
  text-align: left;
  font-size: 15px;
  box-shadow: var(--device-edge), var(--shadow);
}
.status-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.status-card__head span { color: var(--text-2); font-size: 13px; }
.status-card ul { margin: 0; padding: 0; list-style: none; }
.status-card li { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.status-card li + li { border-top: 1px solid var(--line-soft); }
.status-card em { margin-left: auto; color: var(--text-2); font-style: normal; font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #34c759; flex-shrink: 0; }

/* ---------- BladeTime: Tagesbalken, große Zahlen ---------- */

.dayplan { margin: 0; }
.dayplan__bar { display: flex; gap: 3px; height: 120px; }
.dayplan__bar span {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 0 0 10px 10px;
  border-radius: 12px;
  background: var(--c);
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  white-space: nowrap;
}
.dayplan__bar b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.dayplan__bar .is-short, .dayplan__bar .is-short b { font-size: 0; padding: 0; }
.dayplan__caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--text-2); }
@media (max-width: 734px) {
  .dayplan__bar { flex-direction: column; height: auto; }
  .dayplan__bar span, .dayplan__bar .is-short {
    flex: none !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
  }
  .dayplan__bar .is-short b { font-size: 14px; }
  .dayplan__bar .is-long { padding: 26px 14px; }
}

.big-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 820px; margin: 56px auto 0; text-align: center; }
.big-numbers small { display: block; margin-bottom: 4px; font-size: 17px; color: var(--text-2); }
.big-numbers b { display: block; font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.big-numbers span { display: block; margin-top: 8px; color: var(--text-2); }
@media (max-width: 734px) { .big-numbers { grid-template-columns: 1fr; gap: 28px; } }

.sync-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 980px;
  background: var(--card);
  font-size: 15px;
  font-weight: 500;
}
.sync-pill svg { width: 20px; height: 20px; }
.sync-pill--warn { color: var(--warn); }
.sync-pill--ok { color: var(--ok); }

/* ---------- Kontakt ---------- */

.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact__item {
  display: block;
  padding: 28px 28px 30px;
  border-radius: var(--radius-s);
  background: var(--card);
  color: var(--text);
  transition: transform .3s var(--ease);
}
a.contact__item:hover { text-decoration: none; transform: translateY(-2px); }
.contact__label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-2); }
.contact__value { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: .011em; overflow-wrap: anywhere; }
a.contact__item .contact__value { color: var(--link); }
@media (max-width: 833px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Rechtstexte ---------- */

.legal {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) var(--gutter) clamp(72px, 10vw, 120px);
}
.legal h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.08; margin-bottom: 12px; }
.legal h2 { margin: 48px 0 12px; font-size: 24px; line-height: 1.17; letter-spacing: .009em; }
.legal h3 { margin: 28px 0 8px; font-size: 19px; line-height: 1.21; }
.legal p, .legal ul, .legal address { margin: 0 0 14px; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal .stand { color: var(--text-2); font-size: 14px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0 0 14px; }
.legal dt { color: var(--text-2); }
.legal dd { margin: 0; }
@media (max-width: 520px) {
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 10px; }
}

/* Platzhalter, die vor dem Livegang ersetzt werden müssen */
.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--todo-bg);
  color: var(--todo-text);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

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

.footer { background: var(--bg-alt); color: var(--text-2); font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; }
.footer__inner { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 36px var(--gutter) 24px; }
.footer__note { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 0 28px; }
.footer__cols h2 { margin-bottom: 10px; font-family: var(--font-text); font-size: 12px; font-weight: 600; color: var(--text); }
.footer__cols ul { margin: 0; padding: 0; list-style: none; }
.footer__cols li { margin-bottom: 8px; }
.footer__cols a { color: var(--text-2); }
.footer__cols a:hover { color: var(--text); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
@media (max-width: 734px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

.theme-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 980px; background: var(--line-soft); }
.theme-switch__label { padding: 0 8px 0 10px; color: var(--text-2); }
.theme-switch button {
  padding: 5px 12px;
  border: 0;
  border-radius: 980px;
  background: none;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
}
.theme-switch button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ---------- Einblenden beim Scrollen ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .1s; }
.js .reveal-delay-2 { transition-delay: .2s; }

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

@media print {
  .gnav, .subnav, .footer__cols, .btn-row, .theme-switch { display: none !important; }
  .todo { background: none; }
}
