/* zahnarzt-dr-liske.de -- responsives Layout nach Designvorlage (Inter, Sidebar 200px, mobil Sticky-Bar + Overlay-Menue).
   Ersetzt layout.css, standard.css, print.css, ie.css. Schrift Inter wird lokal gehostet (DSGVO). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: optional; src: url("fonts/inter-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: optional; src: url("fonts/inter-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: optional; src: url("fonts/inter-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: optional; src: url("fonts/inter-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --green: #006633;
  --grey-text: #4a4a4a;
  --grey-sub: #666666;
  --line: #cccccc;
  --line-soft: #dddddd;
  --blue: #000066;
  --link: #0000ff;
  --text: #1a1a1a;
  --bg: #fbfbfb;
  --bg-soft: #f9f9f9;
  --paper: #fff;
  --border-soft: #efefef;
  --caption: #333;
  --red: #f00;
  --overlay-bg: #fbfbfb;
  --font: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  --page-max: 900px;
  --sidebar: 200px;
  --gap: 20px;
}

html { -webkit-text-size-adjust: 100%; box-sizing: border-box; }
/* Weiches Scrollen erst nach der ersten Nutzeraktion (Klasse aus site.js): beim Seitenaufruf mit #anker muss der Sprung sofort erfolgen,
   mit scroll-behavior: smooth auf html blieb Chromium sonst oben stehen (vollkeramik-veneers.php#mini). */
html.smooth { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  padding: 20px 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a[href] { color: var(--link); text-decoration: none; }
a[href]:hover { text-decoration: underline; }
/* Links im Fliesstext und Fuss unterstreichen (Barrierefreiheit: nicht nur Farbe); <a name> ohne href bleibt Text */
#content a[href], #footer a[href] { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
#content a[href]:hover, #footer a[href]:hover { text-decoration-thickness: 2px; }
#content a:not([href]) { color: inherit; text-decoration: none; }
#coin-slider a { text-decoration: none; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
p { margin: 0 0 15px; }

.page { max-width: var(--page-max); margin: 0 auto; padding: 0 15px; }

.skiplink { position: absolute; left: -999px; top: 0; }
.skiplink:focus { left: 15px; top: 10px; z-index: 2000; padding: .4rem .6rem; background: #fff; color: var(--green); border: 1px solid var(--green); }

/* ---- Banner ------------------------------------------------------------- */
.site-header { text-align: center; margin-bottom: 20px; }
.banner { display: inline-block; width: 100%; max-width: 800px; height: auto; }

/* ---- Titel / Sticky-Bar ------------------------------------------------- */
.site-bar { margin-bottom: 25px; }
.title { margin: 0; font-weight: 600; line-height: 1.3; }
.title1 { display: block; font-size: 22px; letter-spacing: -0.5px; color: var(--green); margin-bottom: 5px; }
.title2 { display: block; font-size: 16px; font-weight: 400; color: var(--grey-sub); }
.nav-toggle { display: none; }

/* ---- Seitenleiste ------------------------------------------------------- */
.menu { list-style: none; margin: 0 0 45px; padding: 0; }
.menu li { border-bottom: 1px solid var(--green); padding: 10px 0; text-align: right; }
.menu a { color: var(--grey-text); font-size: 14px; font-weight: 500; }
.menu a::after { content: " \203A"; color: var(--green); margin-left: 5px; }
.menu a:hover, .menu a[aria-current] { color: var(--green); text-decoration: none; }
.menu a[aria-current] { font-weight: 600; }
.sidebar-contact { padding-left: 12px; border-left: 3px dotted var(--line); font-size: 13px; color: var(--grey-sub); }
.sidebar-contact h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--green); }
.sidebar-contact p { margin: 0 0 12px; }
.sidebar-contact a { color: var(--green); }
.sidebar-contact h2.navi-cross { margin: 18px 0 0; font-size: 14px; font-weight: 700; }
.sidebar-contact .navi-cross a::after { content: " \203A"; }

