/* ==========================================================================
   Kleintierpraxis am Mühlenberg – Relaunch
   Schriften werden ausschließlich lokal geladen (siehe /assets/fonts).
   ========================================================================== */

/* ---------- Schriften ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400-italic.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-variable.woff") format("woff");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic-variable.woff") format("woff");
  font-weight: 400 700; font-style: italic; font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben – abgeleitet vom bisherigen Petrol/Türkis der Praxis.
     Alle Text-/Hintergrund-Kombinationen erfüllen WCAG 2.2 AA (mind. 4,5:1). */
  --teal-950: #032b2a;
  --teal-900: #053f3e;
  --teal-800: #075755;
  --teal-700: #0a6563;   /* Primärfarbe für Links & Buttons (7,0:1 auf Weiß) */
  --teal-500: #449b99;   /* nur dekorativ, nicht für Text */
  --teal-100: #dcefee;
  --teal-50:  #eef7f6;
  --sand-100: #f1ede4;
  --sand-50:  #f8f6f1;
  --ink:      #1b2828;
  --muted:    #4a5858;   /* 7,1:1 auf Weiß */
  --line:     #d5dfde;
  --white:    #ffffff;
  --alert:    #a3271b;   /* Notfall-Hinweise (7,0:1 auf Weiß) */
  --alert-bg: #fbeceb;
  --focus:    #8a4b00;   /* Fokusrahmen, 7:1 auf Weiß */

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --container: 1600px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 80ch;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(3 43 42 / .06), 0 8px 24px rgb(3 43 42 / .08);
  --shadow-lg: 0 2px 4px rgb(3 43 42 / .06), 0 20px 48px rgb(3 43 42 / .14);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;        /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
  font-feature-settings: "kern", "liga", "calt";
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal-900);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.85rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.8em; }
h2:first-child, h3:first-child { margin-top: 0; }
p, ul, ol, dl, table, blockquote, figure { margin: 0 0 1.15em; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; }

a {
  color: var(--teal-700);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
a:hover { color: var(--teal-900); text-decoration-thickness: 2px; }

/* Sichtbarer Tastaturfokus */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

/* Sprunglink */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 1000;
  padding: .75rem 1.25rem;
  background: var(--teal-900);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Externe Links / neues Fenster: kleines Symbol */
a[target="_blank"]:not(.no-ext-icon)::after {
  content: "";
  display: inline-block;
  width: .8em; height: .8em;
  margin-left: .3em;
  vertical-align: -.05em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- Infoleiste ---------- */
.topbar {
  background: var(--teal-950);
  color: #dfeeed;
  font-size: .9rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1.5rem;
  padding-block: .5rem;
}
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__list { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; margin: 0; padding: 0; list-style: none; }

/* ---------- Kopfbereich & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / .97);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgb(255 255 255 / .9); backdrop-filter: blur(8px); }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: var(--teal-900);
}
.brand:hover { color: var(--teal-900); }
.brand__mark {
  width: 52px; height: 52px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--teal-800);
}
.brand__mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 0 50%;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.05rem, .9rem + .6vw, 1.3rem);
}
.brand__sub { font-size: .8rem; color: var(--muted); letter-spacing: .01em; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  color: var(--teal-900);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute; left: 0; right: 0;
  height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s, top .2s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 5px; transform: 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) { top: 5px; transform: rotate(-45deg); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin: 0; padding: 0;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: .55rem .8rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--teal-50); color: var(--teal-900); }
.main-nav a[aria-current="page"] {
  background: var(--teal-700);
  color: var(--white);
}

.main-nav__head, .nav-backdrop { display: none; }

/* Mobile: Menü gleitet von rechts herein (Off-Canvas) */
@media (max-width: 1080px) {
  /* backdrop-filter würde position:fixed im Header einschränken */
  .site-header { background: var(--white); backdrop-filter: none; }
  .js .nav-toggle { display: inline-flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .main-nav a { padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: 1.05rem; }

  /* ohne JavaScript: Navigation einfach unter dem Logo */
  .no-js .site-header .container { flex-wrap: wrap; }
  .no-js .main-nav { width: 100%; padding-bottom: .75rem; }

  .js .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    width: min(22rem, 86vw);
    height: 100vh;
    height: 100dvh;
    padding: 0 1rem 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    box-shadow: -12px 0 40px rgb(3 43 42 / .22);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.22, .8, .3, 1), visibility 0s linear .32s;
  }
  .js .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .32s cubic-bezier(.22, .8, .3, 1), visibility 0s;
  }
  .js .main-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.75rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--line);
  }
  .main-nav__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; color: var(--teal-900); padding-left: .25rem; }
  .main-nav__close {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--teal-100);
    border-radius: 50%;
    background: var(--teal-50);
    color: var(--teal-900);
    cursor: pointer;
  }
  .main-nav__close .icon { width: 1.3rem; height: 1.3rem; }
  .main-nav__close:hover { background: var(--teal-100); }

  .js .nav-backdrop {
    display: block;
    position: fixed; inset: 0;
    z-index: 150;
    background: rgb(3 30 30 / .5);
    opacity: 0;
    transition: opacity .32s;
  }
  .js .nav-backdrop[hidden] { display: none; }
  .js .nav-backdrop.is-visible { opacity: 1; }
  .nav-locked { overflow: hidden; }
}

