/* ============================================================
   Designsystem – Farben & Formen
   Die Variablennamen folgen der shadcn/ui-Konvention.
   Farben aus dem Logo „Physio Thijs“: Schieferblau, Senfgelb, Creme.
   ============================================================ */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --background: #fffcec;
  --foreground: #2c3444;
  --card: #ffffff;
  --muted: #f6efd2;
  --muted-foreground: #5d6575;
  --border: #ebe3c3;
  --primary: #e9b957;
  --primary-foreground: #2c3444;
  --ink: #2c3444;
  --ink-foreground: #fffbe6;
  --hero: #2c3444;
  --ring: #2c3444;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(44 52 68 / 0.06), 0 8px 24px -12px rgb(44 52 68 / 0.2);

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #1b2029;
    --foreground: #f6f2dc;
    --card: #242b38;
    --muted: #2f3747;
    --muted-foreground: #aab1be;
    --border: #374154;
    --hero: #2c3444;
    --ring: #e9b957;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -16px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: #1b2029;
  --foreground: #f6f2dc;
  --card: #242b38;
  --muted: #2f3747;
  --muted-foreground: #aab1be;
  --border: #374154;
  --hero: #2c3444;
  --ring: #e9b957;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -16px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted-foreground); }

.wrap { width: 100%; max-width: 1040px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
}

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

/* ---------- Komponenten ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 4px);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { min-height: 56px; font-size: 1.05rem; padding-inline: 1.4rem; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #fff); }
.btn-dark { background: var(--ink); color: var(--ink-foreground); }
.btn-dark:hover { background: color-mix(in srgb, var(--ink) 85%, #fff); }
.btn-outline {background: var(--card); color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.06);
  color: inherit;
  cursor: pointer;
}
.btn-icon:hover { background: rgb(255 255 255 / 0.14); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.tag {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Kopfbereich ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero);
  color: var(--ink-foreground);
  padding-bottom: 104px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
}
.hero-stripes { position: absolute; inset: 64px 0 auto auto; width: 42%; height: 250px; overflow: hidden; pointer-events: none; }
@media (min-width: 760px) { .hero-stripes { inset: 0; width: auto; height: auto; } }
.hero-stripes span {
  position: absolute;
  top: -20%;
  height: 140%;
  transform: skewX(-18deg);
  background: var(--primary);
}
.hero-stripes span:nth-child(1) { right: 6%; width: 64px; opacity: 0.95; }
.hero-stripes span:nth-child(2) { right: calc(6% + 88px); width: 18px; opacity: 0.6; }
.hero-stripes span:nth-child(3) { right: calc(6% + 124px); width: 6px; opacity: 0.35; }

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
/* Logo (Entwurf A): Farben kommen aus den Tokens, dadurch passt es zu hell und dunkel */
.lg-mark { fill: var(--primary); }
.lg-knock { fill: var(--ink); }
.lg-word { fill: var(--foreground); }
.logo-mark { display: block; height: 48px; width: auto; }
@media (min-width: 760px) { .logo-mark { height: 56px; } }

/* Großes Logo-Zeichen als Wasserzeichen im Kopfbereich */
.hero-watermark {
  position: absolute;
  left: -6%;
  top: 70px;
  width: min(1000px, 150%);
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}
@media (min-width: 760px) { .hero-watermark { left: -4%; top: 40px; width: min(900px, 80%); } }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.06);
}
.segmented button {
  min-width: 40px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0.7;
}
.segmented button[aria-pressed="true"] { background: var(--primary); color: var(--primary-foreground); opacity: 1; }

