/* ==========================================
   ZAHNARZTPRAXIS BLUMBERG – STYLES
   ========================================== */

:root {
  --accent: #98a686;        /* sage green */
  --accent-dark: #7d8b6c;
  --accent-pale: #e4f2d4;   /* pale green */
  --light: #f2f2f0;         /* light grey background */
  --white: #ffffff;
  --black: #000000;
  --text: #111111;
  --muted: #5d5d5a;
  --line: #d9d9d5;
  --error: #b3261e;
  --success: #3f6b2a;

  --font-body: 'PT Serif', Georgia, serif;
  --font-heading: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  --font-button: 'Nunito', 'Nunito Sans', 'Segoe UI', Arial, sans-serif;

  --header-h: 80px;
  --gutter: clamp(16px, 4vw, 58px);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.25;
  margin: 0 0 .6em;
  overflow-wrap: break-word;
  hyphens: auto;
}
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--black); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.text-center { text-align: center; }

/* ---------- Layout ---------- */

.container { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 1060px; }
.container--form { max-width: 720px; }

.section { padding: var(--section-y) 0; }
.section--light { background: var(--light); }
.section--flush-top { padding-top: 0; }
.section--compact { padding: 2.2rem 0; }
.section-cta { margin-top: 2.5rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split--center { align-items: center; }
.split__media img { width: 100%; aspect-ratio: 657 / 907; object-fit: cover; object-position: 66% 30%; }

/* ---------- Typography helpers ---------- */

.heading-xl {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 700;
  color: var(--accent);
}
.heading-xl--light { font-weight: 400; }
.heading-lg {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
}
.heading-lg--caps { font-weight: 400; letter-spacing: .04em; margin-bottom: 2rem; }
.heading-dark {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.6rem;
}
.heading-sub {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.lead { font-size: 1.15rem; }
.address { font-size: 1.15rem; line-height: 1.75; }

/* Rich text (service pages, legal pages) */
.prose { text-align: justify; hyphens: auto; }
.prose h3, .prose h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0;
  color: var(--accent);
  text-align: left;
  margin: 2.4em 0 .8em;
}
.prose h2 { font-size: 1.35rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.6rem; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; padding-left: .3rem; }
.prose ul li::marker { color: var(--accent); }
.prose--large { font-size: 1.2rem; }
.prose--legal { text-align: left; hyphens: manual; }
.prose--legal a { word-break: break-word; }

.page-intro { padding-top: calc(var(--header-h) + clamp(2rem, 4vw, 3.5rem)); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.page-intro h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 1.2em 2.4em;
  border: 0; border-radius: 300px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-button);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-dark); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--small { padding: .85em 1.9em; font-family: var(--font-body); font-size: .92rem; }
.btn--wide { min-width: 200px; }
.btn--caps { text-transform: uppercase; font-family: var(--font-heading); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .12);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.has-hero .site-header:not(.is-scrolled):not(.menu-open) {
  background: linear-gradient(to bottom, rgba(255, 255, 255, .92), rgba(255, 255, 255, .55));
  box-shadow: none;
}
.site-header.menu-open { background: var(--white); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
}
.site-header__logo img { width: 180px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav > a:not(.btn) { text-decoration: none; font-size: 1.05rem; }
.site-nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav__icon { display: inline-flex; padding: 4px; }
.site-nav__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-button); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; white-space: nowrap;
}
.phone-icon { color: var(--accent-dark); flex-shrink: 0; }
.header-call {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
}
.header-call .phone-icon { color: var(--white); }

