/* Schriften lokal (SIL Open Font License, siehe fonts/OFL-*.txt) – keine Verbindung zu Google */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin.woff') format('woff');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('fonts/karla-latin.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Bilder immer im richtigen Seitenverhältnis: Die width/height-Angaben im HTML
   dienen nur dazu, Platz zu reservieren. Wo das CSS nur die Breite festlegt,
   wird die Höhe automatisch passend berechnet. */
img { height: auto; }

:root {
  --deep-green: #587339;
  --deep-green-light: #7A9950;
  --sand: #F6F3EC;
  --sand-darker: #E8E2D4;
  --ochre: #2B3155;
  --ochre-dark: #1E2340;
  --blue: #1E2340;
  --blue-soft: #EEF1F8;
  --mustard: #2B3155;
  --mustard-dark: #1E2340;
  --header-tint: #2B3155;
  --red: #2B3155;
  --ink: #262A30;
  --ink-soft: #5A5D63;
  --sage: #E3E9D6;
  --white: #FFFDF9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--blue);
  margin: 0 0 0.5em 0;
}

header {
  background: var(--header-tint);
  border-bottom: 1px solid var(--sand-darker);
  padding: 0.6rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-family: 'Fraunces', serif;
  color: var(--white);
  font-size: 1.3rem;
  padding: 0.6rem 0;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

nav .nav-btn {
  background: transparent;
  border: 1.5px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  font-family: 'Karla', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

nav .nav-btn:hover {
  transform: translateY(-1px);
}

/* Passiv: nur Umrandung in Weiß wie das Logo, kein Hintergrund */
nav .nav-btn[data-section="start"] { background: transparent; border-color: var(--white); color: var(--white); }
nav .nav-btn[data-section="ueberuns"] { background: transparent; border-color: var(--white); color: var(--white); }
nav .nav-btn[data-section="psychotherapie"] { background: transparent; border-color: var(--white); color: var(--white); }
nav .nav-btn[data-section="angebot"] { background: transparent; border-color: var(--white); color: var(--white); }
nav .nav-btn[data-section="kontakt"] { background: transparent; border-color: var(--white); color: var(--white); }

/* Aktiv: gefüllt, wie zuvor der passive Look */
nav .nav-btn.active {
  background: var(--sand-darker);
  border-color: var(--sand-darker);
  color: var(--ink-soft);
  font-weight: 700;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem 2rem;
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.section { display: none; }
.section.active { display: block; }

/* Startseite */
.hero-intro {
  max-width: 640px;
  margin-bottom: 3rem;
}

.hero-intro h2 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.hero-intro p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-banner {
  position: relative;
  height: 340px;
  overflow: hidden;
  margin: -3rem -2rem 0 -2rem;
}

.hero-banner img {
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: cover;
  filter: blur(2px) saturate(0.7) brightness(1.0);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 49, 85, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px; /* Text im sichtbaren Teil über der Welle (.hero-wave, 60px) zentrieren */
}

.hero-banner-overlay h1 {
  color: var(--white);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 4.5vw, 2.4rem);
  text-align: center;
  margin: 0;
  padding: 0 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-wave {
  position: relative;
  margin: -60px -2rem 2.5rem -2rem;
  display: block;
  width: calc(100% + 4rem);
  height: 60px;
}
.hero-wave path { fill: var(--sand); }

.team-photo-hero {
  margin-bottom: 3rem;
  max-width: 520px;
}

.team-photo-hero img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.photo-placeholder {
  width: 220px;
  height: 260px;
  background: var(--sage);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-green-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  flex-shrink: 0;
}

.about-banner {
  background-image: linear-gradient(rgba(46, 42, 34, 0.35), rgba(46, 42, 34, 0.35)), url('bilder/hausmann-setzer-vor-burg-falkenstein.jpg');
  background-size: cover;
  background-position: center 20%;
  border-radius: 14px;
  height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.about-banner h1 {
  color: var(--white);
  margin: 0;
}

.room-gallery {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.room-gallery img {
  width: calc(50% - 0.5rem);
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  flex: 1;
  min-width: 240px;
}

.intro-block {
  background: var(--white);
  border-left: 3px solid var(--red);
  padding: 1.5rem 2rem;
  max-width: 700px;
  border-radius: 0 14px 14px 0;
}

.intro-block p { margin: 0; }

.humor-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 700px;
}

.humor-note img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}

.humor-note p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

/* Über uns */
.bio-card {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--sand-darker);
}

.bio-card:last-child { border-bottom: none; }

.bio-photo {
  width: 180px;
  height: 210px;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
}

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

.bio-text { flex: 1; min-width: 280px; }

.bio-text h2 { font-size: 1.4rem; margin-bottom: 0.1rem; }

.bio-role {
  color: var(--ochre-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.bio-focus {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.bio-focus strong {
  color: var(--deep-green);
  font-family: 'Fraunces', serif;
  font-weight: 500;
}

/* Info-Reiter (Was ist Psychotherapie) */
.info-block {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.info-block h2 { font-size: 1.5rem; }

.info-block a {
  color: var(--ochre);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.info-block a:hover { opacity: 0.75; }

/* Preistabelle Selbstzahlerleistungen */
.price-table {
  max-width: 640px;
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
  font-family: 'Karla', sans-serif;
}

.price-table th, .price-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--sand-darker);
}

.price-table th {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--ochre);
  font-size: 1rem;
}

.price-table td:last-child, .price-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}

.price-table tr:last-child td { border-bottom: none; }

.price-note {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Angebot mit Unterreitern */
.subtabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--sand-darker);
  padding-bottom: 0;
}

.subtabs a {
  background: var(--sand);
  border: 1px solid var(--sand-darker);
  border-bottom: none;
  color: var(--ink-soft);
  font-family: 'Karla', sans-serif;
  font-size: 0.88rem;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  border-radius: 14px 14px 0 0;
  position: relative;
  top: 1px;
}

.subtabs a.active {
  background: var(--white);
  color: var(--deep-green);
  font-weight: 700;
  border-bottom: 1px solid var(--white);
}

.subsection { display: none; background: var(--white); padding: 2rem; max-width: 720px; border-radius: 0 14px 14px 14px;}
.subsection.active { display: block; }
.subsection h3, .subsection .offer-title { font-size: 1.3rem; }

/* Text mit begleitendem Foto im Unterreiter */
.offer-with-photo {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
}

.offer-with-photo .offer-text { flex: 1 1 auto; min-width: 0; }

.offer-with-photo .offer-photo {
  flex: 0 0 auto;
  width: 210px;
  border-radius: 12px;
  display: block;
}

@media (max-width: 640px) {
  .offer-with-photo { flex-direction: column; gap: 1.2rem; }
  .offer-with-photo .offer-photo {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
}

.offer-photo-wide {
  width: 100%;
  border-radius: 12px;
  display: block;
  margin-top: 1.2rem;
}

.offer-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
  stroke: var(--ochre);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Kontakt */
.contact-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-details h2 { font-size: 1.5rem; }
.contact-details p { margin: 0.3rem 0; }

.contact-person {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1rem 0 1.5rem 0;
}

.contact-person img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.contact-person-info p { margin: 0.15rem 0; font-size: 0.95rem; }
.contact-person-info .name { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--blue); margin: 0 0 0.3rem 0; }

@media (max-width: 1024px) {
  nav .nav-btn { padding: 0.6rem 0.9rem; font-size: 0.88rem; }
}

@media (max-width: 900px) {
  .hero-banner { height: 300px; }
  .about-banner { height: 200px; }
}

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  nav .nav-btn { padding: 0.75rem 0.6rem; font-size: 0.85rem; }
  main { padding: 2rem 1.2rem 4rem 1.2rem; }
  .bio-card { flex-direction: column; }
  .hero-banner { height: 280px; margin: -2rem -1.2rem 0 -1.2rem; }
  .hero-wave { margin: -60px -1.2rem 2.5rem -1.2rem; width: calc(100% + 2.4rem); }
  .hero-banner-overlay h1 { font-size: 1.5rem; }
  .about-banner { height: 160px; }
  .about-banner h1 { font-size: 1.6rem; }
  .team-photo-hero { max-width: 100%; }
  .room-gallery img { height: 160px; min-width: 100%; }
  .contact-grid { flex-direction: column; }
  .bio-photo, .photo-placeholder { width: 140px; height: 170px; }
}
footer {
  background: var(--header-tint);
  color: var(--white);
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

nav .nav-btn.footer-link {
  border-color: var(--white);
  color: var(--white);
}

nav .nav-btn.footer-link.active {
  background: var(--sand-darker);
  border-color: var(--sand-darker);
  color: var(--ink-soft);
}

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem;
  color: var(--sand-darker);
  text-align: center;
}

.welcome-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 35, 64, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1.5rem;
}