.hero-body {
  position: relative;
  display: grid;
  gap: 28px;
  padding-top: 24px;
}
.portrait {
  position: relative;
  width: min(190px, 52vw);
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(12px, 12px);
  background: var(--primary);
  border-radius: 22px;
}
.portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  background: #1b2540;
}
.kicker {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.wordmark { display: inline-grid; margin-top: 6px; }
.wordmark h1 {
  font-size: clamp(3.2rem, 15vw, 6rem);
  letter-spacing: 0.02em;
  padding-bottom: 0.12em;
  border-bottom: 5px solid var(--primary);
}
.wordmark-sub {
  margin-top: 12px;
  font-size: clamp(0.85rem, 3.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-align: center;
  margin-right: -0.34em; /* Buchstabenabstand am Ende ausgleichen, damit es mittig sitzt */
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 16px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.9rem;
}
.hero-text .chip { display: flex; width: fit-content; }
.chip .icon { width: 1em; height: 1em; color: var(--primary); }
.slogan { margin-top: 16px; max-width: 32ch; font-size: 1.15rem; color: rgb(255 251 230 / 0.82); }

@media (min-width: 760px) {
  .hero-body { grid-template-columns: auto 1fr; align-items: center; gap: 48px; padding-top: 40px; }
  .portrait { width: 240px; }
}

/* ---------- Kontakt ---------- */
.contact { position: relative; margin-top: -72px; }
.contact-card {
  display: grid;
  gap: 12px;
  max-width: 560px;
  padding: 16px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-extra .btn { padding-inline: 0.5rem; white-space: nowrap; }
.contact-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* ---------- Abschnitte ---------- */
.section { padding-top: 72px; }
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted-foreground);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-kicker span:first-child {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: var(--primary);
  color: var(--primary-foreground);
  transform: skewX(-12deg);
}
.section-title { font-size: clamp(2.2rem, 7vw, 3.4rem); margin: 10px 0 28px; }

.about { display: grid; gap: 24px; }
.about-text { display: grid; gap: 14px; font-size: 1.08rem; max-width: 62ch; }
@media (min-width: 760px) {
  .about { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

.services { display: grid; gap: 16px; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
.service {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service:hover { transform: translateY(-3px); border-color: var(--primary); }
.service-num {
  position: absolute;
  top: 8px;
  right: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--muted);
}
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 46px;
  margin-bottom: 18px;
  background: var(--primary);
  color: var(--primary-foreground);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}
.service-icon .icon { width: 24px; height: 24px; }
.service h3 { position: relative; font-size: 1.75rem; margin-bottom: 10px; }
.service p { position: relative; color: var(--muted-foreground); }

/* Referenzen – wie ein Line-up-Plakat */
.refs { display: grid; gap: 16px; }
@media (min-width: 640px) { .refs { grid-template-columns: repeat(2, 1fr); } }
.ref {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 220px;
  border-radius: var(--radius);
  background: var(--hero);
  color: var(--ink-foreground);
  box-shadow: var(--shadow);
}
.ref::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -6px;
  width: 16px;
  height: 140%;
  transform: skewX(-18deg);
  background: var(--primary);
  opacity: 0.9;
  z-index: 1;
}
/* Karten mit Foto: Bild füllt die Karte, Verlauf unten hält den Text lesbar */
.ref-photo { min-height: 360px; }
@media (min-width: 640px) { .ref-photo { min-height: 420px; } }
.ref-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(29 35 47 / 0) 35%, rgb(29 35 47 / 0.6) 60%, rgb(29 35 47 / 0.95) 100%);
}
.ref-body { position: relative; z-index: 2; display: grid; gap: 8px; margin-top: auto; padding: 24px 96px 24px 24px; }
.ref-cat {
  justify-self: start;
  padding: 0.2rem 0.6rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ref h3 { font-size: clamp(2.4rem, 9vw, 3.2rem); }
.ref p { color: rgb(255 251 230 / 0.78); }
.ref-cta {
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.ref-cta::after { background: var(--ink); opacity: 0.12; }
.ref-cta:hover { transform: translateY(-3px); }
@media (max-width: 639px) { .ref-cta { min-height: 150px; } }
.ref-cta-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }

/* Privatpatienten */
.private { display: grid; gap: 24px; }
@media (min-width: 760px) { .private { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.checklist { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; font-weight: 600; }
@media (min-width: 480px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; align-items: center; gap: 10px; }
.checklist .icon {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  stroke-width: 3;
}
.private-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--hero);
  color: var(--ink-foreground);
  box-shadow: var(--shadow);
}
.private-card .service-icon { margin-bottom: 4px; }
.private-area { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; text-transform: uppercase; }
.private-note { color: rgb(255 251 230 / 0.78); }
.private-card .btn { margin-top: 8px; }

/* Ablauf */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 20px 0 0;
  border-top: 4px solid var(--primary);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--primary);
}
.step h3 { font-size: 1.6rem; margin: 6px 0 8px; }
.step p { color: var(--muted-foreground); max-width: 34ch; }

.testimonials { display: grid; gap: 16px; }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 24px;
}
.quote-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  line-height: 0.6;
  height: 2.2rem;
  color: var(--primary);
}
.testimonial blockquote { flex: 1; margin: 0; font-size: 1.05rem; }
.quote-pending { flex: 1; color: var(--muted-foreground); }
.rule {
  width: 100%;
  height: 2px;
  margin: 20px 0 16px;
  border: 0;
  background: linear-gradient(90deg, var(--primary) 0 48px, var(--border) 48px);
}
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption > span:last-child { display: grid; line-height: 1.35; }
.testimonial figcaption .muted { font-size: 0.88rem; }
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--primary);
}

/* ---------- Aufruf & Fuß ---------- */
.cta {
  margin-top: 88px;
  background: var(--primary);
  color: var(--primary-foreground);
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
  padding: 96px 0 64px;
}
.cta-inner { display: grid; gap: 14px; justify-items: start; }
.cta h2 { font-size: clamp(2.4rem, 9vw, 4rem); }
.cta p { max-width: 46ch; font-size: 1.1rem; font-weight: 500; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
@media (max-width: 520px) {
  .cta-actions { display: grid; width: 100%; }
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 28px 40px;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}
.footer { align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand { flex-wrap: wrap; }
.footer-logo { display: block; width: 200px; height: auto; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--foreground); text-decoration: underline; }

/* ---------- QR-Dialog ---------- */
.dialog {
  width: min(380px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 24px 64px -12px rgb(0 0 0 / 0.45);
}
.dialog::backdrop { background: rgb(27 32 41 / 0.6); backdrop-filter: blur(3px); }
.dialog-body { display: grid; gap: 14px; padding: 20px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { font-size: 2rem; }
.dialog .btn-icon { border-color: var(--border); background: transparent; }
.dialog .btn-icon:hover { background: var(--muted); }
.qr { padding: 6px; border-radius: 12px; background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }
.qr-url { text-align: center; font-weight: 600; word-break: break-all; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-head { background: var(--hero); color: var(--ink-foreground); }
.page-head .topbar a { text-decoration: none; }
.legal { padding-block: 40px 64px; max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--foreground); }
.legal p + p { margin-top: 10px; }
.legal .hint {
  padding: 12px 14px;
  border-left: 4px solid var(--primary);
  background: var(--muted);
  border-radius: 6px;
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