/* ---- Inhalt ------------------------------------------------------------- */
#content {
  border: 1px solid var(--border-soft);
  padding: 25px;
  min-height: 400px;
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--paper);
}
#content::after { content: ""; display: table; clear: both; }
#content h2 { margin: 0 0 20px; font-size: 18px; font-weight: 600; color: var(--blue); }
#content h3 { margin: 25px 0 12px; font-size: 16px; font-weight: 600; font-style: italic; color: var(--blue); border-bottom: 1px dotted var(--line); padding-bottom: 8px; }
#content h4 { margin: 20px 0 8px; font-size: 14px; font-weight: 600; color: var(--blue); }
#content h5 { margin: 15px 0 6px; font-size: 14px; font-weight: 600; color: var(--text); }
#content ul, #content ol { padding-left: 20px; margin: 0 0 15px; }
#content ul { list-style-type: square; }
#content li { margin-bottom: 8px; }
/* Bildbloecke in <center>: Flex-Raster mit festem Abstand, Zeilenumbrueche per Breite statt <br> */
#content center { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 10px; margin: 28px 0; }
#content center br { display: none; }
#content center + center { margin-top: -18px; }   /* zwei Bildbloecke direkt hintereinander: 28 - 18 = 10px wie innerhalb eines Blocks */
#content center p { flex: 0 0 100%; margin: 0; text-align: center; }
em { font-weight: 600; font-style: normal; }
.space { color: var(--grey-sub); margin: 0 6px; }
span.greenCaps { color: var(--green); font-size: 150%; }
.highlight { color: var(--red); letter-spacing: 1px; font-size: 107%; }
#ganzheitliche-zahnheilkunde ul li { margin-bottom: 13px; }
ul#sensotaping li { margin-bottom: 0; }
#cmd li { margin: 1em 0; }
#backlink { white-space: nowrap; }
.page-links { display: flex; justify-content: space-between; gap: 10px; }

/* Behandlungsschwerpunkte: ganzer Eintrag verlinkt, Thema gross, Hinweis klein */
#content ul.schwerpunkte { list-style: none; padding: 0; margin: 0; }
#content ul.schwerpunkte li { margin: 0; padding: 8px 0; border-bottom: 1px dotted var(--line); }
#content ul.schwerpunkte li:last-child { border-bottom: 0; }
#content ul.schwerpunkte a { display: block; text-decoration: none; color: inherit; }
#content ul.schwerpunkte strong { display: block; font-size: 15px; font-weight: 600; color: var(--green); }
#content ul.schwerpunkte .more { display: inline-block; margin-top: 0; font-size: 11px; color: var(--grey-sub); text-decoration: underline; text-underline-offset: 2px; }
#content ul.schwerpunkte a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Bilder */
#content img { max-width: 100%; height: auto; margin: 5px; }
#content img[align="right"] { float: right; margin: 0 0 12px 20px; }
#content img[align="left"] { float: left; margin: 0 20px 12px 0; }
#content center img { margin: 0; max-width: 100%; }
.imgleft, .imgright { float: left; width: 47%; }
.imgright { float: right; padding-right: 8px; }
.imgleft img, .imgright img, img.imgleft, img.imgright { width: 250px; max-width: 100%; }
#content div { max-width: 100%; }
/* Galerieseiten (body.galerie: Praxis-Zahnersatz-Unterseiten + Labor-Fotogalerien, 2026-10-13): Bildmasse fixiert,
   Paare 250x182, Einzelbilder 500x371 (width/height-Attribute im Markup); abweichende Seitenverhaeltnisse der Fotos (max. ~5 %)
   werden beschnitten, nicht verzerrt. Kein Layout-Sprung, Anker stabil. */
body.galerie #content img { object-fit: cover; }
body.galerie #content img[width="250"] { aspect-ratio: 250 / 182; }
body.galerie #content img[width="500"] { aspect-ratio: 500 / 371; }

/* Bildvergleich als Karten (z. B. PACT) */
.image-comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; padding: 20px; background: var(--bg-soft); }
.image-card { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.image-card img { width: auto; max-width: 100%; height: auto; align-self: center; margin: 0; border: 1px solid var(--line-soft); }
.image-caption { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--caption); }

