/* 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: swap; 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: swap; 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: swap; 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: swap; 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-soft: #f9f9f9;
  --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; 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: #fbfbfb;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
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 30px; 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(--green); }
.sidebar-contact h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.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 #efefef;
  padding: 25px;
  min-height: 400px;
  min-width: 0;
  overflow-wrap: anywhere;
  background: #fff;
}
#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 ul, #content ol { padding-left: 20px; margin: 0 0 15px; }
#content ul { list-style-type: square; }
#content li { margin-bottom: 8px; }
#content center { margin: 15px 0; }
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: #f00; 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; }

/* Bilder */
#content img { max-width: 100%; height: auto; margin: 5px; border-radius: 4px; }
#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-left: auto; margin-right: auto; }
.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%; }

/* 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); border-radius: 8px; }
.image-card { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.image-card img { width: auto; max-width: 100%; height: auto; align-self: flex-start; margin: 0; border: 1px solid var(--line-soft); border-radius: 4px; }
.image-caption { margin: 0; font-size: 13.5px; line-height: 1.5; color: #333; }

/* 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) */
#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: 13px; }
#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); border-radius: 6px; background: #fff; }
.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); border-radius: 6px; background: var(--bg-soft); max-width: 500px; }
.map-note { margin: 0 0 10px; font-size: 13px; }
.map-load { font: inherit; padding: 8px 14px; color: #fff; background: var(--green); border: 0; border-radius: 4px; cursor: pointer; }
.map iframe { display: block; width: 100%; max-width: 500px; aspect-ratio: 10 / 7; height: auto; border: 0; }

/* ---- Fuss --------------------------------------------------------------- */
#footer { margin-top: 25px; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--grey-sub); }

/* =========================================================================
   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; }
}

/* =========================================================================
   MOBIL (bis 768px): Banner, Sticky-Bar mit Burger, Overlay-Menue, Kontaktblock unter dem Inhalt
   ========================================================================= */
@media (max-width: 768px) {
  body { padding-top: 0; }
  .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; flex-direction: column; align-items: center; }

  .site-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 15px;
    background: #fff;
    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 { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; background: rgba(255, 255, 255, .97); z-index: 999; padding: 80px 20px 20px; overflow-y: auto; }
  .js #navigation.show { display: block; }
  .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(--bg-soft);
    border: 0;
    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"][style*="width"] { 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; }
  .map { max-width: none; }
}

/* ---- 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); }
}
