/* Ingo Kropp, Physiotherapie und FDM. Demo von Alenton.
   Farbwelt: gedecktes Blau zum Grau des Logos. Keine externen Schriften. */

:root {
  color-scheme: light;
  --blue: #2b6e92;
  --blue-deep: #1b4a63;
  --blue-soft: #3a7897;
  --blue-ghost: rgba(43, 110, 146, 0.06);
  --paper: #fbfcfd;
  --surface: #ffffff;
  --mist: #eef4f7;
  --line: #d9e5ec;
  --ink: #1a2228;
  --muted: #5c6b75;
  --focus: #2b6e92;
  --logo-gray: #939393;
  --logo-dot: #0a0a0a;
  --radius: 14px;
  --maxw: 1140px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(26, 34, 40, .05), 0 8px 24px rgba(26, 34, 40, .06);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.12; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.2; margin: 0 0 1rem; }
h3 { font-size: 1.16rem; line-height: 1.3; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-soft); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------- Entwurfsband */
.draft-bar {
  background: var(--blue-deep); color: #e4eef4; font-size: .8rem;
  letter-spacing: .02em; text-align: center; padding: 7px 16px;
}
/* ------------------------------------------------------------------ Header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { order: 0; min-width: 0; display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { flex: 0 0 auto; }
.brand-name { font-family: var(--serif); font-size: 1.17rem; line-height: 1.1; white-space: nowrap; }
.brand-role {
  display: block; white-space: nowrap; margin-top: 4px;
  font-family: var(--sans); font-size: .69rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .95rem;
}
.nav a:hover { background: var(--blue-ghost); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 8px 8px 0 0; }

.langs { display: flex; align-items: center; gap: 2px; padding-left: 12px; border-left: 1px solid var(--line); order: 2; flex: 0 0 auto; }
.langs a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 7px;
  font-size: .8rem; text-decoration: none; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.langs a:hover { background: var(--blue-ghost); color: var(--blue); }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.langs svg { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }

.burger {
  display: none; order: 3; flex: 0 0 auto; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

@media (max-width: 900px) {
  .burger { display: inline-flex; margin-left: 4px; }
  .head-inner { gap: 10px; }
  .langs { padding-left: 10px; gap: 0; }
  .langs a { padding: 6px; }
  .nav {
    position: absolute; inset: 68px 0 auto; display: none; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 14px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
}

/* Auf schmalen Geraeten bleibt die Qualifikation stehen.
   Platz dafuer entsteht, indem die Flaggen entfallen und nur die Kuerzel bleiben. */
@media (max-width: 560px) {
  .brand-name { font-size: 1.05rem; }
  .brand-role { font-size: .6rem; letter-spacing: .06em; margin-top: 3px; }
  .langs { padding-left: 10px; }
  .langs svg { display: none; }
  .langs a { padding: 12px 8px; font-size: .78rem; letter-spacing: .08em; }
}
/* Drei Sprachen brauchen mehr Platz als zwei. Die Kuerzel ruecken zusammen,
   die Tippflaeche bleibt ueber die Hoehe erhalten. */
@media (max-width: 430px) {
  .brand { gap: 8px; }
  .brand-name { font-size: 1rem; }
  .brand-role { font-size: .55rem; letter-spacing: .04em; }
  .langs { padding-left: 8px; }
  .langs a { padding: 12px 6px; font-size: .74rem; letter-spacing: .05em; }
}
/* Notbremse fuer sehr schmale Geraete */
@media (max-width: 360px) {
  .brand-role { display: none; }
  .brand-name { font-size: .95rem; }
}

/* -------------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(170deg, var(--mist), var(--paper) 62%); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding-block: clamp(42px, 7vw, 86px);
}
.kicker {
  display: inline-block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.kicker::after { content: ""; display: block; width: 46px; height: 2px; background: var(--blue); margin-top: 8px; opacity: .55; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero-art { position: relative; }
.hero-art svg { display: block; width: 100%; max-height: 400px; }
#logo-art { width: 100%; max-width: 300px; margin-inline: auto; overflow: visible; }
#logo-dots circle { will-change: transform; }
/* Kugeloptik der Wirbelpunkte, bewusst nur im grossen Logo im Aufmacher.
   Die Marke im Kopf, im Fuss und das Favicon bleiben flach. */
