/* PixTermin — Marketing-Site (Startseite + Unterseiten).
 * Designsprache der Produktfamilie (PageShell/Widget): warmes Papier,
 * Fraunces als Display-Serif, Familjen Grotesk als Grundschrift,
 * Petrol als Akzent, Bernstein als warmer Zweitakzent. Hell/dunkel über
 * prefers-color-scheme, Bewegung nur mit prefers-reduced-motion-Fallback. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/assets/fonts/familjen-grotesk-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/assets/fonts/familjen-grotesk-italic-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --surface-2: #f3efe7;
  --ink: #1a1d23;
  --muted: #6b6f78;
  --faint: #9a9ea6;
  --line: #e5e0d5;
  --line-strong: #cfc9bb;

  --accent: #0e6e64;
  --accent-deep: #0a544c;
  --accent-ink: #ffffff;
  --accent-soft: rgba(14, 110, 100, 0.09);
  --warm: #e8a13d;
  --warm-soft: rgba(232, 161, 61, 0.16);

  --grain-dot: rgba(26, 29, 35, 0.035);
  --grain-dot-2: rgba(26, 29, 35, 0.025);
  --rule: rgba(14, 110, 100, 0.08);

  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow: 0 1px 2px rgba(26, 29, 35, 0.05), 0 8px 28px rgba(26, 29, 35, 0.07);
  --shadow-lift: 0 2px 4px rgba(26, 29, 35, 0.06), 0 18px 48px rgba(26, 29, 35, 0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Familjen Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  color-scheme: light;
}

/* Drei Zustände, nicht zwei (20.08.2026): Bis dahin folgte die Site allein der
   Systemeinstellung — wer im Admin auf „Dunkel" gestellt hatte, bekam auf der
   Website trotzdem Papier. Jetzt gilt dieselbe Mechanik wie im Admin:
   Systemvorgabe, solange niemand gewählt hat; `data-theme` am <html> gewinnt.
   Die Tokens stehen deshalb zweimal — CSS kennt keine Wiederverwendung von
   Deklarationsblöcken, und ein @import-Trick wäre eine zusätzliche Anfrage.
   ⚠️ Wer hier eine Farbe ändert, ändert sie in BEIDEN Blöcken. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171c;
    --surface: #1d2026;
    --surface-2: #23262d;
    --ink: #ece9e1;
    --muted: #a4a8b0;
    --faint: #7b7f88;
    --line: #2c2f36;
    --line-strong: #3a3e46;

    --accent: #3aa79b;
    --accent-deep: #6cc9bd;
    --accent-ink: #0d1512;
    --accent-soft: rgba(58, 167, 155, 0.14);
    --warm: #e8a13d;
    --warm-soft: rgba(232, 161, 61, 0.14);

    --grain-dot: rgba(236, 233, 225, 0.028);
    --grain-dot-2: rgba(236, 233, 225, 0.018);
    --rule: rgba(58, 167, 155, 0.1);

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 18px 48px rgba(0, 0, 0, 0.5);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
    --bg: #15171c;
    --surface: #1d2026;
    --surface-2: #23262d;
    --ink: #ece9e1;
    --muted: #a4a8b0;
    --faint: #7b7f88;
    --line: #2c2f36;
    --line-strong: #3a3e46;

    --accent: #3aa79b;
    --accent-deep: #6cc9bd;
    --accent-ink: #0d1512;
    --accent-soft: rgba(58, 167, 155, 0.14);
    --warm: #e8a13d;
    --warm-soft: rgba(232, 161, 61, 0.14);

    --grain-dot: rgba(236, 233, 225, 0.028);
    --grain-dot-2: rgba(236, 233, 225, 0.018);
    --rule: rgba(58, 167, 155, 0.1);

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 18px 48px rgba(0, 0, 0, 0.5);

    color-scheme: dark;
}

/* ---------- Grundgerüst ---------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  /* feines Papier-Korn — dieselbe Textur wie auf den Buchungsseiten */
  background-image:
    radial-gradient(var(--grain-dot) 0.6px, transparent 0.6px),
    radial-gradient(var(--grain-dot-2) 0.6px, transparent 0.6px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1.5px 2.5px;
}

::selection {
  background: var(--warm-soft);
  color: var(--ink);
}