.burger {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.burger span { display: block; height: 1.5px; background: var(--black); margin: 7px 0; transition: transform .25s ease; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  padding: 2rem var(--gutter) 2.6rem;
  border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { font-size: 1.6rem; text-decoration: none; font-family: var(--font-heading); }

main > :first-child:not(.hero):not(.page-intro) { padding-top: calc(var(--header-h) + var(--section-y)); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background: #555;
}
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.hero__content { position: relative; z-index: 1; padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem; max-width: 900px; }

.hero--home { min-height: clamp(560px, 72vh, 700px); }
.hero__title { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 700; margin: 0 0 .2em; }
.hero__subtitle {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: .02em; line-height: 1.25;
  margin: 0 0 .7em;
}
.hero__text { font-weight: 700; font-size: 1.1rem; line-height: 1.75; }
.hero__phone { font-weight: 700; font-size: 1.35rem; }
.hero__phone a { color: var(--accent-pale); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 5rem; margin-top: 1.6rem; }
.hero__actions .btn { min-width: 210px; }

.hero--page { min-height: clamp(320px, 41vw, 600px); }
.hero__page-title { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 500; margin: 0; }

/* ---------- Tagline ---------- */

.tagline { padding: clamp(6rem, 18vw, 15rem) var(--gutter); text-align: center; }
.tagline__title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.2; margin: 0; }
.tagline__sub { font-family: var(--font-heading); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.3; margin: 0; }

/* ---------- Video ---------- */

.video { width: 100%; max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; }

/* ---------- Accordion (native <details>) ---------- */

.accordion { margin-top: 1rem; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  padding: 1.1rem 2.5rem 1.1rem 0;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion--chevron summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.accordion--chevron details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.accordion__body { padding: 0 0 1.4rem; }
.accordion__body ul { margin: 0 0 1em; padding-left: 1.4rem; }

.accordion--plus details, .accordion--plus details:first-child { border-color: var(--text); }
.accordion--plus summary { color: var(--accent); padding-left: 1.4rem; padding-right: 0; }
.accordion--plus summary::before { content: "+"; position: absolute; left: 0; font-weight: 300; transition: transform .2s ease; }
.accordion--plus details[open] summary::before { transform: rotate(45deg); }
.accordion--plus .accordion__body { padding-left: 1.4rem; }

.promise { margin-top: clamp(3rem, 6vw, 5rem); }

/* ---------- Full-width image banners ---------- */

.banner { position: relative; height: clamp(260px, 41vw, 600px); overflow: hidden; display: flex; align-items: center; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__img--top { object-position: 50% 12%; }
.banner--text::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.banner .container { position: relative; z-index: 1; }
.banner__title { color: var(--white); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.6rem); max-width: 950px; margin: 0; }

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem 1.5rem;
  margin-top: 2.5rem;
}
.service {
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  text-decoration: none;
  text-align: center;
}
.service__icon {
  width: min(220px, 100%); aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service__icon img { width: 100%; height: 100%; object-fit: cover; }
.service__name { font-family: var(--font-heading); font-size: 1.15rem; color: var(--accent); line-height: 1.3; }
.service:hover .service__icon { transform: scale(1.04); box-shadow: 0 6px 22px rgba(0, 0, 0, .08); }
.service:hover .service__name { color: var(--accent-dark); }

.services-grid--large { margin-top: 0; gap: 3rem 1.5rem; }
.services-grid--large .service__icon { width: min(260px, 100%); }
.services-grid--large .service__name { font-size: clamp(1.25rem, 2.1vw, 1.75rem); }

/* ---------- Static map ---------- */

.static-map { margin: 0; }
.map { aspect-ratio: 7 / 5; border: 1px solid var(--line); background: var(--light); z-index: 0; }
.map > a { display: block; height: 100%; }
.map > a img { width: 100%; height: 100%; object-fit: cover; }
.map .leaflet-popup-content { font-family: var(--font-body); font-size: .9rem; line-height: 1.5; }
.map .leaflet-popup-content a { color: var(--accent-dark); }
.map-pin span {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent-dark);
  border: 3px solid var(--white);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
  transform: rotate(-45deg);
}
.map-pin span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--white);
}
.static-map figcaption { margin-top: .3rem; font-size: .75rem; color: var(--muted); text-align: right; }

/* ---------- Booking card ---------- */

.booking-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem;
  background: var(--white);
  border-radius: 40px;
  padding: 0 clamp(2rem, 7vw, 6.5rem) 0 clamp(1.5rem, 4vw, 3.5rem);
}
.booking-card__text { padding: clamp(2rem, 4vw, 3rem) 0; }
.booking-card__text p { font-size: 1.15rem; }
.booking-card__img {
  width: clamp(240px, 27vw, 393px); aspect-ratio: 1; object-fit: cover; object-position: 65% 34%;
  border-radius: 50%;
}

/* ---------- Forms ---------- */

