/* =========================================================
   Praxis Arning & Bundil — statischer Prototyp
   Self-contained: keine externen CSS/JS/Font-Requests.
   Farben aus post-272.css (Astra/Elementor-Referenz).
   ========================================================= */

/* ---------- lokale Fonts (build-time aus Google Fonts geholt, hier lokal) ---------- */
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 300 900;               /* Variable-Font-Achse */
  font-display: swap;
  src: url("/assets/fonts/merriweather-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Merriweather Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/merriweather-sans-latin.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  --blue:        #425fcc;   /* Links-/Button-Akzent */
  --blue-dark:   #33499e;
  --dark:        #091600;   /* Fließtext / Überschriften */
  --lime:        #c3e35c;   /* Lime-Buttons */
  --lime-hover:  #d3ef7f;
  --lime-band:   #c3f507;   /* Diagonalband Footer */
  --lime-soft:   #e0f497;
  --green-muted: #7f9962;   /* Footer */
  --green-dark:  #6a8250;
  --white:       #ffffff;
  --paper:       #fafafa;
  --btn-text:    #14340a;   /* dunkelgrün auf Lime */
  --shadow:      0 10px 30px rgba(9, 22, 0, .12);
  --shadow-sm:   0 3px 12px rgba(9, 22, 0, .10);
  --ff-head: "Merriweather Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ff-body: "Merriweather", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
}

/* ---------- Reset / Basis ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--ff-head); font-weight: 300; line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--ff-head); font-weight: 700; font-size: .98rem;
  padding: .8em 1.4em; border-radius: 8px; border: 0; cursor: pointer;
  text-align: center; transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-blue  { background: var(--blue); color: #fff; }
.btn-blue:hover  { background: var(--blue-dark); color: #fff; }
.btn-lime  { background: var(--lime); color: var(--btn-text); box-shadow: var(--shadow-sm); }
.btn-lime:hover  { background: var(--lime-hover); color: var(--btn-text); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(9, 22, 0, .07);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 84px;
}
/* Brand */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--dark); }
.brand:hover { text-decoration: none; }
.brand svg, .brand img.logo { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--ff-head); font-weight: 700; font-size: 1.25rem; color: var(--dark); letter-spacing: .3px; }
.brand-tag  { font-family: var(--ff-body); font-size: .72rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green-dark); }

/* Navigation */
.main-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-list > li > button {
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
  color: var(--dark); background: none; border: 0; cursor: pointer;
  padding: .7em .85em; border-radius: 6px; display: inline-flex; align-items: center; gap: .35em;
}
.nav-list > li > a:hover,
.nav-list > li > button:hover { background: var(--paper); color: var(--blue); text-decoration: none; }
.caret { width: .5em; height: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
         transform: rotate(45deg); margin-top: -.2em; transition: transform .15s ease; }

/* Dropdown */
.dropdown {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 250px; background: #fff; border-radius: 10px;
  box-shadow: var(--shadow); border: 1px solid #eef0ea;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.has-dropdown:hover > button .caret,
.has-dropdown.open > button .caret { transform: rotate(-135deg); margin-top: .1em; }
.dropdown li a {
  display: block; padding: .55em .75em; border-radius: 6px;
  color: var(--dark); font-size: .92rem; font-weight: 500;
}
.dropdown li a:hover { background: var(--lime-soft); color: var(--btn-text); text-decoration: none; }

.nav-cta { margin-left: 8px; }

/* Hamburger (Checkbox-Hack, kein JS) */
.nav-toggle, .nav-toggle-label { display: none; }
.nav-toggle-label {
  width: 46px; height: 46px; border-radius: 8px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  background: var(--paper);
}
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--dark); position: relative;
}
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after  { position: absolute; top:  7px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; color: #fff;
  background: #2e4a1e;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(20, 52, 10, .82) 0%, rgba(46, 74, 30, .55) 55%, rgba(66, 95, 204, .30) 100%),
    url("/assets/hero-praxis.jpg") center/cover no-repeat;
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 80px 20px 96px;
}
.hero-copy { max-width: 560px; }
.hero-logo { width: 210px; max-width: 60%; margin-bottom: 22px; filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); color: #fff; margin: 0 0 .3em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 460px; }

