/* ==========================================================================
   HNO-Privatpraxis Dr. Maas — Redesign
   ========================================================================== */

:root {
  --color-primary: #0f6e5c;
  --color-primary-dark: #0a4f42;
  --color-primary-light: #14a888;
  --color-accent: #e6f4f0;
  --color-accent-2: #f7ede1;
  --color-ink: #14231f;
  --color-ink-soft: #4b5d59;
  --color-bg: #fbfaf7;
  --color-white: #ffffff;
  --color-border: #e4e2da;

  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 20px 45px -25px rgba(15, 40, 34, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(15, 40, 34, 0.25);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--color-primary-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--color-ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-header { max-width: 640px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 14px 28px -12px rgba(15, 110, 92, 0.55);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: rgba(15, 110, 92, 0.3);
  color: var(--color-primary-dark);
}
.btn-outline:hover { border-color: var(--color-primary); background: var(--color-accent); }

.btn-light {
  background: var(--color-white);
  color: var(--color-primary-dark);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.96rem;
}

.main-nav a {
  position: relative;
  color: var(--color-ink);
  padding: 6px 2px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -220px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(20,168,136,0.18), transparent 70%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow { }

.hero-copy p.lead {
  font-size: 1.12rem;
  max-width: 520px;
}

.hero-badges {
  list-style: none;
  margin: 28px 0 34px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--color-ink);
}

.hero-badges li::before {
  content: '✓';
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media {
  position: relative;
}

.hero-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}

.hero-media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  bottom: -28px;
  left: -36px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}

.hero-floating-card .icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.hero-floating-card strong { display: block; font-size: 1rem; color: var(--color-primary-dark); }
.hero-floating-card span { font-size: 0.85rem; color: var(--color-ink-soft); }

/* ---------- Hours strip ---------- */
.hours-strip {
  background: var(--color-primary-dark);
  color: #fff;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 40px 0;
}

.hours-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hours-item .icon {
  width: 46px; height: 46px; min-width: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.hours-item h4 { color: #fff; margin: 0 0 4px; font-size: 1.05rem; }
.hours-item p { color: rgba(255,255,255,0.75); margin: 0; font-size: 0.94rem; }

/* ---------- USP cards ---------- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.usp-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.usp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.usp-card .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.usp-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.usp-card p { font-size: 0.94rem; margin: 0; }

/* ---------- Services ---------- */
.services {
  background: var(--color-white);
}

.services-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.service-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-gallery img {
  border-radius: var(--radius-md);
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.service-gallery a:nth-child(1) img { aspect-ratio: 3/4; }
.service-gallery a:nth-child(2) { margin-top: 32px; }
.service-gallery a:nth-child(3) { margin-top: -32px; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 100px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.service-tag:hover { background: var(--color-white); border-color: var(--color-primary); }
.service-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); }

/* ---------- About / Trust band ---------- */
.trust-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.trust-band h2 { color: #fff; }
.trust-band p { color: rgba(255,255,255,0.85); }

.value-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
}

.value-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.value-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.value-item span { font-size: 0.88rem; color: rgba(255,255,255,0.75); }

.trust-band-phone {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}
.trust-band-phone .label { font-size: 0.85rem; opacity: 0.8; margin-bottom: 6px; }
.trust-band-phone .number { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-ink);
  padding: 22px 24px;
  cursor: pointer;
}

.faq-question .plus {
  min-width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.open .faq-question .plus {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--color-ink-soft);
}

.faq-side {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 44px;
  align-self: start;
  position: sticky;
  top: 110px;
}

.faq-side h3 { margin-bottom: 12px; }

/* ---------- Contact ---------- */
.contact {
  background: var(--color-white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.contact-card .icon {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 14px;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.contact-card h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--color-primary-dark); }
.contact-card p { margin: 0; font-size: 0.94rem; }
.contact-card a { color: var(--color-primary); font-weight: 700; }

.map-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 380px;
  border: 1px solid var(--color-border);
  padding: 40px;
  background:
    radial-gradient(circle at 20% 20%, rgba(15,110,92,0.08) 0, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(15,110,92,0.08) 0, transparent 45%),
    linear-gradient(var(--color-accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  background-color: var(--color-white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.map-card-pin {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
  box-shadow: 0 14px 28px -12px rgba(15, 110, 92, 0.55);
}

.map-card h3 { margin: 0; font-size: 1.2rem; }
.map-card p { max-width: 320px; margin: 0 0 10px; }
.map-card .btn { pointer-events: none; margin-top: 6px; }

/* ---------- Footer CTA ---------- */
.footer-cta {
  background: var(--color-accent-2);
  padding: 72px 0;
  text-align: center;
}

.footer-cta h2 { max-width: 640px; margin: 0 auto 12px; }
.footer-cta p { max-width: 540px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand .logo-mark { background: rgba(255,255,255,0.16); }
.footer-brand p { color: rgba(255,255,255,0.65); max-width: 320px; }

.footer-col h4 { color: #fff; font-size: 0.98rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 72px 0 96px; }
.legal-page h1 { margin-bottom: 24px; }
.legal-page h2 { font-size: 1.4rem; margin-top: 40px; }
.legal-page p, .legal-page li { color: var(--color-ink-soft); }
.legal-page a.back-link { display: inline-flex; align-items:center; gap:8px; margin-bottom: 28px; font-weight: 700; color: var(--color-primary); }

/* ---------- Reveal animation ---------- */
/* Pure CSS fade-in-on-load. Deliberately not scroll-linked: tying visibility to
   scroll position/IntersectionObserver risks leaving below-the-fold content stuck
   at opacity 0 if a viewport measurement is ever wrong (e.g. 0 during early layout)
   or a fast/instant scroll skips the trigger. This always ends in the visible state. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-in 0.7s ease forwards;
}

@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .services-layout { grid-template-columns: 1fr; }
  .service-gallery { max-width: 480px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .trust-band { grid-template-columns: 1fr; text-align: center; padding: 44px 28px; }
  .value-item { text-align: left; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .hours-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .header-actions .btn-primary { display: none; }
  .header-actions { gap: 8px; }
  .header-inner { padding: 14px 20px; gap: 12px; }
  .usp-grid { grid-template-columns: 1fr; }
  .hero-floating-card { position: static; max-width: none; margin: 16px 20px 0; }
  .section { padding: 64px 0; }
  .hero-cta .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
}

@media (max-width: 400px) {
  .logo { font-size: 1.05rem; gap: 8px; }
  .logo-mark { width: 36px; height: 36px; }
  .header-inner { padding: 12px 16px; }
}

/* ---------- Mobile nav panel ---------- */
.mobile-nav-extra { display: none; }

.nav-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  z-index: 210;
}
.nav-toggle span {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 31, 0.45);
  /* Below .site-header's own z-index (100): .site-header is position:sticky with
     z-index:100, which makes it its own stacking context — anything with a HIGHER
     z-index than that, even as a body-level sibling, paints over the entire header
     including the mobile nav panel inside it (that's why the menu looked dimmed).
     Staying below 100 keeps the backdrop under the header/menu but still above the
     unpositioned page content behind it. */
  z-index: 95;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.nav-open .nav-backdrop {
  display: block;
  opacity: 1;
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-open .main-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 82px 16px auto 16px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  z-index: 200;
}
body.nav-open .main-nav ul {
  flex-direction: column;
  gap: 2px;
  font-size: 1.05rem;
}
body.nav-open .main-nav a {
  display: block;
  padding: 14px 10px;
  border-bottom: 1px solid var(--color-border);
}
body.nav-open .main-nav li:last-child a { border-bottom: none; }

body.nav-open .mobile-nav-extra {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}
body.nav-open .mobile-nav-extra .btn { width: 100%; }

body.nav-open { overflow: hidden; }