#logo-art .logo-dot { fill: url(#kugel); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; max-width: 420px; margin-inline: auto; }
  #logo-art { max-width: 212px; }
}

/* ------------------------------------------------------------------ Blocks */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px;
  background: var(--blue); color: #fff; text-decoration: none; font-size: .96rem; border: 1px solid var(--blue);
  transition: transform .18s ease, background-color .18s ease;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { background: var(--blue-ghost); color: var(--blue); border-color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

section { padding-block: clamp(40px, 6vw, 74px); }
.section-sand { background: var(--mist); }
.eyebrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.prose { max-width: 68ch; margin-top: 1.6rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.15rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
}
.card h3 { color: var(--blue); }
.card p { margin-bottom: 0; color: var(--muted); }

/* Karte hebt sich beim Zeigen leicht an, der Schatten wird etwas tiefer.
   Nur auf Geraeten mit echtem Zeiger, damit auf dem Handy nichts haengen bleibt. */
.card {
  transition: transform .34s cubic-bezier(.22, .61, .36, 1),
              box-shadow .34s cubic-bezier(.22, .61, .36, 1),
              border-color .34s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 4px rgba(26, 34, 40, .06), 0 18px 38px rgba(26, 34, 40, .13);
    border-color: #c2d8e5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: box-shadow .2s ease; }
  .card:hover { transform: none; }
}

.quote {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.7vw, 1.75rem); line-height: 1.4;
  color: var(--blue-deep); border-left: 3px solid var(--blue); padding: 4px 0 4px 22px; margin: 0;
  max-width: 34ch;
}
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: .92rem;
}

.note {
  font-size: .86rem; color: var(--muted); background: var(--blue-ghost);
  border-left: 3px solid var(--blue-soft); border-radius: 0 8px 8px 0; padding: 12px 16px; margin-top: 18px;
}

/* ------------------------------------------------------------------ Steps */
/* Grundform: die Wirbelsaeule steht senkrecht, die Schritte haengen rechts daran. */
.steps {
  position: relative; display: grid; grid-template-columns: 1fr;
  gap: 26px; padding: 0; margin: 0; list-style: none;
}
.steps li { position: relative; padding-left: 72px; min-height: 52px; }
.step-mark { position: absolute; top: 0; left: 0; width: 52px; height: 52px; z-index: 1; }
.steps-line {
  position: absolute; top: 26px; bottom: 26px; left: 22px; width: 8px;
  background-image: radial-gradient(circle, var(--line) 3px, transparent 3.4px);
  background-size: 8px 15px; background-repeat: repeat-y; background-position: center top;
}
.steps-fill {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--blue) 3px, transparent 3.4px);
  background-size: 8px 15px; background-repeat: repeat-y; background-position: center top;
  transform-origin: center top;
}
.steps h3 { margin-bottom: .25rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Ab Tabletbreite wandert die Saeule in die Mitte, die Schritte stehen
   versetzt links und rechts. So dauert der Weg beim Scrollen laenger. */
@media (min-width: 881px) {
  .steps {
    grid-template-columns: 1fr 56px 1fr; column-gap: 0; row-gap: clamp(26px, 3vw, 40px);
    max-width: 960px; margin-inline: auto;
  }
  .steps li { padding-left: 0; min-height: 0; }
  .steps li:nth-of-type(odd) { grid-column: 1; text-align: right; padding-right: 48px; }
  .steps li:nth-of-type(even) { grid-column: 3; padding-left: 48px; }
  .steps li:nth-of-type(1) { grid-row: 1; }
  .steps li:nth-of-type(2) { grid-row: 2; }
  .steps li:nth-of-type(3) { grid-row: 3; }
  .steps li:nth-of-type(4) { grid-row: 4; }
  .steps li:nth-of-type(odd) .step-mark { left: auto; right: -54px; }
  .steps li:nth-of-type(even) .step-mark { left: -54px; }
  .steps-line { left: calc(50% - 4px); top: 26px; bottom: 26px; }
  .steps p { max-width: 40ch; }
  .steps li:nth-of-type(odd) p { margin-left: auto; }
}

/* --------------------------------------------------------------- Ueber mich */
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 26px; } }
.portrait-frame { text-align: center; }
.portrait {
  width: 190px; height: 190px; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  border: 1px solid var(--line); box-shadow: 0 0 0 8px var(--blue-ghost), var(--shadow);
  background: var(--mist);
}
.portrait-name { font-family: var(--serif); font-size: 1.3rem; margin-top: 18px; }
.portrait-role { font-size: .9rem; color: var(--muted); }
.portrait-note { font-size: .78rem; color: var(--muted); margin-top: 14px; }

