/* Physio am Wasserturm — soft and round on purpose: lavender ground, indigo type, one sun-yellow call to action. */
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-vf.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --lavender: #ECEBFA;
  --white: #FFFFFF;
  --indigo: #2B2360;
  --violet: #5443D6;
  --violet-soft: #DDD9FB;
  --sun: #FFD24A;
  --sun-dark: #F5BF1F;
  --muted: #5B567A;
  --line: rgba(43, 35, 96, .16);
  --danger: #B3261E;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lavender); color: var(--indigo); font: 400 1.0625rem/1.6 var(--font); }
/* The hero's decorative circles hang over the edge; clip (not hidden) keeps the sticky header working. */
main { overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
a { color: inherit; text-underline-offset: .2em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--indigo); color: #fff; padding: .6rem 1rem; border-radius: 999px; z-index: 20; }
.skip:focus { left: .5rem; }

h1, h2 { font-weight: 800; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .55rem 1.5rem; border: 2px solid transparent; border-radius: 999px; font: 700 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-accent { background: var(--sun); color: var(--indigo); }
.btn-accent:hover { background: var(--sun-dark); }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--violet); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--indigo); }
.btn-ghost:hover { border-color: var(--indigo); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.8rem; padding: .7rem var(--pad); background: rgba(236, 235, 250, .92); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: .65rem; margin-right: auto; font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; text-decoration: none; }
.top nav { display: flex; gap: 1.5rem; }
.top nav a { font-weight: 600; text-decoration: none; }
.top nav a:hover { color: var(--violet); }
.top .btn { min-height: 2.6rem; padding-inline: 1.2rem; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; max-width: calc(var(--wrap) + 6rem); margin-inline: auto; padding: clamp(2rem, 6vw, 4.5rem) var(--pad) clamp(3rem, 7vw, 5.5rem); }
.hero::before { content: ""; position: absolute; z-index: -1; right: -6rem; top: 1rem; width: 34rem; height: 34rem; border-radius: 50%; background: var(--sun); opacity: .55; }
.hero::after { content: ""; position: absolute; z-index: -1; left: -9rem; bottom: -4rem; width: 22rem; height: 22rem; border-radius: 50%; border: 3.5rem solid var(--violet-soft); }
.hero-copy { padding-top: clamp(0rem, 3vw, 2.5rem); }
.lede { max-width: 30em; margin-top: 1.4rem; font-size: 1.1875rem; }
.proof { display: grid; gap: .7rem; margin-top: 2.2rem; }
.proof li { position: relative; padding-left: 2.1rem; }
.proof li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--indigo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23FFD24A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* ---------- wizard ---------- */
.wizard { display: grid; gap: 1.3rem; padding: clamp(1.3rem, 3vw, 2rem); background: var(--white); border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(43, 35, 96, .55); overflow: hidden; }
.wizard h2 { font-size: 1.6rem; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.progress li { padding-top: .5rem; border-top: 5px solid var(--violet-soft); border-radius: 2px; font-size: .8438rem; font-weight: 600; color: var(--muted); }
.progress li.is-done { border-top-color: var(--indigo); color: var(--indigo); }
.progress li[aria-current="step"] { border-top-color: var(--violet); color: var(--violet); }
.step { display: grid; gap: 1rem; }
.step legend, .done h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; outline-offset: 6px; }
.step legend:focus, .done h3:focus { outline: none; }

.options { display: grid; gap: .6rem; }
.options label { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; }
.options label:hover { border-color: var(--violet); }
.options label:has(input:checked) { border-color: var(--violet); background: #F3F1FE; }
.options input { flex: none; width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--violet); }
.options b, .options small { display: block; }
.options small { color: var(--muted); font-size: .9063rem; }