a { color: var(--accent); }

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

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 27px;
  height: 27px;
  color: var(--accent);
  flex: none;
}

.brand__word {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand__word em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 560;
  color: var(--accent);
  letter-spacing: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15.5px;
  transition: color 160ms var(--ease);
}

.site-nav__list a:not(.btn):hover,
.site-nav__list a[aria-current="page"]:not(.btn) {
  color: var(--ink);
}

.site-nav__list a[aria-current="page"]:not(.btn) {
  text-decoration: underline;
  text-decoration-color: var(--warm);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-nav__toggle {
  display: none;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: 600 15px var(--font-body);
  padding: 8px 14px;
  cursor: pointer;
}

.site-nav__toggle-bar {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms var(--ease);
}
.site-nav__toggle-bar::before { top: -5px; }
.site-nav__toggle-bar::after { top: 5px; }

@media (max-width: 760px) {
  .site-nav__toggle { display: inline-flex; }

  .site-nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] .site-nav__list { display: flex; }

  .site-nav__list li { border-top: 1px solid var(--line); }
  .site-nav__list li:first-child { border-top: 0; }
  .site-nav__list a:not(.btn) {
    display: block;
    padding: 13px 2px;
    font-size: 17px;
  }
  .site-nav__cta { padding-top: 14px; }
  .site-nav__cta .btn { width: 100%; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 16.5px/1.2 var(--font-body);
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
    background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.btn--solid {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--solid:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px var(--accent-soft), var(--shadow);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn--small {
  font-size: 15px;
  padding: 9px 18px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px);
  /* Terminplaner-Motiv: feine Linienzeilen wie ein aufgeschlagener Kalender */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 55px,
    var(--rule) 55px,
    var(--rule) 56px
  );
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6.2fr) minmax(0, 4.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--warm);
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--accent);
}

.hero__lead {
  font-size: clamp(17.5px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 30px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.hero__notes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__notes li::before {
  content: "✓";
  font-weight: 700;
  color: var(--accent);
}

/* Widget im App-Fenster — der eigentliche Held der Seite */

.app-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transform: rotate(0.6deg);
}

@media (max-width: 900px) {
  .app-frame { transform: none; }
}

.app-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.app-frame__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.app-frame__dot:first-child { background: var(--warm); }

.app-frame__url {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-frame__body {
  padding: clamp(14px, 2vw, 22px);
  min-height: 430px;
  /* Widget bleibt hell — das Fenster ist bewusst ein Blick auf die Kundenseite */
  background: #faf7f1;
  color-scheme: light;
}

.app-frame__hint {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  pointer-events: none;
}

/* Schwebender Slot-Chip als Deko am Hero-Fenster */

.slot-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
}

.slot-chip strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.slot-chip--booked::after {
  content: "bestätigt";
  position: absolute;
  top: -9px;
  right: -12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
}

.hero .slot-chip {
  right: clamp(6px, 3vw, 40px);
  top: -22px;
  transform: rotate(-2.4deg);
}

@media (max-width: 900px) {
  .hero .slot-chip { display: none; }
}

/* ---------- Abschnitts-Gerüst ---------- */

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section--alt {
  background: color-mix(in srgb, var(--surface-2) 55%, var(--bg));
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .kicker { justify-content: center; }

.section h2,
.section__head h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(29px, 3.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.section h2 em,
.section__head h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--accent);
}

.section__lead {
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Buchungsmodi: nummerierte Editorial-Karten ---------- */

.modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

@media (max-width: 900px) {
  .modes { grid-template-columns: 1fr; }
}

.mode-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px 28px;
  box-shadow: var(--shadow);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

.mode-card__no {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--warm);
  display: block;
  margin-bottom: 16px;
}

.mode-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.mode-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15.5px;
}

.mode-card__for {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1px dashed var(--line-strong);
  padding-top: 14px;
  margin: 0;
}

/* Mini-UI-Vignetten in den Modus-Karten */

.vignette {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
  margin-bottom: 18px;
  display: grid;
  gap: 6px;
}

.vignette__row {
  display: flex;
  gap: 6px;
}

