/* ==========================================================================
   Praxis für Physiotherapie und medizinische Trainingstherapie – Thomas Schaal
   Stylesheet
   ========================================================================== */

/* --- Design Tokens ------------------------------------------------------ */
:root {
  --ink:        #0b2a35;
  --ink-2:      #234c58;
  --ink-3:      #5a7780;
  --teal:       #0d7f7a;
  --teal-dark:  #0a615d;
  --teal-tint:  #e8f4f3;
  --teal-tint-2:#f3faf9;
  --sand:       #f7f5f2;
  --bg:         #ffffff;
  --line:       #e3e7e7;
  --line-soft:  #eef1f1;
  --warn:       #b4472f;
  --warn-tint:  #fdf1ed;
  --ok:         #14804a;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 42, 53, .06), 0 2px 8px rgba(11, 42, 53, .05);
  --shadow-md: 0 4px 12px rgba(11, 42, 53, .07), 0 14px 34px rgba(11, 42, 53, .08);
  --shadow-lg: 0 10px 24px rgba(11, 42, 53, .09), 0 30px 70px rgba(11, 42, 53, .12);

  --header-h: 76px;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }

/* --- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.021em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.4rem); line-height: 1.3; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }
p  { text-wrap: pretty; }

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }

strong { color: var(--ink); font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.lead {
  font-size: clamp(1.075rem, 1rem + .4vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-2);
}
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .85rem;
}
.muted { color: var(--ink-3); }
.small { font-size: .925rem; }

/* --- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section--tint { background: var(--sand); }
.section--teal { background: var(--teal-tint-2); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
.section-head p { margin-top: .9rem; }

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(11,42,53,.2); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.42); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--sm { padding: .55rem 1rem; font-size: .94rem; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand__mark { flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-weight: 700; font-size: 1.06rem; letter-spacing: -.02em; }
.brand__sub {
  font-size: .705rem;
  font-weight: 600;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav { display: flex; align-items: center; gap: .6rem; }
.nav__list { display: flex; align-items: center; gap: .2rem; }
.nav a {
  position: relative;
  padding: .5rem .78rem;
  border-radius: 8px;
  font-size: .985rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--teal-dark); font-weight: 650; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .78rem; right: .78rem; bottom: .18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

.header-cta { display: inline-flex; }

/* Schaltflaechen innerhalb der Navigation duerfen nicht von ".nav a" eingefaerbt werden. */
.nav a.btn--primary { color: #fff; background: var(--teal); }
.nav a.btn--primary:hover { color: #fff; background: var(--teal-dark); }

/* Ab Tablet-Breite steht die Telefonnummer rechts im Kopf (.header-cta).
   Die Schaltflaeche im Menue wird dort ausgeblendet, sonst erscheint die
   Nummer doppelt. Der Selektor muss mindestens so spezifisch sein wie die
   display-Regel im mobilen Block weiter unten. */
@media (min-width: 901px) {
  .nav > a.btn { display: none; }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 1rem var(--gutter) 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  /* Nur die Menuepunkte werden zu vollbreiten Zeilen – nicht die Schaltflaeche. */
  .nav .nav__list a { display: block; padding: .85rem .75rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav .nav__list a[aria-current="page"]::after { display: none; }
  .nav a.btn { display: inline-flex; margin-top: 1.25rem; justify-content: center; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(8,32,40,0) 55%, rgba(8,32,40,.55) 100%),
    linear-gradient(100deg, rgba(8,32,40,.94) 0%, rgba(8,32,40,.82) 42%, rgba(8,32,40,.34) 78%, rgba(8,32,40,.24) 100%);
}
.hero__inner {
  padding-block: clamp(3.5rem, 2rem + 8vw, 7.5rem);
  max-width: 46rem;
}
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,.86); margin-top: 1.25rem; max-width: 40rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.status-pill {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .55rem;
  padding: .42rem .95rem .42rem .7rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .9rem;
  font-weight: 550;
}
.status-pill__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.22);
}
.status-pill[data-state="closed"] .status-pill__dot { background: #fca5a5; box-shadow: 0 0 0 4px rgba(252,165,165,.2); }

/* Hero facts bar */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: -3.25rem;
  position: relative;
  z-index: 2;
  background-color: var(--line);
}
.fact { background: #fff; padding: 1.5rem 1.6rem; }
.fact__label {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.fact__value { margin-top: .5rem; font-size: 1.12rem; font-weight: 650; color: var(--ink); line-height: 1.35; }
.fact__value a { color: inherit; text-decoration: none; }
.fact__value a:hover { color: var(--teal-dark); text-decoration: underline; }
.fact__note { margin-top: .2rem; font-size: .92rem; color: var(--ink-3); }
@media (max-width: 780px) {
  .facts { grid-template-columns: 1fr; margin-top: -2rem; }
}

/* --- Page header (sub pages) -------------------------------------------- */
.page-head {
  background: var(--ink);
  color: rgba(255,255,255,.82);
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 5rem);
}
.page-head h1 { color: #fff; }
.page-head p { margin-top: 1rem; max-width: 60ch; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* --- Cards -------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, .5rem + 1.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 1rem + 1vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin-bottom: .6rem; }
.card p + .card__link { margin-top: 1.25rem; }
.card__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .97rem;
  color: var(--teal-dark); text-decoration: none;
}
.card__link::after { content: "→"; transition: transform .18s ease; }
.card__link:hover::after { transform: translateX(3px); }

a.card { text-decoration: none; color: inherit; }
a.card:hover, .card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 13px;
  background: var(--teal-tint);
  color: var(--teal-dark);
}
.card--tint { background: var(--teal-tint-2); border-color: #d9ecea; }

/* --- Lists -------------------------------------------------------------- */
.check-list { display: grid; gap: .7rem; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 1.05rem; height: 1.05rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a615d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .62rem no-repeat;
}
.col-list { columns: 2; column-gap: 2.5rem; }
.col-list li { break-inside: avoid; }
@media (max-width: 640px) { .col-list { columns: 1; } }

/* --- Split (text + image) ----------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(1.75rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
@media (max-width: 720px) { .split--reverse .split__media { order: 0; } }
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__body > * + * { margin-top: 1.1rem; }
.split__body .btn { margin-top: 1.75rem; }

/* --- Opening hours ------------------------------------------------------ */
.hours { border-top: 1px solid var(--line); }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .72rem .2rem;
  border-bottom: 1px solid var(--line);
}
.hours dt, .hours .day { font-weight: 550; color: var(--ink); }
.hours .time { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hours li[data-today] { background: var(--teal-tint-2); font-weight: 650; }
.hours li[data-today] .day::after {
  content: "heute";
  margin-left: .5rem;
  padding: .1rem .45rem;
  border-radius: 5px;
  background: var(--teal);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.hours .closed { color: var(--ink-3); }

/* --- Notice ------------------------------------------------------------- */
.notice {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--warn-tint);
  border: 1px solid #f2d5cb;
  border-left: 4px solid var(--warn);
  border-radius: var(--radius);
}
.notice__icon { flex: none; color: var(--warn); margin-top: .15rem; }
.notice h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--warn); }
.notice ul { margin-top: .55rem; display: grid; gap: .3rem; }
.notice li { padding-left: 1.1rem; position: relative; }
.notice li::before { content: "•"; position: absolute; left: .2rem; color: var(--warn); }