.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; }
.days button { display: grid; justify-items: center; gap: .05rem; padding: .5rem .2rem; border: 2px solid var(--line); border-radius: 14px; background: none; color: var(--indigo); font: 600 .8125rem/1.2 var(--font); cursor: pointer; }
.days button b { font-size: 1.35rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; min-height: 2.9rem; }
.slots button { min-height: 2.75rem; border: 2px solid var(--line); border-radius: 12px; background: none; color: var(--indigo); font: 700 1rem/1 var(--font); font-variant-numeric: tabular-nums; cursor: pointer; }
.days button:hover, .slots button:hover { border-color: var(--violet); }
.days button[aria-checked="true"], .slots button[aria-checked="true"] { border-color: var(--indigo); background: var(--indigo); color: #fff; }
.slots:empty { min-height: 0; }
.slots:empty::before { content: "Wählen Sie einen Tag, dann zeigen wir die freien Zeiten."; grid-column: 1 / -1; color: var(--muted); font-size: .9375rem; }
.slots-empty { color: var(--muted); }

.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .9375rem; }
.field input, .field select { width: 100%; min-height: 3rem; padding: .55rem .9rem; border: 2px solid #8E88B5; border-radius: 12px; background: #fff; color: var(--indigo); font: 400 1rem/1.3 var(--font); }
.field input:hover, .field select:hover { border-color: var(--indigo); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #FDF2F1; }
.err { font-size: .9063rem; font-weight: 600; color: var(--danger); }
.err:empty { display: none; }
.check { display: flex; align-items: center; gap: .65rem; font-weight: 600; cursor: pointer; }
.check input { width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--violet); }

.done dl { display: grid; gap: 0; border-top: 1px solid var(--line); }
.done dl div { display: grid; grid-template-columns: 8.2rem 1fr; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.done dt { color: var(--muted); font-size: .9375rem; }
.done dd { font-weight: 600; }
.done-actions, .wizard-nav { display: flex; flex-wrap: wrap; gap: .6rem; }
.wizard-nav { justify-content: space-between; }
.wizard-nav .btn-primary { margin-left: auto; }
.fineprint { font-size: .875rem; color: var(--muted); }

/* ---------- sections ---------- */
.services, .team, .faq, .contact { padding-block: clamp(3.5rem, 8vw, 6rem); }
.services { background: var(--white); border-radius: 40px 40px 0 0; }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); margin-top: 2.4rem; }
.service-list li { padding-top: 1.1rem; border-top: 3px solid var(--violet-soft); }
.service-list p, .people p { margin-top: .5rem; color: var(--muted); font-size: .9688rem; }

.team { background: var(--white); }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); margin-top: 2.4rem; }
.people li { padding: 1.4rem; background: var(--lavender); border-radius: 24px; }
.avatar { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; margin-bottom: 1rem; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; color: var(--indigo); }
.a1 { background: var(--sun); border-radius: 50% 50% 50% 12px; }
.a2 { background: #BFE3D0; border-radius: 12px 50% 50% 50%; }
.a3 { background: #F7C1B5; border-radius: 50% 12px 50% 50%; }
.a4 { background: #C9C1F7; border-radius: 50% 50% 12px 50%; }

.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-grid > div > p { margin-top: 1rem; max-width: 22em; }
details { border-bottom: 2px solid var(--line); }
details:first-child { border-top: 2px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 700; font-size: 1.125rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%232B2360' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; transition: transform .2s; }
details[open] summary::after { transform: rotate(180deg); }
summary:hover { color: var(--violet); }
details p { padding: 0 3rem 1.3rem 0; max-width: 38em; }

.contact { background: var(--indigo); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
address { margin-top: 1.4rem; font-size: 1.1875rem; }
.phone { display: inline-block; margin-top: 1rem; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; color: var(--sun); text-decoration: none; font-variant-numeric: tabular-nums; }
.phone:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-weight: 800; font-size: 1.25rem; padding-bottom: .8rem; }
.hours th, .hours td { padding: .8rem 0; border-top: 1px solid rgba(255, 255, 255, .25); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.contact :focus-visible { outline-color: var(--sun); }

/* ---------- footer & dialog ---------- */
.foot { padding-block: 2rem; background: var(--indigo); color: #CFCBEA; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .9375rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; }
.foot-row a { margin-left: 1.2rem; }
.foot strong { color: #fff; }
.linklike { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.linklike:hover, .foot a:hover { color: #fff; }
.foot :focus-visible { outline-color: var(--sun); }
.demo-note { margin-top: 1.4rem; font-size: .8438rem; color: #ABA6CF; }

dialog { width: min(32rem, calc(100vw - 2rem)); padding: 1.8rem; border: 0; border-radius: 24px; background: var(--white); color: var(--indigo); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
dialog::backdrop { background: rgba(43, 35, 96, .6); }
dialog h2 { font-size: 1.7rem; }
dialog p { margin-top: 1rem; }
dialog .btn { margin-top: 1.5rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero::before { width: 22rem; height: 22rem; right: -8rem; }
  .wizard { max-width: 34rem; }
  .service-list, .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .top nav { display: none; }
}
@media (max-width: 520px) {
  .service-list, .people { grid-template-columns: minmax(0, 1fr); }
  .brand span { font-size: 1rem; line-height: 1.15; }
  .top { gap: .75rem; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .progress li span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .done dl div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .wizard-nav .btn { flex: 1 1 auto; }
  .foot-row a { display: block; margin: .4rem 0 0; }
  details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}
