/* Praxis Jungmann — Styles. Selbst gehostet, kein CDN, DSGVO-sauber. */
@import url('assets/fonts.css');

:root {
 --primary: #FB923C;      /* Hauptfarbe: Pfirsich-Orange (wärmer als Grün) */
 --secondary: #2C405B;    /* Akzentfarbe: Dunkelblau aus Original */
 --neutral: #F7F4EE;      /* Hintergrund: warmer Sandton */
 --light: #EFE9DD;        /* Section-Abgrenzung */
 --muted: #5B6B80;        /* Text-Secondary */
 --paper: #FFFFFF;        /* Weiß für Karten/Hintergründe */
 --radius: 18px;
 --shadow-sm: 0 2px 10px rgba(30, 44, 64, .07);
 --shadow-md: 0 10px 34px rgba(30, 44, 64, .12);
 --font-head: 'Libre Franklin', 'Segoe UI', Arial, sans-serif;
 --font-body: 'Arimo', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--secondary);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Kein horizontaler Scroll */
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--secondary); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--sand { background: var(--neutral); }
.section--green050 { background: rgba(251, 146, 60, 0.08); }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; font-size: .78rem;
  color: var(--primary); margin-bottom: 14px;
}
.kicker--light { color: rgba(251, 146, 60, 0.8); }
h2.title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 18px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .3s ease, box-shadow .3s ease;
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.header.scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  text-decoration: none; position: relative; padding: 4px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--primary); transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }
.header.scrolled .nav a { color: var(--secondary); }
.nav .btn-nav {
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 999px;
}
.nav .btn-nav::after { display: none; }
.nav .btn-nav:hover { background: var(--primary); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.header.scrolled .burger span { background: var(--secondary); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; background: var(--secondary); color: #fff;
}
.hero video, .hero .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(20,32,48,.82) 0%, rgba(20,32,48,.55) 45%, rgba(20,32,48,.15) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 140px 24px 90px; width: 100%; }
.hero-logo { max-height: 92px; width: auto; margin-bottom: 26px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.3rem); font-weight: 800; max-width: 18ch; }
.hero p.sub { margin: 18px 0 34px; font-size: 1.15rem; color: #E8EDF4; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 15px 30px; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--secondary); color: #fff; }
.btn--dark:hover { background: var(--secondary); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px); border-radius: 999px; padding: 7px 16px;
  font-size: .85rem; font-family: var(--font-head); font-weight: 600; color: #EDF3FA;
}
.badge svg { width: 15px; height: 15px; stroke: var(--primary); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.85); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--font-head);
}
.scroll-hint::after {
  content: ''; display: block; width: 1px; height: 34px; margin: 8px auto 0;
  background: linear-gradient(rgba(255,255,255,.85), transparent);
  animation: drip 2s infinite;
}
@keyframes drip { 0% {transform: scaleY(0); transform-origin: top;} 45% {transform: scaleY(1);} 100% {transform: scaleY(0); transform-origin: bottom;} }

/* ---------- Cards / Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--light); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }

/* Floating Animation für Cards */
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.card {
  animation: floatCard 6s ease-in-out infinite;
}

.card:nth-child(2) { animation-delay: 1s; }
.card:nth-child(3) { animation-delay: 2s; }
.card:nth-child(4) { animation-delay: 3s; }
.card:nth-child(5) { animation-delay: 4s; }
.card:nth-child(6) { animation-delay: 5s; }
.card:nth-child(7) { animation-delay: 6s; }
.card:nth-child(8) { animation-delay: 7s; }
.card:nth-child(9) { animation-delay: 8s; }
.card:nth-child(10) { animation-delay: 9s; }

.card:hover { animation: none; }
.card h3 { font-size: 1.12rem; margin: 14px 0 8px; font-weight: 700; }
.card p { font-size: .95rem; color: var(--muted); }
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(251, 146, 60, 0.08); color: var(--primary); flex-shrink: 0;
}
.icon-tile svg { width: 26px; height: 26px; }
.round-img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* Anwendungschips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  background: #fff; border: 1px solid var(--light); border-radius: 999px;
  padding: 9px 18px; font-size: .92rem; font-family: var(--font-head); font-weight: 600;
  transition: all .2s ease; cursor: default;
}
.chip:hover { border-color: var(--primary); background: rgba(251, 146, 60, 0.08); color: var(--primary); transform: translateY(-2px); }

