/* Psychotherapeutikum – statisches Stylesheet
   Ein einziges CSS, geteilt von allen DE- und EN-Seiten.
   System-Schriften, keine externen Requests, DSGVO-freundlich. */

:root {
  --color-bg: #faf8f4;
  --color-surface: #ffffff;
  --color-text: #1f2a26;
  --color-text-muted: #5a6a64;
  --color-primary: #2f5d52;
  --color-primary-hover: #234740;
  --color-accent: #b08a4a;
  --color-border: #e3dcd1;
  --color-border-strong: #c8bdab;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 38rem;
  --measure-wide: 64rem;

  --radius: 4px;
  --shadow-soft: 0 1px 2px rgba(31, 42, 38, 0.04), 0 4px 16px rgba(31, 42, 38, 0.05);
}

* { box-sizing: border-box; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* --- Typografie --- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.55rem; margin-top: 2.2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }

p { margin: 0 0 1.1em; }

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--color-primary-hover); }
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

ul { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

blockquote {
  margin: 1.5em 0;
  padding: 0.4em 1.2em;
  border-left: 3px solid var(--color-accent);
  font-style: italic;
  color: var(--color-text-muted);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 3em 0;
}

/* --- Header --- */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.brand__mark {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: block;
}
.brand__text {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.brand__text small {
  display: block;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* --- Navigation --- */

.nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.nav__right { margin-left: auto; }

.lang-switch {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-left: 1rem;
  border-left: 1px solid var(--color-border);
}

@media (max-width: 760px) {
  .site-header__inner {
    padding: 0.7rem 1.1rem;
    gap: 0.8rem;
  }
  .nav {
    gap: 0.9rem 1.1rem;
    width: 100%;
    font-size: 0.88rem;
  }
  .lang-switch {
    margin-left: auto;
    padding-left: 0.8rem;
  }
}

/* --- Hero (Startseite: Aquarell mit Text-Overlay) --- */

.hero {
  position: relative;
  width: 100%;
  height: clamp(440px, 62vh, 640px);
  overflow: hidden;
  background-color: var(--color-surface);
  background-image: url(img/hero.png);
  background-size: cover;
  background-position: 30% 0%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-border);
}

/* Zweiter Parallax-Banner (unten nach "Aktuelles") */
.parallax-banner {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vh, 420px);
  overflow: hidden;
  background-color: var(--color-surface);
  background-image: url(img/hero.png);
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  margin: 3rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 760px) {
  .parallax-banner {
    height: clamp(220px, 32vh, 300px);
    margin: 2rem 0;
  }
}
.hero__overlay {
  position: absolute;
  top: 50%;
  right: max(2rem, calc(50vw - 36rem));
  transform: translateY(-50%);
  max-width: 28rem;
  padding: 2rem 2.2rem;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  border-radius: var(--radius);
}
.hero__overlay h1 {
  font-size: 1.85rem;
  margin: 0 0 0.5em;
  line-height: 1.2;
}
.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 1.4em;
  line-height: 1.5;
}
.hero__cta {
  display: inline-block;
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  padding: 0.8em 1.7em;
  border-radius: var(--radius);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.15s ease;
}
.hero__cta:hover {
  background: var(--color-primary-hover);
  color: #ffffff;
}

/* Klassischer schmaler Hero (Unterseiten ohne Bild) */
.hero__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.hero__inner h1 { font-size: 2.4rem; margin-bottom: 0.4em; }

@media (max-width: 760px) {
  .hero {
    height: clamp(420px, 78vh, 560px);
    background-position: 40% 50%;
  }
  .hero__overlay {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    max-width: none;
    padding: 1.4rem 1.4rem;
  }
  .hero__overlay h1 { font-size: 1.4rem; }
  .hero__tagline { font-size: 0.92rem; margin-bottom: 1.1em; }
}

/* --- Hauptinhalt --- */

main {
  padding: 3rem 1.5rem 4rem;
}
.container {
  max-width: var(--measure);
  margin: 0 auto;
}
.container--wide {
  max-width: var(--measure-wide);
}

.page-title {
  margin-bottom: 0.3em;
}
.page-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2em;
}

/* --- Service-Übersicht (Kacheln) --- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 2.5rem 0;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: block;
}
.service-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.service-card h3 {
  margin: 0 0 0.3em;
  font-size: 1.1rem;
  color: var(--color-primary);
}
.service-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* --- Briefkopf: prominentes Wappen + Titel (Vita, Impressum) --- */

.page-letterhead {
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.page-letterhead__seal {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  display: block;
}
.page-letterhead__text {
  flex: 1 1 auto;
  min-width: 0;
}
.page-letterhead__text .page-title {
  margin-top: 0.2em;
  margin-bottom: 0.3em;
}
.page-letterhead__text .page-lead {
  margin-bottom: 0;
}
@media (max-width: 540px) {
  .page-letterhead {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .page-letterhead__seal {
    width: 96px;
    height: 96px;
  }
}

/* --- Vita-Porträt --- */

.vita-portrait {
  float: left;
  width: 180px;
  height: auto;
  margin: 0.3rem 1.5rem 0.8rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 540px) {
  .vita-portrait {
    float: none;
    display: block;
    width: 60%;
    max-width: 220px;
    margin: 0 auto 1.5rem;
  }
}

/* --- Bild-Banner auf Service-Unterseiten --- */

.section-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.2rem 0 2.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* --- Testverfahren-Liste --- */

.test-list {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin: 1.5em 0 2em;
}
.test-list h3 {
  margin-top: 0;
  font-size: 1.05rem;
}
.test-list ul {
  column-count: 2;
  column-gap: 2rem;
  padding-left: 1.1em;
  font-size: 0.93rem;
  margin: 0;
}
@media (max-width: 600px) {
  .test-list ul { column-count: 1; }
}

/* --- News / Hinweise --- */

.news {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.news h2 {
  font-size: 1.2rem;
  margin-top: 0;
}
.news ul {
  list-style: none;
  padding: 0;
}
.news li {
  padding: 0.6em 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.news time {
  display: inline-block;
  min-width: 7em;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

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

.contact-box {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin: 2em 0;
  box-shadow: var(--shadow-soft);
}
.contact-box__seal {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  display: block;
}
.contact-box__body {
  flex: 1 1 auto;
  min-width: 0;
}
.contact-box h3 {
  margin-top: 0;
}
.contact-box dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.2rem;
  margin: 0;
}
.contact-box dt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.contact-box dd {
  margin: 0;
}
@media (max-width: 540px) {
  .contact-box {
    flex-direction: column;
    gap: 1rem;
    padding: 1.4rem 1.4rem;
  }
  .contact-box__seal {
    width: 64px;
    height: 64px;
  }
}

/* --- Footer --- */

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem 2rem;
  margin-top: 4rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.site-footer__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  margin-right: 1rem;
}
.site-footer a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.site-footer__partners {
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

/* --- Druck --- */

@media print {
  .site-header, .site-footer, .hero__cta, .nav-toggle { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  a { color: black; text-decoration: none; }
  .container, .hero__inner { max-width: none; }
}
