/* ==========================================================================
   Hausarztpraxis Dr. med. Ulrike Jaeger – statische Website
   Master-Layout: FireShot-Screenshots (Desktop 1920 px)
   ========================================================================== */

:root {
  --green: #8baa26;
  --green-dark: #67821d;
  --green-light: #dae3b8;
  --text: #666666;
  --text-dark: #333333;
  --bg: #f9f9f9;
  --white: #ffffff;
  --border: #e1e1e1;
  --container: 1068px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-body: 13px;          /* Fließtext Desktop */
  --lh-body: 1.85;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--green); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--green-dark); }
p { margin: 0 0 1.05em; }
h1, h2, h3, h4 { margin: 0; font-weight: normal; color: var(--green); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * 50px);
  padding: 0 50px;
  margin: 0 auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff; padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
}
.site-header .bar {
  height: 79px;
  border-bottom: 1px solid #e2e3e4;
}
.site-header .bar .container {
  height: 100%;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.site-header::after {
  content: ""; display: block; height: 11px; background: var(--green);
}
.logo { display: block; margin-top: 1px; margin-left: -1px; }
.logo img { height: 75px; width: auto; }

.main-nav { height: 78px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.main-nav li { position: relative; height: 100%; }
.main-nav a {
  display: block; height: 100%;
  padding: 0 12.5px;
  line-height: 79px;
  font-size: 11px; font-weight: bold;
  color: #808080;
}
.main-nav a:hover { color: var(--text-dark); }
.main-nav a[aria-current="page"] { color: #333; }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--green);
}
.main-nav .nav-search a { padding-right: 11px; padding-left: 10px; }
.main-nav .nav-search svg { width: 12px; height: 12px; vertical-align: -1px; fill: none; stroke: #808080; stroke-width: 2.2; }
.main-nav .nav-search a:hover svg { stroke: #333; }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 0; margin: 0;
  width: 44px; height: 78px; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; position: relative; width: 22px; height: 2px; background: #555; margin: 0 auto;
  transition: transform .25s ease, background .25s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Suche */
.search-box {
  position: absolute; right: 50px; top: 79px; z-index: 120;
  width: 260px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 3px 13px rgba(0,0,0,.1);
  padding: 12px; display: none;
}
.search-open .search-box { display: block; }
.search-box input {
  width: 100%; border: 1px solid var(--border); padding: 8px 10px;
  font: 13px var(--font); color: var(--text); background: var(--bg);
}
.search-box ul { list-style: none; margin: 8px 0 0; padding: 0; }
.search-box li a { display: block; padding: 5px 2px; border-bottom: 1px solid #eee; font-size: 13px; line-height: 1.4; }
.search-box li small { display: block; color: #999; font-size: 11px; }
.search-box .empty { color: #999; font-size: 12px; padding: 6px 2px 0; }
.search-wrap { position: relative; }

/* -------------------------------------------------------------------------
   Allgemeine Bausteine
   ------------------------------------------------------------------------- */
.page-title {
  font-size: 30px; line-height: 1.1;
  text-align: center;
}
.section-title {
  font-size: 24px; line-height: 1.1;
  text-align: center;
}
.center { text-align: center; }

.hr-dots {
  width: 302px; height: 4px; margin: 0 auto;
  background-image: radial-gradient(circle at 2px 2px, var(--green) 1.9px, transparent 2.2px);
  background-size: 8px 4px;
  background-repeat: repeat-x;
}

/* Karte (statisches Bild – keine Google-Cookies) */
.map {
  display: block; position: relative; height: 353px; overflow: hidden;
  background: #efeeec;
}
.map img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.map .map-cta {
  position: absolute; right: 16px; bottom: 16px;
  background: rgba(255,255,255,.94); color: var(--text-dark);
  font-size: 12px; line-height: 1; padding: 9px 12px; border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  opacity: 0; transition: opacity .2s ease;
}
.map:hover .map-cta, .map:focus .map-cta { opacity: 1; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--green);
  border-top: 1px solid var(--green-dark);
  color: #fff;
  font-size: 9px; line-height: 1;
  min-height: 105px;
  padding-top: 19px;
}
.site-footer .container { display: flex; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; opacity: .75; }
.site-footer nav { display: flex; align-items: center; margin-top: -2px; }
.site-footer nav a + a { margin-left: 9px; padding-left: 9px; border-left: 1px solid rgba(255,255,255,.35); }

/* Mobile Kontaktleiste */
.contact-bar { display: none; }

/* -------------------------------------------------------------------------
   Startseite
   ------------------------------------------------------------------------- */
.hero-home { background: var(--bg); border-bottom: 1px solid #e3e3e3; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.hero-home .frame {
  max-width: 1416px; margin: 0 auto;
  aspect-ratio: 1416 / 499; overflow: hidden;
}
.hero-home img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

.home-intro { padding-top: 47px; }
.home-intro .page-title { margin-bottom: 21px; }
.home-intro .text { text-align: center; }

.spektrum { margin-top: 57px; text-align: center; }
.spektrum .section-title { margin-bottom: 8px; }
.spektrum img { width: 266px; margin: 0 auto; }

.iconlist-cols {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 67px;
  margin-top: 44px; padding-left: 2px;
}
.iconlist { list-style: none; margin: 0; padding: 0; }
.iconlist li { display: flex; align-items: flex-start; margin-bottom: 10px; min-height: 56px; }
.iconlist .ico {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
}
.iconlist .ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; }
.iconlist h3 {
  margin-left: 28px; padding: 18px 0 15px;
  font-size: 16px; line-height: 18px; font-weight: bold; text-transform: uppercase;
  letter-spacing: -.1px;
}

.home-gallery { margin-top: 36px; }
.home-gallery .hr-dots { margin-bottom: 41px; }
.home-gallery .hr-dots.after { margin-top: 45px; margin-bottom: 0; }
.circles { display: grid; grid-template-columns: repeat(5, 1fr); }
.circles a { display: block; padding: 0 6px; }
.circles img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; transition: opacity .25s ease; }
.circles a:hover img { opacity: .85; }

.infoboxes {
  display: grid; grid-template-columns: repeat(3, 378px); justify-content: center;
  text-align: center; padding: 115px 0 43px;
}
.infoboxes .ico { height: 44px; margin-bottom: 38px; display: flex; justify-content: center; align-items: flex-start; }
.infoboxes .ico svg { height: 44px; width: auto; }
.infoboxes h3 {
  font-size: 19.5px; line-height: 1.1; font-weight: bold; letter-spacing: .6px;
  margin-bottom: 13px;
}
.infoboxes p { margin: 0; font-size: var(--fs-body); line-height: 24.5px; }

/* -------------------------------------------------------------------------
   Praxis
   ------------------------------------------------------------------------- */
.hero-full { aspect-ratio: 1920 / 540; overflow: hidden; background: #ccc; }
.hero-full img { width: 100%; height: 100%; object-fit: cover; }

.praxis-intro { padding-top: 45px; text-align: center; }
.praxis-intro .page-title { margin-bottom: 21px; }
.praxis-intro .section-title { margin-top: 55px; }

.gallery {
  display: grid; grid-template-columns: repeat(3, 314px); justify-content: space-between;
  row-gap: 43px; margin: 52px 0 0; padding-bottom: 40px;
}
.gallery a { display: block; width: 314px; height: 314px; text-align: center; }
.gallery img { display: inline-block; width: 314px; height: 314px; object-fit: cover; border-radius: 26px; transition: opacity .25s ease, transform .25s ease; }
.gallery img.small { width: 265px; height: 266px; }
.gallery a:hover img { opacity: .9; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.86);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: 300 44px/1 var(--font); padding: 10px 16px; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 10px; right: 14px; font-size: 38px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* -------------------------------------------------------------------------
   Leistungen
   ------------------------------------------------------------------------- */
.leistungen { padding: 34px 0 41px; }
.leistungen .page-title { margin-bottom: 35px; }
.accordion { border: 1px solid #585412; border-bottom: 0; }
.accordion details { border-bottom: 1px solid #585412; background: var(--green); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center;
  height: 39.8px; padding: 0 10px 0 10px;
  color: #fff; font-size: 14px; line-height: 1;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .pm {
  width: 12px; height: 12px; margin-right: 10px; flex: 0 0 12px;
  background: #fff; position: relative;
}
.accordion summary .pm::before, .accordion summary .pm::after {
  content: ""; position: absolute; background: var(--green);
}
.accordion summary .pm::before { left: 2px; right: 2px; top: 5px; height: 2px; }
.accordion summary .pm::after { top: 2px; bottom: 2px; left: 5px; width: 2px; transition: opacity .2s; }
.accordion details[open] .pm::after { opacity: 0; }
.accordion summary:hover { background: #7f9c20; }
.accordion .panel {
  background: #fff; color: var(--text);
  padding: 16px 20px 6px 36px;
  border-top: 1px solid #585412;
}

/* -------------------------------------------------------------------------
   Vita und Team
   ------------------------------------------------------------------------- */
.vita { padding: 34px 0 44px; }
.vita .page-title { margin-bottom: 8px; }
.vita .portrait { width: 266px; height: 266px; border-radius: 50%; margin: 0 auto; object-fit: cover; }
.vita .role { text-align: center; margin: 12px 0 0; }
.vita .name { text-align: center; font-size: 17px; font-weight: bold; margin-top: 22px; }
.vita h3 { text-align: center; font-size: 14.5px; font-weight: bold; margin: 58px 0 26px; }
.vita h3.second { margin-top: 56px; }
.dot-list { list-style: none; margin: 0; padding: 0 0 0 7px; }
.dot-list li { position: relative; padding-left: 20px; line-height: 21.8px; }
.dot-list li::before {
  content: ""; position: absolute; left: 1px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%; background: #666;
}

.team { background: var(--green-light); border-top: 1px solid #e4e9cf; padding: 35px 0 40px; }
.team-card {
  width: 330px; margin: 0 auto; background: #fff; padding: 25px 0 37px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.team-card img { width: 200px; height: 266px; object-fit: cover; margin: 0 auto 17px; }
.team-card h4 { font-size: 13px; font-weight: bold; letter-spacing: .2px; line-height: 1.3; }

/* -------------------------------------------------------------------------
   Kontakt
   ------------------------------------------------------------------------- */
.kontakt { padding: 33px 0 68px; }
.kontakt .cols { display: grid; grid-template-columns: 502px 502px; justify-content: space-between; }
.kontakt h2 { font-size: 17px; font-weight: bold; line-height: 19px; margin: 0 0 13px; }
.form-row { margin-bottom: 14px; }
.form-row input, .form-row textarea {
  display: block; width: 100%;
  border: 1px solid #ececec; background: #fff; color: var(--text);
  font: 14px var(--font); padding: 0 13px; height: 42px; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.form-row textarea { height: 182px; padding-top: 14px; resize: vertical; line-height: 1.5; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--green); }
.form-row input::placeholder, .form-row textarea::placeholder { color: #666; opacity: 1; }
.consent { display: block; font-size: 14px; font-weight: bold; line-height: 28px; color: #666; margin: 12px 0 18px; }
.consent input { margin: 0 6px 0 4px; width: 11px; height: 11px; vertical-align: -1px; }
.consent .req { color: var(--green); }
.btn {
  display: inline-block; background: var(--green); color: #fff; border: 0;
  width: 126px; height: 46px; font: 12.5px var(--font); cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--green-dark); }
.form-note { font-size: 13px; line-height: 1.4; margin: 10px 0 -28px; min-height: 18px; }
.kontakt .side { text-align: right; }
.kontakt .side p { margin: 13px 0 0; line-height: 25px; }
.kontakt .side img { width: 502px; height: 502px; object-fit: cover; margin-top: 12px; }

/* -------------------------------------------------------------------------
   Impressum / Datenschutz
   ------------------------------------------------------------------------- */
.title-bar { padding: 33px 0 0; height: 147px; border-bottom: 1px solid #ececec; box-shadow: 0 1px 0 #f3f3f3; }
.legal { padding: 76px 0 44px; }
.legal.center { text-align: center; }
.legal .lead { font-size: 24px; font-weight: bold; letter-spacing: 1px; line-height: 1.1; margin-bottom: 10px; }
.legal .lead.second { margin: 40px 0 10px; }
.legal h3 { font-size: 14.5px; font-weight: bold; line-height: 25px; margin: 0 0 13px; }
.legal p { margin: 0 0 13px; line-height: 25px; }
.legal ul.plain { list-style: none; padding: 0; margin: 16px 0 18px; }
.legal ul.plain li { line-height: 25px; margin-bottom: 8px; }
.datenschutz h3 { font-size: 14.5px; font-weight: bold; line-height: 25px; margin: 2px 0 20px; }
.datenschutz h3 .n { color: var(--text); font-weight: normal; display: inline-block; min-width: 22px; text-align: right; margin-right: 6px; font-size: 13px; }
.datenschutz h4 { font-size: 14.5px; font-weight: bold; line-height: 25px; margin: 0 0 10px; }
.datenschutz p { margin: 0 0 13px; line-height: 25px; }
.datenschutz ul { margin: 0 0 20px; padding: 3px 0 0 22px; }
.datenschutz ul li { line-height: 25px; margin-bottom: 6px; padding-left: 0; }
.datenschutz ul li::marker { font-size: 9px; }
.datenschutz .first-h3 { margin-top: 0; }

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .container { padding: 0 40px; }
  .gallery { grid-template-columns: repeat(3, 1fr); column-gap: 30px; }
  .gallery a, .gallery img { width: 100%; height: auto; aspect-ratio: 1; }
  .gallery img.small { width: 84%; height: auto; }
  .kontakt .cols { grid-template-columns: 1fr 1fr; column-gap: 50px; }
  .kontakt .side img { width: 100%; height: auto; aspect-ratio: 1; }
  .infoboxes { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 989px) {
  .main-nav a { padding: 0 9px; }
  .iconlist-cols { column-gap: 30px; }
  .iconlist h3 { font-size: 14px; margin-left: 18px; }
}

@media (max-width: 767px) {
  :root { --fs-body: 15px; --lh-body: 1.7; }
  .container { padding: 0 20px; }

  .site-header .bar { height: 71px; }
  .logo img { height: 66px; }
  .menu-toggle { display: block; height: 70px; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: 82px; bottom: 0; height: auto;
    background: #fff; transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; z-index: 90;
  }
  .menu-open .main-nav { transform: none; }
  .main-nav ul { flex-direction: column; height: auto; padding: 8px 0; }
  .main-nav li { height: auto; border-bottom: 1px solid #eee; }
  .main-nav a { line-height: 1.2; padding: 17px 24px; font-size: 16px; }
  .main-nav a[aria-current="page"] { color: var(--green); }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav .nav-search { display: none; }
  .search-box { right: 10px; left: 10px; width: auto; top: 82px; }
  .menu-open { overflow: hidden; }

  .page-title { font-size: 26px; }
  .section-title { font-size: 22px; }

  .home-intro { padding-top: 32px; }
  .iconlist-cols { grid-template-columns: 1fr; margin-top: 32px; }
  .iconlist h3 { font-size: 14px; padding-top: 19px; }
  .circles { grid-template-columns: repeat(3, 1fr); row-gap: 12px; justify-items: center; }
  .circles a { padding: 0 5px; max-width: 160px; }
  .infoboxes { grid-template-columns: 1fr; row-gap: 40px; padding: 60px 0 46px; }
  .infoboxes .ico { margin-bottom: 20px; }
  .map { height: 260px; }
  .map .map-cta { opacity: 1; }

  .hero-full { aspect-ratio: 16 / 9; }
  .gallery { grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 14px; margin-top: 30px; }
  .gallery img { border-radius: 16px; }

  .accordion summary { height: auto; min-height: 46px; padding: 10px 10px 10px 9px; line-height: 1.35; font-size: 15px; }

  .vita h3 { margin: 44px 0 18px; }
  .dot-list li { line-height: 1.6; margin-bottom: 4px; }
  .dot-list li::before { top: 8px; }

  .kontakt .cols { grid-template-columns: 1fr; row-gap: 36px; }
  .kontakt .side { text-align: left; order: -1; }
  .kontakt .side img { display: none; }
  .kontakt .side p { margin-top: 0; }
  .consent { font-size: 13px; line-height: 1.5; }
  .consent input { width: 16px; height: 16px; vertical-align: -3px; }
  .btn { width: 100%; }

  .title-bar { height: auto; padding: 32px 0 30px; }
  .legal { padding: 40px 0 30px; }
  .legal .lead { font-size: 20px; }
  .legal p, .datenschutz p, .datenschutz ul li { line-height: 1.7; }
  .legal { overflow-wrap: anywhere; }

  .site-footer { padding: 22px 0 92px; min-height: 0; font-size: 12px; line-height: 1.5; }
  .site-footer .container { flex-direction: column; gap: 10px; }
  .site-footer nav { margin-top: 0; }

  .contact-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--green); box-shadow: 0 -1px 6px rgba(0,0,0,.18);
  }
  .contact-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
    color: #fff; font-size: 15px; font-weight: bold; padding: 14px 8px;
  }
  .contact-bar a + a { border-left: 1px solid rgba(255,255,255,.3); }
  .contact-bar svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
}

@media (max-width: 420px) {
  .circles { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery img.small { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .map, .contact-bar { display: none; }
  body { background: #fff; }
}

.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;
}
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
a[href^="tel:"] { white-space: nowrap; }
