/* Psychotherapeutische Privatpraxis Leonhard Schrenker */

:root {
  --bg: #f6f3ee;
  --bg-soft: #ebe6dc;
  --surface: #ffffff;
  --ink: #1f2a28;
  --ink-soft: #4a5855;
  --muted: #6b7875;
  --line: #ddd6c8;
  --brand: #2f5d56;
  --brand-deep: #1e403b;
  --brand-soft: #e4efec;
  --accent: #b08a4f;
  --accent-soft: #f3ead8;
  --shadow: 0 12px 40px rgba(30, 64, 59, 0.08);
  --shadow-sm: 0 4px 16px rgba(30, 64, 59, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --header-h: 76px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #dfece8 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #f0e6d4 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand-deep);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 238, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221, 214, 200, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brand-deep);
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  color: var(--brand-deep);
}

.nav-toggle-bars {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  border-radius: 999px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.site-nav a.nav-cta {
  background: var(--brand);
  color: #fff;
  margin-left: 0.25rem;
}

.site-nav a.nav-cta:hover {
  background: var(--brand-deep);
  color: #fff;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero h1,
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--brand-deep);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--brand-deep);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: rgba(47, 93, 86, 0.25);
}

.portrait-card {
  position: relative;
  background: var(--surface);
  border-radius: calc(var(--radius) + 6px);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(221, 214, 200, 0.7);
}

.portrait-card img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.portrait-caption {
  padding: 1rem 0.75rem 0.5rem;
}

.portrait-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--brand-deep);
}

.portrait-caption span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(235, 230, 220, 0.45));
  border-block: 1px solid rgba(221, 214, 200, 0.6);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head h2,
.page-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  color: var(--brand-deep);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.section-head p,
.page-content > p {
  margin: 0;
  color: var(--ink-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card-grid.card-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 960px) {
  .card-grid.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid rgba(221, 214, 200, 0.85);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.55rem;
  color: var(--brand-deep);
}

.card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  flex: 1;
}

.card a.card-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}

.card a.card-link:hover {
  text-decoration: underline;
}

.icon-dot {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

/* Info split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.info-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.info-list strong {
  display: block;
  color: var(--brand-deep);
  margin-bottom: 0.2rem;
}

.info-list span,
.info-list a {
  color: var(--ink-soft);
}

.panel {
  background: var(--brand-deep);
  color: #eef5f3;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}

.panel h2,
.panel h3 {
  font-family: var(--serif);
  margin: 0 0 0.75rem;
  color: #fff;
}

.panel p,
.panel li {
  color: rgba(238, 245, 243, 0.88);
}

.panel a {
  color: #f0d9a8;
}

.panel ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.panel .btn-primary {
  background: #fff;
  color: var(--brand-deep);
  margin-top: 1rem;
}

.panel .btn-primary:hover {
  background: var(--accent-soft);
}

/* Page layout */
.page-hero {
  padding: 2.5rem 0 1.25rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.page-content {
  padding: 0 0 3rem;
}

.prose {
  max-width: 48rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.prose h2 {
  margin-top: 2rem;
}

.prose h3 {
  font-family: var(--serif);
  color: var(--brand-deep);
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
}

.prose ul {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery figure {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Book layout */
.book-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.book-cover {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.8rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.book-cover img {
  width: 100%;
  border-radius: var(--radius-sm);
}

/* Lists / downloads */
.resource-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.resource-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-list li:hover {
  border-color: rgba(47, 93, 86, 0.35);
  box-shadow: var(--shadow-sm);
}

.resource-list a {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.95rem 1.05rem;
  text-decoration: none;
  color: inherit;
}

.resource-list .badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  margin-top: 0.15rem;
}

.resource-list .meta {
  min-width: 0;
}

.resource-list .meta strong {
  display: block;
  color: var(--brand-deep);
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.resource-list .meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.resource-list.static li {
  padding: 0.95rem 1.05rem;
}

.resource-list.static strong {
  display: block;
  color: var(--brand-deep);
  margin-bottom: 0.15rem;
}

.resource-list.static span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.event-card .date-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: #6b4e22;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.event-card h2 {
  margin-top: 0;
}

/* Legal */
.legal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.legal h2:first-child {
  margin-top: 0;
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  background: var(--brand-deep);
  color: rgba(238, 245, 243, 0.86);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  font-family: var(--serif);
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.site-footer p,
.site-footer li {
  margin: 0 0 0.4rem;
  font-size: 0.93rem;
}

.site-footer a {
  color: #f0d9a8;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(238, 245, 243, 0.65);
}

.footer-bottom a {
  color: rgba(238, 245, 243, 0.8);
}

/* Related links */
.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.related-links a {
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.related-links a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-soft);
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.note {
  font-size: 0.92rem;
  color: var(--muted);
}

hr.soft {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.75rem 0;
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid,
  .split,
  .book-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .book-cover {
    position: static;
    max-width: 280px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: rgba(246, 243, 238, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    border-radius: 10px;
  }

  .site-nav a.nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem;
  pointer-events: none;
}

.cookie-banner-inner {
  pointer-events: auto;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 -4px 40px rgba(30, 64, 59, 0.14);
  padding: 1.15rem 1.25rem 1.2rem;
  animation: cookie-in 0.28s ease;
}

.cookie-banner.is-hiding .cookie-banner-inner {
  animation: cookie-out 0.25s ease forwards;
}

.cookie-banner-text {
  min-width: 0;
  flex: 1;
}

.cookie-banner-text strong {
  display: block;
  font-family: var(--serif);
  color: var(--brand-deep);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 48rem;
}

.cookie-banner-text a {
  font-weight: 600;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex-shrink: 0;
  justify-content: flex-end;
}

.cookie-banner-actions .btn {
  padding: 0.65rem 1.05rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cookie-out {
  to {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (max-width: 720px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .cookie-banner-inner,
  .cookie-banner.is-hiding .cookie-banner-inner {
    animation: none;
  }
}


/* --- Optimierungen: naechste Termine, FAQ, Cross-Link --- */
.upcoming-panel {
  margin-top: 1.5rem;
}

.upcoming-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.upcoming-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.upcoming-list .upcoming-when {
  font-weight: 700;
  color: var(--brand-deep);
  white-space: nowrap;
}

.upcoming-list .upcoming-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.upcoming-list .upcoming-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-deep);
}

.faq-list summary::-webkit-details-marker {
  color: var(--brand);
}

.faq-list details[open] summary {
  margin-bottom: 0.55rem;
}

.faq-list details p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.faq-list details p + p {
  margin-top: 0.55rem;
}

.site-bridge {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(238, 245, 243, 0.85);
  font-size: 0.95rem;
}

.site-bridge a {
  color: #f0d9a8;
  font-weight: 600;
}

.site-bridge a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-bridge strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 640px) {
  .upcoming-list li {
    grid-template-columns: 1fr;
  }
}