.vignette__slot {
  flex: 1;
  height: 22px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.vignette__slot--busy { background: var(--line); border-color: transparent; }
.vignette__slot--pick {
  background: var(--accent);
  border-color: transparent;
  position: relative;
}
.vignette__slot--span { background: var(--accent-soft); border-color: var(--accent); border-style: dashed; }
.vignette__slot--photo {
  height: 44px;
  background:
    linear-gradient(135deg, var(--accent-soft) 0 55%, var(--warm-soft) 55% 100%),
    var(--surface);
}

/* ---------- Funktionsliste ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature h3::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--warm);
}

.feature:nth-child(even) h3::before { background: var(--accent); }

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Einbindung / Code ---------- */

.embed-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

@media (max-width: 900px) {
  .embed-demo { grid-template-columns: 1fr; }
}

.code-card {
  position: relative;
  background: #1a1d23;
  color: #ece9e1;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(236, 233, 225, 0.12);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.code-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(236, 233, 225, 0.55);
  border-bottom: 1px solid rgba(236, 233, 225, 0.1);
}

.code-card pre {
  margin: 0;
  padding: 20px 22px 24px;
  overflow-x: auto;
  font: 14px/1.7 "SF Mono", ui-monospace, "Cascadia Code", Menlo, monospace;
}

.code-card .tag { color: #8ad0c6; }
.code-card .attr { color: #e8a13d; }
.code-card .val { color: #d3cfc5; }

.copy-btn {
  background: rgba(236, 233, 225, 0.08);
  border: 1px solid rgba(236, 233, 225, 0.2);
  color: #ece9e1;
  font: 600 12.5px var(--font-body);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 160ms var(--ease);
}

.copy-btn:hover { background: rgba(236, 233, 225, 0.16); }
.copy-btn[data-copied="true"] { color: #8ad0c6; border-color: #8ad0c6; }

.embed-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: schritt;
}

.embed-steps li {
  position: relative;
  padding-left: 52px;
  counter-increment: schritt;
}

.embed-steps li::before {
  content: counter(schritt, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--warm);
}

.embed-steps h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin: 0 0 4px;
}

.embed-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Preise ---------- */

/* Der Umschalter arbeitet ohne eine Zeile JavaScript: Zwei Radioknöpfe liegen
   als Geschwister VOR dem Raster, das Stylesheet blendet danach die passende
   Preiszeile ein. Eine Preisseite, die ohne Skript keine Preise zeigt, wäre
   eine schlechte Preisseite. */
.pricing-wrap { display: block; }

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

.billing-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 34px;
  padding: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Der wandernde Hintergrund liegt UNTER den Beschriftungen und bewegt sich —
   zwei getrennt eingefärbte Hälften würden beim Umschalten springen. */
.billing-switch__thumb {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 5px;
  /* Spaltenbreite exakt nachrechnen: 2×5 px Innenabstand + 4 px Spalten-
     abstand gehen ab, sonst steht der Reiter über seine Beschriftung hinaus. */
  width: calc((100% - 14px) / 2);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.32s var(--ease);
}

.billing-switch label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.billing-switch__save {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
}

/* Zustände: Beschriftung anschalten, Reiter verschieben, Preiszeilen tauschen. */
.pricing-wrap__radio:nth-of-type(1):checked ~ .billing-switch label:nth-of-type(1),
.pricing-wrap__radio:nth-of-type(2):checked ~ .billing-switch label:nth-of-type(2) {
  color: var(--ink);
}
.pricing-wrap__radio:nth-of-type(2):checked ~ .billing-switch .billing-switch__thumb {
  transform: translateX(calc(100% + 4px));
}
/* Sichtbarer Fokus gehört an die BESCHRIFTUNG — der Radioknopf selbst ist
   ausgeblendet, ein Fokusring an ihm wäre unsichtbar und die Tastaturbedienung
   damit blind. */
.pricing-wrap__radio:nth-of-type(1):focus-visible ~ .billing-switch label:nth-of-type(1),
.pricing-wrap__radio:nth-of-type(2):focus-visible ~ .billing-switch label:nth-of-type(2) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.price-card__price.is-yearly,
.price-card__note.is-yearly { display: none; }
.pricing-wrap__radio:nth-of-type(2):checked ~ .pricing .price-card__price.is-monthly,
.pricing-wrap__radio:nth-of-type(2):checked ~ .pricing .price-card__note.is-monthly { display: none; }
.pricing-wrap__radio:nth-of-type(2):checked ~ .pricing .price-card__price.is-yearly { display: flex; }
.pricing-wrap__radio:nth-of-type(2):checked ~ .pricing .price-card__note.is-yearly { display: block; }

@media (prefers-reduced-motion: reduce) {
  .billing-switch__thumb { transition: none; }
}

.pricing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  max-width: 1300px;
  margin-inline: auto;
  align-items: stretch;
}

/* Vier Karten brauchen Breite. Darunter 2×2, auf dem Telefon eine Spalte —
   auf keiner Breite entsteht waagerechtes Scrollen. */
@media (max-width: 1180px) {
  .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
}
@media (max-width: 620px) {
  .pricing { grid-template-columns: 1fr; max-width: 420px; }
}

.price-card {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

/* Feine Tonspur am oberen Rand: gibt der Reihe Rhythmus und ordnet die Tarife,
   ohne dass vier verschieden bunte Karten daraus werden. */
.price-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; left: 26px; right: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--plan-tint, var(--line-strong));
}
.price-card--free { --plan-tint: var(--line-strong); }
.price-card--basis { --plan-tint: color-mix(in srgb, var(--accent) 45%, transparent); }
.price-card--plus { --plan-tint: var(--accent); }
.price-card--premium { --plan-tint: var(--warm); }

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lift);
}
/* Die empfohlene Karte steht etwas heraus — aber erst, wenn alle vier
   nebeneinander stehen. In der 2×2-Anordnung wäre eine angehobene Karte
   nur schief. */
