/* Land-Harz-Praxis – Ergaenzungen Okt. 2026 (nach dem Inline-CSS geladen) */

/* Buttons sollen die Schrift erben */
button, input, select, textarea { font-family: inherit; }

/* Hero: zweite Zeile immer Terracotta */
.hero-title-main em { color: var(--terracotta) !important; font-style: normal !important; }

/* ---------- Hero-Foto (Desktop/Tablet) ---------- */
.hero-portrait-col.foto-spalte { display: none; }
.foto-rahmen {
    background: var(--harz-sand-soft);
    padding: 10px;
    border-radius: 22px;
}
.foto-rahmen img {
    display: block; width: 100%; height: auto;
    aspect-ratio: 427 / 560; object-fit: cover; object-position: 50% 0;
    border-radius: 14px;
}
.slot-card { border-top: 2px solid var(--terracotta) !important; }

@media (min-width: 744px) and (min-height: 501px) {
  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 48px;
    align-items: start;
  }
  .hero-portrait-col.foto-spalte { display: block; justify-self: end; width: 100%; }
}
/* Tablet hoch: Foto schmaler, Kachel bleibt wie bisher unter dem Text */
@media (min-width: 744px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 32px; }
}
@media (min-width: 1400px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 72px; }
  .hero-portrait-col.foto-spalte { max-width: 380px; }
}

/* Tablet hoch: Kachel klebte am linken Rand – an den Container angleichen */
@media (min-width: 680px) and (max-width: 1024px) and (orientation: portrait) {
  .hero .slot-card { margin-left: 28px !important; width: calc(100% - 56px) !important; }
}

/* Handy hoch: etwas mehr Luft ueber der H1 (Header ist fixed, 52px) */
@media (max-width: 679px) and (orientation: portrait) {
  .hero { padding-top: 76px !important; }
}
/* 680–767 hoch: Header ist dort fixed (95px) und lag ueber der H1 – Bugfix */
@media (min-width: 680px) and (max-width: 767px) and (orientation: portrait) {
  .hero { padding-top: 119px !important; }
}

/* ---------- Akkordeon (Leistungen + allgemein) ---------- */
.service-h { margin: 0; font: inherit; }
.akk-btn {
    width: 100%; background: none; border: 0; padding: 0;
    text-align: left; color: inherit; cursor: pointer;
    min-height: 44px;
}
.akk-btn:focus-visible { outline: 2px solid var(--olive-haupt); outline-offset: 4px; border-radius: 6px; }
.service-item-title { display: block; }
.service-body, .service-item.active .service-body { max-height: none !important; overflow: visible; padding-top: 16px; padding-bottom: 8px; }
.service-body[hidden] { display: none !important; }
html:not(.js) .service-item .service-toggle-icon { display: none; }

/* Unterlagen: zuklappbar */
.unterl-btn { display: flex; align-items: center; gap: 12px; font-size: inherit; font-weight: inherit; color: inherit; }
.akk-zeichen {
  width: 28px; height: 28px; flex-shrink: 0;
  border: 1px solid rgba(56,78,51,0.25); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.akk-zeichen::before { content: "+"; font-size: 18px; line-height: 1; color: var(--olive-haupt); }
.akk-btn[aria-expanded="true"] .akk-zeichen::before { content: "–"; }
html:not(.js) .akk-zeichen { display: none; }
#unterl-box[hidden] { display: none; }
.download-v2-head.akk-item:not(.offen) { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }

/* ---------- Handy: Fliesstext mind. 17px ---------- */
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
    body { font-size: 1.0625rem; }
    main p:not(.hero-location):not(.swipe-hint):not(.leistungs-label-mob):not(.platzh-mini),
    main li, .service-desc, .hero-lead-text, .journal-sub {
        font-size: 1.0625rem !important;
        line-height: 1.6 !important;
    }
}