.stats { margin: 0; }
.stat {
  display: flex; align-items: baseline; gap: 16px;
  margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.stat:last-child { border-bottom: 0; }
.stat-num {
  font-family: var(--serif); font-size: clamp(2.1rem, 4.4vw, 2.9rem); line-height: 1;
  color: var(--blue); min-width: 2.4ch; text-align: right; font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: .98rem; }

.vita { position: relative; list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.vita-progress {
  position: absolute; left: -2px; top: 0; width: 2px; height: 100%;
  background: var(--blue); transform-origin: top center; border-radius: 2px;
}
.vita li { position: relative; padding: 0 0 26px 26px; }
.vita-dot {
  position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px var(--paper); z-index: 1;
}
.vita b { display: block; font-family: var(--serif); font-weight: 400; color: var(--blue); font-size: 1.02rem; }
.vita span { color: var(--muted); }

/* --------------------------------------------------------- Distorsionstypen */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
@media (max-width: 960px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .types { grid-template-columns: 1fr; } }
.type-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
}
.type-card .ico { color: var(--blue); }
.type-card h3 { margin: 0; font-size: 1.06rem; }
.type-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.type-gesture {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: .86rem; color: var(--blue); display: flex; gap: 8px; align-items: flex-start;
}

/* ---------------------------------------------------------------- Anfahrt */
.map-card { max-width: 760px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.photo-card {
  margin: 24px 0 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
}
.photo-card img { display: block; width: 100%; border-radius: 9px; }
.photo-card figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.map-card figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; text-align: center; }
.way-list { list-style: none; padding: 0; margin: 0; counter-reset: w; }
.way-list li { position: relative; padding: 0 0 20px 50px; }
.way-list li::before {
  counter-increment: w; content: counter(w);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--serif);
}
.way-list b { display: block; }
.way-list span { color: var(--muted); font-size: .96rem; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.fact h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); margin-bottom: 8px; }
.fact p { margin: 0; font-size: 1.04rem; }
.fact a { text-decoration: none; }
.fact small { display: block; color: var(--muted); font-size: .84rem; margin-top: 6px; }

