/* ============================================================
   therapie-hauser.at — static site styles
   ============================================================ */

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

:root {
  --beige:   #fbf7ef;
  --beige2:  #ece2cf;
  --cream:   #fffdf8;
  --orange:  #b56d12;
  --orange2: #8f5309;
  --sage:    #5f735f;
  --ink:     #202923;
  --dark:    #28302a;
  --mid:     #4f5a50;
  --grey:    #667067;
  --white:   #ffffff;
  --radius:  6px;
  --shadow:  0 18px 45px rgba(31,38,33,0.11);
  --shadow-soft: 0 10px 28px rgba(31,38,33,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.68;
  font-size: 1.02rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(181,109,18,0.38);
  outline-offset: 4px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container.narrow { max-width: 760px; }

/* ---- NAV ---- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 2rem;
  background: linear-gradient(to bottom, rgba(18,24,20,0.50), rgba(18,24,20,0.12));
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
#nav.scrolled {
  background: rgba(255,253,248,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 0.8rem 2rem;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.85rem;
}
.nav-logo img { width: 82px; height: auto; object-fit: contain; }
.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0,0,0,0.65);
  transition: color 0.3s, text-shadow 0.3s;
}
#nav.scrolled .nav-logo span { color: var(--ink); text-shadow: none; }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 10px rgba(0,0,0,0.65);
  transition: color 0.2s, text-shadow 0.2s;
}
#nav.scrolled .nav-links a { color: var(--mid); text-shadow: none; }
.nav-links a:hover { color: #f8bb65; }
#nav.scrolled .nav-links a:hover { color: var(--orange); }
.nav-links a.nav-cta {
  padding: 0.6rem 1.35rem;
  border: 1.5px solid rgba(255,255,255,0.78);
  color: var(--white);
  border-radius: var(--radius);
  background: rgba(24,30,25,0.20);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#nav.scrolled .nav-links a.nav-cta {
  border-color: var(--orange);
  color: var(--orange);
  background: transparent;
}
.nav-links a.nav-cta:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--white);
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}
#nav.scrolled .nav-toggle { color: var(--dark); text-shadow: none; }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh; min-height: 560px;
  background: url('images/hero.jpg') center center / cover no-repeat;
  display: flex; align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 47%, rgba(24,30,24,0.58) 0%, rgba(24,30,24,0.42) 32%, rgba(24,30,24,0.12) 58%),
    linear-gradient(to bottom, rgba(10,12,10,0.66) 0%, rgba(18,20,16,0.35) 34%, rgba(18,20,16,0.24) 58%, rgba(10,12,10,0.72) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto; padding: 5rem 2rem 0;
  text-align: center; color: var(--white);
  text-shadow: 0 2px 18px rgba(0,0,0,0.62);
}
.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0.96;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero-sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.18rem;
  font-weight: 500;
  opacity: 0.96;
  margin-bottom: 2rem;
}
.hero-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  border: none;
  background: transparent;
  padding: 0;
  color: rgba(255,255,255,0.98);
}
.hero-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.86);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  padding: 0.95rem 2.25rem;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border: none; cursor: pointer;
  box-shadow: 0 12px 26px rgba(143,83,9,0.22);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--orange2); transform: translateY(-1px); box-shadow: 0 16px 30px rgba(143,83,9,0.27); }
.btn-primary.full { width: 100%; text-align: center; }

.btn-secondary {
  display: inline-block;
  padding: 0.82rem 1.8rem;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--orange); color: var(--white); }

/* ---- SECTION LABELS ---- */
.section-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.section-label.center, h2.center, p.center { text-align: center; }

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--ink);
}
h3 { font-size: 1.02rem; font-weight: 700; color: var(--mid); margin-bottom: 0.8rem; }

p.subtext { color: var(--mid); max-width: 620px; margin: 0 auto 3rem; }