/* ---------- Woran Sie uns messen duerfen ---------- */
.mess-sec { background: var(--bg); padding: 88px 0 96px; }
.mess-kopf {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px; align-items: end; margin-bottom: 48px;
}
.mess-titel { font-weight: 600 !important; line-height: 1.1; margin: 0; }
.mess-titel em { font-style: normal; font-weight: 400; color: var(--terracotta); display: block; }
.mess-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mess-kachel {
  background: var(--surface);
  border: 1px solid rgba(56,78,51,0.14);
  border-radius: 14px;
  padding: 28px 28px 30px;
}
.mess-kachel h3 {
  font-family: var(--font-sans) !important; font-weight: 600; font-size: 1.25rem;
  color: var(--olive-haupt); margin: 0 0 12px; line-height: 1.3;
}
/* Platzhalter: sichtbar als "fehlt noch" */
.platzh {
    color: var(--text-muted);
    border: 1px dashed var(--harz-sand);
    background: var(--harz-sand-soft);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    margin: 0;
}
@media (max-width: 1024px) {
  .mess-sec { padding: 64px 0 72px; }
  .mess-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .mess-kopf { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
}
@media (max-width: 599px) {
  .mess-sec { padding: 48px 0 56px; }
  .mess-grid { grid-template-columns: 1fr; gap: 14px; }
  .mess-kachel { padding: 22px 20px 24px; }
  .mess-titel { font-size: 2rem !important; }
}

/* ---------- Instagram ---------- */
.insta-sec { background: var(--surface); padding: 80px 0; border-top: 1px solid rgba(56,78,51,0.08); }
.insta-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.insta-kopf .sec-title { margin: 0 0 8px; }
.insta-sub { color: var(--text-muted); margin: 0; }
.insta-profil { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.insta-avatar { width: 44px; height: 44px; border-radius: 50%; background: #F2ECE4; color: var(--olive-haupt); display: inline-flex; align-items: center; justify-content: center; }
.insta-handle { font-weight: 600; color: var(--text); }
.insta-folgen {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
    background: var(--olive-haupt); color: #fff; border-radius: 8px;
    font-weight: 600; text-decoration: none; transition: background .2s;
}
.insta-folgen .ig-icon { width: 18px; height: 18px; }
.insta-folgen:hover { background: var(--olive-dark); }
.insta-folgen:focus-visible { outline: 2px solid var(--olive-haupt); outline-offset: 3px; }
.insta-folgen[aria-disabled="true"] { cursor: default; }
/* Beispielbeitraege: gestaltete Kacheln ohne Fotos (Farben aus den Variablen, AA-Kontrast) */
.insta-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 660px; list-style: none; margin: 0; padding: 0; }
.insta-post {
  aspect-ratio: 1 / 1; border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--harz-sand-soft); color: var(--olive-haupt); overflow: hidden; margin: 0;
}
.insta-post-kopf { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; opacity: .95; }
.insta-post-titel { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; hyphens: auto; }
.insta-post-sand { background: var(--harz-sand-soft); color: var(--olive-haupt); }
.insta-post-olive { background: var(--olive-haupt); color: #fff; }
.insta-post-salbei { background: var(--olive-soft); color: var(--olive-haupt); }
.insta-post-terra { background: var(--terracotta-caps, #8B5E4D); color: #fff; }
.insta-post-ivory { background: var(--bg); color: var(--olive-haupt); border: 1px solid var(--harz-sand); }
.insta-post-harz { background: var(--harz-sand); color: var(--text); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1024px) { .insta-raster { max-width: 560px; } }
/* Desktop: Kopf links, Raster rechts – keine leere Flaeche neben dem Raster */
@media (min-width: 1025px) {
  .insta-sec .container { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,620px); gap: 56px; align-items: center; }
  .insta-kopf { flex-direction: column; align-items: flex-start; margin-bottom: 0; }
  .insta-raster { max-width: none; }
}
@media (max-width: 599px) {
  .insta-sec { padding: 52px 0; }
  .insta-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 380px; }
  .insta-post { padding: 12px; border-radius: 12px; }
  .insta-post-titel { font-size: 1.0625rem; }
}

/* ---------- Termin-Leiste & Hilfe-Button (Korrekturen EasyPeecy) ---------- */
/* Handy hoch: Seitenende nicht von der Leiste verdecken */
@media (max-width: 679px) and (orientation: portrait) {
  body { padding-bottom: 104px; }
  .mobile-bottom-bar .bar-hint { font-size: 0.875rem !important; }
}
/* Handy quer: Leiste einzeilig + Hilfe-Button rechts daneben */
@media (orientation: landscape) and (max-height: 500px) {
    body { padding-bottom: 60px; }
    .mobile-bottom-bar { bottom: 8px !important; right: 64px !important; padding: 3px 3px 3px 12px !important; }
    .mobile-bottom-bar::before {
        content: "Termin buchen";
        font-size: 0.875rem; font-weight: 600; color: var(--olive-haupt);
        white-space: nowrap; padding-right: 8px;
    }
    .mobile-bottom-bar .bar-loc-btn { padding: 0 12px !important; min-height: 38px; }
    .mobile-bottom-bar .bar-city { font-size: 0.875rem !important; }
    .mobile-bottom-bar .bar-hint {
        position: absolute !important; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); white-space: nowrap;
    }
    .mobile-bottom-bar .terracotta-dot { width: 8px; height: 8px; }
    .pxa-btn { left: auto !important; right: calc(12px + env(safe-area-inset-right, 0px)) !important; bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; width: 44px !important; height: 44px !important; }
    .pxa-btn svg { width: 21px !important; height: 21px !important; }
}
/* Nest Hub & Co. (quer, wenig Hoehe): Hero kuerzer, Hilfe-Button nach rechts */
@media (min-width: 768px) and (min-height: 501px) and (max-height: 700px) and (orientation: landscape) {
  .pxa-btn { left: auto !important; right: calc(14px + env(safe-area-inset-right, 0px)) !important; bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important; width: 44px !important; height: 44px !important; }
}

/* Handy: Fachrichtungs-Zeile lesbar statt Versalien */
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .hero-location { font-size: 0.875rem !important; text-transform: none !important; letter-spacing: normal !important; }
}

