@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=Fraunces:opsz,wght,SOFT@9..144,400..600,100&display=swap");

/* ZahnArt Dr. Lindner & Kollegen — „Kieselsteine“
   Rund, ruhig, viel Luft. Koralle bedeutet immer: Termin. */

:root {
  --cream: #FCF9F2;
  --sage: #DDE7DA;
  --sage-mist: #EEF3EB;
  --sage-deep: #4C6955;
  --coral: #EE8467;
  --coral-soft: #F9D9CD;
  --ink: #24332B;
  --moss: #5B6A61;
  --line: #C3D3C0;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --fs-body: 1.1875rem;
  --fs-small: 1.0625rem;
  --fs-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.45rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.8vw, 4.25rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.1vw, 2.9rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);

  --r-pebble: 48px 64px 56px 40px / 44px 52px 60px 48px;
  --r-pebble-alt: 64px 44px 40px 60px / 52px 60px 44px 56px;
  --r-field: 18px;
  --r-pill: 999px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  --wrap: 72rem;
  --measure: 62ch;
  --ease: cubic-bezier(.3, .7, .3, 1);
}

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  font-variation-settings: "SOFT" 100;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }

p, ul, ol, dl { margin: 0 0 var(--space-2); }
p { max-width: var(--measure); }

a {
  color: var(--sage-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--ink); }

strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--cream); }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink);
}
.muted { color: var(--moss); }
.small { font-size: var(--fs-small); }

/* ---------- Strichzeichnungen ---------- */

.illu {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--sage-deep);
}
.illu--coral { color: var(--coral); }
.illu .dot { fill: currentColor; stroke: none; }
.illu-sm { width: 3.25rem; height: 3.25rem; flex: none; }

/* ---------- Kopf ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 249, 242, 0.94);
  border-bottom: 1px solid var(--sage);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: blur(8px); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 4.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  line-height: 1.1;
}
.brand svg { width: 2.4rem; height: 2.4rem; }
.brand__name {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-size: 1.4rem;
  font-weight: 600;
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--moss);
  font-weight: 400;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--sage-mist);
  border: 0;
  border-radius: var(--r-pill);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
}
.nav-toggle__bars {
  width: 1.25rem; height: 0.75rem;
  position: relative;
  border-top: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] { background: var(--sage); }

#site-nav {
  display: none;
  flex-basis: 100%;
  padding-bottom: var(--space-2);
}
#site-nav[data-open="true"] { display: block; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.nav-list a {
  display: block;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.125rem;
}
.nav-list a:hover { background: var(--sage-mist); }
.nav-list a[aria-current="page"] {
  background: var(--sage);
  font-weight: 700;
}

.header-termin { display: none; }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 1.35rem; height: 1.35rem; }
.btn:hover { transform: translateY(-1px); }

.btn--termin {
  background: var(--coral);
  color: var(--ink);
}
.btn--termin:hover { background: #F29579; color: var(--ink); box-shadow: 0 0 0 6px var(--coral-soft); }
.btn--termin:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 6px var(--coral-soft); }

.btn--quiet {
  background: var(--sage);
  color: var(--ink);
}
.btn--quiet:hover { background: #CFDCCB; color: var(--ink); }

.btn--line {
  background: transparent;
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}
.btn--line:hover { background: var(--sage-mist); color: var(--ink); }

.btn--small { min-height: 2.75rem; padding: 0.55rem 1.15rem; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: var(--space-3);
}

.tel-link {
  font-weight: 700;
  font-size: 1.125rem;
  white-space: nowrap;
}

/* Terminpille, immer erreichbar */
.termin-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--r-pill);
  background: var(--coral);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 5px var(--cream);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.termin-float svg { width: 1.3rem; height: 1.3rem; }
.termin-float:hover { background: #F29579; color: var(--ink); transform: translateY(-2px); }
.termin-float:focus-visible { outline-color: var(--ink); }

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

.section { padding-block: var(--space-5); }
.section--tight { padding-block: var(--space-4); }

.section__head { max-width: 44rem; margin-bottom: var(--space-4); }
.section__head p { color: var(--moss); }

.pebble {
  border-radius: var(--r-pebble);
  padding: clamp(1.75rem, 1rem + 4vw, 4rem);
}
.pebble--alt { border-radius: var(--r-pebble-alt); }
.pebble--sage { background: var(--sage); }
.pebble--mist { background: var(--sage-mist); }
.pebble--coral { background: var(--coral-soft); }
.pebble--line { border: 2px solid var(--line); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) var(--space-5); }
.hero__grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
.hero h1 { max-width: 14ch; }
.hero__art {
  background: var(--sage);
  border-radius: 46% 54% 50% 50% / 55% 48% 52% 45%;
  aspect-ratio: 1 / 0.92;
  display: grid;
  place-items: center;
  padding: 10%;
  max-width: 30rem;
  width: 100%;
  justify-self: center;
}
.hero__art svg { width: 100%; height: auto; }

