/* Gefäßmedizin Dr. Hertel Zwickau – Stylesheet
   Schrift Poppins (lokal eingebunden, Lizenz SIL OFL). Farben wie die bisherige Seite. */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-600.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-700.woff") format("woff"); }

:root {
  --rot: #e12454;          /* Akzentfarbe (Menü aktiv, Banner, Buttons) */
  --rot-dunkel: #c41b45;
  --dunkel: #223645;       /* Überschriften, Fußzeile */
  --text: #54657a;         /* Fließtext (etwas dunkler als Original für bessere Lesbarkeit) */
  --text-hell: #566579;
  --hintergrund: #fff;
  --hintergrund-alt: #f6f8fb;
  --rand: #e4e9f0;
  --schrift: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --breite: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--schrift); font-size: 15px; font-weight: 500; line-height: 1.75; color: var(--text); background: var(--hintergrund); }
a { color: var(--rot); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--dunkel); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--dunkel); font-weight: 700; line-height: 1.3; margin: 0 0 .6em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--breite); margin: 0 auto; padding: 0 30px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--rot); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 16px; top: 16px; }

/* Obere Leiste */
.topbar { border-bottom: 1px solid var(--rand); font-size: .8rem; color: var(--text-hell); }
.topbar-inner { display: flex; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.topbar-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.topbar-item svg { vertical-align: -3px; margin-right: 4px; }
.topbar a { color: var(--text-hell); }

/* Kopf */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rand); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo img { width: 161px; height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; justify-content: center; }
.main-nav a, .submenu-toggle { display: block; margin: 0; font: inherit; font-size: .95rem; font-weight: 500; line-height: 1.5; color: var(--dunkel); background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: none; }
.main-nav a:hover, .submenu-toggle:hover { color: var(--rot); text-decoration: none; }
.main-nav a[aria-current="page"], .has-submenu.current > .submenu-toggle { color: var(--rot); }
.submenu-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 7px; }
.has-submenu { position: relative; }
.submenu { display: none !important; position: absolute; left: -16px; top: 100%; background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(34, 54, 69, .12); padding: 8px 0; min-width: 290px; z-index: 60; flex-direction: column; gap: 0 !important; }
.has-submenu.is-open > .submenu { display: flex !important; }
.submenu a { display: block; padding: 8px 20px; white-space: nowrap; }
.call-btn { display: flex; align-items: center; gap: 12px; color: var(--dunkel); text-decoration: none !important; }
.call-icon { color: var(--rot); display: inline-flex; }
.call-label { display: block; font-size: .72rem; color: var(--text-hell); line-height: 1.3; }
.call-btn strong { font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: var(--dunkel); color: #fff; border: 0; border-radius: var(--radius); padding: 10px 16px; cursor: pointer; }

/* Diashow (Startseite) */
/* Die Bilder haben unterschiedliche Formate. Jedes Bild wird vollständig gezeigt (contain)
   und der Rest der Fläche mit einer unscharfen, vergrößerten Kopie desselben Bildes gefüllt. */
.slideshow-rahmen { padding: 32px 30px 0; }
.slideshow { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--hintergrund-alt); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; overflow: hidden; }
.slide.is-active { opacity: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide-hg { object-fit: cover; filter: blur(28px) brightness(.97); transform: scale(1.12); }
.slide-bild { object-fit: cover; object-position: center; }
.slide-bild.ganz { object-fit: contain; }   /* Bild vollständig zeigen, Rest bleibt unscharf gefüllt */
.slide-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(34, 54, 69, .65); color: #fff; font-size: 1.1rem; cursor: pointer; z-index: 5; }
.slide-pfeil:hover { background: var(--rot); }
.slide-pfeil.zurueck { left: 24px; }
.slide-pfeil.vor { right: 24px; }
.slide-pause { position: absolute; right: 24px; bottom: 16px; z-index: 5; font: inherit; font-size: .75rem; background: rgba(255,255,255,.85); border: 0; border-radius: 20px; padding: 4px 12px; cursor: pointer; color: var(--dunkel); }

/* Seitenkopf (rotes Banner auf Unterseiten) */
.seitenkopf { background: var(--rot); color: #fff; padding: 34px 0 30px; }
.seitenkopf h1 { color: #fff; font-size: 1.9rem; margin: 0; }
.brotkrumen { margin: 0 0 6px; font-size: .78rem; color: rgba(255,255,255,.85); }
.brotkrumen a { color: #fff; text-decoration: underline; }

/* Inhalt */
section { padding: 64px 0; }
section.alt { background: var(--hintergrund-alt); }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rot); border-bottom: 2px solid var(--rot); padding-bottom: 2px; margin-bottom: 22px; }
.lead { font-size: 1.05rem; font-weight: 600; color: var(--dunkel); }
.grid { display: grid; gap: 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.kontakt-spalten h2, .kontakt-spalten h3 { font-size: .95rem; margin-bottom: .2em; }
.kontakt-spalten p { margin: 0 0 1em; }
.karte { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 28px; }
.karte h3 { margin-top: 0; }
.karte-link { font-weight: 600; }
.info-box { background: var(--hintergrund-alt); border-left: 4px solid var(--rot); border-radius: var(--radius); padding: 24px 28px; }
section.alt .info-box { background: #fff; }
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: .9rem; border-radius: var(--radius); padding: 12px 26px; border: 2px solid var(--rot); cursor: pointer; text-decoration: none !important; }
.btn-primary { background: var(--rot); color: #fff; }
.btn-primary:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.btn-outline { background: #fff; color: var(--rot); }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.galerie.zwei { grid-template-columns: repeat(2, 1fr); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
ul.liste { padding-left: 1.2em; }
ul.liste li { margin-bottom: .4em; }
.portrait { border-radius: var(--radius); width: 100%; }
/* PDF-Karten: weiße Karte mit Schatten, Titelbild links, Text und Link rechts (wie auf der alten Seite) */
.download-liste { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
.download-liste li { background: #fff; border-radius: var(--radius); box-shadow: 0 6px 26px rgba(34, 54, 69, .09); padding: 28px 34px; }
.download-liste li.mit-bild { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center; gap: 44px; padding: 16px; }
.download-liste img { width: 100%; height: auto; aspect-ratio: 617 / 360; object-fit: cover; border-radius: 6px; }
.download-text h3 { margin: 0 0 .5em; font-size: 1.45rem; line-height: 1.3; }
.download-text p { margin: 0 0 1.3em; font-size: .9rem; }
.download-link { font-weight: 700; font-size: .9rem; color: var(--rot); }
.download-link:hover { text-decoration: underline; }
.download-liste p { margin: 0; font-size: .88rem; }
.download-liste .download-text p { margin: 0 0 1.3em; }
.download-btn { flex: none; font-weight: 600; font-size: .85rem; color: var(--rot); border: 2px solid var(--rot); border-radius: var(--radius); padding: 8px 16px; white-space: nowrap; }
.download-btn:hover { background: var(--rot); color: #fff; text-decoration: none; }
.grid-seite { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.seitenleiste { background: var(--hintergrund-alt); border-radius: var(--radius); padding: 24px 26px; }
.grid-seite h2 { font-size: 1.2rem; }
.kontakt-spalten h2 { font-size: .95rem; }
.seitenleiste-titel { font-size: 1.05rem; margin: 0 0 .6em; }
.seitenleiste-liste { list-style: none; margin: 0 0 1em; padding: 0; }
.seitenleiste-liste li { border-top: 1px solid var(--rand); }
.seitenleiste-liste a { display: block; padding: 8px 0; font-weight: 500; color: var(--dunkel); }
.seitenleiste-liste a[aria-current="page"] { color: var(--rot); font-weight: 600; }
.galerie.eins { grid-template-columns: 1fr; }
.kontakt-aufruf { margin-top: 40px; }
.kontakt-aufruf h2 { margin-top: 0; font-size: 1.15rem; }
.rechtstext.artikel { max-width: 82ch; }
.pdf-info { font-weight: 500; font-size: .78rem; opacity: .85; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hinweis-klein { font-size: .82rem; color: var(--text-hell); }
.rechtstext { max-width: 78ch; }
.rechtstext h2 { font-size: 1.3rem; margin-top: 1.8em; }
.rechtstext h3 { font-size: 1.05rem; margin-top: 1.4em; }

/* Karte mit Einwilligung (lädt Google Maps erst nach Klick) */
.karten-box { background: var(--hintergrund-alt); border: 1px solid var(--rand); border-radius: var(--radius); padding: 28px; min-height: 280px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.karten-box iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
.karten-box.geladen { padding: 0; background: none; border: 0; }

/* Fußzeile */
.site-footer { background: var(--dunkel); color: #f1f5f9; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .footer-titel { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 .6em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-logo { margin-bottom: 16px; background: #fff; padding: 10px 14px; border-radius: 8px; box-sizing: content-box; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; padding-bottom: 22px; font-size: .82rem; }

/* Kleine Bildschirme */
@media (max-width: 980px) {
  .container { padding: 0 20px; }
  .topbar-inner { flex-direction: column; }
  .topbar-right { align-items: flex-start; }
  .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .nav-toggle { display: inline-block; order: 3; }
  .call-btn { order: 2; }
  .main-nav { order: 4; width: 100%; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .main-nav li { border-top: 1px solid var(--rand); }
  .main-nav a, .submenu-toggle { display: block; width: 100%; text-align: left; padding: 12px 0; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 16px; min-width: 0; }
  .grid-2, .grid-3, .grid-seite, .footer-grid { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .download-liste li.mit-bild { grid-template-columns: 1fr; gap: 20px; }
  .download-liste li { padding: 20px; }
  .download-liste li.mit-bild { padding: 14px 14px 22px; }
  .download-text { padding: 0 6px; }
  section { padding: 44px 0; }
  h2 { font-size: 1.5rem; }
  .slide-pfeil { width: 34px; height: 34px; }
  .slide-pfeil.zurueck { left: 10px; }
  .slide-pfeil.vor { right: 10px; }
}
@media (max-width: 520px) {
  .call-label { display: none; }
  .logo img { width: 160px; }
  .galerie, .galerie.zwei { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
}
@media print {
  .topbar, .site-header, .site-footer, .slideshow, .skip-link { display: none; }
}