/* ---------- Bilderheader ---------- */
.page-hero { padding-top: clamp(1rem, 2.5vw, 2rem); }
.page-hero__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--teal-800);
  box-shadow: var(--shadow);
  /* Originalformat 990 × 276 px (≈ 3,6 : 1) – wird responsiv angepasst */
  aspect-ratio: 990 / 276;
  max-height: 400px;
  width: 100%;
}
.page-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 640px) {
  .page-hero__media { aspect-ratio: 16 / 7; border-radius: var(--radius-sm); }
}
.page-hero__card {
  position: relative;
  margin: clamp(-3.5rem, -5vw, -1.5rem) clamp(.75rem, 4vw, 3rem) 0;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 52rem;
}
.page-hero__card h1 { margin: 0; }
.page-hero__lead { margin: .6rem 0 0; font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-block;
  margin-bottom: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-700);
}

/* ---------- Layout Inhalt ---------- */
.page-body { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.layout--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
}
.content > *:not(.wide) { max-width: var(--measure); }
.content > *:last-child { margin-bottom: 0; }

.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 1.5rem; }

/* Floating Bild im Fließtext */
.figure-float {
  float: right;
  width: min(42%, 340px);
  margin: .3rem 0 1rem 1.75rem;
}
@media (max-width: 640px) {
  .figure-float { float: none; width: 100%; margin: 0 0 1.25rem; }
}
.figure-float img, .figure img { border-radius: var(--radius-sm); }
.figure figcaption, .figure-float figcaption { margin-top: .45rem; font-size: .875rem; color: var(--muted); }
.clearfix::after { content: ""; display: table; clear: both; }

/* Zoom-Link für Bilder */
.zoom {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.zoom img { transition: transform .35s ease; }
.zoom::before {
  content: "";
  position: absolute;
  right: .6rem; bottom: .6rem;
  z-index: 1;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: rgb(255 255 255 / .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23053f3e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 1.2rem no-repeat;
  box-shadow: 0 2px 8px rgb(0 0 0 / .18);
  opacity: 0;
  transition: opacity .2s;
}
.zoom:hover::before, .zoom:focus-visible::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .zoom:hover img { transform: scale(1.04); }
}

/* Hinweise */
.notice {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  border-left: 4px solid var(--teal-700);
  color: var(--ink);
}
.notice .icon { color: var(--teal-700); margin-top: .2rem; }
.notice p { margin: 0; }
.notice--alert { background: var(--alert-bg); border-left-color: var(--alert); }
.notice--alert .icon { color: var(--alert); }

/* Listen */
.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 1.75rem;
}
@media (max-width: 640px) { .check-list { grid-template-columns: minmax(0, 1fr); } }
.check-list li {
  position: relative;
  padding: .7rem .9rem .7rem 2.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  line-height: 1.45;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: .85rem; top: .9rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--teal-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / .75rem no-repeat;
}
.check-list .sub { display: block; font-size: .9rem; color: var(--muted); }
.wide.check-list { max-width: none; }

.dot-list { padding-left: 1.2rem; }
.dot-list li { margin-bottom: .35rem; }
.dot-list li::marker { color: var(--teal-500); }

/* Spezialisierung */
.highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.highlight li {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-800), var(--teal-900));
  color: var(--white);
  box-shadow: var(--shadow);
}
.highlight strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: .3rem; }
.highlight p { margin: 0; color: #d9ecea; font-size: .95rem; }

/* Zitat */
.quote {
  position: relative;
  margin: 0 0 2.5rem;
  padding: 1.5rem 1.75rem 1.25rem 4rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quote::before {
  content: "„";
  position: absolute;
  left: 1.1rem; top: -.2rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--teal-500);
}
.quote blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; line-height: 1.55; color: var(--teal-900); }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: .75rem; font-size: .9rem; color: var(--muted); text-align: right; }