/* Tabellen im Inhalt (biographie, prophylaxe) */
#content table { max-width: 100%; border-collapse: collapse; }
#bio table { width: 100%; }
.axeltd { width: auto; max-width: 560px; margin-bottom: 23px; }
table#axelson td:first-child { width: 2.5rem; vertical-align: top; }

/* Galerie-Kacheln (frueher Coin-Slider) */
@media (min-width: 769px) {
  ul#fotogalerie { margin-right: 30px; }
  #content div:has(> div > ul#fotogalerie) #coin-slider { grid-template-columns: repeat(2, 1fr); }   /* Labor-Fotogalerie: immer 2 Spalten neben der Linkliste */
}
#coin-slider { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 15px; margin: 20px 0; }
#coin-slider a { display: block; color: var(--grey-text); font-size: 11px; line-height: 1.2; }
#coin-slider a:hover { color: var(--green); text-decoration: none; }
#coin-slider img { width: 100%; height: auto; margin: 0; aspect-ratio: 280 / 205; object-fit: cover; border: 1px solid var(--line-soft); }
#coin-slider span { display: block; padding: 6px 0; }

/* Lightbox (a.fancybox -> dialog) */
.lightbox { max-width: min(96vw, 1100px); padding: 10px; border: 1px solid var(--line); background: var(--paper); }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox img { display: block; max-width: 100%; max-height: 85vh; height: auto; margin: 0 auto; }
.lightbox p { margin: 10px 0 0; font-size: 13px; color: var(--grey-sub); text-align: center; }
.lightbox button { margin: 10px auto 0; display: block; font: inherit; padding: 6px 14px; }