/* ---- ABOUT ---- */
.about {
  padding: 6rem 2rem;
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}
.about-image img {
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}
.about-text h2 { margin-bottom: 0.2rem; }
.about-text p { color: var(--mid); margin-bottom: 1.2rem; }
.about-text strong { color: var(--ink); font-weight: 700; }
.about-text .btn-secondary { margin-top: 0.5rem; }

/* ---- ACCORDION (Ausbildungen / Schwerpunkte) ---- */
.accordion {
  margin: 0.4rem 0 1rem;
  border-top: 1px solid rgba(95,115,95,0.22);
}
.accordion:last-of-type { border-bottom: 1px solid rgba(95,115,95,0.22); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex; align-items: center; justify-content: space-between;
  user-select: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--orange);
  transition: transform 0.2s;
  line-height: 1;
}
.accordion[open] summary::after { content: '–'; }
.accordion-body {
  padding: 0.4rem 0 1.4rem;
  color: var(--mid);
  font-size: 0.96rem;
}
.ausbildungen { list-style: none; display: grid; gap: 0.9rem; }
.ausbildungen li { line-height: 1.45; }
.ausbildungen li span { color: var(--grey); font-size: 0.9rem; }
.schwerpunkte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.schwerpunkte h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.6rem;
}
.schwerpunkte ul { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.schwerpunkte li { font-size: 0.96rem; color: var(--mid); }

/* ---- SHERLOCK ---- */
.sherlock {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--beige) 0%, #f6efe3 100%);
}
.sherlock-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}
.sherlock-text h2 { margin-bottom: 0.6rem; }
.sherlock-text p { color: var(--mid); }
.sherlock-image img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ---- SERVICES ---- */
.services {
  padding: 6rem 2rem;
  background: #f5efe5;
}
.services h2 { margin-bottom: 3rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.service-card {
  background: rgba(255,253,248,0.96);
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(95,115,95,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 0.9rem;
}
.service-icon {
  width: 70px; height: auto;
  flex-shrink: 0;
  border: none; border-radius: 0;
  object-fit: contain;
  background: transparent;
  margin: 0;
}
.service-card h3 { color: var(--ink); font-size: 1.12rem; margin: 0; line-height: 1.25; }
.service-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.7rem;
}
.service-card p { font-size: 0.98rem; color: var(--mid); }

/* ---- FIRST TALK ---- */
.first-talk {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #f5efe5 0%, var(--beige) 100%);
}
.first-talk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.first-talk-text h2,
.first-talk-billing h2 { margin-bottom: 1rem; }
.first-talk-text p,
.first-talk-billing p { color: var(--mid); margin-bottom: 1.2rem; }
.first-talk-text .btn-secondary { margin-top: 0.5rem; }
.first-talk-image img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ---- PATH PHOTO (fullwidth band) ---- */
.path-photo {
  height: 50vh; min-height: 320px; max-height: 520px;
  overflow: hidden;
}
.path-photo img { object-position: center bottom; }

/* ---- FINAL QUOTE ---- */
.quote-final {
  padding: 5rem 2rem;
  background: var(--ink);
}
.quote-final blockquote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  border: none;
  background: transparent;
  padding: 0;
}
.quote-final blockquote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.2rem;
}
.quote-final blockquote cite {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--orange);
  font-style: normal;
}

