/* =========================================================
   PSYCHOTHERAPEUTISCHE PRAXIS – ONE PAGE TEMPLATE
   ========================================================= */

/* ---------- Grundeinstellungen ---------- */

:root {
  --background: #696969;
  --background-soft: #696969;
  --text: #eeeeeb;
  --text-muted: #b8b9b5;
  --line: rgba(238, 238, 235, 0.16);

  --header-height: 76px;
  --content-width: 1180px;
  --text-width: 1300px;

  --space-section: clamp(60px, 7.5vw, 125px);    
 /*--space-section: clamp(120px, 15vw, 250px); */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
 /* scroll-padding-top: -50px; /*
  /*scroll-padding-top: var(--header-height); */

}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

/* ---------- Statisches Hintergrundbild ---------- */

/*
  Ersetze "assets/background.jpg" durch dein eigenes Bild.

  background-attachment: fixed sorgt dafür, dass das Bild beim
  Scrollen statisch bleibt.

  Falls du lieber nur eine dunkle Fläche möchtest, kannst du
  background-image entfernen.
*/

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  background-image:
    linear-gradient(
      rgba(8, 9, 9, 0.72),
      rgba(8, 9, 9, 0.78)
    ),
    url("assets/background.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(8, 9, 9, 0.15);
  pointer-events: none;
}

/* ---------- Navigation ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  min-height: var(--header-height);
  padding: 0 4vw;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  background: rgba(13, 14, 14, 0.88);
  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.5vw, 38px);
}

.main-nav a {
  position: relative;

  color: var(--text-muted);
  text-decoration: none;

  font-size: 0.82rem;
  letter-spacing: 0.04em;

  transition: color 220ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;

  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;

  transition: transform 220ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

/* ---------- Bereiche ---------- */

.section {
  scroll-margin-top: 90px;
  min-height: 100vh;
  padding:
    calc((var(--header-height) + var(--space-section))/1.7)
      4vw
    var(--space-section);

  display: flex;
  align-items: center;
}

.section--welcome {
	min-height: 100svh;
}

.section--last {
  padding-bottom: 160px;
}

.section-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;

  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;

  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(4rem, 10vw, 6rem);
}

h2 {
  font-size: clamp(3.2rem, 8vw, 5rem);
}

/* ---------- Breite PNG-Bereiche ---------- */

/*
  Die vorgesehenen Bilder sind bewusst sehr breit und flach.
  Zielverhältnis ungefähr 100 : 20 = 5 : 1.

  Ersetze den gesamten .image-placeholder später durch:
  <img class="wide-image" src="assets/dein-bild.png" alt="">
*/

.image-placeholder {
  width: 100%;
  aspect-ratio: 5 / 1;

  margin: clamp(55px, 8vw, 55px) 0;

  display: flex;
  align-items: center;
  justify-content: center;

  .border: 1px dashed rgba(238, 238, 235, 0.28);
  .background: rgba(238, 238, 235, 0.045);

  .color: rgba(238, 238, 235, 0.48);

  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wide-image {
  display: block;
  width: 100%;
  height: auto;

  margin: clamp(55px, 8vw, 100px) 0;

  object-fit: contain;
}

/* ---------- Text ---------- */

.text-column {
  width: min(100%, var(--text-width));

  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

.text-column p {
  margin: 0 0 1.6em;
}

.text-column p:last-child {
  margin-bottom: 0;
}

/* ---------- Kontakt ---------- */

.contact-button {
  display: inline-block;
  margin-top: 55px;

  padding: 13px 24px;

  border: 1px solid rgba(238, 238, 235, 0.45);

  color: var(--text);
  text-decoration: none;

  font-size: 0.82rem;
  letter-spacing: 0.05em;

  transition:
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.contact-button:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--background);
}

/* ---------- Footer ---------- */

.site-footer {
  width: min(100% - 8vw, var(--content-width));
  margin: 0 auto;
  padding: 30px 0 45px;

  display: flex;
  justify-content: space-between;
  gap: 30px;

  border-top: 1px solid var(--line);

  color: rgba(238, 238, 235, 0.45);
  font-size: 0.72rem;
}

/* ---------- Scroll-Reveal ---------- */

.section-inner > * {
  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.section-inner.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.section-inner.is-visible > *:nth-child(2) {
  transition-delay: 100ms;
}

.section-inner.is-visible > *:nth-child(3) {
  transition-delay: 180ms;
}

.section-inner.is-visible > *:nth-child(4) {
  transition-delay: 260ms;
}

.section-inner.is-visible > *:nth-child(5) {
  transition-delay: 340ms;
}

/* ---------- Mobile ---------- */

@media (max-width: 800px) {
  :root {
    --header-height: 116px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 14px 5vw;

    flex-direction: column;
    justify-content: center;
    gap: 9px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .main-nav a {
    font-size: 0.72rem;
  }

  .section {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  /*
    Auf kleinen Displays darf das Motiv etwas höher werden,
    damit die Beschriftung und Bildwirkung erhalten bleiben.
  */
  .image-placeholder {
    aspect-ratio: 5 / 1;
  }

  .site-footer {
    width: 90%;
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- Bewegungsreduktion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .section-inner > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .main-nav a::after {
    transition: none;
  }
}