/* Zeitstrahl (Zur Person) */
.timeline { list-style: none; padding: 0; margin-left: .35rem; border-left: 2px solid var(--teal-100); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -.45rem; top: .35rem;
  width: .8rem; height: .8rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal-700);
}
.timeline__year { display: block; font-weight: 700; color: var(--teal-800); font-variant-numeric: tabular-nums; }

/* Öffnungszeiten-Tabelle */
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font-weight: 600; margin-bottom: .5rem; }
.hours th, .hours td { padding: .5rem .25rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { width: 3.5rem; font-weight: 600; color: var(--teal-900); }
.hours td span { display: block; }
.hours .closed { color: var(--muted); }

/* ---------- Infokarten oben (Öffnungszeiten, Notfall, Links) ---------- */
.info-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;           /* alle Karten gleich hoch */
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.info-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-row > .card { display: flex; flex-direction: column; }
.info-row > .card > .btn { margin-top: auto; }
.info-row > .card > .link-list { margin-bottom: 1.25rem; }
@media (max-width: 1000px) {
  .info-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-row--3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .info-row, .info-row--2 { grid-template-columns: minmax(0, 1fr); }
}
/* Öffnungszeiten in der Karte kompakt zweispaltig */
.info-row .hours td span { display: inline-block; white-space: nowrap; margin-right: 1rem; }
.info-row .hours th, .info-row .hours td { padding: .4rem .25rem; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.card h2 { font-size: 1.3rem; margin: 0 0 .85rem; }
.card p { font-size: .95rem; }
.card > *:last-child { margin-bottom: 0; }
.card--teal { background: var(--teal-900); color: #e3f1f0; }
.card--teal h2 { color: var(--white); }
.card--teal a { color: var(--white); }
.card--alert { border-top: 4px solid var(--alert); }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 0;
  font-weight: 600;
  text-decoration: none;
}
.link-list a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  padding: .7rem 1.25rem;
  border: 2px solid var(--teal-700);
  border-radius: 999px;
  background: var(--teal-700);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: .975rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--teal-900); border-color: var(--teal-900); color: var(--white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--teal-700); }
