/* ==========================================================================
   Paolo Raile – Psychotherapie Website
   Design: Warm, ruhig, handwerklich. Kein KI-Template-Look.
   ========================================================================== */

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

:root {
  /* Warme, erdige Palette – kein Corporate-Blau */
  --sand: #f5f0e8;
  --sand-dark: #e8e0d0;
  --warm-white: #faf8f5;
  --stone: #8a7e6b;
  --stone-light: #b5a998;
  --earth: #6b5e4f;
  --bark: #3d3428;
  --moss: #5a6b52;
  --moss-light: #e8ede6;
  --clay: #9b6b4a;
  --clay-light: #f0e4d8;

  /* Typografie */
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', 'Georgia', 'Times New Roman', serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 1140px;
  --max-text: 680px;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--bark);
  background: var(--warm-white);
  line-height: 1.72;
  letter-spacing: 0.01em;
}

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

a {
  color: var(--clay);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

a:hover {
  border-bottom-color: var(--clay);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  color: var(--bark);
}

h1 {
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 1.85rem;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--earth);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

p {
  margin-bottom: var(--space-sm);
  max-width: var(--max-text);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--bark);
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--sand-dark);
  padding: var(--space-sm) 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--bark);
  border-bottom: none;
  letter-spacing: -0.01em;
}

.site-logo:hover {
  border-bottom: none;
  color: var(--clay);
}

.site-logo span {
  font-weight: 400;
  color: var(--stone);
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.main-nav {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.main-nav a {
  font-size: 0.9rem;
  color: var(--earth);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--bark);
  border-bottom-color: var(--clay);
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-xl) 0;
  background: var(--sand);
  border-bottom: 1px solid var(--sand-dark);
}

.hero .container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-portrait {
  width: 300px;
  height: 380px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 4px;
  filter: grayscale(15%) contrast(1.03);
}

.hero-text {
  max-width: 540px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--stone);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.hero-text h1 {
  margin-bottom: var(--space-sm);
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--earth);
  margin-bottom: var(--space-md);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: none;
}

.btn:hover {
  border-bottom: none;
}

.btn-primary {
  background: var(--bark);
  color: var(--warm-white);
}

.btn-primary:hover {
  background: var(--earth);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--earth);
  border: 1.5px solid var(--stone-light);
}

.btn-outline:hover {
  border-color: var(--bark);
  color: var(--bark);
}

.phone-link {
  color: var(--stone);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--stone-light);
}

.phone-link:hover {
  color: var(--bark);
  border-bottom-color: var(--bark);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-xl) 0;
}

.section--sand {
  background: var(--sand);
}

.section--moss {
  background: var(--moss-light);
}

.section--clay {
  background: var(--clay-light);
}

.section--bark {
  background: var(--bark);
  color: var(--sand);
}

.section--bark h2 {
  color: var(--warm-white);
}

.section--bark p {
  color: var(--sand-dark);
}

.section--bark a {
  color: var(--sand);
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.section--bark .section-label {
  color: var(--stone-light);
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--earth);
  margin-bottom: var(--space-lg);
}

/* ---------- Features / Drei Säulen ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.feature {
  padding: var(--space-md);
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-sm);
  color: var(--clay);
}

.feature h3 {
  text-transform: none;
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.feature p {
  font-size: 0.95rem;
  color: var(--earth);
  line-height: 1.7;
}

/* ---------- Info-Karten (Kosten, Standort, etc.) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.info-card {
  background: white;
  padding: var(--space-md) var(--space-md);
  border: 1px solid var(--sand-dark);
  border-radius: 3px;
}

.info-card h3 {
  font-size: 0.85rem;
  margin-bottom: var(--space-xs);
}

.info-card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.price-big {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--bark);
  font-weight: 400;
  line-height: 1.2;
}

.price-unit {
  font-size: 0.9rem;
  color: var(--stone);
  font-family: var(--font-body);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.cta-banner h2 {
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  margin: 0 auto var(--space-md);
  max-width: 520px;
  text-align: center;
}

/* ---------- Zwei-Spalten Text ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

/* ---------- Lebenslauf / Timeline ---------- */
.timeline {
  list-style: none;
  border-left: 2px solid var(--sand-dark);
  padding-left: var(--space-md);
  margin-top: var(--space-md);
}