/* Scroll-Triggered Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Animation Delays */
.reveal[data-d="1"] { transition-delay: 0s; }
.reveal[data-d="2"] { transition-delay: 0.15s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }
.reveal[data-d="4"] { transition-delay: 0.45s; }
.reveal[data-d="5"] { transition-delay: 0.6s; }
.reveal[data-d="6"] { transition-delay: 0.75s; }
.reveal[data-d="7"] { transition-delay: 0.9s; }
.reveal[data-d="8"] { transition-delay: 1.05s; }
.reveal[data-d="9"] { transition-delay: 1.2s; }

/* Parallax-Band (JavaScript-basierter Parallax für alle Geräte) */
.parallax-band, .parallax-band-abstract {
  position: relative;
  min-height: 400px; /* Standard für Mobile */
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 0;
  background: #1a1a1a; /* Dunkler Hintergrund als Fallback */
}

/* Desktop: Höherer Parallax-Bereich */
@media (min-width: 768px) {
  .parallax-band {
    min-height: 500px; /* Desktop: 100px höher */
  }
  .parallax-band-abstract {
    min-height: 450px; /* Desktop: 100px höher */
  }
}
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.parallax-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%; /* Mehr Höhe für Parallax-Bewegung ohne Hintergrund-Sichtbarkeit */
  min-height: 500px;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

/* Spezifische Anpassung für Hahnemann-Parallax - Desktop optimiert */
@media (min-width: 768px) {
  .parallax-band .parallax-bg-img {
    height: 150%;
    top: 0;
    object-position: center top; /* Gesichtsbereich oben zentrieren */
  }
}

/* Spezifische Anpassung für Hahnemann-Parallax - Mobile optimiert */
@media (max-width: 767px) {
  .parallax-band .parallax-bg-img {
    height: 150%;
    top: 0;
    object-position: center center; /* Mobile wie vorher */
  }
}
.parallax-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44,64,91,0.4);
  z-index: 1;
}
.parallax-band blockquote {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  max-width: 30ch;
  padding: 0 24px;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}

/* Mobile Fixes */
@media (max-width: 768px) {
  img { width: 100% !important; height: auto !important; max-width: none !important; }
  video { width: 100% !important; height: 100% !important; }
  .round-img { width: 100% !important; height: auto !important; }
  .quote-card img, .quote-badge img { width: 80px !important; height: 80px !important; }
}

/* Quotes */
.quote-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--light); box-shadow: var(--shadow-sm);
}
.quote-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.quote-card blockquote { font-style: italic; color: var(--muted); font-size: .98rem; }
.quote-card .who { font-family: var(--font-head); font-weight: 700; margin-top: 8px; font-size: .88rem; color: var(--secondary); }

/* Ablauf */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--primary); display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: .92rem; color: var(--muted); }

