/* =========================================================
   0) Design-Variablen
   ========================================================= */
:root {
  --accent: #3B4628;
  --content-bg: #fff;
  --bg: #ffffff;
  --card: #bac5ac42;
  --muted: #6b7280;
  --text: #0a0a0a;
  --radius: 12px;
  --shadow: 0 10px 24px rgba(0,0,0,.06);
  --link: #0a0a0a;
  --link-hover: #1d3f77;
  --link-visited: #3B4628;
  --focus-ring: #3B4628;
}

/* =========================================================
   1) Base & Typografie
   ========================================================= */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.55;
  color: rgb(10 10 10 / 0.85);
  background: var(--bg);
}
h1, h2, h3, [id] { scroll-margin-top: 80px; }
h1,h2,h3,h4,h5,h6 { color: rgb(10 10 10 / 0.92); }
.muted { color: rgb(10 10 10 / 0.60); }
a { color: var(--link); }
a:hover, a:focus { color: var(--link-hover); }
a:visited { color: var(--link-visited); }
a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.visually-hidden{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* Layout-Helfer */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(.75rem, 3vw, 1rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}
main { background: var(--content-bg); }

/* =========================================================
   2) Header, Brand & Navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #EEEFDC;
  border-bottom: 1px solid var(--accent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

/* Brand (Logo + Text) */
.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: inherit; font-weight: 700;
}
.brand img { height: 90px; }
.brand span { font-size: 2rem; line-height: 1.5; color: var(--accent); }
.brand-text .break { display: block; } /* „Neurologie“ neue Zeile */

/* Navigation (Desktop) */
.nav { display: flex; gap: .5rem; flex-wrap: wrap; }
.nav a {
  padding: .5rem .7rem; border-radius: 8px;
  text-decoration: none; color: inherit;
  transition: background-color .15s ease, color .15s ease;
}
.nav a.active { background: var(--accent); color: #EEEFDC; }

/* Hover/Active (nur echte Mausgeräte) */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: rgba(52, 60, 41, .10); }
}

/* Tastatur-Fokus */
.nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; background: #eef6fb; }
/* Tap-Feedback */
.nav a:active { background: #ecefee; }

/* Burger-Button (wird nur mobil gezeigt) */
.nav-toggle {
  display: none;
  border: 0; background: transparent;
  width: 44px; height: 44px; padding: 0; margin-left: auto;
}
.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: ""; display: block; width: 24px; height: 2px;
  background: var(--accent); border-radius: 1px; margin: 6px auto;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.nav-toggle.is-open .burger { background: transparent; }
.nav-toggle.is-open .burger::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open .burger::after  { transform: translateY(-8px) rotate(-45deg); }

/* Mobile-Navigation (Dropdown-Panel) */
@media (max-width: 820px) {
  .header-inner { position: relative; }
  .nav-toggle { display: block; }
  .nav { display: none; } /* standard: zu */
  .nav.open {
    display: block; position: absolute; top: 100%; left: .75rem; right: .75rem;
    background: #fff; border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.18);
    padding: .5rem 0; z-index: 20; transform: translateY(-8px); opacity: 0;
    animation: menuIn .18s ease forwards;
  }
  @keyframes menuIn { to { transform: translateY(0); opacity: 1; } }
  .nav.open a {
    display: block; text-align: left; font-size: 1.125rem; line-height: 1.3;
    padding: 1rem 1.25rem; border-radius: 0;
  }
  .nav.open a + a { border-top: 1px solid rgba(0,0,0,.06); }
  .nav.open::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0;
    height: 4px; background: var(--accent);
    border-top-left-radius: 12px; border-top-right-radius: 12px;
  }
  /* Mobile: Logo/Brand kleiner */
  .brand img { height: 56px; }
  .brand span { font-size: 1.25rem; line-height: 1.2; }
}

/* Verhindert unschöne Umbrüche bei Brand & Menü */
.brand span, .nav a { white-space: nowrap; overflow-wrap: normal; word-break: normal; }