/* Zwei-Klick-Karte */
.map { margin: 15px 0; padding: 15px; border: 1px solid var(--line); background: var(--bg-soft); }
.map-note { margin: 0 0 10px; font-size: 13px; }
.map-load { font: inherit; padding: 8px 14px; color: #fff; background: var(--green); border: 0; cursor: pointer; }
.map iframe { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; border: 0; }
.map:has(iframe) { padding: 0; border: 0; background: none; }

/* ---- Fuss --------------------------------------------------------------- */
#footer { margin-top: 25px; font-size: 13px; color: var(--grey-sub); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; }
.footer-copy { margin-top: 10px; text-align: center; }

/* =========================================================================
   DESKTOP (ab 769px): Grid mit Sidebar links; Titel, Inhalt und Fuss in der rechten Spalte
   ========================================================================= */
@media (min-width: 769px) {
  .page {
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    grid-template-areas:
      "banner banner"
      ".      title"
      "side   main"
      "side   footer";
    column-gap: var(--gap);
    align-items: start;
  }
  .site-header { grid-area: banner; }
  .site-bar { grid-area: title; }
  .sidebar { grid-area: side; }
  #content { grid-area: main; }
  #footer { grid-area: footer; }
  /* Telefonnummern: auf Desktop als normaler Text, Link nur auf Mobil sinnvoll */
  a[href^="tel:"] { color: inherit; text-decoration: none; pointer-events: none; cursor: text; }
  /* Galerieseiten: zwei Fotos je Zeile als zentriertes Paar (250 + 20 + 250px) wie die grossen Einzelbilder; der linke Rand
     ((100% - 520px) / 2) zentriert das Paar ohne Wrapper, unter 520px Inhaltsbreite schrumpfen beide auf 50% - 10px */
  body.galerie #content .imgleft, body.galerie #content .imgright { float: left; width: min(250px, calc(50% - 10px)); padding: 0; }
  body.galerie #content img.imgleft, body.galerie #content img.imgright, body.galerie #content .imgleft img, body.galerie #content .imgright img { margin: 0 0 10px; }
  body.galerie #content img.imgleft, body.galerie #content div.imgleft { margin-left: max(0px, calc(50% - 260px)); }
  body.galerie #content img.imgright, body.galerie #content div.imgright { margin-left: 20px; }
  body.galerie #content center:has(img + img) { gap: 20px; }
  body.galerie #content center:has(img + img) img { width: min(250px, calc(50% - 10px)); }
  /* Bildvergleich (zahnerhaltung, pact): Fotos buendig mit der linksbuendigen Bildunterschrift statt mittig in der Karte */
  .image-card img { align-self: flex-start; }
}

/* =========================================================================
   MOBIL (bis 768px): Banner, Sticky-Bar mit Burger, Overlay-Menue, Kontaktblock unter dem Inhalt
   ========================================================================= */
@media (max-width: 768px) {
  body { padding-top: 0; }
  html { scroll-padding-top: 5.5rem; }   /* Sprungziele (Anker, Skiplink) bleiben unter der Sticky-Titelleiste (bis ~80px) sichtbar */
  .page { display: flex; flex-direction: column; }
  .site-header { order: 0; margin-bottom: 0; }
  .site-bar { order: 1; }
  #content { order: 2; margin-top: 20px; padding: 15px; }
  .sidebar { order: 3; }
  #footer { order: 4; }
  .footer-row { justify-content: center; }

  .site-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 15px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  }
  .title1 { font-size: 14px; font-weight: 600; letter-spacing: 0; margin: 0 0 2px; }
  .title2 { font-size: 12px; font-weight: 400; color: var(--grey-sub); }

  .nav-toggle { display: block; background: none; border: 0; cursor: pointer; padding: 10px 5px; z-index: 1001; flex-shrink: 0; }
  .nav-toggle[hidden] { display: none; }
  .burger-lines { display: block; width: 32px; height: 2px; background: var(--green); position: relative; transition: background-color .2s; }
  .burger-lines::before, .burger-lines::after { content: ""; position: absolute; left: 0; width: 32px; height: 2px; background: var(--green); transition: transform .3s, top .3s; }
  .burger-lines::before { top: -7px; }
  .burger-lines::after { top: 7px; }
  .nav-toggle.active .burger-lines { background: transparent; }
  .nav-toggle.active .burger-lines::before { top: 0; transform: rotate(45deg); }
  .nav-toggle.active .burger-lines::after { top: 0; transform: rotate(-45deg); }

  /* Overlay-Menue nur mit JS; ohne JS steht das Menue unter dem Inhalt */
  .js #navigation { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; background: var(--overlay-bg); z-index: 999; padding: 80px 20px 20px; overflow-y: auto; opacity: 0; visibility: hidden; transition: none; }
  .js #navigation.show { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
  .menu { margin: 0; }
  .menu li { text-align: left; padding: 16px 0; }
  .menu a { font-size: 18px; }

  .sidebar-contact {
    margin-top: 30px;
    padding: 20px 20px 20px 30px;
    background: var(--paper);
    border: 1px solid var(--border-soft);
    border-left: 3px dotted var(--line);
    font-size: 13px;
    color: var(--grey-sub);
  }
  .sidebar-contact h2 { font-size: 15px; color: var(--green); }
  .sidebar-contact .desktop-only { display: none; }

  .image-comparison-grid { grid-template-columns: 1fr; gap: 30px; padding: 15px; }
  .imgleft, .imgright { float: none; width: auto; padding: 0; }
  .imgleft img, .imgright img, img.imgleft, img.imgright { width: 100%; }
  #content div[style*="float"] { float: none !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important; }
  #content img[align="right"], #content img[align="left"] { float: none; display: block; margin: 10px auto; }
  /* Fotos in <center> mobil einheitlich max. 267px breit (kleinstes Originalfoto), nie hochskaliert; width/height-Attribute reservieren den Platz (CLS) */
  #content center img { width: auto; max-width: min(267px, 100%); height: auto; margin: 0; }
  /* Text mobil immer linksbuendig (Fuss und Menue ausgenommen); Fotos in <center> bleiben mittig */
  #content center, #content center p, #content [align="center"] { text-align: left; }
  /* Galerieseiten mobil: alle Fotos gleich gross -- volle Breite und ein gemeinsames Seitenverhaeltnis */
  body.galerie #content center img { width: 100%; max-width: 100%; }
  body.galerie #content img[width] { aspect-ratio: 500 / 371; }
}