@media (min-width: 1181px) {
  .price-card--featured { transform: translateY(-10px); }
  .price-card--featured:hover { transform: translateY(-13px); }
}

.price-card__badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--warm);
  color: #1a1d23;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 13px;
  box-shadow: 0 2px 8px rgba(26, 29, 35, 0.14);
}
.price-card--featured .price-card__badge { background: var(--accent); color: var(--accent-ink); }

.price-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  margin: 6px 0 0;
}

.price-card__tagline {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0 0;
  min-height: 42px;
}

.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 2px;
  min-height: 56px;
}

.price-card__price { display: flex; align-items: baseline; gap: 8px; }

.price-card__amount strong {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.price-card__amount span { color: var(--muted); font-size: 15px; white-space: nowrap; }

/* Der Jahrespreis hat Nachkommastellen und ist damit deutlich breiter — in
   derselben Schriftgröße drückte er das „pro Monat" in die zweite Zeile. */
.price-card__price.is-yearly strong { font-size: 37px; }

.price-card__note {
  color: var(--faint);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  /* Zwei Zeilen Platz: Der Jahres-Hinweis ist länger als der monatliche, ohne
     die Reserve verschöben sich beim Umschalten alle Karten. */
  min-height: 38px;
}

.price-card__setup {
  margin: 12px 0 0;
  padding-left: 11px;
  border-left: 3px solid var(--warm);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}

.price-card ul {
  list-style: none;
  margin: 22px 0 24px;
  padding: 0;
  display: grid;
  gap: 11px;
}

.price-card li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* Häkchen in einer getönten Scheibe statt als nacktes Zeichen — ordentlicher
   Umbruch bei mehrzeiligen Punkten inklusive (Rasterspalte statt Flexbox). */
.price-card li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--plan-tint) 18%, transparent);
  color: var(--plan-tint);
  font-size: 11px;
  font-weight: 700;
}

.price-card li.price-card__plus-note {
  grid-template-columns: 1fr;
  color: var(--ink);
  font-weight: 650;
  font-size: 13.5px;
}
.price-card li.price-card__plus-note::before { content: none; }

.price-card .btn { margin-top: auto; width: 100%; justify-content: center; }

.pricing-setup {
  max-width: 860px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 15.5px;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
}

.pricing-setup strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 24px;
  transition: border-color 180ms var(--ease);
}

.faq details[open] { border-color: var(--line-strong); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 16.5px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 220ms var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- CTA-Band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  text-align: center;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 41px,
    rgba(255, 255, 255, 0.07) 41px,
    rgba(255, 255, 255, 0.07) 42px
  );
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-band {
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 41px,
      rgba(13, 21, 18, 0.12) 41px,
      rgba(13, 21, 18, 0.12) 42px
    );
  }
}
:root[data-theme="dark"] .cta-band {
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 41px,
      rgba(13, 21, 18, 0.12) 41px,
      rgba(13, 21, 18, 0.12) 42px
    );
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  margin: 0 0 14px;
  text-wrap: balance;
}

