/* Praxis Dr. med. Andreas Krause – statische Website
   Design-Tokens aus dem Theme "onelife" (Skin "sandal"). */

@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand-latin-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #b5ad8f;
  --secondary: #f0ebd8;
  --tertiary: #89cddf;
  --link: #1f7a93; /* dunkles Blau fuer Links (Anweisung 14.10.2026), Kontrast ~4,6:1 auf Weiss */
  --text: #4d4d4d;
  --schwarz: #000;
  --weiss: #fff;
  --schrift: 'Quicksand', sans-serif;
  --seitenrand: 52px;
  --slider-hoehe: 900px;
  --skala: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.popup-offen { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 28px;
  color: var(--text);
  background: var(--weiss);
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { color: var(--primary); }
:focus-visible { outline: 2px solid #1a6f8a; outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { font-weight: 400; margin: 0 0 .6em; line-height: 1.25; color: var(--schwarz); letter-spacing: .5px; }
h1 { font-size: 40px; text-transform: uppercase; }
h2 { font-size: 30px; text-transform: uppercase; }
h3 { font-size: 24px; text-transform: uppercase; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 14px; }
p { margin: 0 0 10px; }
strong { font-weight: 700; color: var(--text); }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .3em; }
table { border-collapse: separate; border-spacing: 0; margin: 0 auto 1em; }
td, th { text-align: center; vertical-align: middle; padding: 13px 15px; }
tr:nth-child(even) > td, tr:nth-child(even) > th { background: rgba(0,0,0,.03); }

/* Raster: Container 1170 px, Zeilen mit -15 px Rand, Spalten mit 15 px Innenabstand (12 Spalten) */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.zeile { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.zeile > [class*="sp-"] { padding: 0 15px; min-width: 0; }
.sp-2 { width: 16.6667%; }
.sp-4 { width: 33.3333%; }
.sp-6 { width: 50%; }
.sp-12 { width: 100%; }
.zeile.gleichhoch { align-items: stretch; }
.zeile.mittig { align-items: center; }
.ueber .zeile.mittig { align-items: flex-start; } /* Entscheidung 14.10.2026: beide Spalten oben buendig (live war vertikal zentriert) */
.zeile.oben { align-items: flex-start; margin-bottom: 40px; }
.zeile.dicht { margin: 0; }
.zeile.dicht > [class*="sp-"] { padding: 0; }
.mitte { text-align: center; }
.mitte-bild { display: block; margin: 0 auto 20px; max-width: 100%; height: auto; }
.blau { color: var(--tertiary); }
.fancy { list-style: none; padding: 0; margin: 0 0 1em; }
.fancy > li { position: relative; padding-left: 28px; line-height: 28px; margin: 0; }
.fancy > li::before { content: ''; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--tertiary); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--weiss); color: var(--schwarz); padding: 8px 14px;
}
.skip:focus { top: 8px; }

.knopf {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--primary); color: var(--schwarz);
  font: inherit; font-weight: 600; text-decoration: none;
  padding: 10px 24px; border-radius: 4px;
}
.knopf:hover, .knopf:focus-visible { background: var(--schwarz); color: var(--weiss); }

/* ---------- Kopfbereich ---------- */
/* Schraegflaeche: ab ca. 1650 px Breite am Container ausgerichtet, damit sie das Logo nicht ueberdeckt (02.11.2026) */
.site-header { position: sticky; top: 0; z-index: 50; height: 110px; background: var(--weiss); }
.header-flaeche { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.header-flaeche::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: max(30%, calc(50% - 330px)); right: -300px;
  background: var(--secondary); transform: skewX(-30deg); transform-origin: 0 0;
}
.header-inner { position: relative; height: 110px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; line-height: 0; }
.logo img { width: 150px; height: 50px; }

