/* =========================================================
   Zahnarztpraxis Dr. Sven Döring – Stylesheet
   Farben, Schriften und Abstände wie auf der bisherigen Seite.
   ========================================================= */

/* ---------- Schriften (lokal, keine Google-Verbindung) ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/roboto-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

/* ---------- Farben & Maße ---------- */
:root {
  --braun-dunkel: #5e4444;  /* Überschriften, Menü */
  --braun: #705454;         /* Fußbereich, Akzente */
  --beige: #d3c8c1;         /* Sprechzeiten-Kasten, Logo */
  --menue-aktiv: #bcabab;
  --text: #828282;
  --hg-seite: #f6f6f6;
  --hg-hell: #fafafa;
  --weiss: #fff;
  --breite: 1300px;
  --kopf: 85px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 20px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 14px/26px "Roboto", system-ui, sans-serif;
  color: var(--text);
  background: var(--hg-seite);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--braun-dunkel); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus-visible { color: var(--menue-aktiv); }
:focus-visible { outline: 2px solid var(--braun); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { color: var(--braun-dunkel); margin: 0 0 .6em; font-weight: 400; }
p { margin: 0 0 1.4em; }
.container { width: 100%; max-width: calc(var(--breite) + 40px); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 10px; top: -60px; z-index: 200; background: var(--braun); color: #fff; padding: 8px 16px; }
.skip-link:focus { top: 10px; color: #fff; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--kopf);
  background: var(--weiss);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.site-header .container { height: 100%; display: flex; align-items: flex-start; }
.logo { flex: 0 0 auto; display: block; }
.logo img { height: 115px; width: auto; }
.logo .logo-mobil { display: none; }

.main-nav { margin-left: 24px; height: 100%; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; height: 100%; }
.main-nav a {
  display: block; padding: 0 17px; line-height: var(--kopf);
  font-size: 14px; font-weight: 500; letter-spacing: .025px; text-transform: uppercase;
  color: var(--braun-dunkel);
}
.main-nav a:hover, .main-nav a[aria-current="page"], .main-nav a.is-active { color: var(--menue-aktiv); }

.nav-toggle {
  display: none; margin-left: auto; align-self: center;
  width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--braun-dunkel); position: relative; transition: transform .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }


/* ---------- Startbild ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  overflow: hidden; color: #fff; text-align: center;
  padding: calc(var(--kopf) + 120px) 20px 60px;
}
.hero picture, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
}
.hero-content { position: relative; max-width: 650px; }
.hero h1 {
  color: #fff; font-size: 70px; line-height: 70px; font-weight: 600; margin: 0 0 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,.4);
}
.hero .hero-adresse {
  font-size: 16px; font-weight: 600; letter-spacing: 1px; margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,.4);
}
.hero .hero-adresse a { color: inherit; }
.hero .hero-adresse a:hover { color: var(--beige); }

/* Hinweis „Aktuelles“ (ersetzt das frühere Popup) */
.hinweis {
  position: relative; margin-top: 40px; max-width: 520px;
  background: rgba(255,255,255,.94); color: var(--text);
  padding: 18px 26px; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.15);
}
.hinweis strong { display: block; color: var(--braun-dunkel); font-size: 18px; font-weight: 400; margin-bottom: 4px; }
.hinweis p { margin: 0; }
.hinweis a { font-weight: 500; }

/* ---------- Abschnitt: Arzt & Sprechzeiten ---------- */
.section { padding: 100px 0; }
.section-hell { background: var(--hg-hell); }
.section-weiss { background: var(--weiss); }

.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.intro-grid .portrait { width: 100%; aspect-ratio: 1; object-fit: cover; }
.intro-text h2 { font-size: 24px; line-height: 1.4; margin-top: 0; }
.intro-text .zitat { font-size: 18px; line-height: 30px; color: var(--braun-dunkel); margin-bottom: 1.4em; }

.sprechzeiten { background: var(--beige); padding: 30px 30px 26px; color: #fff; }
.sprechzeiten .vorzeile { margin: 0; text-align: center; color: var(--braun); font-style: italic; font-size: 18px; line-height: 24px; }
.sprechzeiten h2 { color: #fff; text-align: center; font-size: 36px; font-weight: 300; line-height: 1.2; margin: 4px 0 18px; }
.sprechzeiten ul { list-style: none; margin: 0; padding: 0; }
.sprechzeiten li { display: flex; align-items: baseline; gap: 4px; font-size: 16px; font-weight: 500; line-height: 36px; }
.sprechzeiten li::before { content: ""; order: 1; flex: 1 1 auto; min-width: 12px; border-bottom: 1px dotted #fff; transform: translateY(-5px); }
.sprechzeiten li > span:last-child { order: 2; text-align: right; }

/* ---------- Abschnitt: Philosophie ---------- */
.philosophie {
  background-color: #fff;
  background-image: url("../img/keine-angst-1920.jpg");
  background-image: image-set(url("../img/keine-angst-1920.webp") type("image/webp"), url("../img/keine-angst-1920.jpg") type("image/jpeg"));
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  min-height: 820px; display: flex; align-items: center;
}
.philosophie .text { max-width: 47%; }
.philosophie h2, .zitat-section h2 { font-size: 36px; font-weight: 300; line-height: 1.2; margin-bottom: 30px; }
.philosophie-bild { display: none; }

@media (max-width: 1500px) and (min-width: 1001px) {
  .philosophie {
    background-image: url("../img/keine-angst-1200.jpg");
    background-image: image-set(url("../img/keine-angst-1200.webp") type("image/webp"), url("../img/keine-angst-1200.jpg") type("image/jpeg"));
  }
}

/* ---------- Abschnitt: Zitat ---------- */
.zitat-section { padding: 100px 0; background: var(--hg-seite); text-align: center; }
.zitat-section p { color: var(--text); font-size: 36px; font-weight: 300; line-height: 43px; margin: 0; }

/* ---------- Abschnitt: Leistungen ---------- */
.section-titel { font-size: 44px; font-weight: 300; line-height: 1.2; text-align: center; margin-bottom: 50px; }
.leistungen-grid { list-style: none; margin: 0 auto; padding: 0 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 22px; }
.leistungen-grid a { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--braun-dunkel); }
.leistungen-grid img { width: 120px; height: 100px; margin-bottom: 14px; }
.leistungen-grid span { font-size: 24px; line-height: 1.3; }
.leistungen-grid a:hover span { color: var(--menue-aktiv); }

/* ---------- Abschnitt: Anfahrt ---------- */
.anfahrt figure { margin: 0; }
.anfahrt img { width: 100%; }
.anfahrt figcaption { font-size: 12px; line-height: 20px; text-align: right; margin-top: 6px; }
.anfahrt figcaption a { color: var(--text); text-decoration: underline; }

/* ---------- Unterseiten ---------- */
.page { padding: calc(var(--kopf) + 50px) 0 90px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px 110px; }
.page h1 { font-size: 24px; line-height: 43px; margin-bottom: 20px; }
.page h2 { font-size: 20px; line-height: 1.5; margin: 1.6em 0 .6em; }
.page h3 { font-size: 17px; line-height: 1.5; margin: 1.4em 0 .5em; }
.page .untertitel { font-size: 20px; line-height: 1.5; margin: 0 0 1em; }
.page ul { padding-left: 20px; margin: 0 0 1.4em; }
.page .bild-rechts { float: right; width: 300px; margin: 6px 0 20px 30px; }
.page .inhalt::after { content: ""; display: table; clear: both; }
.page .inhalt a { text-decoration: underline; }
.page .caps { text-transform: none; }

.sidebar h2 { font-size: 20px; margin: 0 0 30px; line-height: 1.5; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin-bottom: 10px; }
.sidebar a { color: var(--braun); font-size: 13px; }
.sidebar a:hover, .sidebar a[aria-current="page"] { color: var(--menue-aktiv); }

/* Aktuelles-Einträge */
.meldung { margin-bottom: 2.4em; }
.meldung h2 { margin-top: 0; }
.meldung time { display: block; font-size: 12px; color: var(--menue-aktiv); margin-bottom: 4px; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--braun); color: #fff; }
.footer-top { padding: 110px 0 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 30px; }
.site-footer h2 { color: #fff; font-size: 24px; line-height: 36px; margin-bottom: 31px; }
.site-footer p { line-height: 24px; margin: 0 0 1.2em; }
.site-footer a { color: #fff; font-weight: 700; }
.site-footer a:hover { color: var(--beige); }
address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { line-height: 24px; }
.footer-bottom { text-align: center; padding: 22px 0; font-size: 13px; color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom a { color: rgba(255,255,255,.85); font-weight: 400; margin: 0 8px; }
.footer-bottom p { margin: 0; }

/* Nach-oben-Knopf */
.to-top {
  position: fixed; right: 23px; bottom: 23px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid #e8e8e8; background: rgba(255,255,255,.6);
  display: grid; place-items: center; color: #cdcdcd;
  transition: opacity .3s ease, visibility .3s ease;
}
.to-top::before { content: ""; width: 12px; height: 12px; border-left: 3px solid currentColor; border-top: 3px solid currentColor; transform: translateY(3px) rotate(45deg); }
.to-top:hover { color: var(--braun); border-color: var(--beige); }
.to-top.is-hidden { opacity: 0; visibility: hidden; }

/* =========================================================
   Tablet & Smartphone
   ========================================================= */
/* Kopfbereich mit Handy-Menü, sobald das volle Menü nicht mehr in eine Zeile passt */
@media (max-width: 1200px) {
  :root { --kopf: 70px; }
  .site-header .container { align-items: center; }
  .logo .logo-desktop { display: none; }
  .logo .logo-mobil { display: block; height: 50px; width: auto; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: var(--kopf); left: 0; right: 0; height: auto; margin: 0;
    background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.08);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .no-js .main-nav { display: block; position: static; }
  .main-nav ul { flex-direction: column; height: auto; padding: 6px 0 12px; }
  .main-nav a { line-height: 46px; padding: 0 24px; border-top: 1px solid #f0eceb; }
}

@media (max-width: 1000px) {

  .hero { min-height: 75vh; min-height: 75svh; padding-top: calc(var(--kopf) + 70px); }
  .hero h1 { font-size: 44px; line-height: 50px; }

  .intro-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid .sprechzeiten { grid-column: 1 / -1; }

  .philosophie { background-image: none; min-height: 0; display: block; padding-bottom: 0; }
  .philosophie .text { max-width: none; }
  .philosophie-bild {
    display: block; height: 460px; margin-top: 20px;
    background-image: url("../img/keine-angst-mobil.jpg");
    background-image: image-set(url("../img/keine-angst-mobil.webp") type("image/webp"), url("../img/keine-angst-mobil.jpg") type("image/jpeg"));
    background-size: contain; background-position: center bottom; background-repeat: no-repeat;
  }
  .zitat-section p { font-size: 26px; line-height: 36px; }

  .leistungen-grid { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section, .zitat-section { padding: 60px 0; }
  .hero h1 { font-size: 34px; line-height: 40px; }
  .hero .hero-adresse { font-size: 14px; letter-spacing: .5px; }
  .hero .hero-adresse .trenner { display: block; height: 0; overflow: hidden; }
  .intro-grid { grid-template-columns: 1fr; }
  .sprechzeiten { padding: 24px 18px 20px; }
  .sprechzeiten li { font-size: 15px; }
  .section-titel { font-size: 34px; margin-bottom: 36px; }
  .philosophie h2 { font-size: 30px; }
  .zitat-section p { font-size: 22px; line-height: 32px; }
  .leistungen-grid span { font-size: 19px; }
  .footer-top { padding: 60px 0 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page .bild-rechts { float: none; width: 100%; margin: 0 0 20px; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* Druckansicht */
@media print {
  .site-header, .nav-toggle, .to-top, .hinweis { display: none !important; }
  .hero { min-height: 0; color: #000; padding: 20px 0; }
  .hero picture { display: none; }
  .hero h1, .hero .hero-adresse { color: #000; text-shadow: none; }
  .page { padding-top: 0; }
}

/* Unterseite ohne Seitenleiste (Datenschutz) */
.page-grid.ohne-sidebar { grid-template-columns: minmax(0, 900px); }
a[href^="tel:"] { white-space: nowrap; }