/* Hinweis unter den Platzhaltern (wie lang der Text sein soll) */
.platzh-mini { font-size: 0.875rem; color: var(--text-muted); margin: 6px 0 0; }
.mess-kachel { display: flex; flex-direction: column; }

/* Handy: nichts unter 13px (ausser Footer-Kleingedrucktes) */
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .brand-mark span, .leistungs-label-mob, .swipe-hint, .service-tag-pill,
  .sec-tag, .badge-wernigerode, .badge-ilsenburg { font-size: 0.8125rem !important; }
  .compass-btn-title, .team-card-role-eq, .locations-sec td { font-size: 0.875rem !important; }
}
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  html body .loc-box span.badge-wernigerode, html body .loc-box span.badge-ilsenburg,
  html body .leistungs-kachel span, html body .mob-standort-zeile span, html body .hero .hero-chip, html body .chip-arrow span { font-size: 0.8125rem !important; }
}

/* ---------- Mobil-Hero: Foto gross oben mit Namenszeile (Variante C) ---------- */
.foto-rahmen { position: relative; }
.foto-name { display: none; }
@media (max-width: 679px) and (orientation: portrait) {
  .hero-layout { display: flex; flex-direction: column; }
  .hero-portrait-col.foto-spalte { display: block !important; order: -1; margin: 0 0 20px; }
  .foto-rahmen { padding: 6px; border-radius: 18px; }
  .foto-rahmen img {
      border-radius: 14px;
      aspect-ratio: 4 / 3; max-height: 38vh; max-height: 38svh;
      object-position: 50% 16%;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .hero > .container { padding-right: 16px !important; }
  .hero-layout { display: grid !important; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 20px; align-items: center; }
  .hero-portrait-col.foto-spalte { display: block !important; grid-row: 1; grid-column: 1; }
  .hero-text-col { grid-row: 1; grid-column: 2; }
  .foto-rahmen { padding: 6px; border-radius: 16px; }
  .foto-rahmen img { border-radius: 12px; aspect-ratio: auto; height: 50vh; object-position: 50% 14%; }
}
@media (max-width: 679px) and (orientation: portrait), (orientation: landscape) and (max-height: 500px) {
    .foto-name {
        display: block;
        margin: 0; padding: 7px 6px 2px;
        color: var(--text);
        font-size: 0.8125rem !important; line-height: 1.35 !important; font-weight: 600;
    }
}

/* Handy hoch: Hilfe-Button NEBEN der Termin-Leiste (Leiste rueckt 52px ein) – verdeckt so keinen Inhalt
   und liegt nicht auf der Leiste; Leiste 89px hoch, Knopf 44px mittig dazu */
@media (max-width: 679px) and (orientation: portrait) {
  .mobile-bottom-bar { right: calc(64px + env(safe-area-inset-right, 0px)) !important; }
  .pxa-btn {
    left: auto !important; right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(34px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
/* Handy quer: Orts-Buttons in der Leiste wie die Buttons im Entwurf */
@media (orientation: landscape) and (max-height: 500px) {
    .mobile-bottom-bar .bar-loc-btn {
        background: var(--olive-soft) !important;
        border: 1px solid rgba(56,78,51,0.18) !important;
        border-radius: 8px !important;
        min-height: 40px; margin-left: 4px;
        color: var(--olive-haupt);
        font-family: var(--font-sans);
        transition: background .2s, border-color .2s;
    }
    .mobile-bottom-bar .bar-loc-btn:hover { background: #E2EADD !important; border-color: var(--olive-haupt) !important; }
    .mobile-bottom-bar .bar-loc-btn:focus-visible { outline: 2px solid var(--olive-haupt); outline-offset: 2px; }
    .mobile-bottom-bar .bar-city { color: var(--olive-haupt) !important; }
    .mobile-bottom-bar .bar-divider { display: none !important; }
}

/* Bilder von Dr. Mueller: Sandrahmen wie beim Hero-Foto */
.bild-rahmen { background: #F2ECE4; padding: 6px; border-radius: 14px; line-height: 0; }
.bild-rahmen img { display: block; width: 100%; height: auto; border-radius: 9px; }

/* Leistungen: Bild neben dem Text im offenen Feld (Quellen 640px breit, Anzeige max. 220px) */
.service-body:not([hidden]) { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 28px; align-items: start; }
.leist-text { min-width: 0; }
.leist-bild { order: 2; width: 220px; margin-top: 4px; }
@media (max-width: 1024px) { .leist-bild { width: 180px; } }
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .service-body:not([hidden]) { grid-template-columns: minmax(0,1fr); }
  .leist-bild { order: -1; width: 100%; max-width: 280px; margin: 0 0 12px; }
}

/* Digitaler Empfang: Banner „Digital ankommen“ – Bild links, Text-Panel rechts.
   Self-Check-in-Foto ist nur 360x640: Bildspalte hoechstens 360px (und 40 %), damit es nie hochskaliert wird */
.digi-banner { display: grid; grid-template-columns: minmax(0, min(40%, 360px)) minmax(0, 1fr); margin-top: 28px; border-radius: 14px; overflow: hidden; background: var(--olive-haupt); }
.digi-banner-bild { min-height: 300px; position: relative; }
.digi-banner-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 5%; display: block; }
.digi-banner-text > * { max-width: 560px; }
.nowrap-wort { white-space: nowrap; }
.digi-banner-text { padding: 36px 40px 32px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.digi-banner-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #DCE5D6; margin: 0 0 12px; }
.digi-banner-titel { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1.2; font-weight: 600; color: #fff; margin: 0 0 14px; }
.digi-banner-text p:last-child { font-size: 1rem; line-height: 1.6; color: #fff; margin: 0; }
/* Mobil/schmales Tablet (bis 767px): nebeneinander – Bild links ~40 % in voller Bannerhoehe, gruenes Feld rechts.
   Ausschnitt rechtslastig, damit Dr. Mueller UND die Patientin im Bild bleiben. */
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .digi-banner { grid-template-columns: minmax(0, min(40%, 360px)) minmax(0, 1fr); }
  .digi-banner-bild { min-height: 0; position: relative; }
  .digi-banner-bild img { position: absolute; inset: 0; object-position: 50% 5%; }
  .digi-banner-text { padding: 22px 22px 20px; }
  .digi-banner-titel { font-size: 1.3rem; margin-bottom: 10px; }
  /* gegen die globale Handy-Regel „main p … 1.0625rem !important“: Bannertext 15px */
  #empfang .digi-banner-text p:last-child { font-size: 0.9375rem !important; line-height: 1.55; }
  #empfang .digi-banner-eyebrow { font-size: 0.75rem !important; }
}
/* Handy hochkant (unter 600px): Bild (3:4) links gefloatet, Kicker + Ueberschrift oben buendig auf Kopfhoehe,
   Text laeuft daneben weiter und dann in voller Breite darunter.
   Bildhoehe = Kicker (16) + 6 + Ueberschrift (2 x 1,22 x --tf) + 10 + 3 Textzeilen (--zn x 24,8) - 4,
   damit die Bildunterkante genau mit der 3. Textzeile abschliesst (keine Einzelwoerter am Bildrand). */
@media (max-width: 599px) and (orientation: portrait) {
  .digi-banner { display: flow-root; container-type: inline-size; padding: 14px 12px 18px;
    --tf: clamp(14px, calc(8.7cqi - 7.8px), 22px); --zn: 3; }
  .digi-banner-text { display: block; padding: 0; }
  .digi-banner-text > * { max-width: none; }
  .digi-banner-bild { float: left; min-height: 0; height: calc(16px + 6px + 2.44 * var(--tf) + 10px + var(--zn) * 24.8px - 4px);
    aspect-ratio: 3 / 4; margin: 0 12px 0 0; border-radius: 10px; overflow: hidden; }
  .digi-banner-bild img { object-position: 50% 0%; }
  #empfang .digi-banner-eyebrow { margin: 0 0 6px; font-size: 0.6875rem !important; line-height: 16px; letter-spacing: 0.04em; white-space: nowrap; }
  .digi-banner-titel { font-size: var(--tf); line-height: 1.22; margin: 0 0 10px; text-wrap: balance; }
  .digi-banner-text p:last-child { margin: 0; text-wrap: pretty; }
  #empfang .digi-banner-text p:last-child { font-size: 1rem !important; line-height: 1.55 !important; }
}
/* Sehr schmale Handys (unter 350px): nur 2 Textzeilen neben dem Bild, sonst wird die Spalte fuer die Ueberschrift zu schmal */
@media (max-width: 349px) and (orientation: portrait) {
  .digi-banner { --zn: 2; --tf: clamp(14px, calc(8.7cqi - 6.2px), 22px); }
}
}
}

.team-karte-foto-cm { background: #F2ECE4 !important; padding: 0 !important; overflow: hidden; }
.team-karte-bild { width: 100%; height: 100%; object-fit: cover; object-position: 35% 30%; display: block; }

/* Unterseiten: Bild oben in der Seitenleiste */
.seiten-bild { width: 100%; max-width: 360px; }
.panel-bild { width: 100%; max-width: 320px; margin: 0 0 18px; }


/* Unterseiten Desktop: Inhalt rechts neben der festen Termin-Karte */
@media (min-width: 1025px) {
  body:has(#pc-termin-card) .container:not(header .container) {
    padding-left: max(28px, calc(256px - max(0px, (100vw - 1220px) / 2)));
  }
}


/* Impressum / Datenschutz (Platzhalter) */
.recht-text { max-width: 760px; }
.recht-text .platzh { margin: 0 0 22px; }
.recht-hinweis { margin-top: 40px; background: var(--olive-soft); border: 1px solid rgba(56,78,51,.18); border-radius: 14px; padding: 22px 26px; }
.recht-hinweis h2 { margin-top: 0; }
.recht-hinweis li { margin-bottom: 6px; }

/* Unterseiten: lange Textbloecke zuklappbar (gleiches Akkordeon wie Startseite) */
.akk-kopf .akk-btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: inherit; letter-spacing: inherit; }
.akk-kopf .akk-btn > span:first-child { min-width: 0; }
.akk-panel[hidden] { display: none !important; }
.akk-panel > :first-child { margin-top: 0; }

/* Hausarztmedizin: Band "Von akut bis Vorsorge" nach Vorlage – 4 Karten, oben Bild, nicht eingeklappt */
.haus-band { padding: 0 0 8px; }
.haus-band-oben { background: var(--olive-haupt); padding: 56px 0 120px; }
.haus-karten { margin-top: -88px !important; position: relative; }
.haus-band-kopf { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; color: #fff; }
.haus-band-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #DCE5D6; margin: 0 0 10px; }
.haus-band h2 { font-family: var(--font-serif); font-size: 2.4rem; line-height: 1.15; color: #fff; margin: 0; }
.haus-band-kopf > p { color: #fff; font-size: 1rem; line-height: 1.6; margin: 0; }
.haus-karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.haus-karte { position: relative; background: #fff; border: 1px solid rgba(56,78,51,0.12); border-radius: 14px; overflow: hidden; padding: 0 0 8px; box-shadow: 0 6px 22px rgba(33,37,34,0.06); }
.haus-karte-bild { background: #F2ECE4; padding: 6px 6px 0; }
.haus-karte-bild img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; display: block; }
.haus-karte-zahl { margin: 6px 6px 0; aspect-ratio: 4 / 3; border-radius: 9px; background: var(--olive-dark, #2A3A26); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.haus-zahl-gross { font-family: var(--font-serif); font-size: 3.4rem; line-height: 1; }
.haus-zahl-text { font-size: 0.875rem; font-weight: 600; margin-top: 8px; }
.haus-karte-nr { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--olive-haupt); color: #fff; font-size: 0.8125rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.haus-karte h3 { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.25; color: var(--olive-haupt); margin: 18px 20px 0; }
.haus-karte .leistungs-liste { margin: 10px 20px 8px; padding: 0; }
.haus-karte .leistungs-liste li { font-size: 0.95rem; padding: 8px 0; }
@media (max-width: 1024px) {
  .haus-karten { grid-template-columns: repeat(2, 1fr); }
  .haus-band-kopf { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 599px) {
  .haus-band-oben { padding: 36px 0 110px; }
  .haus-band h2 { font-size: 1.9rem; }
  .haus-karten { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .haus-karten { grid-template-columns: repeat(2, 1fr); }
}

/* Ernährungsmedizin: "Ein Blick. Auf das Ganze." nach Vorlage – Bild links mit Bildunterschrift-Karte, Text rechts */
.blick { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; margin: 0 0 64px; }
.blick-bild { position: relative; margin: 0; padding-bottom: 28px; }
.blick-bild img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.blick-bild figcaption { position: absolute; left: -12px; bottom: 0; max-width: 62%; background: #fff; color: var(--olive-haupt); font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.3; padding: 14px 18px; border-radius: 10px; box-shadow: 0 8px 24px rgba(33,37,34,0.10); border: 1px solid rgba(56,78,51,0.12); }
.blick-text h2 { font-family: var(--font-serif); font-size: 2.4rem; line-height: 1.15; color: var(--olive-haupt); margin: 0 0 16px; }
.blick-text h2 em { font-style: normal; color: var(--terracotta-caps, #8B5E4D); display: block; }
.blick-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; margin: 0; max-width: 520px; }
@media (max-width: 1024px) { .blick { gap: 32px; } .blick-text h2 { font-size: 2rem; } }
@media (max-width: 767px) {
  .blick { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .blick-bild { max-width: 420px; }
  .blick-bild figcaption { left: 10px; max-width: 75%; font-size: 0.98rem; }
  .blick-text h2 { font-size: 1.75rem; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .blick { grid-template-columns: 5fr 6fr; gap: 24px; }
  .blick-text h2 { font-size: 1.6rem; }
}

/* Unterseiten-Kopf: Linkleiste passt erst ab ca. 1260px – darunter Burger-Menü (wie Startseite), sonst wird der Kopf rechts abgeschnitten */
@media (max-width: 1259px) {
  .nav-inner:has(.nav-termin-btn) .nav-menu { display: none; }
  .nav-inner:has(.nav-termin-btn) .burger-btn { display: flex !important; }
}

/* Digital ankommen nach Vorlage: 4 Anliegen sichtbar, Rest hinter „Weitere Anliegen (+)“ */
.digital-journal .journal-grid { margin-bottom: 18px; }
.digital-journal .journal-grid-mehr { margin-bottom: 0; }
.weitere-anliegen { margin: 0 0 18px; }
.weitere-kopf { margin: 0; font-size: 1rem; line-height: 1.3; }
.akk-btn.weitere-btn {
  display: inline-flex; width: auto; align-items: center; gap: 14px;
  background: #fff; border: 1px solid rgba(56,78,51,0.18); border-radius: 12px;
  padding: 8px 12px 8px 20px; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--olive-haupt);
}
.akk-btn.weitere-btn:hover { border-color: var(--olive-haupt); }
#weitere-box[hidden] { display: none; }
@media (min-width: 1025px) {
  .digital-journal .journal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .digital-journal .journal-card { padding: 24px; }
}
/* Tablet (ab 680px, nicht Handy quer): Raster statt Wisch-Karussell */
@media (min-width: 680px) and (max-width: 1024px) and (min-height: 501px) {
  .digital-journal .journal-grid {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important; scroll-snap-type: none !important; padding-bottom: 0 !important; gap: 12px !important;
  }
  .digital-journal .journal-card { flex: none !important; min-width: 0; }
}
/* Wisch-Reihe (wiederverwendbar: Digital ankommen 01–04 und Weitere Anliegen 05–08, Standorte) – nur Handy hoch bis 679px und Handy quer.
   Karten nebeneinander, naechste schaut heraus, alle so hoch wie die hoechste. */
@media (max-width: 679px) and (orientation: portrait), (orientation: landscape) and (max-height: 500px) {
  .wisch-reihe {
    display: flex !important; flex-wrap: nowrap !important; align-items: stretch !important;
    overflow-x: auto !important; scroll-snap-type: x mandatory !important; scrollbar-width: none;
    gap: 12px !important; padding-bottom: 6px !important; margin-bottom: 4px;
  }
  .wisch-reihe::-webkit-scrollbar { display: none; }
  .wisch-reihe > * { flex: 0 0 84% !important; scroll-snap-align: start; min-width: 0; }
  .wisch-knopf.wisch-knopf { display: block; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .wisch-reihe > * { flex-basis: 46% !important; }
}
/* Hinweis-Knopf unter der Wisch-Reihe */
.wisch-knopf {
  display: none; margin: 2px auto 14px; padding: 8px 14px; min-height: 36px;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--text-muted);
}
.wisch-knopf:hover { color: var(--olive-haupt); }
.wisch-knopf[hidden] { display: none !important; }
.wisch-knopf:focus-visible { outline: 2px solid var(--olive-haupt); outline-offset: 2px; }

/* ---------- Hero quer (Desktop, Tablet quer, Nest Hub) nach Vorlage: vollflaechig ----------
   Foto rechts in voller Hero-Hoehe, nie groesser als nativ (427x640). Links Raumton + dunkles
   Praxisgruen hinter dem Text, Namenskarte und Termin-Kachel unten rechts. */
@media (min-width: 768px) and (min-height: 501px) and (orientation: landscape) {
  .hero {
    --hh: min(640px, calc(100vh - 78px));
    --fw: calc(var(--hh) * 427 / 640);
    --fr: max(28px, calc(50% - 582px));
    --fl: calc(100% - var(--fr) - var(--fw));
    min-height: var(--hh); padding: 40px 0 !important;
    display: flex; align-items: center;
    background-color: #DCC4AC !important;
    background-image:
      linear-gradient(90deg, #22301F 0%, #2A3A26 calc(var(--fl) - 140px), rgba(42,58,38,0.92) calc(var(--fl) - 70px), rgba(42,58,38,0) calc(var(--fl) + 30px)),
      linear-gradient(180deg, #EBD3BA 0%, #DCC6B0 45%, #D6B89F 100%) !important;
  }
  .hero > .container { position: static; width: 100%; }
  .hero-layout { display: block !important; }
  .hero-text-col { position: relative; z-index: 2; max-width: min(600px, calc(100vw - var(--fr) - var(--fw) - 28px - 40px)) !important; }
  .hero-portrait-col.foto-spalte {
    display: block !important; position: absolute; z-index: 1; bottom: 0; right: var(--fr);
    width: var(--fw); height: var(--hh); max-width: none !important; padding: 0 !important; margin: 0;
  }
  .hero .foto-rahmen { padding: 0; background: none; border-radius: 0; height: 100%; position: static; }
  .hero .foto-rahmen picture { display: block; height: 100%; }
  .hero .foto-rahmen img {
    width: 100%; height: 100%; max-height: 640px; aspect-ratio: auto; object-fit: cover; object-position: 50% 0;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%);
    mask-composite: intersect;
  }
  /* Text hell auf Gruen */
  .hero .hero-eyebrow { color: #D5CBBF; opacity: 1; }
  .hero .hero-title-main { color: #fff; }
  .hero .hero-title-main em { color: #E3B29C !important; }
  .hero .hero-sub { color: #F2ECE4; opacity: 1; }
  .hero .hero-location { color: #D5CBBF; }
  .hero .hero-lead-text { color: #E9E4DA; }
  .hero .hero-divider { background: linear-gradient(90deg, #E3B29C 0%, rgba(227,178,156,0.3) 100%); }
  .hero .hero-chip:focus-visible { outline-color: #fff; }
  /* Namenskarte + Termin-Kachel unten rechts */
  .hero .slot-card { z-index: 3; right: calc(var(--fr) + 16px) !important; bottom: 24px !important; width: min(300px, calc(var(--fw) - 32px)) !important; }
  .hero .foto-name {
    display: block; position: absolute; z-index: 3; right: 16px; bottom: 210px;
    background: #2A3A26; color: #fff; border-radius: 10px; padding: 8px 14px; margin: 0;
    font-size: 0.875rem; line-height: 1.35; text-align: right;
  }
  .hero .fn-name { display: block; font-weight: 600; }
  .hero .fn-titel { display: block; font-size: 0.8125rem; color: #E9E4DA; }
  .hero .fn-trenn { display: none; }
}
/* Nest Hub & Co. (quer, wenig Hoehe): kompakter */
@media (min-width: 768px) and (min-height: 501px) and (max-height: 700px) and (orientation: landscape) {
  .hero { padding: 24px 0 !important; }
  .hero .slot-card { bottom: 16px !important; }
  .hero .foto-name { bottom: 200px; }
}

/* Unterseiten: Grid-Spalten duerfen schmaler als ihr laengstes Wort werden (360px: 4px Ueberstand) */
.inhalt-grid > * { min-width: 0; }
.akk-kopf .akk-btn > span:first-child { overflow-wrap: break-word; hyphens: auto; }

/* ================= Mobil: Bild + Text sinnvoll anordnen (statt stumpf untereinander) ================= */
/* Leistungen (Startseite): kleines Bild rechts, Text fliesst daneben */
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .service-body:not([hidden]) { display: block; }
  .service-body::after { content: ""; display: block; clear: both; }
  .leist-bild { float: right; width: 40%; max-width: 160px; margin: 4px 0 8px 14px; padding: 4px; border-radius: 12px; }
  .leist-bild img { border-radius: 8px; }
}
/* „Ganzheitlich versorgt“ bis 599px hochkant: Bild als flacher Streifen UEBER dem Text (16:7, Sandrahmen),
   Text darunter volle Breite – kein schmaler Textkanal neben einem kleinen Bild */
@media (max-width: 599px) and (orientation: portrait) {
  .leist-bild { float: none; width: 100%; max-width: 640px; margin: 2px 0 12px; }
  .leist-bild img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 0%; }
  .leist-bild img[src*="ernaehrungsberatung"] { object-position: 50% 8%; }
  .leist-bild img[src*="impfung"] { object-position: 50% 55%; }
  /* alle Chips der 3 Akkordeons gleich hoch (Platz fuer zwei Zeilen, z. B. „Land-Harz GesundheitsCheck“) */
  #leistungen .service-tag-pill { min-height: calc(2.6em + 12px); }
}
/* Stichwort-Chips: alle gleich hoch, Text mittig, normaler Zeilenabstand beim Umbruch */
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  #leistungen .service-tags { grid-auto-rows: 1fr; align-items: stretch; }
  #leistungen .service-tag-pill { display: flex; align-items: center; justify-content: center; line-height: 1.3 !important; padding: 6px 10px !important; min-height: 36px; }
}
/* Hausarzt-Karten, Handy hoch: Vorschaubild links, Titel daneben, Liste darunter */
@media (max-width: 599px) and (orientation: portrait) {
  .haus-karte { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "bild titel" "liste liste"; column-gap: 14px; padding: 10px 10px 4px; }
  .haus-karte-bild, .haus-karte-zahl { grid-area: bild; margin: 0; }
  .haus-karte-bild { padding: 4px; border-radius: 10px; }
  .haus-karte-bild img { aspect-ratio: 1 / 1; object-position: 45% 35%; border-radius: 7px; }
  .haus-karte-zahl { aspect-ratio: 1 / 1; padding: 8px; }
  .haus-zahl-gross { font-size: 2.2rem; }
  .haus-zahl-text { font-size: 0.8125rem; line-height: 1.2; margin-top: 4px; }
  .haus-karte h3 { grid-area: titel; align-self: center; margin: 0; font-size: 1.2rem; }
  .haus-karte .leistungs-liste { grid-area: liste; margin: 8px 4px 4px; }
  .haus-karte-nr { top: 4px; left: 4px; width: 28px; height: 28px; font-size: 0.75rem; }
}
/* Ernaehrung "Ein Blick": flacher Bildstreifen mit Bildunterschrift-Karte */
@media (max-width: 599px) {
  .blick-bild { max-width: 640px; }
  .blick-bild img { aspect-ratio: 16 / 9; object-position: 50% 30%; }
}
/* Praevention: Seitenleisten-Bild unten als flacher Streifen statt Grossbild */
@media (max-width: 599px) {
  .sidebar .seiten-bild { max-width: 640px; }
  .sidebar .seiten-bild img { aspect-ratio: 21 / 9; object-fit: cover; object-position: 60% 45%; }
}

/* ================= Standorte: Telefon antippbar, Kacheln mobil kompakter ================= */
#standort .nw, .loc-tel { white-space: nowrap; }
.loc-tel { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.loc-tel:focus-visible { outline: 2px solid var(--olive-haupt); outline-offset: 2px; border-radius: 3px; }
@media (max-width: 679px) and (orientation: portrait), (orientation: landscape) and (max-height: 500px) {
  #standort .loc-box { padding: 14px 16px !important; }
  #standort .loc-box > span:first-child { font-size: 0.9375rem !important; padding: 1px 8px !important; margin-bottom: 6px !important; }
  #standort .loc-box h3 { font-size: 1.25rem !important; margin-bottom: 6px !important; }
  #standort .loc-box p { font-size: 0.9375rem !important; line-height: 1.4 !important; margin: 0 0 2px !important; }
  #standort .loc-box p:nth-of-type(3) { margin: 6px 0 8px !important; }
  #standort .loc-box p:nth-of-type(4) { margin: 0 !important; letter-spacing: 0.04em; }
  /* Telefon: Zeile darf 44px hoch werden, damit das Ziel gross genug ist */
  #standort .loc-tel { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; vertical-align: middle; margin: -8px 0; }
  #standort .hours-table { margin-top: 4px !important; }
  #standort .hours-table td { font-size: 0.9375rem !important; line-height: 1.3; padding: 4px 0 !important; vertical-align: top; }
  #standort .hours-table td:first-child { white-space: nowrap; padding-right: 10px !important; }
  #standort .loc-box .btn-smart { margin-top: 12px !important; }
}
@media (pointer: coarse) {
  #standort .loc-tel { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; vertical-align: middle; margin: -10px 0; }
}

/* Desktop: Hilfe-Button rechts unten – ueber dem Demo-Modus-Kasten (69px, nur >1024px auf einigen Seiten), nicht darauf */
@media (min-width: 1025px) {
  body:has(#demo-buttons-wrap) ~ .pxa-btn { bottom: calc(101px + env(safe-area-inset-bottom, 0px)) !important; }
  body:has(#demo-buttons-wrap) ~ .pxa-panel { bottom: calc(165px + env(safe-area-inset-bottom, 0px)); max-height: min(680px, calc(100vh - 185px)); }
}

/* Handy quer: Kopf „Digitaler Empfang“ wie hochkant gestapelt (sonst 4 Zeilen in schmaler Spalte bei 667px);
   Hero-Standort-Knoepfe passen wieder in eine Zeile (bei 667px fehlten 5px -> Umbruch unter die Termin-Leiste) */
@media (orientation: landscape) and (max-height: 500px) {
  #empfang .journal-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
  #empfang .journal-title { font-size: 1.6rem; }
  #empfang .journal-sub { max-width: 100%; }
  .hero .hero-chip { padding-left: 7px; padding-right: 7px; }
}

/* Handy hochkant schmal: Praxis-Kompass-Karte mit 18px statt 44px Rand – die 3 Anliegen-Knoepfe bekommen Platz
   (vorher „Sym-ptom“, „Ernäh-rungs-medizin“ in drei Zeilen) */
@media (max-width: 479px) and (orientation: portrait) {
  #kompass.compass-sec, #kompass .compass-sec { padding-left: 18px !important; padding-right: 18px !important; }
  #kompass .compass-btn { padding: 10px 6px !important; }
}

/* Tablet hochkant (bis 900px): Kopf „Digitaler Empfang“ gestapelt statt 3–4 Zeilen in schmaler Spalte;
   „Ihre Unterlagen“ nicht mehr zweizeilig neben dem Plus */
@media (min-width: 680px) and (max-width: 900px) and (min-height: 501px) {
  #empfang .journal-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
  #empfang .journal-title { font-size: 2rem; }
  #empfang .journal-sub { max-width: 100%; }
  .download-v2-head h3 { white-space: nowrap; }
}
/* Tablet (680–1024px): Instagram-Raster nutzt die volle Breite statt 560px mit leerer rechter Haelfte */
@media (min-width: 680px) and (max-width: 1024px) and (min-height: 501px) {
  .insta-raster { max-width: none; }
}
@media (min-width: 900px) and (max-width: 1024px) and (min-height: 501px) {
  .insta-raster { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .insta-post { padding: 12px; }
  .insta-post-titel { font-size: 1rem; }
}
/* Handy quer ab 760px: Instagram wie am Desktop – Kopf links, Raster rechts (statt Raster links und leerer rechter Haelfte) */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 760px) {
  .insta-sec .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 28px; align-items: center; }
  .insta-kopf { flex-direction: column; align-items: flex-start; margin-bottom: 0; }
  .insta-raster { max-width: none; gap: 10px; }
  .insta-post { padding: 10px; }
  .insta-post-titel { font-size: 0.95rem; }
}
/* Handy quer: Banner mind. 220px hoch, damit Kopf der Frau UND Terminal-Display im Self-Check-in-Bild bleiben */
@media (orientation: landscape) and (max-height: 500px) {
  .digi-banner { min-height: 220px; }
}