.menu, .sub { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; margin: 0 -15px 0 0; }
.menu li { position: relative; margin: 0; }
.menu > li > a {
  display: block; padding: 0 15px; text-decoration: none; color: var(--schwarz);
  font-size: 12px; line-height: 110px; text-transform: uppercase; letter-spacing: .5px; font-weight: 500;
}
.menu > li > a:hover, .menu > li > a:focus-visible, .menu li.offen > a { color: var(--tertiary); }
.sub-toggle { display: none; }
.sub {
  position: absolute; left: 0; top: 100%; width: 260px; padding: 10px 0;
  background: var(--weiss); border-top: 1px solid var(--secondary); box-shadow: 0 0 20px rgba(0,0,0,.1);
  display: none; z-index: 60;
}
.sub a { display: block; padding: 6px 20px; font-size: 16px; line-height: 28px; text-transform: none; color: var(--link); text-decoration: none; }
.sub a:hover, .sub a:focus-visible { color: var(--primary); }
.menu li:hover > .sub, .menu li:focus-within > .sub, .menu li.offen > .sub { display: block; }

.nav-toggle {
  display: none; align-items: center; gap: 10px; border: 0; background: transparent;
  font: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; color: var(--schwarz);
  padding: 10px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1239px) {
  .menu > li > a { padding: 0 10px; }
  .menu { margin-right: -10px; }
}
@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  #hauptmenue {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--weiss); box-shadow: 0 10px 20px rgba(0,0,0,.15);
    max-height: calc(100vh - 110px); overflow-y: auto;
  }
  .nav-offen #hauptmenue { display: block; }
  .menu { flex-direction: column; align-items: stretch; margin: 0; padding: 6px 15px 14px; }
  .menu > li { border-bottom: 1px solid var(--secondary); }
  .menu > li > a { padding: 14px 4px; line-height: 1.4; }
  .menu li.hat-sub { display: grid; grid-template-columns: 1fr 48px; }
  .menu li.hat-sub > .sub { grid-column: 1 / -1; }
  .sub-toggle {
    display: block; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 22px;
    color: var(--schwarz); width: 48px; height: 100%; min-height: 48px;
  }
  .sub { position: static; width: auto; box-shadow: none; border-top: 0; background: var(--secondary); padding: 4px 0 4px 12px; }
  .sub a { white-space: normal; }
  .menu li:hover > .sub, .menu li:focus-within > .sub { display: none; }
  .menu li.offen > .sub { display: block; }
}