.welcome-lightbox-overlay.hidden { display: none; }

.welcome-lightbox {
  background: var(--white);
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  padding: 2rem 2rem 1.7rem 2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  position: relative;
  text-align: center;
}

.welcome-lightbox h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--ochre);
  font-size: 1.35rem;
  margin: 0 0 0.9rem 0;
}

.welcome-lightbox p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 0 1.4rem 0;
}

.welcome-lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.2rem;
}

.welcome-lightbox-btn {
  display: inline-block;
  background: var(--ochre);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-family: 'Karla', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.welcome-lightbox-btn:hover { transform: translateY(-1px); }

@media (max-width: 480px) {
  .welcome-lightbox { padding: 1.6rem 1.4rem 1.4rem 1.4rem; }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--header-tint);
  color: var(--white);
  padding: 1.1rem 1.5rem;
  z-index: 200;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.18);
}

.cookie-banner.hidden { display: none; }

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--sand-darker);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-btn {
  border-radius: 999px;
  font-family: 'Karla', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border: 1.5px solid var(--white);
  transition: transform 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}

.cookie-btn:hover { transform: translateY(-1px); }

.cookie-decline {
  background: transparent;
  color: var(--white);
}

.cookie-accept {
  background: var(--sand-darker);
  border-color: var(--sand-darker);
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .cookie-banner { padding: 1rem 1.2rem; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 0.9rem; }
  .cookie-text { font-size: 0.84rem; }
  .cookie-actions { flex-direction: column; }
  .cookie-btn { width: 100%; padding: 0.75rem 1rem; }
}