.info-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 1rem 1.5rem;
  background: var(--sage-mist);
  border-radius: 28px;
  font-size: var(--fs-small);
}
.info-pill li { display: flex; align-items: center; gap: 0.5rem; }
.info-pill svg { width: 1.3rem; height: 1.3rem; }

/* Angst-Kiesel */
.calm {
  display: grid;
  gap: var(--space-3);
  align-items: start;
}
.calm__art { width: 6rem; height: 6rem; }
.calm__list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  gap: 0.9rem;
}
.calm__list li {
  position: relative;
  padding-left: 2rem;
  max-width: var(--measure);
}
.calm__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%;
  border: 2.5px solid var(--sage-deep);
}

/* Wegweiser – Leistungen als Zeilen */
.wegweiser {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--sage);
}
.wegweiser li { border-bottom: 2px solid var(--sage); }
.wegweiser a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem 1.25rem;
  align-items: center;
  padding: 1.35rem 1rem;
  border-radius: 28px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color .2s var(--ease);
}
.wegweiser a:hover { background: var(--sage-mist); color: var(--ink); }
.wegweiser__title {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-size: var(--fs-h3);
  line-height: 1.25;
  display: block;
}
.wegweiser__text { display: block; color: var(--moss); font-size: var(--fs-small); margin-top: 0.2rem; }
.wegweiser__arrow { width: 1.75rem; height: 1.75rem; color: var(--sage-deep); transition: transform .2s var(--ease); }
.wegweiser a:hover .wegweiser__arrow { transform: translateX(4px); }

/* Zwei Kiesel */
.duo {
  display: grid;
  gap: var(--space-3);
}
.duo .pebble { display: flex; flex-direction: column; gap: 0.5rem; }
.duo .pebble > svg { width: 5rem; height: 5rem; margin-bottom: 0.5rem; }
.duo .pebble .btn-row { margin-top: auto; padding-top: var(--space-2); }

/* Hinweisband */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  background: var(--coral-soft);
  border-radius: 36px;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.5rem, 1rem + 3vw, 3rem);
}
.band h2 { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.band p { margin: 0; }

/* Sprechzeiten */
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.5rem;
  margin: 0;
}
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }

.termin-block {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
.termin-block__side {
  background: var(--cream);
  border-radius: var(--r-pebble-alt);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.termin-block__side h3 { margin-bottom: var(--space-2); }

/* Unterseiten-Kopf */
.page-intro { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--space-4); }
.page-intro__grid { display: grid; gap: var(--space-3); align-items: center; }
.page-intro__art {
  width: 9rem; height: 9rem;
  background: var(--sage);
  border-radius: 46% 54% 50% 50% / 55% 48% 52% 45%;
  display: grid; place-items: center;
  padding: 1.5rem;
}

.prose { max-width: 46rem; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--space-4); }
.prose ul { padding-left: 1.25rem; }

/* ---------- Formulare ---------- */

.form { display: grid; gap: var(--space-3); max-width: 44rem; }
.form__row { display: grid; gap: var(--space-3); }
.form__field { display: grid; gap: 0.45rem; }
.form__field label,
.form__legend { font-weight: 700; font-size: 1.0625rem; }
.form__hint { font-size: 0.95rem; color: var(--moss); margin: 0; }

.form__input {
  width: 100%;
  font: inherit;
  font-size: 1.125rem;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--r-field);
  padding: 0.85rem 1.1rem;
  min-height: 3.4rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea.form__input { min-height: 9rem; resize: vertical; }
select.form__input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sage-deep) 50%), linear-gradient(135deg, var(--sage-deep) 50%, transparent 50%); background-position: calc(100% - 1.4rem) 55%, calc(100% - 1rem) 55%; background-size: 0.45rem 0.45rem; background-repeat: no-repeat; padding-right: 2.75rem; }
.form__input:hover { border-color: var(--sage-deep); }
.form__input:focus-visible {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 4px var(--sage);
}
.form__field[data-state="error"] .form__input { border-color: #B4533A; background: #FFF6F2; }
.form__field[data-state="error"] label::after { content: " – bitte ausfüllen"; color: #9C4430; font-weight: 400; }

.form__check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--fs-small);
}
.form__check input {
  width: 1.4rem; height: 1.4rem;
  margin-top: 0.2rem;
  accent-color: var(--sage-deep);
  flex: none;
}