/* ---- Startseite: Bildmosaik als Grid (Desktop pixelgleich zur alten Tabelle, 629px) ---- */
body.start { background: var(--paper); }
.splash {
  max-width: 659px;
  margin: 6vh auto 0;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 318fr 101fr 210fr;
  grid-template-areas:
    "text ro  ro"
    "ml   mm  mr"
    "btn  btn ur";
}
.splash a { display: block; min-width: 0; }
.splash img { display: block; width: 100%; height: auto; }
/* Willkommenstext als Text statt Bitmap (frueher images/text.gif 318x136: Schrift #444, Linie #ded7cc am unteren Rand).
   Zwischen 481 und 658px schrumpft die Schrift mit der Spalte, damit der Block in der 136px-Reihe bleibt. */
.t-text { grid-area: text; display: flex; flex-direction: column; margin: 0 0 2px; padding: 0 12px 6px 0; border-bottom: 1px solid #ded7cc; font-size: clamp(11.5px, 2.15vw, 14px); line-height: 1.45; color: var(--grey-text); }
.t-text p { margin: 0; }
.t-text .t-hello { font-size: 1.15em; margin-bottom: .9em; }
.t-ro { grid-area: ro; align-self: end; }   /* wird der Text hoeher als das Foto: Luft oben statt Luecke zum Mosaik */
.t-ml { grid-area: ml; }
.t-mm { grid-area: mm; }
.t-mr { grid-area: mr; }
.t-ur { grid-area: ur; align-self: start; }
/* Buttons als Text statt Bitmap (frueher auswahl_za/auswahl_lab 118/122x114 mit Zickzack-Trennbild); Optik wie .sidebar-contact:
   gepunktete Linie links, gruene Ueberschrift, grauer Text, Aufforderung wie der Querverweis (.navi-cross) */
.t-buttons { grid-area: btn; display: flex; align-items: flex-end; gap: 20px; margin-top: 10px; }
a.t-btn { display: flex; flex-direction: column; width: 180px; min-height: 114px; padding: 14px 10px 0 12px; border-left: 3px dotted var(--line); color: var(--grey-sub); font-size: 13px; line-height: 1.4; text-decoration: none; }
a.t-btn strong { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--green); }
a.t-btn span { margin-bottom: 8px; }
a.t-btn em { margin-top: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--text); }
a.t-btn:hover { text-decoration: none; }
a.t-btn:hover strong, a.t-btn:hover em { text-decoration: underline; }
/* Uebergang: Browser mit noch gecachter alter index.html (Bitmaps text/auswahl_*/zzlinie*) sollen mit diesem CSS nicht zerfallen */
img.t-text { padding: 0; border: 0; }
.t-buttons img { width: auto; height: auto; max-width: 100%; }
@media (max-width: 30rem) {
  .splash { grid-template-columns: 1fr; grid-template-areas: "text" "ml" "btn"; margin-top: 3vh; }
  .splash .t-ro, .splash .t-mm, .splash .t-mr, .splash .t-ur { display: none; }
  .t-text { margin: 0; padding: 0 0 10px; font-size: 15px; line-height: 1.5; }
  .t-buttons { justify-content: flex-start; align-items: flex-start; margin-top: 10px; }
  a.t-btn { flex: 1 1 0; width: auto; max-width: 200px; min-height: 0; padding-top: 0; padding-right: 0; }
  a.t-btn em { margin-top: 0; }
}

/* ---- Druck -------------------------------------------------------------- */
@media print {
  body { padding: 0; }
  .skiplink, .nav-toggle, .sidebar, .banner, #footer { display: none; }
  .page { display: block; max-width: none; padding: 0; }
  .site-bar { position: static; box-shadow: none; border: 0; }
  #content { border: 0; padding: 0; min-height: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 80%; color: var(--grey-sub); }
}