.cta-band h2 em {
  font-style: italic;
  font-weight: 440;
  color: var(--warm);
}

.cta-band p {
  margin: 0 auto 28px;
  max-width: 34em;
  opacity: 0.85;
}

.cta-band .btn--solid {
  background: var(--bg);
  color: var(--ink);
}
.cta-band .btn--solid:hover { background: var(--surface); }

.cta-band .btn--ghost {
  border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent);
  color: var(--accent-ink);
}
.cta-band .btn--ghost:hover {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(56px, 8vw, 104px);
  padding-block: clamp(36px, 5vw, 56px) 28px;
  background: color-mix(in srgb, var(--surface-2) 45%, var(--bg));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 32px;
}

@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.brand--footer { margin: 0 0 12px; }

.site-footer__claim {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

.site-footer__col h2 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 4px 0 12px;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer__col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.site-footer__col a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--faint);
  font-size: 13.5px;
}

.site-footer__meta p { margin: 0; }

.site-footer__meta a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Fließtext-Seiten (Impressum, Datenschutz) ---------- */

.prose {
  max-width: 720px;
  padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 88px);
  /* Rechtstexte enthalten lange, ungebrochene Wörter/URLs/E-Mail-Adressen —
     ohne das hier gescoped auf den Fließtext-Container bricht das bei sehr
     schmalen Breiten (320px) horizontal aus (z. B. lange Compositum-Wörter
     in der Überschrift). Bewusst nicht global auf body gesetzt. */
  overflow-wrap: anywhere;
}

.prose h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
}

.prose__intro {
  color: var(--muted);
  font-size: 17.5px;
  margin: 0 0 36px;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  margin: 40px 0 10px;
}

.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 6px;
}

.prose p, .prose li {
  color: var(--muted);
  font-size: 16px;
}

.prose strong { color: var(--ink); }

.prose address {
  font-style: normal;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  color: var(--ink);
  line-height: 1.75;
}

/* ---------- Demo-Seite ---------- */

.demo-intro { max-width: 720px; }

.demo-block {
  margin-top: clamp(36px, 5vw, 56px);
}

.demo-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}

.demo-block__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
}

.demo-block__head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.demo-block .app-frame { transform: none; }

/* Breite Demo-Rahmen: Widget mittig statt linksbündig. */
.demo-block .app-frame__body > div {
  max-width: 720px;
  margin-inline: auto;
}

/* ---------- Live-Demo: Vorlagen-/Stil-Umschalter ----------
   Pillen-Radiogruppen über dem App-Fenster. Native Radios (Pfeiltasten,
   Fokus) — die Optik hängt am <span> daneben. */

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.demo-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.demo-seg__opt { position: relative; }

.demo-seg__opt input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.demo-seg__opt span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.demo-seg__opt:hover span { color: var(--ink); }

.demo-seg__opt input:checked + span {
  background: var(--accent);
  color: #fff;
}

.demo-seg__opt input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* min-height: die Taglines sind unterschiedlich lang — ohne Reserve springt
   das App-Fenster beim Umschalten. */
.demo-controls__hint {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
  min-height: 20px;
}

/* Der „Kundenseiten"-Hintergrund im Fenster folgt dem gewählten Stil:
   warmes Papier für die Terminkarte, kühles Grau für „Technisch". Beides
   bleibt bewusst hell — das Fenster ist ein Blick auf eine fremde Website,
   nicht Teil unseres Farbschemas. */
.demo-block[data-style="clean"] .app-frame__body { background: #f3f5f9; }

/* ---------- Einblend-Animationen ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Nur verstecken, wenn JS läuft (html.js setzt ein Inline-Script im Head) —
   * ohne JS bleibt alles sichtbar statt für immer unsichtbar. */
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 640ms var(--ease), transform 640ms var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero .slot-chip {
    animation: chip-float 7s ease-in-out infinite;
  }

  @keyframes chip-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
}

