/* ============================================================
   natürlich Frau – Christina Drozdowski
   Privatpraxis für Physiotherapie, Amberg
   ------------------------------------------------------------
   Farbwelt (vom Original-Logo übernommen):
   Blattgrün, warmes Braun, helles Naturweiß
   Schrift: Georgia (Überschriften), Systemschrift (Fließtext)
   ============================================================ */

:root {
  --bg:        #F8F7F2;   /* helles Naturweiß */
  --bg-alt:    #EDF0E4;   /* zarter Grünton für Abschnitte */
  --card:      #FFFFFF;
  --text:      #3B2F28;   /* dunkles Braun – hoher Kontrast */
  --text-soft: #6A5A4E;
  --primary:   #4B7C3B;   /* Blattgrün aus dem Logo */
  --primary-d: #3A6230;   /* dunkler für Hover/Kontrast */
  --accent:    #6D4C36;   /* Logo-Braun */
  --accent-d:  #56392A;
  --line:      #DCE0CE;
  --radius:    14px;
  --shadow:    0 2px 14px rgba(61, 52, 49, .08);
  --maxw:      1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

a { color: var(--primary-d); }
a:hover { color: var(--accent-d); }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  /* großzügiger Seitenabstand auf dem Desktop, kompakt auf Mobilgeräten */
  padding: 0 clamp(1.5rem, 7vw, 5.5rem);
}

/* Überschriften-Bereiche bekommen zusätzlich Luft zum Rand */
.page-head h1,
.page-head p.lead,
.section-head {
  padding-left: clamp(0rem, 1.5vw, 1.25rem);
}

/* Skip-Link für Screenreader / Tastatur */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--primary-d);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; top: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1.25rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand { text-decoration: none; display: flex; align-items: center; }
.brand img { height: 62px; width: auto; transition: height .3s ease; }

/* Header schrumpft beim Scrollen und bekommt einen Schatten */
.site-header { transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(59, 47, 40, .12); }
.site-header.scrolled .brand img { height: 44px; }

/* Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .45rem .7rem;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  position: relative;
  padding: .5rem .85rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color .2s ease;
}
/* animierte Unterstreichung beim Hover */
.site-nav a::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .25rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:hover { color: var(--primary-d); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"]::after { display: none; }
.site-nav a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
}

/* ---------- Hero (Vollbild-Banner über die ganze Seite) ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Hintergrundbild mit langsamem Ken-Burns-Zoom */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero.jpg") center 30% / cover no-repeat;
  animation: kenburns 22s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.1) translateY(-2%); }
}

/* dunkler Verlauf, damit der Text auf dem Foto lesbar bleibt */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(27, 46, 20, .72) 0%, rgba(27, 46, 20, .45) 45%, rgba(27, 46, 20, .12) 75%);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 4.5rem 0;
  color: #fff;
}

.hero-text h1 { color: #fff; }
.hero-text h1 em { color: #F5C64F; font-style: italic; }

.hero-text .kicker {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  border-radius: 999px;
  padding: .25rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-text p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .92);
  max-width: 46ch;
}

.hero .btn-primary {
  background: var(--primary);
  animation: cta-pulse 3s ease-in-out infinite;
}
.hero .btn-primary:hover { background: var(--primary-d); animation: none; }

/* sanftes Pulsieren des Termin-Buttons */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(75, 124, 59, .55); }
  50%      { box-shadow: 0 0 0 14px rgba(75, 124, 59, 0); }
}
.hero .btn-ghost { border-color: #fff; color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(59, 47, 40, .22);
}
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; }
.btn-ghost {
  border: 1.5px solid var(--primary);
  color: var(--primary-d);
}
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* ---------- Info-Band (Privatpraxis-Hinweis) ---------- */
.notice-band {
  background: var(--accent);
  color: #fff;
  padding: 1.1rem 0;
}
.notice-band .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 2rem;
  align-items: baseline;
  justify-content: center;
  text-align: center;
}
.notice-band strong { font-family: Georgia, serif; }
.notice-band a { color: #fff; text-decoration: underline; }

/* ---------- Abschnitte & Karten ---------- */
.section { padding: 3.5rem 0; position: relative; overflow: hidden; }
.section-alt { background: var(--bg-alt); }

/* Schwebende "Blätter"-Formen im Hintergrund der Abschnitte */
.section::before,
.section::after {
  content: "";
  position: absolute;
  border-radius: 50% 4% 50% 4%;   /* Blattform */
  background: var(--primary);
  opacity: .09;
  pointer-events: none;
}
.section::before {
  width: 260px; height: 260px;
  top: -60px; right: -40px;
  animation: leaf-drift-1 14s ease-in-out infinite;
}
.section::after {
  width: 180px; height: 180px;
  bottom: -40px; left: -20px;
  background: var(--accent);
  animation: leaf-drift-2 19s ease-in-out infinite;
}

/* Blatt 1: großer Schwebe-Bogen mit deutlicher Drehung */
@keyframes leaf-drift-1 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { transform: translate(-70px, 45px) rotate(30deg) scale(1.08); }
  50%  { transform: translate(-120px, 10px) rotate(55deg) scale(.95); }
  75%  { transform: translate(-50px, -35px) rotate(30deg) scale(1.05); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* Blatt 2: taumelt in die Gegenrichtung */
@keyframes leaf-drift-2 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  30%  { transform: translate(80px, -50px) rotate(-40deg) scale(1.12); }
  60%  { transform: translate(140px, 15px) rotate(-70deg) scale(.9); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--text-soft); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(59, 47, 40, .16);
}

.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform .4s ease;
}
.card:hover img { transform: scale(1.05); }