/* ---------- Slider ---------- */
.slider {
  position: relative; overflow: hidden; background: #222;
  /* Hoehe hoechstens sichtbarer Bereich unter dem Kopf, damit Text und Logo nicht unter dem Bildrand liegen (02.11.2026) */
  --sh: clamp(480px, calc(100svh - 110px), var(--slider-hoehe));
  height: var(--sh);
}
.slider[hidden] { display: none; }
.slider:not(:has(.slide)) { height: auto; background: transparent; }
.lokal-hinweis { margin: 0; padding: 14px var(--seitenrand); background: var(--secondary); color: var(--schwarz); font-size: 14px; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  /* Seitenrand der Slide-Inhalte = Inhaltsbreite der Seite (1170 px), mindestens 8 % (02.11.2026) */
  --rand: max(8%, calc((100% - 1170px) / 2));
  transition: opacity 1s ease, visibility 0s linear 1s;
}
.slide.aktiv { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.slide-medium { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
/* Leichtes graues Overlay ueber Bild/Video, damit die weisse Schrift besser lesbar ist (Anweisung 14.10.2026). */
.slide::after { content: ''; position: absolute; inset: 0; background: rgba(40, 40, 40, .32); pointer-events: none; }
/* Logo im Slide (02.11.2026): Ecke am Inhaltsbereich ausgerichtet, oder als Block ueber dem Text */
.slide-logo { display: block; z-index: 1; height: auto; max-width: none; }
.slide-logo.lp-rechts-oben, .slide-logo.lp-links-oben { position: absolute; top: calc(var(--sh) * .08); width: clamp(96px, 11vw, 190px); }
.slide-logo.lp-rechts-oben { right: var(--rand); }
.slide-logo.lp-links-oben { left: var(--rand); }
.slide-logo.lp-text { width: clamp(220px, 34vw, 560px); margin-bottom: 28px; }
.slide-block { display: flex; flex-direction: column; align-items: var(--ausr, center); max-width: 100%; min-width: 0; }
.slide-inhalt {
  position: absolute; inset: 0; display: flex; padding: 60px var(--rand) 80px; --ausr: flex-start;
  pointer-events: none; z-index: 1;
}
.slide-inhalt.p-mitte { align-items: center; justify-content: center; text-align: center; --ausr: center; }
.slide-inhalt.p-links-unten { align-items: flex-end; justify-content: flex-start; padding-bottom: calc(var(--sh) * .16); }
.slide-inhalt.p-rechts-unten { align-items: flex-end; justify-content: flex-end; text-align: right; --ausr: flex-end; }
.slide-inhalt.p-links-oben { align-items: flex-start; justify-content: flex-start; padding-top: 80px; }
.slide-inhalt.p-rechts-oben { align-items: flex-start; justify-content: flex-end; text-align: right; padding-top: 80px; --ausr: flex-end; }
.slide-inhalt.p-oben { align-items: flex-start; justify-content: center; text-align: center; padding-top: 80px; --ausr: center; }
.slide-inhalt.p-unten { align-items: flex-end; justify-content: center; text-align: center; --ausr: center; }
.slide-inhalt.p-links { align-items: center; justify-content: flex-start; }
.slide-inhalt.p-rechts { align-items: center; justify-content: flex-end; text-align: right; --ausr: flex-end; }

.slide-text {
  --f: 1;
  margin: 0; padding: 8px; border-radius: 20px; max-width: 100%;
  overflow-wrap: break-word; hyphens: auto; /* lange Woerter auf schmalen Bildschirmen trennen */
  font-size: calc(var(--gr, 55) * 1px * var(--f)); line-height: 1.2; font-weight: 400;
  text-shadow: 0 5px 0 rgba(0,0,0,.25);
}
.slide-text.hell { color: #fff; }
.slide-text.dunkel { color: #000; }
.slide-text.schrift-leicht { font-weight: 300; letter-spacing: -.07em; }
.slide-text.schrift-fett { font-weight: 700; }
.slide-text.schrift-normal { font-weight: 400; }
.slide.aktiv .slide-block, .slide.aktiv .slide-logo { animation: slide-ein 1s .5s ease both; }
@keyframes slide-ein { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.slide-link { position: absolute; inset: 0; z-index: 2; }

.slider-pfeil {
  position: absolute; top: 50%; z-index: 5; width: 56px; height: 56px; margin-top: -28px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.45); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease, background .3s ease;
}
.slider-pfeil svg { width: 26px; height: 26px; }
.slider-pfeil.links { left: 24px; }
.slider-pfeil.rechts { right: 24px; }
.slider-pfeil:hover { background: var(--primary); color: #000; }
.slider:hover .slider-pfeil, .slider:focus-within .slider-pfeil, .slider.reduziert .slider-pfeil { opacity: 1; }
.slider.einzeln .slider-pfeil { display: none; }

@media (max-width: 1239px) { :root { --slider-hoehe: 768px; } .slide-text { --f: .87; } }
@media (max-width: 1023px) { :root { --slider-hoehe: 960px; } .slide-text { --f: .65; } }
@media (max-width: 777px)  { :root { --slider-hoehe: 720px; } .slide-text { --f: .5; } .slide-logo.lp-text { width: 70vw; max-width: 420px; margin-bottom: 20px; } }
@media (max-width: 599px)  { .slider-pfeil { display: none; } .slider.reduziert .slider-pfeil { display: flex; } }
@media (max-width: 480px)  { .slide-text { --f: .42; } .slide-logo.lp-rechts-oben, .slide-logo.lp-links-oben { width: 84px; } }
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.aktiv { transition: none; }
  .slide.aktiv .slide-block, .slide.aktiv .slide-logo { animation: none; }
}

/* ---------- Startseite: Abschnitte ---------- */
body.startseite main { text-align: justify; }
body.startseite main h1, body.startseite main h2, body.startseite main h3, body.startseite main h4 { text-align: center; }
.abschnitt { padding: 50px 0; }
.abschnitt h2, .abschnitt h3 { text-align: center; margin-bottom: 20px; }
.hinweise .zeile > div > h3 { margin-top: 0; }
.zeiten td, .kontakt-tabelle td { padding: 13px 15px; }
.zeiten td:first-child, .kontakt-tabelle td:first-child { font-weight: 400; }
.fett-absatz { text-align: justify; }
.hinweise .fancy { text-align: left; }
.hinweise table { width: 100%; margin-left: 0; margin-right: 0; table-layout: fixed; }
.hinweise table td { width: 50%; }
.hinweise table a { color: inherit; }

.ueber { background: rgba(0,0,0,.95); color: #fff; padding: 70px 0; }
.ueber h2, .ueber h3, .ueber h4, .ueber strong, .ueber a { color: #fff; }
.ueber .blau, .ueber strong.blau { color: var(--tertiary); }
.ueber .zeile.verschachtelt { margin-bottom: 0; align-items: flex-start; }
.portrait { display: block; width: 270px; max-width: 100%; height: auto; border-radius: 4px; margin: 0 auto 10px; }
.bildtitel { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 16px; text-transform: uppercase; margin: 0 0 20px; }
.bildtitel::before, .bildtitel::after { content: ''; flex: 1; max-width: 60px; height: 1px; background: currentColor; }
.werdegang { text-align: left; }
.ueber .werdegang > li::before { background: var(--tertiary); }

.kontaktleiste { background: var(--tertiary); padding: 30px 0; color: #fff; font-size: 20px; }
.kontaktleiste .zeile { align-items: center; }
.kontaktleiste .sp-2, .kontaktleiste .sp-4, .kontaktleiste .sp-6 { text-align: center; }
.kontaktleiste .zeile > div + div { border-left: 1px solid rgba(255,255,255,.7); }
.kontaktleiste p { margin: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.kontaktleiste a { color: #fff; text-decoration: none; }
.kontaktleiste a:hover, .kontaktleiste a:focus-visible { color: #fff; text-decoration: underline; }
.kl-icon { display: inline-flex; flex: none; }
.kl-icon svg { width: 26px; height: 26px; fill: #fff; color: #fff; }

#fachgebiete p.mitte { margin-bottom: 40px; }
.raster { border-top: 1px solid rgba(0,0,0,.08); border-left: 1px solid rgba(0,0,0,.08); text-align: center; }
.zeile.dicht > .iconbox {
  padding: 35px 30px 40px; min-height: 242px; text-align: center;
  border-right: 1px solid rgba(0,0,0,.08); border-bottom: 1px solid rgba(0,0,0,.08);
}
.iconbox img { width: 65px; height: 65px; object-fit: contain; margin: 0 auto 16px; display: block; }
.iconbox h4 { font-size: 24px; text-transform: none; margin-bottom: 10px; }
.iconbox p { margin: 0; font-size: 16px; text-align: center; }
.iconbox a { color: var(--tertiary); }
.iconbox a:hover, .iconbox a:focus-visible { color: var(--primary); }

.anfahrt { background: linear-gradient(#89cddf 0%, #89cddf 50%, #fff 100%); padding: 20px 0 100px; }
.anfahrt h1 { color: #fff; text-transform: none; text-align: center; margin-bottom: 20px; }
.karte { max-width: 1160px; margin: 0 auto; }
.karte-bild { display: block; background: #f2efe9; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.karte-bild img { display: block; width: 100%; height: auto; }
.karte-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 16px 0 0; }
.karte-fuss a:not(.knopf) { color: var(--link); }
.karte-quelle { margin-left: auto; font-size: 13px; color: #555; }
.karte-quelle a { color: inherit; }

/* ---------- Unterseiten ---------- */
.seitenkopf { background: rgba(0,0,0,.05); padding: 40px 0 54px; }
.seitenkopf h1 { margin: 0; line-height: 70px; text-align: left; }
.inhalt { padding-top: 45px; padding-bottom: 70px; }
.inhalt h2 { margin: 1.2em 0 .5em; }
.inhalt h2:first-child, .inhalt .zeile:first-child h2:first-child { margin-top: 0; }
.inhalt h2.wie-h1 { font-size: 40px; }
.inhalt h3 { margin-top: 1.2em; }
.inhalt h4 { text-transform: uppercase; margin-top: 0; }
.inhalt ul.strich { list-style: none; padding-left: 0; }
.inhalt ul.strich li { padding-left: 1.2em; text-indent: -1.2em; }
.inhalt ul.strich li::before { content: '– '; }
.inhalt ul:not(.fancy):not(.strich) { padding-left: 1.4em; }
.hinweis-klein { font-size: 14px; }
.fehlerseite { text-align: center; padding: 100px 20px; }

/* Galerie-Slider (aktuelles): ein Bild sichtbar, Ueberblenden, Pfeile und Punkte */
.galerie-slider { position: relative; width: 100%; max-width: 570px; margin: 0 auto 20px; }
.galerie-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.galerie-liste li { margin: 0; }
.galerie-liste a { display: block; line-height: 0; }
.galerie-liste img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.galerie-slider.ist-aktiv .galerie-liste { display: block; position: relative; overflow: hidden; background: rgba(0,0,0,.04); }
.galerie-slider.g1.ist-aktiv .galerie-liste { aspect-ratio: 562 / 585; }
.galerie-slider.g2.ist-aktiv .galerie-liste { aspect-ratio: 1 / 1; }
.ist-aktiv .galerie-liste li { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.ist-aktiv .galerie-liste li.aktiv { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.ist-aktiv .galerie-liste a, .ist-aktiv .galerie-liste img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; cursor: zoom-in; }
.galerie-pfeil {
  position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.galerie-pfeil svg { width: 22px; height: 22px; }
.galerie-pfeil.links { left: 10px; }
.galerie-pfeil.rechts { right: 10px; }
.galerie-pfeil:hover, .galerie-pfeil:focus-visible { background: var(--tertiary); }
.galerie-punkte { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 50px; }
.galerie-punkte button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(0,0,0,.3); cursor: pointer; }
.galerie-punkte button[aria-current="true"] { background: var(--tertiary); }
@media (prefers-reduced-motion: reduce) { .ist-aktiv .galerie-liste li, .ist-aktiv .galerie-liste li.aktiv { transition: none; } }

/* ---------- Fußbereich ---------- */
.footer-widgets { position: relative; background: var(--secondary); padding: 67px 0 52px; color: var(--text); font-size: 14px; line-height: 28px; }
.footer-widgets::before { content: ''; position: absolute; left: 0; top: 0; width: 231px; height: 347px; background: url(../img/footer-pattern-top.png) no-repeat; pointer-events: none; }
.footer-widgets::after { content: ''; position: absolute; right: 0; bottom: 0; width: 247px; height: 255px; background: url(../img/footer-pattern-bottom.png) no-repeat; pointer-events: none; }
.footer-widgets .container { position: relative; z-index: 9; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 23px; text-align: left; }
.footer-widgets h3 { font-size: 24px; text-transform: none; color: var(--schwarz); margin-bottom: 34px; }
.footer-widgets a { color: var(--schwarz); }
.footer-widgets a:hover, .footer-widgets a:focus-visible { color: var(--tertiary); }
.footer-widgets p { margin: 0 0 10px; }
.footer-widgets table { width: 100%; margin: 0; }
.footer-widgets td { padding: 13px 15px; border-bottom: 1px solid rgba(0,0,0,.1); }
.footer-widgets .footer-liste td { text-align: center; }
.footer-logo { display: block; width: 150px; height: auto; margin-bottom: 14px; }
.copyright { background: var(--tertiary); padding: 22px 0; color: #000; /* Kontrast 11,9:1 statt 1,8:1 (27.10.2026) */ font-size: 14px; line-height: 28px; }
.copyright-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; }
.copyright p { margin: 0; }
.copyright ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.copyright li { margin: 0; }
.copyright a { color: #000; }
.copyright a:hover, .copyright a:focus-visible { color: #000; text-decoration: underline; }

/* ---------- Popup und Bildansicht ---------- */
.popup-overlay, .lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.popup {
  position: relative; background: var(--weiss); color: var(--text);
  width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 40px 34px 32px; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.popup h2 { font-size: 26px; padding-right: 30px; }
.popup .popup-bild { display: block; width: 100%; margin-bottom: 18px; border-radius: 4px; }
.popup-schliessen, .lb-zu, .lb-vor, .lb-weiter {
  position: absolute; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--schwarz); width: 44px; height: 44px; border-radius: 50%;
}
.popup-schliessen { top: 8px; right: 8px; }
.popup-schliessen:hover, .popup-schliessen:focus-visible { background: var(--secondary); }
.popup-schliessen svg, .lb-zu svg, .lb-vor svg, .lb-weiter svg { width: 24px; height: 24px; }
.lightbox { display: none; background: rgba(0,0,0,.9); }
.lightbox.offen { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lb-zu, .lb-vor, .lb-weiter { color: #fff; background: rgba(0,0,0,.5); }
.lb-zu { top: 14px; right: 14px; }
.lb-vor { left: 14px; top: 50%; margin-top: -22px; }
.lb-weiter { right: 14px; top: 50%; margin-top: -22px; }
.lb-zu:hover, .lb-vor:hover, .lb-weiter:hover { background: var(--primary); color: #000; }

/* ---------- Responsive ---------- */
@media (max-width: 1239px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 23px; }
}
@media (max-width: 777px) {
  h1 { font-size: 32px; }
  h2, .inhalt h2.wie-h1 { font-size: 26px; }
  h3 { font-size: 22px; }
  .seitenkopf { padding: 30px 0 34px; }
  .seitenkopf h1 { line-height: 1.25; }
  .zeile > [class*="sp-"] { width: 100%; }
  .zeile.oben { margin-bottom: 20px; }
  .zeile.verschachtelt > [class*="sp-"] { width: 100%; }
  .abschnitt { padding: 40px 0; }
  .ueber { padding: 50px 0; }
  .kontaktleiste { font-size: 18px; }
  .kontaktleiste .zeile > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.7); margin-top: 14px; padding-top: 14px; }
  .anfahrt { padding: 10px 0 50px; }
  .footer-widgets { padding: 50px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright-inner { flex-direction: column; }
  .popup { padding: 40px 20px 24px; }
}
@media (max-width: 480px) {
  .zeile.dicht > .iconbox { padding: 30px 20px 34px; }
}

/* Popup: automatisches Schliessen (Angabe "ausblenden", 28.10.2026) */
.popup-ablauf { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--primary); transform-origin: left center; animation: popup-ablauf linear forwards; }
.popup-pausiert .popup-ablauf { animation-play-state: paused; }
.popup-ablauf-text { margin: 16px 0 0; font-size: 13px; line-height: 18px; color: #555; }
@keyframes popup-ablauf { from { transform: scaleX(1); } to { transform: scaleX(0); } }