/* =========================================================
   3) Hero
   ========================================================= */
/*.hero-bleed { border-top: 4px solid var(--accent); } */
.hero-bleed img {
  display: block; width: 100%;
  height: clamp(120px, 24vw, 320px);
  object-fit: cover; 
  object-position: 50% 50%;
}

/* =========================================================
   4) Accordions (Diagnostik/Therapien/Schwerpunkte)
   ========================================================= */
.accordion { display: grid; gap: 1.25rem; }

.diag {
  background: #EEEFDC;  /* f0f2ef */
  border: 1px solid #f0f2ef;
  border-radius: 12px; padding: 0; overflow: clip;
}
.diag::before {
  content: ""; display: block; height: 6px; background: var(--accent);
}
.diag > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1rem 1.25rem; font-size: clamp(1.2rem, 2.2vw, 2rem); font-weight: 600; outline: none;
}
.diag > summary::-webkit-details-marker { display: none; }
.diag > summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: #000; }
.diag[open] > summary::after { content: "–"; }
.diag-content { padding: .25rem 1.25rem 1.25rem; font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.6; }
.diag-content p { margin: 0 0 .9rem; }
.diag > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Kompakter Modus */
.accordion.compact { gap: .6rem; }
.accordion.compact .diag{
  background: #bac5ac42; border: 1px solid #e6ece7; border-radius: 10px; box-shadow: none;
}
.accordion.compact .diag::before { height: 3px; border-top-left-radius: 10px; border-top-right-radius: 10px; }
.accordion.compact .diag > summary{
  padding: .75rem 1rem; font-size: clamp(1rem, 1.6vw, 1.25rem);
}
.accordion.compact .diag > summary::after{ font-size: 1rem; opacity: .6; }
.accordion.compact .diag-content{
  padding: .5rem 1rem 1rem; font-size: 1rem; line-height: 1.55;
}
.accordion.compact .diag-content p{ margin: 0 0 .7rem; }

/* =========================================================
   5) Karten-/Anfahrtsblock (Text links, Bild rechts)
   ========================================================= */