.form__status {
  margin: 0;
  min-height: 1.5em;
  font-weight: 700;
}
.form__status[data-state="sent"] { color: var(--sage-deep); }
.form__status[data-state="error"] { color: #9C4430; }

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

.site-footer {
  background: var(--sage);
  border-radius: 64px 64px 0 0 / 48px 48px 0 0;
  margin-top: var(--space-5);
  padding: var(--space-5) 0 calc(var(--space-4) + 4.5rem);
}
.footer-grid { display: grid; gap: var(--space-4); }
.site-footer h2 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--ink); }
.footer-base {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 2px solid #C9D7C5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--moss);
}
.footer-base a { color: var(--moss); }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }

/* ---------- Styleguide ---------- */

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: var(--space-3);
  list-style: none;
  padding: 0;
}
.swatch__chip {
  height: 6rem;
  border-radius: var(--r-pebble);
  border: 2px solid var(--line);
  margin-bottom: 0.6rem;
}
.swatch__chip--cream { background: var(--cream); }
.swatch__chip--sage { background: var(--sage); }
.swatch__chip--mist { background: var(--sage-mist); }
.swatch__chip--deep { background: var(--sage-deep); }
.swatch__chip--coral { background: var(--coral); }
.swatch__chip--coral-soft { background: var(--coral-soft); }
.swatch__chip--ink { background: var(--ink); }
.swatch__chip--moss { background: var(--moss); }
.swatch code { font-size: 0.95rem; color: var(--moss); }

.type-row {
  display: grid;
  gap: 0.25rem;
  padding-block: var(--space-2);
  border-bottom: 2px solid var(--sage);
}
.type-row__meta { font-size: 0.95rem; color: var(--moss); }
.h1-sample {
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-size: var(--fs-h1);
  line-height: 1.12;
}
.h1-sample strong { font-weight: 500; }
.form__check label { font-weight: 400; font-size: var(--fs-small); }

.illu-row { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; padding: 0; }
.illu-row li { display: grid; justify-items: center; gap: 0.5rem; font-size: var(--fs-small); }
.illu-row svg { width: 6rem; height: 6rem; }

/* ---------- Breakpoints ---------- */

@media (min-width: 600px) {
  .header-termin { display: inline-flex; }
  .duo { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-intro__grid { grid-template-columns: 1fr auto; }
  .calm { grid-template-columns: auto 1fr; gap: var(--space-4); }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  #site-nav,
  #site-nav[data-open="false"] {
    display: block;
    flex-basis: auto;
    padding: 0;
    order: 2;
  }
  .header-termin { order: 3; }
  .nav-list { display: flex; gap: 0.1rem; }
  .nav-list a { padding: 0.5rem 0.8rem; font-size: 1.0625rem; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .termin-block { grid-template-columns: 1.2fr 0.8fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .page-intro__art { width: 12rem; height: 12rem; }
}

@media (min-width: 1200px) {
  .nav-list a { padding: 0.5rem 1rem; }
  .hero h1 { max-width: 13ch; }
  .wegweiser a { padding: 1.6rem 1.5rem; }
}

@media (max-width: 380px) {
  .brand__sub { display: none; }
  .termin-float { left: 1rem; right: 1rem; justify-content: center; }
  .btn { padding-inline: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:hover,
  .termin-float:hover,
  .wegweiser a:hover .wegweiser__arrow { transform: none; }
}

@media print {
  .site-header, .termin-float, .nav-toggle { display: none; }
  .site-footer { background: none; }
}

/* === unterseiten: page-intro-zeichnung === */
.page-intro__art svg { width: 100%; height: 100%; }
.page-intro .lead { margin-bottom: 0; }

/* === team: drei Kiesel mit Initialen-Kreisen === */
.trio {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.trio .pebble { display: flex; flex-direction: column; gap: 0.5rem; }
.trio .pebble:nth-child(2) { border-radius: var(--r-pebble-alt); }
.initials {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  margin-bottom: var(--space-2);
  border-radius: 50%;
  border: 2.5px solid var(--sage-deep);
  background: var(--cream);
  color: var(--sage-deep);
  font-family: var(--font-head);
  font-variation-settings: "SOFT" 100;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}
.initials svg { width: 3.4rem; height: 3.4rem; }
.trio__role { color: var(--moss); font-size: var(--fs-small); margin: 0; }

@media (min-width: 900px) {
  .trio { grid-template-columns: repeat(3, 1fr); }
}
