/* ============================================================
   Gesundheitszentrum Zwiesel – responsive.css
   Ergänzung zu style.css
   Breakpoints:
     ≤ 1100px  Großes Tablet / kleines Notebook
     ≤  991px  Tablet Landscape
     ≤  860px  Mobile Navigation (Burger) aktiv
     ≤  768px  Tablet Portrait
     ≤  600px  Großes Smartphone
     ≤  480px  Normales Smartphone
     ≤  375px  Kleines Smartphone (iPhone SE etc.)
     ≤  320px  Minimum-Breite
   ============================================================ */


/* ============================================================
   1 · GROSSES TABLET / KLEINES NOTEBOOK  (≤ 1100px)
   ============================================================ */
@media screen and (max-width: 1100px) {

  /* Navigation – etwas kompakter */
  ul.onepagenavi li a {
    padding: 8px 13px;
    font-size: 14px;
  }

  /* Rahmen-Innenabstand etwas schmaler */
  .rahmen { padding: 0 28px; }

  /* Logo-Galerie: 3 Spalten statt 4+ */
  ol.livesearchlist.menu-mit-bildern {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero-Text etwas kompakter */
  #startseite .ce-bodytext {
    padding: 48px 48px 44px;
  }
}


/* ============================================================
   2 · TABLET LANDSCAPE  (≤ 991px)
   ============================================================ */
@media screen and (max-width: 991px) {

  /* ── Navigation ── */
  ul.onepagenavi li a {
    padding: 7px 11px;
    font-size: 13.5px;
  }

  /* ── Layouts: 2-Spalten → 1-Spalte ── */
  .tx_cn-columns[data-cols="2"] .row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Rechte Spalte im "Das Gesundheitszentrum"-Block ausblenden
     (enthält nur Karte / Iframe) */
  #das-gesundheitszentrum .col-50:last-child {
    display: none;
  }

  /* Linke Spalte nimmt volle Breite */
  #das-gesundheitszentrum .col-50 {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }

  /* ── 3-Spalten → 1-Spalte ── */
  .tx_cn-columns[data-cols="3"] .row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Apotheken-Adressen: 3 → 1 Spalte, zentriert */
  .tx_cn-columns[data-cols="3"] .row .col-33 {
    text-align: center;
  }
  .text-right { text-align: center; }

  /* ── Sektions-Abstände ── */
  #das-gesundheitszentrum > div { padding: 64px 0; }
  #aerzte-und-fachbereiche > div { padding: 64px 0; }
  .frame-apo { padding: 64px 0 48px; }

  /* ── Filter-Leiste: vertikal stapeln ── */
  .balken > .rahmen {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 20px;
  }

  .filtersuche { flex: 1 1 auto; }

  .dropbtn {
    width: 100%;
    justify-content: center;
  }

  .dropdown-content {
    left: 0;
    right: 0;
    min-width: 100%;
    position: absolute;
  }

  /* ── Logo-Galerie: 2-3 Spalten ── */
  ol.livesearchlist.menu-mit-bildern {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
  }

  /* ── Footer ── */
  #footer .tx_cn-columns[data-cols="2"] .row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #footer ul { justify-content: flex-start; }
}


/* ============================================================
   3 · MOBILE NAVIGATION – BURGER  (≤ 860px)
   ============================================================ */
@media screen and (max-width: 860px) {

  /* Burger-Button einblenden */
  .mob_button { display: flex; }

  /* Desktop-Nav verstecken, als Dropdown positionieren */
  .navi {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--primary);
    padding: 12px 20px 16px;
    box-shadow: 0 8px 24px rgba(11,89,155,.15);
    z-index: 999;
  }

  .navi.open { display: block; }

  /* Nav-Rahmen als Anker für das Dropdown */
  #oben > .rahmen { position: relative; }

  ul.onepagenavi {
    flex-direction: column;
    gap: 4px;
  }

  ul.onepagenavi li a {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
    justify-content: flex-start;
  }
}


/* ============================================================
   4 · TABLET PORTRAIT  (≤ 768px)
   ============================================================ */