.timeline li {
  position: relative;
  padding-bottom: var(--space-sm);
  padding-left: var(--space-sm);
}

.timeline li::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-md) - 5px);
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--stone-light);
  border-radius: 50%;
  border: 2px solid var(--warm-white);
}

.timeline .year {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.15rem;
}

.timeline .desc {
  font-size: 0.95rem;
  color: var(--earth);
}

/* ---------- Tags / Qualifikationen ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.tag {
  font-size: 0.78rem;
  padding: 0.35rem 0.9rem;
  background: var(--sand);
  color: var(--earth);
  border-radius: 2px;
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* ---------- Behandlungsbereiche Liste ---------- */
.treatment-list {
  list-style: none;
  columns: 2;
  column-gap: var(--space-lg);
  margin-top: var(--space-md);
}

.treatment-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--sand-dark);
  font-size: 0.98rem;
  break-inside: avoid;
  color: var(--earth);
}

.treatment-list li::before {
  content: '—';
  margin-right: 0.6rem;
  color: var(--stone-light);
}

/* ---------- Kostenerstattung Tabelle ---------- */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-md);
  font-size: 0.95rem;
}

.cost-table th {
  text-align: left;
  font-weight: 600;
  color: var(--earth);
  border-bottom: 2px solid var(--bark);
  padding: 0.6rem 1rem 0.6rem 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cost-table td {
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--sand-dark);
  color: var(--earth);
}

.cost-table td:last-child {
  font-weight: 600;
  color: var(--bark);
  white-space: nowrap;
}

/* ---------- Kontaktseite ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.contact-method {
  padding: var(--space-md);
  background: white;
  border: 1px solid var(--sand-dark);
  border-radius: 3px;
  margin-bottom: var(--space-sm);
}

.contact-method h3 {
  text-transform: none;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.contact-method p {
  font-size: 0.92rem;
  color: var(--stone);
}

.contact-method .big-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bark);
  border-bottom: none;
  display: block;
  margin-top: 0.5rem;
}

.contact-method .big-link:hover {
  color: var(--clay);
}

.map-placeholder {
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: 3px;
  padding: var(--space-lg);
  text-align: center;
  color: var(--stone);
  font-size: 0.9rem;
}

/* ---------- Schritte / How-To ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin-top: var(--space-md);
}

.steps li {
  counter-increment: step;
  padding: var(--space-sm) 0;
  padding-left: 3rem;
  position: relative;
  border-bottom: 1px solid var(--sand-dark);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: var(--space-sm);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--sand);
  color: var(--earth);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li:last-child {
  border-bottom: none;
}

/* ---------- Blockquote ---------- */
blockquote {
  border-left: 3px solid var(--stone-light);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--earth);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bark);
  color: var(--sand-dark);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--warm-white);
  margin-bottom: var(--space-sm);
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--stone-light);
  max-width: 340px;
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--sand-dark);
  font-size: 0.9rem;
  border-bottom: none;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--warm-white);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: var(--stone);
}

/* ---------- Seitenintros (Unterseiten) ---------- */
.page-intro {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--sand);
  border-bottom: 1px solid var(--sand-dark);
}

.page-intro h1 {
  margin-bottom: var(--space-xs);
}

.page-intro p {
  font-size: 1.1rem;
  color: var(--earth);
  max-width: var(--max-text);
}

/* ---------- Prose (Fließtext-Abschnitte) ---------- */
.prose h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.prose h3 {
  margin-top: var(--space-md);
  text-transform: none;
  font-size: 1.1rem;
  color: var(--bark);
}

.prose ul, .prose ol {
  margin: var(--space-sm) 0;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.4rem;
  color: var(--earth);
}

.prose p + h2 {
  margin-top: var(--space-xl);
}

/* ---------- Divider ---------- */
.divider {
  width: 40px;
  height: 2px;
  background: var(--stone-light);
  margin: var(--space-lg) 0;
  border: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  html {
    font-size: 16px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .hero-portrait {
    width: 220px;
    height: 280px;
    margin: 0 auto;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .features,
  .info-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .treatment-list {
    columns: 1;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--sand-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .main-nav.open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

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