.map-block { margin-top: 1.5rem; }
.map-grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px);
  gap: 1.25rem 2rem; align-items: start;
}
.map-text { order: 1; }
.map-figure { order: 2; margin: 0; justify-self: end; }
.map-figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
.map-credit { margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.map-credit a { color: inherit; text-decoration: underline; }
.map-text h2 { margin: 0 0 .5rem; }
.map-text p  { margin: 0 0 .7rem; line-height: 1.6; }
@media (max-width: 740px) {
  .map-grid { grid-template-columns: 1fr; }
  .map-figure { max-width: 520px; }
}

/* =========================================================
   6) Praxis-Profil (Portraitkarte)
   ========================================================= */
.page-hero {
  display: grid; grid-template-columns: 1fr minmax(160px, 220px);
  gap: 1rem 2rem; align-items: start;
}
.profile-card {
  grid-column: 2; background: #fff; border: 1px solid #e6ecef; border-radius: 12px;
  padding: .75rem; text-align: center;
}
.profile-card img {
  display: block; width: 100%; height: auto; border-radius: 10px; object-fit: cover; aspect-ratio: 1 / 1;
}
.profile-name { margin: .6rem 0 .2rem; font-size: 1.1rem; }
.profile-meta { margin: 0 0 .4rem; font-size: .95rem; color: #555; }
.profile-text { margin: 0; font-size: .95rem; line-height: 1.5; }
@media (max-width: 820px) {
  .page-hero { grid-template-columns: 1fr; }
  .profile-card { grid-column: 1; justify-self: start; max-width: 240px; }
}
/* Praxis-Bio: Bild/Name links, Accordion rechts */
.doctor-profile{
  display: grid;
  grid-template-columns: minmax(100px, 150px) 1fr; /* ← linke Spalte (Bild) / rechte Spalte (Text) */
  gap: 1.25rem 2rem;
  align-items: start;
}

/* Linke Spalte (Portrait + Name) */
.profile-hero{
  grid-column: 1;
  align-self: start;
  /* optional: beim Scrollen sichtbar halten */
  /* position: sticky; top: 80px; */
  text-align: left;       /* nicht zentrieren */
}
.profile-hero .portrait{
  display: block;
  width: 100%;            /* füllt die linke Spalte */
  height: auto;
  border-radius: 12px;    /* oder 999px für rund */
  object-fit: cover;      /* nur nötig, wenn du fixe Höhe setzen willst */
}
/* Typo für Name/Unterzeile neben dem Bild */
.profile-hero h1{ margin: .5rem 0 .25rem; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
.profile-hero .subtitle{ margin: 0 0 .5rem; color: var(--accent); font-weight: 600; }

/* Rechte Spalte = Accordion */
.doctor-profile > .accordion{
  grid-column: 2;
}

/* Mobil: untereinander stapeln */
/* Handy: Portrait kleiner, aber Textgrößen nicht mitskalieren */
@media (max-width: 820px) {
  /* linke Spalte schmaler (falls 2-spaltig) */
  .doctor-profile { display:block; }

  /* Portraitgröße */
  .profile-hero .portrait {
    width: 30%;           /* füllt die linke (schmale) Spalte */
    height: auto;
    /* optional noch kleiner deckeln:
    max-width: 150px;
    */
  }
  .profile-hero { margin-bottom: 1rem; }

  /* >>> Schrift mobil festsetzen (kein VW-Scaling) <<< */
  .accordion .diag > summary {
    font-size: 1.2rem;     /* statt clamp(...vw...) */
  }
  .accordion .diag-content {
    font-size: 1.05rem;    /* Fließtextgröße mobil */
    line-height: 1.55;
  }
}


/* =========================================================
   7) Cards (Startseite)
   ========================================================= */
.cards{ display:grid; gap:1rem; grid-template-columns:1fr; margin-block:1.25rem; }
@media (min-width:720px){ .cards{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
.card{
  background:var(--card); border:1px solid #e6ece7; border-radius:var(--radius);
  padding:1rem; box-shadow: none; transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3{ margin:.1rem 0 .4rem; font-size: clamp(1.05rem,1.6vw,1.25rem); }
.card p{ margin:0; color:var(--muted); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card:hover h3 { text-decoration: underline; }

/* =========================================================
   8) Footer & Info-Block (Kontakt/Sprechzeiten)
   ========================================================= */
.site-footer { border-top: 1px solid #e6ecef; margin-top: 2rem; }
.footer-inner {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between;
}

/* Info-Block am Seitenende */
.site-info-block{
  color: #3B4628; background:#EEEFDC;
  margin-top:2rem; border-top:1px solid #3B4628; border-bottom:1px solid #3B4628;
}
.site-info-block h3{ color: #3B4628; }
.site-info-grid{
  display:grid; grid-template-columns: 1fr; gap: 1rem 2rem; padding: 1.25rem 1.5rem;
}
@media (min-width:700px){  .site-info-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width:1024px){ .site-info-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
.site-info-col h3{ margin:0 0 .4rem; font-size: clamp(1.15rem, 1.8vw, 1.6rem); }
.site-info-col p{ margin:.25rem 0; }
.site-info-col a{ color:inherit; text-decoration:none; border-bottom:1px dotted currentColor; }
.site-info-col a:hover{ text-decoration:underline; }


/* Abstand zwischen Name (h1) und Unterzeile (h2.subtitle) */
main.container > h1 {
  margin-bottom: .25rem;   /* ← hier den Abstand einstellen */
}

main.container > h2.subtitle {
  margin-top: 0;           /* verhindert Margin-Collapsing */
  /* optional: Stil für die Unterzeile */
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}