.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--text-soft); flex: 1; }
.card-body .card-link { font-weight: 600; text-decoration: none; }
.card-body .card-link::after { content: " →"; }

/* ---------- Inhaltsseiten ---------- */
.page-head { padding: 3rem 0 1rem; }
.page-head p.lead { color: var(--text-soft); font-size: 1.15rem; max-width: 60ch; }

.content { padding-bottom: 3.5rem; }
.content .prose { max-width: 70ch; }
.content ul { padding-left: 1.2rem; }
.content li { margin-bottom: .35rem; }

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.portrait img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Kurs-/News-Karten (volle Breite) */
.item-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.item-card:hover {
  transform: translateX(6px);
  border-left-color: var(--primary);
  box-shadow: 0 8px 24px rgba(59, 47, 40, .14);
}
.item-card h3 { margin-top: 0; }
.item-card .meta {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--accent-d);
  border-radius: 999px;
  padding: .15rem .8rem;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .6rem;
}
.item-card .price { font-weight: 700; color: var(--primary-d); }

.news-card { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.news-card img { border-radius: 10px; }

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.contact-tile {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(59, 47, 40, .16);
}
.contact-tile h3 { margin-top: 0; }
.contact-tile a { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  background: #3D3431;
  color: #EDE5DD;
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  font-size: .95rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 .6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.site-footer a { color: #F3C9B8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  color: #C9BDB4;
  font-size: .85rem;
}

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .hero { min-height: 65vh; }
  .hero-text { padding: 3rem 0; }
  .brand img { height: 48px; }
  .two-col { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; }
  .news-card { grid-template-columns: 1fr; }
  .news-card img { max-width: 380px; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .site-nav a { padding: .8rem 1rem; }
}

/* ---------- Dynamische Effekte ---------- */

/* Hero-Text blendet beim Laden sanft ein */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text > * { animation: hero-in .7s ease both; }
.hero-text > *:nth-child(2) { animation-delay: .12s; }
.hero-text > *:nth-child(3) { animation-delay: .24s; }
.hero-text > *:nth-child(4) { animation-delay: .36s; }

/* Elemente blenden beim Scrollen ein (Klasse wird per JS gesetzt) */
.reveal {
  opacity: 0;
  transform: translateY(48px) scale(.96);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }

/* Footer-Links rutschen beim Hover leicht nach rechts */
.site-footer li a {
  display: inline-block;
  transition: transform .2s ease;
}
.site-footer li a:hover { transform: translateX(4px); }

/* Bewegung reduzieren, wenn im System gewünscht */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text > *, .hero::after, .section::before, .section::after,
  .hero .btn-primary { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .item-card, .contact-tile, .btn, .card img, .brand img { transition: none; }
  .card:hover, .item-card:hover, .contact-tile:hover, .btn:hover { transform: none; }
  .card:hover img { transform: none; }
}

/* Druck */
@media print {
  .site-header, .site-footer, .btn, .nav-toggle { display: none; }
}