/* --- Gallery ------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(.75rem, .4rem + 1vw, 1.25rem);
}
.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  line-height: 0;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.gallery__item:hover img { transform: scale(1.045); }
.gallery__item--static { cursor: default; }
.gallery__caption { display: block; }
.gallery__item figcaption,
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem .95rem .8rem;
  background: linear-gradient(to top, rgba(8,32,40,.8), transparent);
  color: #fff;
  font-size: .93rem;
  font-weight: 550;
  line-height: 1.4;
  text-align: left;
}
.gallery__item--wide { grid-column: span 2; }
@media (max-width: 640px) { .gallery__item--wide { grid-column: span 1; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  /* Ein geschlossenes <dialog> ist per Browser-Vorgabe display:none.
     Diese Vorgabe darf hier nicht ueberschrieben werden – sonst liegt die
     dunkle Ueberlagerung dauerhaft ueber der Seite. */
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6,24,30,.94);
  border: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(6,24,30,.9); }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 10px;
  object-fit: contain;
}
.lightbox figcaption { margin-top: 1rem; color: rgba(255,255,255,.85); text-align: center; font-size: .95rem; }
.lightbox__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: #fff; color: var(--ink); }

/* --- Contact ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.25rem, .5rem + 2.5vw, 2.5rem);
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row__icon {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--teal-tint);
  color: var(--teal-dark);
}
.contact-row__label {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.contact-row__value { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-top: .15rem; }
.contact-row__value a { color: inherit; text-decoration: none; }
.contact-row__value a:hover { color: var(--teal-dark); text-decoration: underline; }
.contact-row__note { font-size: .92rem; color: var(--ink-3); margin-top: .2rem; }

.panel {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: rgba(255,255,255,.82);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: .85rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
@media (max-width: 720px) { .cta-band__actions { justify-content: flex-start; } }

/* --- Prose (legal pages) ------------------------------------------------ */
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); }
.prose h3 { margin-top: 1.9rem; }
.prose ul { display: grid; gap: .5rem; padding-left: 1.3rem; list-style: disc; }
.prose li::marker { color: var(--teal); }
.prose address { font-style: normal; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.68);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  font-size: .97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h2 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.1rem;
}
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer address { font-style: normal; line-height: 1.7; }