.form { display: grid; gap: 1.2rem; }
.form__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.form__field { display: flex; flex-direction: column; gap: .25rem; }
.form__label { font-size: 1rem; padding: 0; margin-bottom: .2rem; }
.form__sublabel { font-size: .95rem; }
.form__req { color: var(--muted); font-size: .9em; }
.form__desc { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0 0 .3rem; }
.form__note { color: var(--muted); font-size: .85rem; line-height: 1.55; margin: 0; }
.form__note a { color: inherit; }

.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: .98rem;
  line-height: 1.5;
}
.form textarea { resize: vertical; min-height: 120px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #333 50%), linear-gradient(135deg, #333 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(152, 166, 134, .3); }
.form.was-validated input:invalid, .form.was-validated select:invalid, .form.was-validated textarea:invalid { border-color: var(--error); }
.form .btn { justify-self: start; min-width: 140px; }
.form .text-center .btn { justify-self: center; }

.form__check { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.form__check input { width: 18px; height: 18px; accent-color: var(--accent-dark); }
.form.was-validated .form__check input:invalid { outline: 2px solid var(--error); outline-offset: 2px; }

.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: 0; padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .98rem; }
.form__status.is-success { background: #e7f1df; color: var(--success); }
.form__status.is-error { background: #fbe9e7; color: var(--error); }

.file-drop {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 1.4rem 1rem;
  border: 1px dashed #333; border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  text-align: center;
}
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--light); font-size: 1.4rem; line-height: 1; }
.file-drop__text { color: var(--accent); }
.file-drop.has-file { border-style: solid; border-color: var(--accent); }
.file-drop.has-file .file-drop__text { color: var(--text); word-break: break-all; }
.file-drop:focus-within { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.form.was-validated .file-drop:has(input:invalid) { border-color: var(--error); }

/* ---------- Karriere ---------- */

.masonry { columns: 3; column-gap: clamp(1rem, 3vw, 2.6rem); }
.masonry img { width: 100%; margin-bottom: clamp(1rem, 3vw, 2.6rem); break-inside: avoid; }

.jobs {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2.6rem;
}
.jobs li {
  width: 212px; min-height: 147px;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 1.6rem .6rem;
  border-radius: 22px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
}

/* ---------- Service pages ---------- */

.gallery-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.6rem); }
.gallery-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.figure-row { display: grid; gap: 1.5rem; }
.figure-row--4 { grid-template-columns: repeat(2, 1fr); }
.figure-row img { width: 100%; border-radius: 4px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--light); padding: clamp(3rem, 5vw, 4.5rem) 0 3rem; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr .7fr 1.45fr .7fr;
  gap: 2rem;
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
}
.site-footer h2 { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin: 0 0 1.4rem; }
.site-footer p { line-height: 1.75; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; padding-top: 1rem; }
.site-footer__brand img { width: 200px; }
.site-footer__insta { display: inline-flex; color: var(--black); }
.hours { border-collapse: collapse; line-height: 1.75; }
.hours th { text-align: left; font-weight: 400; padding: 0 .8rem 0 0; vertical-align: top; white-space: nowrap; }
.hours td { padding: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .site-nav { gap: 1.2rem; }
  .site-footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .site-nav { display: none; }
  .burger { display: block; }
  .header-call { display: inline-flex; }
  .site-header__inner { gap: .6rem; }
  .site-header__logo img { width: 150px; }

  .split, .booking-card { grid-template-columns: 1fr; }
  .booking-card { padding: 0 1.5rem 2rem; gap: 0; }
  .booking-card__img { width: min(100%, 260px); justify-self: center; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service__icon, .services-grid--large .service__icon { width: min(170px, 100%); }

  .masonry { columns: 2; }
  .gallery-row { grid-template-columns: 1fr; }
  .prose { text-align: left; }

  .hero__actions { gap: 1rem; }
  .hero__actions .btn { min-width: 0; flex: 1 1 140px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .form__row { grid-template-columns: 1fr; }
  .form__row--phone { grid-template-columns: 1fr 1.3fr; gap: .8rem; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__brand { flex-direction: column; align-items: flex-start; }
  .jobs { gap: 1.2rem; }
  .jobs li { width: 100%; min-height: 0; }
  .figure-row--4 { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
}

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