/* Glas-Panel mit Buttons */
.hero-panel {
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px; padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.hero-panel h2 { color: #fff; font-size: 1.25rem; margin: 0 0 .4em; text-align: center; }
.hero-panel .btn { justify-content: center; width: 100%; font-size: 1.02rem; padding: .95em 1.2em; }

/* =========================================================
   FACHGEBIETE
   ========================================================= */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: var(--dark); }
.section-head p  { color: #4a5a42; max-width: 620px; margin: 0 auto; }

.fachgebiete {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); text-decoration: none; }
.card-img { aspect-ratio: 360 / 250; overflow: hidden; background: #dfe6d3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { color: var(--blue); font-size: 1.3rem; margin: 0 0 .3em; }
.card-body p { margin: 0; font-size: .92rem; color: #4a5a42; }
.card-more { margin-top: 14px; font-weight: 700; color: var(--blue); font-size: .9rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.diagonal-band {
  height: 90px; margin-bottom: -1px;
  background: var(--lime-band);
  clip-path: polygon(0 60%, 100% 0, 100% 40%, 0 100%);
}
.site-footer {
  background: var(--green-muted); color: #fff;
  padding: 8px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 48px 0 40px;
}
.site-footer h2 { color: #fff; font-size: 1.5rem; margin-bottom: .6em; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--lime-band); }
.contact-lines { line-height: 1.85; font-size: 1rem; }
.contact-lines strong { font-weight: 700; }
.route-link { display: inline-block; margin-top: 14px; font-weight: 700; }
.route-link::after { content: " \2197"; }

/* Sprechzeiten-Tabelle */
.hours { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: .95rem; }
.hours caption { text-align: left; font-weight: 700; padding-bottom: 8px; font-size: 1rem; }
.hours th, .hours td { padding: 10px 8px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.25); }
.hours thead th { font-family: var(--ff-head); font-weight: 700; color: var(--dark); background: var(--lime-soft); }
.hours thead th:first-child { border-top-left-radius: 8px; }
.hours thead th:last-child  { border-top-right-radius: 8px; }
.hours tbody td { background: rgba(255,255,255,.08); }
.hours td.closed { color: rgba(255,255,255,.6); }

/* Footer-Nav + Copyright */
.footer-bar { border-top: 1px solid rgba(255,255,255,.25); }
.footer-bar .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: 20px; padding-bottom: 24px;
}
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; font-size: .9rem; }
.footer-nav li { position: relative; }
.footer-nav a { font-weight: 600; }
.copyright { font-size: .85rem; color: rgba(255,255,255,.85); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* Nav -> Hamburger */
  .nav-toggle-label { display: flex; }
  .main-nav {
    position: absolute; top: 84px; left: 0; right: 0;
    background: #fff; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-toggle:checked ~ .main-nav { max-height: 85vh; overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 14px 20px; }
  .nav-list > li > a,
  .nav-list > li > button { width: 100%; justify-content: space-between; padding: .85em .6em; border-bottom: 1px solid #f0f2ec; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; min-width: 0; padding: 0 0 6px 10px;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .has-dropdown.open > .dropdown { max-height: 500px; }
  .has-dropdown:hover > .dropdown:not(.open) { max-height: 0; }  /* Hover deaktiviert auf Touch */
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 60px 20px 76px; }
  .hero-panel { max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .header-inner { min-height: 70px; }
  .main-nav { top: 70px; }
  .brand-name { font-size: 1.05rem; }
  .brand svg, .brand img.logo { height: 42px; }
}

/* =========================================================
   CONTENT-/UNTERSEITEN  (Leistungen, Impressum, Datenschutz,
   Kontakt, Über uns, 404) — ergänzt für die statische Site
   ========================================================= */
.page { padding: 48px 0 72px; background: linear-gradient(180deg,#fff 0%, var(--paper) 100%); }
.page .wrap { max-width: 920px; }
.crumbs { font-size: .85rem; color: var(--green-dark); margin: 0 0 18px; }
.crumbs a { color: var(--green-dark); }
.crumbs .sep { margin: 0 .4em; opacity: .6; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .72rem;
           font-weight: 700; color: var(--blue); margin: 0 0 .3em; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--dark); margin: 0 0 .5em; }

/* Fließtext / WP-Blöcke */
.prose { font-size: 1.04rem; color: #26331d; }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; color: var(--dark); }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; color: var(--dark); }
.prose h4 { font-size: 1.05rem; margin: 1.2em 0 .3em; color: var(--blue-dark); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose img { border-radius: 12px; box-shadow: var(--shadow-sm); height: auto; }
.prose figure { margin: 0 0 1.2em; }
.prose pre { background: var(--paper); padding: .8em 1em; border-radius: 8px; overflow:auto; white-space: pre-wrap; }
.prose strong { font-weight: 700; }
/* Drop-Cap wie Gutenberg */
.prose .has-drop-cap:first-letter {
  float: left; font-family: var(--ff-head); font-weight: 700;
  font-size: 3.2em; line-height: .8; padding: .05em .12em 0 0; color: var(--blue);
}
/* WP media-text: Bild + Text nebeneinander */
.wp-block-media-text {
  display: grid; grid-template-columns: 320px 1fr; gap: 28px;
  align-items: start; margin: 0 0 1.6em;
}
.wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 320px; }
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; }
.wp-block-media-text__media img { width: 100%; }
.wp-block-media-text__content > *:first-child { margin-top: 0; }
.wp-block-image img { width: 100%; }
.wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 26px; margin: 0 0 1.4em; }

/* Aktionen unter Leistungstext */
.service-actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0;
  padding-top: 26px; border-top: 1px solid #e6ebdd;
}

/* Kontakt-Seite */
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card { background:#fff; border-radius:14px; box-shadow: var(--shadow-sm); padding: 26px 28px; }
.contact-card h2 { color: var(--blue); font-size: 1.35rem; margin-top: 0; }
.contact-card address { font-style: normal; line-height: 1.9; }
.contact-card .btn { margin-top: 16px; }
.contact-hours { width:100%; border-collapse: collapse; margin-top: 6px; font-size:.95rem; }
.contact-hours th, .contact-hours td { padding: 9px 8px; text-align:center; border-bottom:1px solid #e6ebdd; }
.contact-hours thead th { background: var(--lime-soft); color: var(--dark); }
.contact-hours td.closed { color:#9aa891; }

/* Über-uns Ärzte */
.team { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 34px; margin-top: 8px; }
.team-member { background:#fff; border-radius:14px; box-shadow: var(--shadow-sm); overflow:hidden; }
.team-member img { width:100%; aspect-ratio: 3/4; object-fit: cover; }
.team-member .tm-body { padding: 20px 22px 24px; }
.team-member h2 { color: var(--blue); font-size: 1.3rem; margin: 0 0 .2em; }
.team-member .tm-role { color: var(--green-dark); font-weight:600; margin: 0 0 .8em; }

/* 404 */
.notfound { text-align:center; padding: 90px 0; }
.notfound h1 { font-size: clamp(2.4rem,6vw,4rem); }
.notfound .btn { margin-top: 18px; }

@media (max-width: 700px) {
  .wp-block-media-text,
  .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr; }
  .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 0; }
  .contact-cols { grid-template-columns: 1fr; gap: 26px; }
}

/* Skip-Link (WCAG) */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue); color:#fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; text-decoration: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Rezept-Seite ---------- */
.rezept-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 10px; padding: 20px 22px; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow-sm); }
.rezept-mail { font-family: var(--ff-head); font-size: 1.3rem; font-weight: 600; color: var(--dark); user-select: all; letter-spacing: .2px; }
.muted { color: var(--green-dark); font-size: .92rem; }