.footer-brand { display: flex; align-items: center; gap: .7rem; color: #fff; margin-bottom: 1.1rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: rgba(255,255,255,.5); }

.footer-hours { display: grid; gap: .4rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; }
.footer-hours .time { font-variant-numeric: tabular-nums; }

.footer-bottom {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .9rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* --- Utilities ---------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero__media, .btn, .nav-toggle { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero::after { display: none; }
}

/* --- Topbar (optionaler Hinweis) ---------------------------------------- */
.topbar {
  background: var(--teal-dark);
  color: rgba(255,255,255,.95);
  font-size: .93rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-block: .6rem;
}
.topbar svg { flex: none; opacity: .85; }

/* --- WordPress-Blockinhalte (Seiteninhalt aus dem Editor) --------------- */
.entry-content > * + * { margin-top: 1.15rem; }
.entry-content > h2 { margin-top: 2.75rem; }
.entry-content > h3 { margin-top: 2rem; }
.entry-content ul:not(.check-list):not(.hours) { padding-left: 1.3rem; list-style: disc; display: grid; gap: .5rem; }
.entry-content ol { padding-left: 1.4rem; list-style: decimal; display: grid; gap: .5rem; }
.entry-content li::marker { color: var(--teal); }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin-block: 2rem; }
.entry-content figcaption { margin-top: .6rem; font-size: .9rem; color: var(--ink-3); }
.entry-content blockquote {
  margin-block: 2rem;
  padding: .35rem 0 .35rem 1.4rem;
  border-left: 3px solid var(--teal);
  color: var(--ink);
  font-size: 1.1rem;
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content .wp-block-table { overflow-x: auto; }
.alignwide { width: min(100%, 1100px); margin-inline: auto; }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.wp-block-button__link {
  display: inline-flex; align-items: center;
  padding: .8rem 1.35rem;
  background: var(--teal); color: #fff;
  border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.wp-block-button__link:hover { background: var(--teal-dark); color: #fff; }

/* Beitragsliste (Aktuelles) --------------------------------------------- */
.post-card__meta {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .6rem;
}
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--teal-dark); }

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 3rem; }
.pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 42px; height: 42px;
  padding-inline: .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-2);
}
.pagination .page-numbers:hover { border-color: var(--teal); color: var(--teal-dark); }
.pagination .current { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Suchformular ----------------------------------------------------------- */
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
  flex: 1;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.search-form input[type="search"]:focus-visible { border-color: var(--teal); }

/* Sitemap-artige Seitenliste (404) --------------------------------------- */
.link-list { display: grid; gap: .55rem; }
.link-list a { font-weight: 550; }

/* --- Eigenes Logo aus dem Customizer ------------------------------------ */
.brand--logo { display: block; }
.brand__logo {
  width: auto;
  height: clamp(34px, 3.2vw, 46px);
  max-width: min(300px, 55vw);
  object-fit: contain;
}

/* --- Kursstart-Hinweis --------------------------------------------------- */
.kursstart {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: .6rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
}
.kursstart svg { flex: none; }
.kursstart--kommt { background: var(--teal-tint); color: var(--teal-dark); }
.kursstart--laeuft { background: var(--sand); color: var(--ink-3); font-weight: 550; }

/* --- Automatischer Rundgang --------------------------------------------- */
.tour__titel { margin-bottom: 1.25rem; }

.tour {
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.tour__buehne {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}
@media (min-width: 900px) { .tour__buehne { aspect-ratio: 2 / 1; } }

.tour__bild {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  /* Das Ausblenden von "visibility" wird bis zum Ende der Blende verzoegert.
     Sonst verschwindet das alte Bild schlagartig, die Blende laeuft nicht ab
     und die Deckkraft bleibt auf 1 haengen. */
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.tour__bild.ist-aktiv {
  opacity: 1;
  visibility: visible;
  transition: opacity .7s ease, visibility 0s linear 0s;
}
.tour__bild picture, .tour__bild img { width: 100%; height: 100%; object-fit: cover; }

.tour__bild figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 4rem clamp(1.1rem, 3vw, 2rem) clamp(1.1rem, 2.5vw, 1.75rem);
  background: linear-gradient(to top, rgba(8,32,40,.9) 15%, rgba(8,32,40,.55) 55%, transparent);
  color: #fff;
  text-align: left;
}
.tour__raum {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8ed8d2;
}
.tour__text { font-size: clamp(1rem, .9rem + .5vw, 1.25rem); font-weight: 600; line-height: 1.35; }

.tour__pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(8,32,40,.42);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.tour__pfeil:hover { background: #fff; color: var(--ink); border-color: #fff; }
.tour__pfeil--zurueck { left: clamp(.6rem, 1.5vw, 1.1rem); }
.tour__pfeil--vor { right: clamp(.6rem, 1.5vw, 1.1rem); }

.tour__leiste {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tour__abspielen {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.tour__abspielen:hover { border-color: var(--teal); color: var(--teal-dark); }
.tour__symbol {
  width: 9px; height: 11px;
  background: currentColor;
  /* Pausensymbol: zwei Balken */
  clip-path: polygon(0 0, 3px 0, 3px 11px, 0 11px, 0 0, 6px 0, 9px 0, 9px 11px, 6px 11px);
}
.tour__abspielen[data-pausiert="1"] .tour__symbol {
  /* Abspielsymbol: Dreieck */
  clip-path: polygon(0 0, 9px 50%, 0 100%);
}

.tour__punkte {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-right: auto;
}
.tour__punkte button {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.tour__punkte button:hover { background: var(--ink-3); }
.tour__punkte button[aria-current="true"] { background: var(--teal); transform: scale(1.35); }

.tour__zaehler {
  font-size: .9rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .tour__bild { transition: none; }
}