/* ---- GALLERY ---- */
.practice { padding: 6rem 0; background: var(--cream); }
.practice .container { padding-bottom: 2.5rem; }
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 270px 270px;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--beige2);
  box-shadow: var(--shadow-soft);
}
.gallery-item img { transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* ---- CONTACT ---- */
.contact {
  padding: 6rem 2rem;
  background: #f5efe5;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--mid); margin-bottom: 2rem; }
.contact-details {
  list-style: none;
  display: flex; flex-direction: column; gap: 1.4rem;
}
.contact-details li { font-size: 0.98rem; color: var(--mid); line-height: 1.6; }
.contact-details strong { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.2rem; }

.contact-form {
  display: flex; flex-direction: column; gap: 1.2rem;
  background: rgba(255,253,248,0.96);
  border: 1px solid rgba(95,115,95,0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--mid); }
.form-group input, .form-group textarea {
  padding: 0.9rem 1rem;
  border: 1.5px solid rgba(95,115,95,0.22);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit; font-size: 1rem; font-weight: 400;
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(181,109,18,0.13);
}
.form-note { font-size: 0.84rem; color: var(--grey); text-align: center; }

/* ---- MAPS (click-to-load) ---- */
.maps-wrap {
  margin-top: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige2);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(95,115,95,0.12);
}
.maps-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 3.5rem 2rem;
  min-height: 320px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--beige2) 100%);
}
.maps-pin { color: var(--orange); margin-bottom: 0.8rem; }
.maps-address {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.maps-load { background: transparent; cursor: pointer; }
.maps-note {
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 1rem;
}
.maps-transport {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--mid);
}
.maps-transport strong { color: var(--orange); font-weight: 700; }
.maps-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--ink);
  padding: 3rem 2rem;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center;
}
.footer-logo { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo img { width: 92px; height: auto; object-fit: contain; }
.footer-logo span {
  font-family: 'Playfair Display', serif;
  color: var(--white); font-size: 1.05rem; font-weight: 600;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.8rem; }
.footer-nav a { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,255,255,0.64); transition: color 0.2s; }
.footer-nav a:hover { color: var(--orange); }

.footer-legal { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-legal .legal { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-legal .legal:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-legal summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.64);
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s;
}
.footer-legal summary::-webkit-details-marker { display: none; }
.footer-legal summary::after {
  content: '+';
  font-size: 1.2rem; color: var(--grey); line-height: 1;
}
.footer-legal .legal[open] summary::after { content: '–'; }
.footer-legal summary:hover { color: var(--orange); }
.legal-body {
  text-align: left;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.6rem 0.4rem 1.4rem;
  color: rgba(255,255,255,0.76);
  font-size: 0.88rem;
  line-height: 1.6;
}
.legal-body p, .legal-body ul { margin-bottom: 0.9rem; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body strong { color: rgba(255,255,255,0.92); }
.legal-body a { color: var(--orange); }

.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .container { padding: 0 1.5rem; }
  .about-grid,
  .sherlock-grid,
  .first-talk-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image img { aspect-ratio: 3/4; max-height: 520px; object-position: center top; }
  .sherlock-image img,
  .first-talk-image img { aspect-ratio: 4/3; max-height: 380px; }
  .sherlock-grid .sherlock-image { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    padding: 0 1.5rem;
  }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item { height: 250px; }
  .schwerpunkte { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 1.1rem; }
  .hero { min-height: 620px; }
  .hero-content { padding: 4rem 1.1rem 0; }
  .hero-eyebrow { font-size: 0.74rem; letter-spacing: 0.15em; }
  .hero-content h1 { font-size: clamp(2.6rem, 15vw, 4rem); }
  .hero-quote { margin-bottom: 2rem; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,253,248,0.98); padding: 1.5rem 2rem; gap: 1.2rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { color: var(--mid); }
  .nav-links.open a.nav-cta { border-color: var(--orange); color: var(--orange); background: transparent; }
  .nav-toggle { display: block; }
  #nav { padding: 1rem 1.5rem; }
  #nav.scrolled { padding: 0.75rem 1.5rem; }
  .about, .sherlock, .services, .first-talk, .practice, .contact { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .contact-form { padding: 1.4rem; }
  .gallery {
    grid-template-columns: 1fr;
    padding: 0 1.1rem;
  }
  .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
  .gallery-item { height: 220px; }
  .services-grid { grid-template-columns: 1fr; }
  .schwerpunkte { grid-template-columns: 1fr; }
  .maps-wrap iframe { height: 320px; }
}