.btn--ghost:hover { background: var(--teal-50); color: var(--teal-900); border-color: var(--teal-900); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--teal-900); }
.btn--light:hover { background: var(--teal-50); border-color: var(--teal-50); color: var(--teal-900); }
.btn--alert { background: var(--alert); border-color: var(--alert); }
.btn--alert:hover { background: #7f1d14; border-color: #7f1d14; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.card .btn { width: 100%; }

/* ---------- Startseite ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }
.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.4rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature__icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  margin-bottom: .35rem;
}
.feature__icon .icon { width: 1.4rem; height: 1.4rem; }
.feature h3 { margin: 0; font-size: 1.15rem; }
.feature p { margin: 0; font-size: .95rem; color: var(--muted); }
.feature a { font-weight: 600; margin-top: auto; padding-top: .4rem; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(.6rem, 1.5vw, 1rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery li { margin: 0; }
.gallery .zoom {
  aspect-ratio: 4 / 3;
  background: var(--teal-100);
  box-shadow: var(--shadow);
}
.gallery--portrait .zoom { aspect-ratio: 3 / 4; }
.gallery .zoom img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  image-rendering: auto;
}

/* ---------- Downloads ---------- */
.flyer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--teal-900);
  color: #e3f1f0;
  box-shadow: var(--shadow);
}
.flyer h2 { color: var(--white); margin: 0 0 .25rem; font-size: 1.4rem; }
.flyer p { margin: 0; }
.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem 1.25rem;
  margin: 1.5rem 0 1.25rem;
}
.filter__field { display: flex; flex-direction: column; gap: .35rem; flex: 1 1 18rem; max-width: 28rem; }
.filter label { font-weight: 600; }
.filter input {
  font: inherit;
  padding: .7rem .95rem;
  min-height: 44px;
  border: 2px solid #8aa3a2;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}
.filter input:focus-visible { border-color: var(--teal-700); }
.filter__status { margin: 0; color: var(--muted); font-size: .95rem; }
.az-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.az-nav a {
  display: grid; place-items: center;
  min-width: 2.5rem; height: 2.5rem;
  padding: 0 .5rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}
.az-nav a:hover { background: var(--teal-50); }
.dl-group { margin-bottom: 1.75rem; }
.dl-group h3 {
  margin: 0 0 .6rem;
  font-size: 1.3rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--teal-100);
}
.dl-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: .55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.dl-list a {
  display: flex;
  align-items: center;
  gap: .8rem;
  height: 100%;
  padding: .75rem .95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.dl-list a:hover { border-color: var(--teal-700); box-shadow: var(--shadow); color: var(--teal-900); }
.dl-list a::after { margin-left: auto; color: var(--muted); }
.pdf-badge {
  flex: none;
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 8px;
  background: var(--alert-bg);
  color: var(--alert);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
}
[hidden] { display: none !important; }

/* ---------- Karte (Zwei-Klick-Lösung) ---------- */
.map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgb(68 155 153 / .25), transparent 55%),
    linear-gradient(135deg, var(--teal-50), var(--sand-100));
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  min-height: 22rem;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 1.5rem;
  text-align: center;
}
.map__consent > div { max-width: 34rem; background: rgb(255 255 255 / .94); padding: 1.5rem 1.75rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.map__consent p { font-size: .95rem; }
.map__consent .btn-row { justify-content: center; }

.address-block { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-950);
  color: #cfe3e1;
  font-size: .95rem;
}
.site-footer a { color: var(--white); }
.site-footer h2 {
  color: var(--white);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.footer-gallery { display: block; text-decoration: none; }
.footer-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin-bottom: .85rem;
}
.footer-gallery__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--teal-800);
  transition: opacity .2s;
}
.footer-gallery:hover img { opacity: .85; }
.footer-gallery__label { font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.footer-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.footer-list li { padding: .3rem 0; }
.footer-contact dt { font-weight: 600; color: var(--white); }
.footer-contact dd { margin: 0 0 .7rem; }
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / .14);
  font-size: .875rem;
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1.25rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh;
  max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0;
  border: 0;
  background: rgb(3 20 20 / .94);
  color: var(--white);
}
.lightbox::backdrop { background: rgb(3 20 20 / .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .75rem clamp(.75rem, 3vw, 1.5rem);
}
.lightbox__counter { font-variant-numeric: tabular-nums; font-size: .95rem; }
.lightbox__stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 0;
  padding: 0 clamp(3.25rem, 7vw, 5.5rem);
}
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100vh - 9.5rem);
  width: auto; height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgb(0 0 0 / .5);
}
.lightbox__caption { margin: 0; padding: .9rem clamp(1rem, 3vw, 2rem) 1.25rem; text-align: center; font-size: .95rem; color: #d5e6e5; }
.lightbox button {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .12);
  color: var(--white);
  cursor: pointer;
}
.lightbox button:hover { background: rgb(255 255 255 / .24); }
.lightbox button .icon { width: 1.5rem; height: 1.5rem; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: clamp(.25rem, 2vw, 1.25rem); }
.lightbox__next { right: clamp(.25rem, 2vw, 1.25rem); }
.lightbox--single .lightbox__prev,
.lightbox--single .lightbox__next,
.lightbox--single .lightbox__counter { visibility: hidden; }

/* ---------- Tabellen-artiger Impressum-Block ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts dd { margin-bottom: .6rem; } }

.legal h2 { font-size: 1.35rem; }
.legal h3 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 700; color: var(--ink); margin-top: 1.4em; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Hoher Kontrast (Windows) ---------- */
@media (forced-colors: active) {
  .main-nav a[aria-current="page"] { border: 2px solid CanvasText; }
  .btn, .card, .feature, .dl-list a { border: 1px solid CanvasText; }
  a[target="_blank"]:not(.no-ext-icon)::after { background-color: LinkText; }
}

/* ---------- Druck ---------- */
@media print {
  .topbar, .site-header, .page-hero, .info-row, .site-footer, .skip-link, .map { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .layout { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* Ergänzungen */
.notice { margin-bottom: 1.15em; }
@media (max-width: 440px) { .brand__sub { display: none; } .brand__mark { width: 44px; height: 44px; } }
.hours abbr { text-decoration: none; }
.hours caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.legal, .content { overflow-wrap: break-word; }
.legal a { overflow-wrap: anywhere; }
.brand { min-width: 0; flex: 1 1 auto; }
.nav-toggle { flex: none; }
@media (max-width: 640px) {
  .map { aspect-ratio: auto; min-height: 26rem; }
  .topbar__list li:first-child { display: none; }
  .brand__name { font-size: 1rem; }
  .brand { gap: .6rem; }
}
@media (max-width: 1080px) { .brand { flex: 1 1 0; } }
/* Fokus auf dunklen Flächen */
.topbar :focus-visible, .site-footer :focus-visible, .card--teal :focus-visible,
.flyer :focus-visible, .lightbox :focus-visible, .highlight :focus-visible { outline-color: #ffd166; }
.skip-link:focus-visible { outline-color: #ffd166; }