@media screen and (max-width: 768px) {

  /* ── Nav-Höhe verkleinern ── */
  :root { --nav-h: 66px; }

  .rahmen { padding: 0 20px; }

  #oben > .rahmen { padding: 0 20px; }

  /* Logo kleiner */
  .logo img { height: 44px; }

  /* ── Hero ── */
  #startseite .ce-gallery figure.image {
    height: clamp(280px, 62vw, 440px);
  }

  #startseite .ce-bodytext {
    padding: 28px 20px 26px;
  }

  #startseite .ce-bodytext p {
    font-size: clamp(22px, 6vw, 34px);
    max-width: 100%;
  }

  #startseite .ce-bodytext p strong {
    font-size: 12px;
    letter-spacing: .10em;
  }

  /* ── Überschriften ── */
  #das-gesundheitszentrum h1.ce-headline-center {
    font-size: clamp(22px, 5.5vw, 32px);
    margin-bottom: 36px;
  }

  #aerzte-und-fachbereiche h2.ce-headline-center {
    font-size: clamp(22px, 5.5vw, 32px);
    margin-bottom: 32px;
  }

  /* ── Sektions-Abstände ── */
  #das-gesundheitszentrum > div { padding: 52px 0; }
  #aerzte-und-fachbereiche > div { padding: 52px 0; }
  .frame-apo { padding: 52px 0 36px; }

  /* ── Logo-Galerie: 2 feste Spalten ── */
  ol.livesearchlist.menu-mit-bildern {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  ol.livesearchlist.menu-mit-bildern li > a {
    padding: 22px 16px 18px;
    gap: 10px;
  }

  ol.livesearchlist.menu-mit-bildern li img {
    max-width: 130px;
    max-height: 60px;
  }

  /* ── Filterleiste ── */
  .balken {
    border-radius: 12px;
    margin-bottom: 28px;
  }

  .balken > .rahmen {
    padding: 14px 16px;
    gap: 12px;
  }

  /* ── Apotheken-Icons ── */
  .frame-apo .col- {
    flex: 0 0 120px;
  }

  /* ── Apotheken-Teaser ── */
  .cn_multicontent_teaser {
    margin-bottom: 36px;
  }

  /* ── Footer ── */
  #footer { padding: 24px 0; }
  #footer .ce-bodytext p { text-align: center; }
  #footer ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}


/* ============================================================
   4 · GROSSES SMARTPHONE  (≤ 600px)
   ============================================================ */
@media screen and (max-width: 600px) {

  :root { --nav-h: 60px; }

  .rahmen { padding: 0 16px; }

  /* Logo noch kompakter */
  .logo img { height: 38px; }

  /* ── Hero ── */
  #startseite .ce-gallery figure.image {
    height: clamp(240px, 72vw, 360px);
  }

  #startseite .ce-bodytext {
    padding: 20px 16px 22px;
  }

  /* ── Sektions-Abstände ── */
  #das-gesundheitszentrum > div { padding: 44px 0; }
  #aerzte-und-fachbereiche > div { padding: 44px 0; }
  .frame-apo { padding: 44px 0 32px; }

  /* ── Logo-Galerie bleibt 2 Spalten, etwas kompakter ── */
  ol.livesearchlist.menu-mit-bildern {
    gap: 12px;
  }

  ol.livesearchlist.menu-mit-bildern li > a {
    padding: 18px 12px 16px;
    gap: 8px;
  }

  ol.livesearchlist.menu-mit-bildern li img {
    max-width: 110px;
    max-height: 52px;
  }

  ol.livesearchlist.menu-mit-bildern li .name {
    font-size: 13px;
  }

  ol.livesearchlist.menu-mit-bildern li .fach {
    font-size: 11px;
    padding: 5px 10px;
  }

  ol.livesearchlist.menu-mit-bildern li .detaillink {
    font-size: 12px;
    padding: 5px 14px;
  }

  /* ── Filter ── */
  #filter { font-size: 14px; height: 44px; }

  .dropbtn { font-size: 14px; height: 44px; }

  /* ── Apotheken-Icons ── */
  /* .frame-apo .col- { flex: 0 0 100px; }
  .frame-apo .ce-gallery figure {
    width: 68px;
    height: 68px;
  }
  .frame-apo .ce-gallery figure img {
    width: 34px;
    height: 34px;
  } */

  /* ── Apotheken-Adressen ── */
  .frame-schmal .tx_cn-columns[data-cols="3"] .row { gap: 24px; }

  /* ── Lightbox ── */
  .site-lightbox__dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 40px);
    margin: 20px auto;
    border-radius: 12px;
  }
}


/* ============================================================
   5 · NORMALES SMARTPHONE  (≤ 480px)
   ============================================================ */
