/* ===== Psychotherapie Dietrichkeit — Minimal Design ===== */

/* ===== Self-hosted fonts ===== */

/* Inter – latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter – latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display – latin-ext */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/playfair-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Playfair Display – latin */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-border: #e8e2dc;
  --color-text: #2c2825;
  --color-text-secondary: #6b6259;
  --color-accent: #b8624a;
  --color-accent-hover: #9a4e3a;
  --color-accent-light: #f3ebe7;
  --color-warm-gray: #f0ece8;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  --max-width: 680px;
  --max-width-wide: 1080px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --radius: 0.5rem;
}

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

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 999;
  font-size: 0.875rem;
}
.skip-link:focus {
  top: 0;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.brand {
  text-decoration: none;
  color: inherit;
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.brand-tagline {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 0.1rem;
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.main-nav a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 450;
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(90deg) translate(7px); }
.nav-toggle[aria-expanded="true"] .hamburger::after { opacity: 0; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 20rem; }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.75rem;
  }
}

/* ===== Hero (home only) ===== */
.hero--split {
  padding: var(--space-xl) 1.5rem;
  background: linear-gradient(180deg, var(--color-warm-gray) 0%, var(--color-bg) 100%);
}

.hero--split .hero__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero__content {
  text-align: left;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.hero__actions {
  margin-bottom: var(--space-sm);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border-radius: 2rem;
  transition: background 0.2s, transform 0.15s;
}
.hero__cta:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.hero__availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.hero__availability::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: #43a047;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.2);
}

.hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  mix-blend-mode: multiply;
}

@media (max-width: 768px) {
  .hero--split .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    text-align: center;
  }

  .hero__image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ===== Page header (subpages) ===== */
.page-title {
  padding: var(--space-lg) 1.5rem var(--space-md);
  text-align: center;
  background: var(--color-warm-gray);
}

.page-title h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

/* ===== Main content ===== */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) 1.5rem var(--space-xl);
}

.content p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.content ul, .content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.content li {
  margin-bottom: 0.4rem;
}

.content strong {
  font-weight: 600;
}

.content a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ===== Image block ===== */
.image-block {
  margin: var(--space-lg) 0;
}

.image-block img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* ===== Cards grid ===== */
.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: var(--space-md);
}

@media (min-width: 640px) {
  .card-grid--2 { grid-template-columns: 1fr 1fr; }
  .card-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
}

.card-grid--1 { grid-template-columns: 1fr; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.card p {
  font-size: 0.925rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== Steps ===== */
.steps {
  margin-top: var(--space-md);
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.step:last-child { border-bottom: none; }

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.step p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== Hinweis (callout) ===== */
.hinweis {
  margin: var(--space-lg) 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-warm-gray);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.hinweis__label {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  margin-bottom: 0.35rem;
}

.hinweis p:last-child {
  margin: 0;
  color: var(--color-text);
}

/* ===== Profile intro (photo + text side by side) ===== */
.profile-intro {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

.profile-intro figure {
  margin: 0;
}

.profile-intro figure img {
  width: 160px;
  height: auto;
}

.profile-intro__text h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

.profile-intro__text p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.profile-intro__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .profile-intro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-intro__text {
    text-align: left;
  }
}

/* ===== Publications ===== */
.publication-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-sm);
}

.publication-list li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.publication-list li:last-child { border-bottom: none; }

/* ===== Wave section (organic top border) ===== */
.section-wave {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin-top: var(--space-lg);
  margin-bottom: calc(-1 * var(--space-xl));
}

.section-wave__shape {
  display: block;
  line-height: 0;
  overflow: hidden;
}

.section-wave__shape svg {
  display: block;
  width: 100%;
  height: clamp(40px, 5vw, 80px);
}

.section-wave__body {
  background: var(--color-warm-gray);
  padding: var(--space-lg) 1.5rem var(--space-xl);
}

.section-wave__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-wave__inner h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.section-wave__body .publication-list li {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.content--no-pad {
  padding: 0;
}

/* ===== Home wave divider ===== */
.home-wave {
  display: block;
  line-height: 0;
  overflow: hidden;
  background: var(--color-warm-gray);
}

.home-wave svg {
  display: block;
  width: 100%;
  height: clamp(40px, 5vw, 80px);
}

/* ===== Home sections (one-pager) ===== */
.home-section {
  padding: var(--space-xl) 1.5rem;
}

.home-section--dark {
  background: var(--color-warm-gray);
}

.home-section--light {
  background: var(--color-surface);
}

/* Shared inner constraint */
.home-section__constrained {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.home-section__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-md);
}

.home-section__intro {
  max-width: var(--max-width);
  margin: 0 auto var(--space-md);
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.home-section__link {
  margin-top: var(--space-md);
  text-align: center;
}

.home-section__link a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: color 0.2s;
}

.home-section__link a:hover {
  color: var(--color-accent-hover);
}

.section-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: color 0.2s;
}

.section-link:hover {
  color: var(--color-accent-hover);
}

/* ===== Home cards section ===== */
.home-section__constrained .card-grid {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

/* ===== Home profile teaser ===== */
.home-profile__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.home-profile__image {
  margin: 0;
}

.home-profile__image img {
  width: 160px;
  height: auto;
  border-radius: var(--radius);
}

.home-profile__text h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

.home-profile__text p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .home-profile__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .home-profile__text {
    text-align: left;
  }
}

/* ===== Home text teaser ===== */
.home-text__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.home-text__inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.home-text__inner p {
  margin-bottom: 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== Home steps teaser ===== */
.home-steps__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.home-steps__inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

/* ===== Home CTA / Contact ===== */
.home-cta__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.home-cta__inner h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.home-cta__inner p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.home-cta__inner a {
  color: var(--color-accent);
  font-weight: 500;
}

.home-cta__inner a:hover {
  color: var(--color-accent-hover);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-text);
  color: #e8e2dc;
  padding: var(--space-lg) 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}

.site-footer p, .site-footer address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #c4bbb3;
}

.site-footer a {
  color: #ddd3cb;
}
.site-footer a:hover {
  color: #fff;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a {
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: var(--max-width-wide);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #8a7f77;
  text-align: center;
}

/* ===== Legal pages (impressum, datenschutz) ===== */
.content--legal h2 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
}

.content--legal h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .hero { padding: var(--space-lg) 1.5rem; }
}