/* ------------------------------------------------------------------ Formular */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 22px 0 6px; margin: 0 0 8px; }
fieldset:first-of-type { border-top: 0; padding-top: 4px; }
legend { font-family: var(--serif); font-size: 1.18rem; color: var(--blue); padding: 0 10px 0 0; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 680px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-size: .9rem; margin-bottom: 6px; }
.req { color: var(--blue); }
.hint { display: block; font-size: .82rem; color: var(--muted); margin: 4px 0 6px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
}
textarea { min-height: 120px; resize: vertical; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%;
  height: 34px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin-top: -12px;
  border-radius: 50%; background: var(--blue); border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(26, 34, 40, .35);
}
input[type="range"]::-moz-range-track {
  height: 10px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line);
}
input[type="range"]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue);
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(26, 34, 40, .35);
}
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--focus); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 16px; padding-top: 4px; }
.range-out {
  font-family: var(--serif); font-size: 1.35rem; color: var(--blue);
  min-width: 2.6ch; text-align: center; background: var(--blue-ghost);
  border-radius: 8px; padding: 4px 8px;
}
.choices { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.choice {
  display: flex; align-items: center; gap: 10px; font-size: .93rem; margin-bottom: 0;
  min-height: 44px; padding: 2px 4px 2px 0; cursor: pointer;
}
.choice input { width: 22px; height: 22px; flex: 0 0 auto; margin: 0; accent-color: var(--blue); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; margin-bottom: 16px; padding: 6px 0; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-size: .95rem; }
.alert-ok { background: #edf5ed; border: 1px solid #bcd9bd; color: #23501f; }
.alert-err { background: #fbeceb; border: 1px solid #e3b5b1; color: #6d221c; }
.demo-flag {
  font-size: .84rem; background: var(--blue-ghost); border: 1px dashed var(--blue-soft);
  color: var(--blue); border-radius: 10px; padding: 11px 14px; margin-bottom: 20px;
}

/* -------------------------------------------------------------------- CTA */
.cta { background: var(--blue); color: #fff; border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); }
.cta h2, .cta p { color: #fff; }
.cta p { opacity: .9; max-width: 52ch; }
.cta .btn { background: #fff; color: var(--blue); border-color: #fff; }
.cta .btn:hover { background: var(--mist); color: var(--blue-deep); border-color: var(--mist); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
/* ----------------------------------------------------------------- Footer */
.site-foot { background: var(--blue-deep); color: #d7e6ec; margin-top: 10px; padding-block: 44px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 22px; } }
.site-foot h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--sans); color: #8fb8cc; margin-bottom: 12px; }
.site-foot a { color: #eef6f9; }
.site-foot p { margin-bottom: .5rem; font-size: .95rem; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.foot-brand .brand-mark { --logo-gray: rgba(255, 255, 255, .55); --logo-dot: #ffffff; flex: 0 0 auto; }
.foot-name { font-family: var(--serif); font-size: 1.24rem; color: #fff; margin-bottom: 4px; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 16px; font-size: .82rem; color: #a6c2cf; }
.foot-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 0 0 8px; }

/* ------------------------------------------------------------ Animationen */
/* Inhalte sind sichtbar, solange die Animation nicht ausdruecklich uebernimmt.
   Faellt JavaScript oder GSAP aus, bleibt die Seite trotzdem lesbar. */
.js-anim [data-reveal] { opacity: 0; }
.js-anim .vita-progress { transform: scaleY(0); }
.js-anim .vita-dot { transform: scale(.2); opacity: 0; }
.js-anim .vita li b, .js-anim .vita li span { opacity: 0; }
.js-anim .steps-fill { transform: scaleY(0); }
.js-anim .mark-core { opacity: 0; }
.js-anim .mark-hand { opacity: 0; }
.fascia-line { fill: none; stroke-linecap: round; }


/* ============================================================
   Sechs Distorsionstypen: Kacheln und Bühne mit laufender Szene
   ============================================================ */

.typen {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.typ-kachel {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
  font: inherit; color: inherit; padding: 0; cursor: pointer;
  transition: transform .34s cubic-bezier(.22,.61,.36,1), box-shadow .34s cubic-bezier(.22,.61,.36,1), border-color .34s ease;
}
.typ-kachel[aria-current="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ghost), var(--shadow); }

.typ-bild { position: relative; aspect-ratio: 16 / 10; background: #07090d; max-width: 100%; overflow: hidden; }
.typ-bild img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.5) brightness(.82) contrast(1.02); transform: scale(1.01);
  transition: filter .7s ease, transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.glanz {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .7s ease;
  background: radial-gradient(60% 65% at 50% 55%, color-mix(in srgb, var(--akzent) 42%, transparent), transparent 70%);
}
.streif {
  position: absolute; inset: -20% -40%; pointer-events: none; opacity: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.16) 50%, transparent 58%);
}
.sig { position: absolute; left: 14px; bottom: 14px; width: 120px; height: 34px; color: var(--akzent); opacity: .5; transition: opacity .5s ease; pointer-events: none; }
.s-puls, .s-tipp, .s-falt, .s-dreh, .s-stock { transform-box: fill-box; transform-origin: 50% 50%; }

@keyframes typ-wandern { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -212; } }
@keyframes typ-pulsen { 0%, 100% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1.3); opacity: 1; } }
@keyframes typ-tippen { 0%, 100% { transform: translateY(-7px); } 42%, 58% { transform: translateY(0); } }
@keyframes typ-falten { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.52); } }
@keyframes typ-drehen { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes typ-stocken { 0% { transform: translateX(0); } 30% { transform: translateX(13px); } 38% { transform: translateX(12px); } 62% { transform: translateX(13px); } 100% { transform: translateX(26px); } }
@keyframes typ-streifen { from { transform: translateX(-120%); opacity: 0; } 12% { opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

.typ-kuerzel { position: absolute; left: 12px; top: 12px; background: rgba(7,9,13,.72); color: #e8edf3; font-size: .68rem; letter-spacing: .14em; padding: 3px 9px; border-radius: 999px; }
.typ-lupe { position: absolute; right: 12px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--blue-deep); font-size: .74rem; padding: 4px 11px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: opacity .28s ease, transform .28s ease; }

.typ-inhalt { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; }
.typ-titel { font-family: var(--serif); font-size: 1.12rem; color: var(--blue); line-height: 1.25; }
.typ-text { color: var(--muted); font-size: .95rem; }
.typ-geste { display: flex; gap: 9px; align-items: flex-start; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; font-size: .88rem; color: var(--muted); }
.typ-geste svg { flex: 0 0 auto; margin-top: 3px; color: var(--blue); }

@media (hover: hover) and (pointer: fine) {
  .typ-kachel:hover, .typ-kachel:focus-visible { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(26,34,40,.06), 0 18px 38px rgba(26,34,40,.13); border-color: #c2d8e5; }
  .typ-kachel:hover .typ-lupe, .typ-kachel:focus-visible .typ-lupe { opacity: 1; transform: translateY(0); }
  .typ-kachel:hover img, .typ-kachel:focus-visible img { filter: saturate(1.2) brightness(1.06) contrast(1.04); transform: scale(1.07); }
  .typ-kachel:hover .glanz, .typ-kachel:focus-visible .glanz { opacity: 1; }
  .typ-kachel:hover .streif, .typ-kachel:focus-visible .streif { animation: typ-streifen 1.1s ease-out .05s 1; }
  .typ-kachel:hover .sig, .typ-kachel:focus-visible .sig { opacity: 1; }
}
.typ-kachel:hover .s-linie { animation: typ-wandern 2.4s linear infinite; }
.typ-kachel:hover .s-puls { animation: typ-pulsen 1.7s ease-in-out infinite; }
.typ-kachel:hover .s-tipp { animation: typ-tippen 1.3s ease-in-out infinite; }
.typ-kachel:hover .s-falt { animation: typ-falten 2.2s ease-in-out infinite; }
.typ-kachel:hover .s-dreh { animation: typ-drehen 6s linear infinite; }
.typ-kachel:hover .s-stock { animation: typ-stocken 2.6s cubic-bezier(.6,0,.4,1) infinite alternate; }

/* ------------------------------------------------------------ Bühne */
.buehne-block { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.typ-liste { display: flex; flex-direction: column; gap: 6px; }
.typ-liste button {
  font: inherit; text-align: left; cursor: pointer; background: transparent;
  border: 1px solid transparent; border-left: 3px solid var(--line); border-radius: 0 10px 10px 0;
  padding: 10px 14px; color: var(--muted); display: flex; flex-direction: column; gap: 2px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.typ-liste button .name { font-size: .98rem; color: var(--ink); }
.typ-liste button .kurz { font-size: .74rem; letter-spacing: .12em; }
.typ-liste button:hover { background: var(--blue-ghost); border-left-color: #c2d8e5; }
.typ-liste button[aria-selected="true"] { background: var(--blue-ghost); border-left-color: var(--blue); }
.typ-liste button[aria-selected="true"] .name { color: var(--blue-deep); }

.buehne { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 90px; }
.szene { position: relative; background: #07090d; overflow: hidden; max-width: 100%; aspect-ratio: 16 / 9; }
.szene-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease; }
.szene-host { position: absolute; inset: 0; }
.szene-host canvas { display: block; width: 100%; height: 100%; }
.szene.laeuft .szene-poster { opacity: 0; }

.szene-kopf { position: absolute; left: 22px; top: 20px; z-index: 2; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.szene-kopf .bereich { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: #7d8899; }
.szene-kopf .lage { font-size: 1.05rem; color: #e8edf3; font-family: var(--serif); }
.szene-kette { position: absolute; left: 22px; bottom: 20px; z-index: 2; display: flex; flex-direction: column; gap: 3px; font-size: .74rem; color: #8e99aa; pointer-events: none; }
.szene-regionen { position: absolute; left: 22px; bottom: 20px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: 62%; }
.szene-regionen button { font: inherit; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: #9aa5b5; background: rgba(7,9,13,.72); border: 1px solid rgba(148,160,181,.28); border-radius: 999px; padding: 6px 12px; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.szene-regionen button:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.szene-regionen button.aktiv { color: #fff; background: color-mix(in srgb, var(--akzent) 30%, rgba(7,9,13,.72)); border-color: color-mix(in srgb, var(--akzent) 55%, transparent); cursor: default; }
.szene-zustand { position: absolute; right: 20px; top: 20px; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; pointer-events: none; max-width: 46%; }
.szene-zustand .label { font-size: .82rem; color: #e8edf3; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--akzent) 30%, rgba(7,9,13,.72)); border: 1px solid color-mix(in srgb, var(--akzent) 45%, transparent); }
.szene-zustand .hinweis { font-size: .74rem; color: #9aa7b6; }
.szene-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; color: #8e99aa; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(7,9,13,.6); padding: 7px 16px; border-radius: 999px; pointer-events: none; }
.szene-status:empty { display: none; }
.szene.laeuft .szene-status { display: none; }
.szene-knopf { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; font: inherit; font-size: .88rem; cursor: pointer; color: #07090d; background: #e8edf3; border: none; border-radius: 999px; padding: 9px 20px; }
.szene-gross { position: absolute; right: 18px; bottom: 16px; z-index: 3; font: inherit; font-size: .76rem; cursor: pointer; color: #c9d3e0; background: rgba(7,9,13,.6); border: 1px solid rgba(201,211,224,.25); border-radius: 999px; padding: 5px 13px; }
.szene-gross:hover { color: #fff; border-color: rgba(201,211,224,.5); }

/* Ersatz-Vollbild fuer Browser ohne funktionierende Fullscreen-API auf Elementen
   (v.a. iOS Safari ausserhalb von <video>). Legt die Szene per CSS ueber die
   ganze Ansicht, statt sich auf requestFullscreen() zu verlassen. */
.szene.pseudo-vollbild {
  position: fixed; inset: 0; z-index: 2000;
  width: 100vw; height: 100dvh; max-width: none; aspect-ratio: auto;
  border-radius: 0;
}
body.hat-pseudo-vollbild { overflow: hidden; }
.szene-schliessen {
  position: fixed; top: 14px; right: 14px; z-index: 2001;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer;
  color: #e8edf3; background: rgba(7,9,13,.72); border: 1px solid rgba(255,255,255,.25);
}

.buehne-text { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.buehne-text h3 { color: var(--blue); }
.buehne-kuerzel { color: var(--muted); font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; }
.buehne-beschreibung { color: var(--muted); max-width: 62ch; }
.buehne-fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 0; }
.buehne-fakten > div { background: var(--mist); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.buehne-fakten dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.buehne-fakten dd { margin: 0; font-size: .92rem; color: var(--ink); }

@media (max-width: 880px) {
  .typen { grid-template-columns: 1fr; }
  .buehne-block { grid-template-columns: 1fr; }
  .typ-liste { flex-direction: row; flex-wrap: wrap; gap: 8px; overflow-x: visible; padding-bottom: 0; }
  .typ-liste button {
    flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px;
    padding: 9px 15px; flex-direction: row;
  }
  .typ-liste button .name { display: none; }
  .typ-liste button .kurz { font-size: .82rem; letter-spacing: .1em; }
  .typ-liste button[aria-selected="true"] { border-color: var(--blue); background: var(--blue-ghost); }
  .szene-kette { display: none; }
  .buehne-fakten { grid-template-columns: 1fr; }

  /* Auf dem Handy ist die Buehne im 16:9-Format zu flach: Titel und Hinweistext
     stossen dann mit der Animation zusammen. Die Karte wird deshalb hoeher, und
     beide Textbloecke bekommen eine feste Breite, damit sie sich nie ueberlappen
     -- egal wie lang der jeweilige Hinweis- oder Lage-Text ausfaellt. */
  .szene { aspect-ratio: 4 / 5; }
  .szene-kopf { max-width: 53%; left: 16px; top: 16px; gap: 2px; }
  .szene-kopf .lage { font-size: .9rem; line-height: 1.25; }
  .szene-zustand { max-width: 38%; right: 16px; top: 16px; }
  .szene-zustand .hinweis { font-size: .68rem; line-height: 1.3; }
  .szene-regionen { left: 16px; bottom: 14px; max-width: 90%; gap: 5px; }
  .szene-regionen button { font-size: .62rem; padding: 5px 10px; }
  /* Die Bilder sind im 4:5-Format schon gross genug; "Gross anzeigen" braucht es
     auf dem Handy nicht mehr. */
  .szene-gross { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .typ-kachel, .typ-lupe, .typ-liste button { transition: none; }
  .typ-kachel:hover { transform: none; }
  .typ-lupe { opacity: 1; transform: none; }
  .typ-bild img { transition: filter .3s ease; transform: none; }
  .typ-kachel:hover img { transform: none; }
  .streif { display: none; }
  .sig * { animation: none !important; }
}