/* Anmelden-Link im Header (vor dem CTA): ruhig, aber klar erkennbar. */
.site-nav__login a {
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}
.site-nav__login a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .site-nav__login { padding-top: 10px; }
}

/* ---------- PixTermin-Logo „Terminkarte" (lib/Logo.php) ----------------
   Hover-Choreografie nach dem pixagentur.com-Muster: jede Fläche bekommt
   ihren eigenen Transform mit gestaffelter Verzögerung und Bounce-Kurve —
   die Slots mischen sich, als würde gerade ein Termin gebucht. Der
   Bernstein-Slot „atmet" im Ruhezustand. Identischer Block in
   admin/assets/admin.css (beide Welten laden nur ihr eigenes CSS). */
.pt-logo-mark rect {
  transform-origin: center;
  transform-box: fill-box;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
}
.pt-logo:hover .pt-logo__slot--1 { transform: scale(1.14) rotate(-4deg); transition-delay: 0s; }
.pt-logo:hover .pt-logo__slot--2 { transform: translate(-2px, 1.5px) scale(.92); opacity: .75; transition-delay: .05s; }
.pt-logo:hover .pt-logo__slot--3 { transform: translate(2px, -1.5px) scale(1.08) rotate(3deg); opacity: .6; transition-delay: .1s; }
.pt-logo:hover .pt-logo__slot--4 { transform: translateY(-2.5px) scale(1.22) rotate(5deg); transition-delay: .14s; }
.pt-logo:hover .pt-logo__ring--1 { transform: translateY(-1.5px); transition-delay: .02s; }
.pt-logo:hover .pt-logo__ring--2 { transform: translateY(-1.5px); transition-delay: .08s; }
.pt-logo:hover .pt-logo__tile { transform: scale(1.03); }
@keyframes pt-logo-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.pt-logo__slot--4 { animation: pt-logo-breathe 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .pt-logo-mark rect { transition: none; animation: none !important; }
}

/* Nur für Screenreader — visuell versteckt, aber im Accessibility-Tree. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* ---------- Hell/Dunkel-Umschalter im Kopf ----------
   Dieselbe Dreistufigkeit wie im Admin (System → Hell → Dunkel), damit die
   Einstellung über beide Bereiche hinweg dieselbe bleibt (localStorage
   'pt-theme'). Ein Knopf statt drei: Wer umschalten will, will meist nur
   „anders als jetzt". */

.site-theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.site-theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.site-theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Alle drei Symbole liegen im Knopf; sichtbar ist das der aktuellen Stufe.
   So gibt es keinen Umbau des DOM beim Umschalten und kein Nachladen. */
.site-theme-toggle__icon { display: none; grid-area: 1 / 1; }
.site-theme-toggle[data-mode="auto"] .site-theme-toggle__icon--auto,
.site-theme-toggle[data-mode="light"] .site-theme-toggle__icon--light,
.site-theme-toggle[data-mode="dark"] .site-theme-toggle__icon--dark { display: block; }

/* Ohne JavaScript hat der Knopf keine Wirkung — dann zeigt er sich gar nicht
   erst, statt als toter Knopf dazustehen. */
html:not(.js) .site-theme-toggle { display: none; }

.site-nav__theme { display: flex; align-items: center; }

@media (max-width: 860px) {
  /* Im ausgeklappten Menü steht der Umschalter als normale Zeile mit
     Beschriftung — ein 38-px-Kreis ohne Text wäre dort ein Rätsel. */
  .site-nav__theme { justify-content: flex-start; gap: 10px; }
  .site-nav__theme::after {
    content: attr(data-label);
    color: var(--muted);
    font-size: 15px;
  }
}

/* ---------- Vorlagen-Chips (Startseite) ----------
   Sechs Vorlagen als Reihe kurzer Karten: Name plus Ablauf in drei Wörtern.
   Absichtlich keine sechs Screenshots — die wären auf dem Telefon winzig und
   auf dem Desktop eine Bildergalerie statt einer Aussage. */

.flow-chips {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.flow-chips li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: grid;
  gap: 4px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.flow-chips li:hover { border-color: var(--accent); transform: translateY(-2px); }

.flow-chips strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}

.flow-chips span {
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) { .flow-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow-chips { grid-template-columns: 1fr; } }