/* Telefon-Sprechstunde Banner */
.cta-phone {
  background: var(--primary);
  color: #fff; border-radius: 24px; padding: 54px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px;
  position: relative; overflow: hidden;
}
.cta-phone::before {
  content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px;
  background: rgba(255,255,255,.08); border-radius: 50%;
}
.cta-phone h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.cta-phone p { max-width: 52ch; color: rgba(255,255,255,0.9); }
.cta-phone .btn { background: #fff; color: var(--primary); }
.cta-phone .btn:hover { background: var(--neutral); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-list { list-style: none; display: grid; gap: 18px; margin-top: 24px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list a, .contact-list span { font-size: 1.05rem; font-weight: 600; }
.map-consent {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--light); position: relative; min-height: 320px;
  background: var(--neutral) url('assets/img/hero-poster.webp') center/cover;
  display: grid; place-items: center; text-align: center;
}
.map-consent .inner { background: rgba(255,255,255,.94); margin: 30px; padding: 30px; border-radius: 14px; max-width: 380px; }
.map-consent p { font-size: .9rem; color: var(--muted); margin: 10px 0 18px; }

/* Öffnungszeiten */
.hours { margin-top: 26px; background: #fff; border: 1px solid var(--light); border-radius: var(--radius); padding: 22px 26px; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; font-size: .95rem; }
.hours dt { font-weight: 700; font-family: var(--font-head); }
.hours dd { color: var(--muted); }

/* Footer */
.footer { background: var(--secondary); color: #B9C4D4; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: #B9C4D4; }
.footer a:hover { color: #fff; }
.footer .logo img { height: 38px; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem;
}

/* ---------- Buchung ---------- */
.booking-hero {
  background: linear-gradient(120deg, var(--secondary), var(--secondary)); color: #fff; padding: 130px 0 64px;
}
.booking-hero h1 { color: #fff; }
.wizard {
  max-width: 760px; margin: -40px auto 0; background: #fff; border-radius: 22px;
  box-shadow: var(--shadow-md); padding: 40px; position: relative; z-index: 3;
}
.progress { display: flex; gap: 8px; margin-bottom: 34px; }
.progress span { flex: 1; height: 5px; border-radius: 99px; background: rgba(251, 146, 60, 0.08); transition: background .3s; }
.progress span.on { background: var(--primary); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.day-group h4 { margin: 22px 0 10px; font-size: .95rem; }
.slot {
  border: 1.5px solid var(--light); background: #fff; border-radius: 12px; padding: 11px 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: all .18s ease; text-align: center;
}
.slot:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.slot.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--light); border-radius: 12px;
  font: inherit; color: var(--secondary); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(251,146,60,.14);
}
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; } /* Honeypot */
.wizard-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; }
.summary { background: rgba(251, 146, 60, 0.08); border: 1px solid rgba(251, 146, 60, 0.08); border-radius: 14px; padding: 22px; margin-bottom: 24px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.success-tick {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(251, 146, 60, 0.08);
  display: grid; place-items: center; margin: 0 auto 22px; animation: pop .5s cubic-bezier(.2,1.6,.4,1);
}
.success-tick svg { width: 38px; height: 38px; stroke: var(--primary); }
@keyframes pop { 0% {transform: scale(0);} 100% {transform: scale(1);} }
.notice { font-size: .84rem; color: var(--muted); background: var(--neutral); border-radius: 10px; padding: 14px 16px; margin-top: 22px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 130px 24px 80px; }
.legal h1 { font-size: 2rem; margin-bottom: 26px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 12px; }
.legal p, .legal li { color: #44536A; font-size: .96rem; }
.legal ul { padding-left: 22px; margin: 10px 0; }

/* ---------- Reveal-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; } .reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; } .reveal[data-d="4"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  #praxis .grid-2 > div:nth-child(2) { order: -1; } /* Praxis: Bild auf Mobile zuerst */
  #praxis .grid-2 > div:nth-child(1) { order: 1; }  /* Praxis: Text auf Mobile danach */
  .steps { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 22px 24px; gap: 16px; box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { color: var(--secondary) !important; }
  .burger { display: block; }
  .hero { min-height: 88vh; }
  .section { padding: 64px 0; }
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: #fff;
  padding: 15px 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(251,146,60,0.4);
  z-index: 100;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: floatCtaFadeIn 0.6s ease forwards, floatCtaPulse 2s ease-in-out infinite 2s;
  animation-delay: 1s, 2s;
}

@keyframes floatCtaFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCtaPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(251,146,60,0.4); }
  50% { box-shadow: 0 6px 24px rgba(251,146,60,0.6); transform: translateY(-2px); }
}

.floating-cta:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 28px rgba(251,146,60,0.5);
  background: #E87430;
}

.floating-cta:active {
  transform: scale(1);
}

@media (max-width: 768px) {
  .floating-cta {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .floating-cta span {
    display: inline;
  }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .wizard { padding: 26px 20px; }
  .cta-phone { padding: 36px 26px; }
}