@media screen and (max-width: 480px) {

  :root { --nav-h: 58px; }

  /* ── Navigations-Menü ── */
  .navi { padding: 10px 16px 14px; }

  ul.onepagenavi li a {
    padding: 11px 14px;
    font-size: 14.5px;
  }

  /* ── Hero ── */
  #startseite .ce-gallery figure.image {
    height: clamp(220px, 78vw, 320px);
  }

  #startseite .ce-bodytext p {
    font-size: clamp(20px, 7vw, 28px);
  }

  /* ── Überschriften ── */
  #das-gesundheitszentrum h1.ce-headline-center,
  #aerzte-und-fachbereiche h2.ce-headline-center {
    font-size: clamp(20px, 6.5vw, 28px);
    margin-bottom: 28px;
  }

  /* ── Sektions-Abstände ── */
  #das-gesundheitszentrum > div { padding: 36px 0; }
  #aerzte-und-fachbereiche > div { padding: 36px 0; }
  .frame-apo { padding: 36px 0 28px; }

  /* ── Filterbalken ── */
  .balken {
    border-radius: 10px;
    margin-bottom: 20px;
  }
  .balken > .rahmen { padding: 12px 14px; gap: 10px; }

  #filter {
    height: 42px;
    font-size: 14px;
    padding: 0 40px 0 14px;
  }

  .dropbtn {
    height: 42px;
    font-size: 14px;
    padding: 0 16px;
  }

  /* Dropdown bleibt volle Breite */
  .dropdown-content {
    max-height: 260px;
  }

  .dropdown-content li {
    padding: 9px 16px;
    font-size: 13.5px;
  }

  /* ── Logo-Galerie: 2 Spalten minimal ── */
  ol.livesearchlist.menu-mit-bildern {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }

  ol.livesearchlist.menu-mit-bildern li > a {
    padding: 16px 10px 14px;
    gap: 8px;
  }

  ol.livesearchlist.menu-mit-bildern li img {
    max-width: 96px;
    max-height: 46px;
  }

  /* ── Apotheken-Icons: 3-pro-Zeile → 2-pro-Zeile ── */
  .tx_cn-columns[data-cols="1"] .row {
    gap: 16px;
  }
  .frame-apo .col- { flex: 0 0 90px; }

  /* ── Teaser ── */
  .cn_multicontent_teaser p { font-size: 14px; }

  /* ── Footer ── */
  #footer { padding: 20px 0; }
  #footer ul { gap: 14px; }
  #footer ul li a { font-size: 13px; }
}


/* ============================================================
   6 · KLEINES SMARTPHONE  (≤ 375px)
   ============================================================ */
@media screen and (max-width: 375px) {

  :root { --nav-h: 56px; }

  .rahmen { padding: 0 14px; }

  /* ── Logo ── */
  .logo img { height: 34px; }

  /* ── Burger ── */
  .mob_button { width: 32px; height: 32px; }

  /* ── Hero ── */
  #startseite .ce-gallery figure.image {
    height: clamp(200px, 80vw, 300px);
  }

  #startseite .ce-bodytext {
    padding: 16px 14px 18px;
  }

  #startseite .ce-bodytext p {
    font-size: clamp(18px, 7.5vw, 24px);
  }

  #startseite .ce-bodytext p strong {
    font-size: 11px;
    letter-spacing: .08em;
  }

  /* ── Überschriften ── */
  #das-gesundheitszentrum h1.ce-headline-center,
  #aerzte-und-fachbereiche h2.ce-headline-center {
    font-size: 20px;
    margin-bottom: 24px;
  }

  /* ── Sektions-Abstände ── */
  #das-gesundheitszentrum > div { padding: 30px 0; }
  #aerzte-und-fachbereiche > div { padding: 30px 0; }
  .frame-apo { padding: 30px 0 24px; }

  /* ── Filter ── */
  .balken > .rahmen { padding: 10px 12px; gap: 8px; }

  #filter {
    height: 40px;
    font-size: 13.5px;
    padding: 0 36px 0 12px;
  }

  .dropbtn {
    height: 40px;
    font-size: 13.5px;
    padding: 0 14px;
    gap: 8px;
  }

  /* ── Logo-Galerie ── */
  ol.livesearchlist.menu-mit-bildern {
    gap: 8px;
  }

  ol.livesearchlist.menu-mit-bildern li > a {
    padding: 14px 8px 12px;
    gap: 7px;
  }

  ol.livesearchlist.menu-mit-bildern li img {
    max-width: 84px;
    max-height: 40px;
  }

  ol.livesearchlist.menu-mit-bildern li .name {
    font-size: 12px;
  }

  ol.livesearchlist.menu-mit-bildern li .fach {
    font-size: 10.5px;
    padding: 4px 8px;
  }

  ol.livesearchlist.menu-mit-bildern li .detaillink {
    font-size: 11.5px;
    padding: 5px 12px;
  }

  /* ── Apotheken-Icons ── */
  .frame-apo .ce-gallery figure {
    width: 60px;
    height: 60px;
  }
  .frame-apo .ce-gallery figure img {
    width: 30px;
    height: 30px;
  }
  .frame-apo .col- { flex: 0 0 80px; }
  .frame-apo .ce-bodytext p a { font-size: 12px; }

  /* ── Fließtext ── */
  body { font-size: 15px; }
  #das-gesundheitszentrum .ce-bodytext p { font-size: 14.5px; }

  /* ── Lightbox ── */
  .site-lightbox__dialog {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .site-lightbox__close {
    top: 6px;
    right: 8px;
  }
}


