/* ==========================================================================
   Physiotherapie Eva Loitelsberger — Design-System
   Style: Accessible & Ethical + Minimalism (ui-ux-pro-max)
   Farben: von der Marke/Logo abgeleitet (Petrol-Türkis -> Health-Grün)
   Typografie: Lora (Display) + Raleway (Fließtext) — "Wellness Calm"-Pairing
   ========================================================================== */

:root {
  /* Marke */
  --color-primary: #0891B2;       /* Petrol-Türkis — Nav, Links, Icons */
  --color-primary-dark: #0E7490;  /* Hover/aktiv */
  --color-secondary: #22D3EE;     /* helles Türkis — dekorative Akzente */
  --color-accent: #15803D;        /* Health-Grün — CTA "Anrufen" (AA-Kontrast mit weißem Text: 5:1) */
  --color-accent-dark: #14532D;   /* Hover CTA */

  /* Neutrals */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F0FBFA;        /* zartes Mint für alternierende Sections */
  --color-fg: #123B39;            /* Fließtext, sehr dunkles Petrol statt Schwarz */
  --color-muted: #48605E;         /* sekundärer Text, weiterhin AAA-Kontrast */
  --color-border: #CFEFEA;
  --color-card: #FFFFFF;

  /* Typografie */
  --font-display: 'Lora', 'Georgia', serif;
  --font-body: 'Raleway', 'Segoe UI', sans-serif;
  --font-size-base: 18px;
  --line-height-base: 1.65;

  /* System */
  --radius: 10px;
  --focus-ring: 3px solid var(--color-accent-dark);
  --shadow-sm: 0 1px 3px rgba(18, 59, 57, 0.08);
  --shadow-md: 0 8px 24px rgba(18, 59, 57, 0.10);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --max-width: 1120px;
}

/* -------------------------- Reset & Basics -------------------------- */
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  color: var(--color-fg);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin: 0 0 var(--space-2); }
.lede { font-size: 1.2rem; color: var(--color-muted); }

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

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

address { font-style: normal; }

/* Sichtbarer, kräftiger Fokusring (WCAG AAA-Ziel) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.8em 1.2em;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

section { padding-block: var(--space-5); }
section.alt { background: var(--color-bg-alt); }

/* -------------------------- Header / Navigation -------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0.7rem var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 44px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-primary-dark);
}
.nav-toggle svg { width: 24px; height: 24px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  align-items: center;
  white-space: nowrap;
}
.main-nav a {
  color: var(--color-fg);
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
  color: var(--color-primary-dark);
}

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

/* -------------------------- Buttons -------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-call {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-call:hover { background: var(--color-accent-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn-call:active { transform: translateY(1px); }

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* -------------------------- Hero -------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-6) var(--space-5);
  background:
    radial-gradient(circle at 85% 12%, rgba(34, 211, 238, 0.16), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(22, 163, 74, 0.10), transparent 40%),
    var(--color-bg);
}
.hero-grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  grid-template-columns: 1fr;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-decoration {
  position: absolute;
  top: 68%;
  right: -55px;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--color-primary-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: var(--space-1);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.hero-figure { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.hero-figure img { width: 100%; }

.trust-line {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  color: var(--color-muted);
  font-size: 0.98rem;
}
.trust-line li { list-style: none; display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; }
.trust-line svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-accent); }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero-decoration { width: 420px; height: 420px; right: -40px; top: 50%; opacity: 0.9; }
}

/* -------------------------- Cards / Grids -------------------------- */
.grid { display: grid; gap: var(--space-3); }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.5rem; }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}
.card .icon svg { width: 24px; height: 24px; }

.section-head { max-width: 62ch; margin-bottom: var(--space-4); }
.section-head .eyebrow {
  color: var(--color-primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

/* -------------------------- Gallery -------------------------- */
.gallery {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; }

/* -------------------------- Timeline (Über mich) -------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--color-border); }
.timeline li { position: relative; padding: 0 0 var(--space-3) var(--space-3); }
.timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-border);
}
.timeline .year { font-weight: 700; color: var(--color-primary-dark); display: block; font-family: var(--font-display); }

/* -------------------------- Ausbildungsliste -------------------------- */
.edu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.edu-list li {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin: 0;
}

/* -------------------------- FAQ -------------------------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--color-accent);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 0.6rem; color: var(--color-muted); }

/* -------------------------- Kontakt -------------------------- */
.contact-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-4);
}
.contact-detail { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: var(--space-2); }
.contact-detail .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.contact-detail .icon svg { width: 22px; height: 22px; }
.contact-detail a { font-weight: 700; font-size: 1.15rem; }

.map-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

.map-placeholder {
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  text-align: center;
  padding: var(--space-3);
  background: var(--color-bg-alt);
  color: var(--color-muted);
}
.map-placeholder svg { width: 40px; height: 40px; color: var(--color-primary); }
.map-placeholder p { max-width: 40ch; margin: 0 0 0.4rem; font-size: 0.95rem; }
.map-placeholder .map-load-btn { min-height: 44px; }

/* -------------------------- CTA Band -------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: 20px;
  padding: var(--space-4);
  text-align: center;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .btn-call { background: var(--color-accent); }
.cta-band .btn-call:hover { background: var(--color-accent-dark); }

/* -------------------------- Footer -------------------------- */
.site-footer {
  background: #0F2E2C;
  color: #DCEEEC;
  padding-block: var(--space-4);
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-grid h3 { color: #fff; font-size: 1rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-nav a { text-decoration: none; color: #B9DEDA; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  color: #9CC5C1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
}

/* -------------------------- Mobile Nav -------------------------- */
@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    z-index: 150;
    inset: 68px 0 0 0;
    background: var(--color-bg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: var(--space-3); gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--color-border); }
  .main-nav a { display: block; padding: 1rem 0.2rem; }
  .header-actions .btn-call-text { display: none; }
}

/* -------------------------- Utilities -------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