/* ---- Ergänzungen für die mehrseitige Version ---- */
.nav-btn { display: inline-block; text-decoration: none; line-height: normal; }
a.logo { text-decoration: none; }
.subtabs a { display: inline-block; text-decoration: none; }
.welcome-lightbox-btn { text-decoration: none; }
.cookie-text a { color: inherit; text-decoration: underline; }

/* Seitentitel, der optisch wie eine Hauptüberschrift aussieht, aber keine ist */
.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--blue);
  font-size: 2em;
  line-height: 1.2;
  margin: 0 0 0.5em 0;
}

/* Tastatur-Fokus sichtbar machen */
a:focus-visible, button:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* Google-Maps-Karte mit Zwei-Klick-Lösung (Kontaktseite) */
.map-box {
  width: 100%;
  height: 380px;
  background: var(--sage);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { max-width: 460px; text-align: center; padding: 1.5rem; color: var(--ink); font-size: 0.92rem; }
.map-consent-title { font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--blue); margin: 0 0 0.6rem 0; }
.map-consent a { color: var(--ochre); }
.map-consent-btn {
  background: var(--ochre); color: var(--white); border: none; border-radius: 999px;
  padding: 0.7rem 1.5rem; font-family: 'Karla', sans-serif; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; margin: 0.8rem 0 0.4rem 0;
}
.map-consent-btn:hover { transform: translateY(-1px); }
.map-consent-alt { font-size: 0.85rem; }
.contact-person-info a { color: inherit; }
@media (max-width: 640px) { .map-box { height: 320px; } }