/* ============================================================
   7 · MINIMUM  (≤ 320px)
   ============================================================ */
@media screen and (max-width: 320px) {

  :root { --nav-h: 54px; }

  .rahmen { padding: 0 10px; }

  /* ── Logo ── */
  .logo img { height: 30px; }

  /* ── Hero ── */
  #startseite .ce-gallery figure.image {
    height: 200px;   /* Fester Wert – weniger als 200px macht keinen Sinn */
  }

  #startseite .ce-bodytext {
    padding: 12px 10px 14px;
  }

  #startseite .ce-bodytext p {
    font-size: 17px;
    line-height: 1.3;
  }

  #startseite .ce-bodytext p strong {
    font-size: 10px;
    letter-spacing: .06em;
  }

  /* ── Überschriften ── */
  #das-gesundheitszentrum h1.ce-headline-center,
  #aerzte-und-fachbereiche h2.ce-headline-center {
    font-size: 18px;
  }

  /* ── Sektions-Abstände ── */
  #das-gesundheitszentrum > div { padding: 24px 0; }
  #aerzte-und-fachbereiche > div { padding: 24px 0; }
  .frame-apo { padding: 24px 0 20px; }

  /* ── Filter ── */
  .balken { border-radius: 8px; margin-bottom: 16px; }
  .balken > .rahmen { padding: 8px 10px; gap: 8px; }

  #filter {
    height: 38px;
    font-size: 13px;
    padding: 0 32px 0 10px;
    border-radius: 8px;   /* weniger Platz → eckiger */
  }

  .dropbtn {
    height: 38px;
    font-size: 13px;
    padding: 0 12px;
    border-radius: 8px;
  }

  /* ── Logo-Galerie: 1 Spalte auf 320px ── */
  ol.livesearchlist.menu-mit-bildern {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  ol.livesearchlist.menu-mit-bildern li > a {
    flex-direction: row;          /* Horizontal: Logo + Text nebeneinander */
    align-items: center;
    text-align: left;
    padding: 14px 14px;
    gap: 14px;
  }

  ol.livesearchlist.menu-mit-bildern li img {
    max-width: 72px;
    max-height: 38px;
    flex-shrink: 0;
  }

  ol.livesearchlist.menu-mit-bildern li .name {
    font-size: 13px;
    text-align: left;
  }

  ol.livesearchlist.menu-mit-bildern li .fach {
    font-size: 10px;
    text-align: left;
    margin-top: 0;
    padding: 3px 8px;
  }

  ol.livesearchlist.menu-mit-bildern li .detaillink {
    display: none;   /* kein Platz – Link gilt für die gesamte Karte */
  }

  /* ── Apotheken-Icons ── */
  .tx_cn-columns[data-cols="1"] .row { gap: 12px; }
  .frame-apo .col- { flex: 0 0 72px; }
  .frame-apo .ce-gallery figure { width: 54px; height: 54px; }
  .frame-apo .ce-gallery figure img { width: 26px; height: 26px; }
  .frame-apo .ce-bodytext p a { font-size: 11px; }

  /* ── Fließtext ── */
  body { font-size: 14px; line-height: 1.65; }
  #das-gesundheitszentrum .ce-bodytext p { font-size: 14px; }
  #das-gesundheitszentrum .ce-bodytext ul li { font-size: 14px; }

  /* ── Footer ── */
  #footer { padding: 18px 0; }
  #footer ul { flex-direction: column; gap: 10px; align-items: flex-start; }
  #footer .ce-bodytext p { font-size: 12px; }
  #footer ul li a { font-size: 12px; }
}
