:root {
  --blau: #2F3FA6;
  --nachtblau: #1B2350;
  --eisblau: #E8EEF6;
  --weiss: #FFFFFF;
  --grau: #B9C0CA;
  --text-grau: #4A5170;
  --limette: #B6E21E;
  --radius: 8px;
  --max: 1140px;

  --font: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--nachtblau);
  background: var(--weiss);
}
img { max-width: 100%; display: block; }
a { color: var(--blau); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.section { padding: 88px 24px; }
.section--eis { background: var(--eisblau); }
.section--blau { background: var(--blau); color: var(--weiss); }
.section--dunkel { background: var(--nachtblau); color: var(--weiss); }
.row {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 48px;
  align-items: center;
}
.row--2 { grid-template-columns: 1fr 1fr; }
.row--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.row--4 { grid-template-columns: repeat(4, 1fr); gap: 32px; align-items: start; }
.col > :last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .row--2, .row--4 { grid-template-columns: 1fr; gap: 32px; }
  .row--3 { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 20px; }
}
@media (max-width: 560px) {
  .row--3 { grid-template-columns: 1fr; }
}

.kicker {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blau);
  margin-bottom: .8em;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--limette);
  margin-right: 10px;
  vertical-align: middle;
}
.lead { font-size: 1.2rem; color: var(--text-grau); }
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  margin: 0 12px 12px 0;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.btn--primaer { background: var(--blau); color: var(--weiss); }
.btn--primaer:hover { background: var(--nachtblau); }
.btn--hell { background: var(--weiss); color: var(--blau); }
.btn--hell:hover { background: var(--eisblau); }
.btn--rahmen { border: 2px solid var(--weiss); color: var(--weiss); }
.btn--rahmen:hover { background: var(--weiss); color: var(--blau); }
.bild { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }

.header { padding: 18px 24px; border-bottom: 1px solid var(--eisblau); background: var(--weiss); position: sticky; top: 0; z-index: 10; }
.header .row { grid-template-columns: auto 1fr auto; gap: 32px; }
.wortmarke { text-decoration: none; color: var(--nachtblau); line-height: 1.2; }
.wortmarke strong { display: block; font-size: 1.25rem; }
.wortmarke span { font-size: .9rem; color: var(--blau); }
.wortmarke strong::after { content: "."; color: var(--limette); }
.nav { justify-self: end; display: flex; gap: 28px; }
.nav a { color: var(--nachtblau); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--blau); }
.header .btn { margin: 0; padding: 10px 18px; }
@media (max-width: 900px) {
  .header .row { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .header .btn { display: none; }
}

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(27,35,80,.88) 0%, rgba(47,63,166,.55) 55%, rgba(47,63,166,0) 100%);
}
.hero .row { position: relative; width: 100%; padding: 96px 24px; grid-template-columns: minmax(0, 640px); color: var(--weiss); }
.hero .lead { color: rgba(255,255,255,.9); }
.hero .kicker { color: var(--weiss); }

.karte {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--grau);
}
.karte .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--eisblau);
  color: var(--blau);
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.karte p { color: var(--text-grau); font-size: 1rem; }

.zeiten { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.zeiten th, .zeiten td { text-align: left; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.zeiten th { font-weight: 600; width: 40%; }
.hinweis { background: rgba(255,255,255,.1); border-left: 4px solid var(--limette); padding: 18px 22px; border-radius: var(--radius); }
.hinweis a { color: var(--weiss); }

.kontakt-liste { list-style: none; padding: 0; margin: 0 0 1.5em; }
.kontakt-liste li { padding: 10px 0; border-bottom: 1px solid var(--grau); }
.kontakt-liste strong { display: inline-block; min-width: 110px; }
.karte-platzhalter {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--eisblau);
  border: 2px dashed var(--grau);
  display: grid; place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--text-grau);
}

.footer { padding: 56px 24px 32px; }
.footer a { color: var(--weiss); }
.footer .row--4 { gap: 32px; }
.footer h3 { color: var(--limette); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.footer p, .footer li { font-size: .95rem; color: rgba(255,255,255,.85); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer .copy { max-width: var(--max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: .85rem; color: rgba(255,255,255,.6); }

.aktionsleiste { display: none; }
@media (max-width: 900px) {
  .aktionsleiste {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    box-shadow: 0 -2px 12px rgba(27,35,80,.15);
  }
  .aktionsleiste a { text-align: center; padding: 16px; font-weight: 600; text-decoration: none; }
  .aktionsleiste a:first-child { background: var(--blau); color: var(--weiss); }
  .aktionsleiste a:last-child { background: var(--weiss); color: var(--blau); }
  body { padding-bottom: 56px; }
}

.rechtstext .row { grid-template-columns: minmax(0, 760px); justify-content: center; align-items: start; }
.rechtstext h2 { font-size: 1.35rem; margin-top: 1.8em; }
.rechtstext h2:first-of-type { margin-top: 0; }
.ph { background: #FFF6C8; padding: 0 4px; border-radius: 3px; }

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

.btn:active { transform: scale(0.97); }

@keyframes einblenden {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes foto-setzen {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero { overflow: hidden; background: var(--nachtblau); }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: url("bilder/behandlungsraum-1.jpg") center / cover no-repeat;
  animation: foto-setzen 1400ms var(--ease-out) both;
  z-index: 0;
}
.hero::before { z-index: 1; }
.hero .row { z-index: 2; }
.hero .col > * { animation: einblenden 600ms var(--ease-out) both; }
.hero .col > :nth-child(1) { animation-delay: 150ms; }
.hero .col > :nth-child(2) { animation-delay: 210ms; }
.hero .col > :nth-child(3) { animation-delay: 270ms; }
.hero .col > :nth-child(4) { animation-delay: 330ms; }
.hero .col > :nth-child(5) { animation-delay: 370ms; }

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal.sichtbar { opacity: 1; transform: none; }

.js .reveal-bild {
  clip-path: inset(0 0 100% 0 round var(--radius));
  transition: clip-path 900ms var(--ease-in-out);
}
.js .reveal-bild.sichtbar { clip-path: inset(0 0 0 0 round var(--radius)); }

.karte { transition: transform 200ms var(--ease-out), border-color 200ms ease, box-shadow 200ms ease; }
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--limette);
  transform: scaleX(0.4);
  transform-origin: left;
  opacity: 0;
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .karte:hover {
    transform: translateY(-3px);
    border-color: var(--blau);
    box-shadow: 0 10px 24px -12px rgba(27,35,80,.25);
  }
  .nav a:hover::after { transform: scaleX(1); opacity: 1; }
  .kontakt-liste a:hover { color: var(--nachtblau); }
}

.header { transition: box-shadow 200ms ease; }
.header.gescrollt { box-shadow: 0 4px 20px -8px rgba(27,35,80,.18); }

@keyframes leiste-ein {
  from { transform: translateY(100%); }
  to   { transform: none; }
}
@media (max-width: 900px) {
  .aktionsleiste { animation: leiste-ein 500ms var(--ease-out) 600ms both; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after, .aktionsleiste { animation: none; }
  .hero .col > * { animation: einblenden-ruhig 300ms ease both; animation-delay: 0ms !important; }
  .js .reveal { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .js .reveal-bild { clip-path: none; opacity: 0; transition: opacity 300ms ease; }
  .js .reveal-bild.sichtbar { opacity: 1; }
  .karte:hover { transform: none; }
  .btn:active { transform: none; }
  html { scroll-behavior: auto; }
}
@keyframes einblenden-ruhig { from { opacity: 0; } to { opacity: 1; } }
