/* Mentiva – Privatpraxis für Psychotherapie
   Colours sampled from Beyza's design mock-up. No external fonts or services (DSGVO). */

:root {
  --bg: #f2e4dc;          /* blush background */
  --bg-light: #f9f0eb;    /* values strip */
  --surface: #fcf7f3;
  --ink: #4f4340;         /* body text */
  --ink-soft: #6e5f5b;
  --plum-deep: #3f2730;   /* headings, logo */
  --plum: #50313f;        /* buttons */
  --line: #e8d8ce;

  --blush: #ecdcd3;    --rose: #d9b8b0;
  --sand: #f6ebe4;     --caramel: #d1a58c;

  --radius: 22px;
  --max: 1160px;
  --shadow: 0 14px 34px -24px rgba(74, 42, 58, .35);
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] { display: none !important; }

a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--plum-deep); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--plum-deep);
  line-height: 1.18;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

/* Small capitals label with a short line in front */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 1.2rem;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 44px;
  height: 1px;
  background: var(--plum);
  opacity: .5;
}

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 38em; }

/* Placeholder marker – remove all .todo before going live */
.todo {
  background: #fff1b8;
  outline: 1px dashed #c9a400;
  border-radius: 4px;
  padding: 0 .25em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 228, 220, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 96px;
}
/* Word mark: "mentiva" with the practice line starting at the same left edge */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--plum-deep);
  margin-right: auto;
}
.brand-name {
  font-family: var(--serif);
  font-size: 2.6rem;
  letter-spacing: .02em;
  line-height: .95;
  margin-left: -.04em; /* optical alignment of the "m" with the line below */
}
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--plum);
  margin-top: 8px;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .95rem;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--plum); }

.lang {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang a {
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
.lang a[aria-current="true"] { background: var(--plum); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid var(--plum);
  transition: background .2s, color .2s;
}
.btn .arrow { font-size: 1.15em; line-height: 1; }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-deep); color: #fff; }
.btn-ghost { color: var(--plum-deep); background: transparent; }
.btn-ghost:hover { background: var(--blush); }
.btn-header { padding: 10px 22px; font-size: .95rem; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* ---------- Sections ---------- */
section { padding-block: clamp(64px, 10vw, 112px); }
.tint-blush { background: var(--blush); }
.tint-sand  { background: var(--sand); }
.section-head { max-width: 44em; margin-bottom: 48px; }

/* Hero: soft pale circle and wave behind the text, the brain image on the right */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px);
  background:
    radial-gradient(circle at 78% -10%, #f4e7df 0 34%, transparent 34.2%),
    radial-gradient(120% 60% at 30% 120%, #f9ece3 0 45%, transparent 45.3%),
    var(--bg);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); color: var(--plum-deep); }
.hero-slogan {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--plum);
  margin: 0 0 .8em;
}
.hero-art { margin: 0; justify-self: center; width: min(100%, 560px); }
.hero-art img { width: 100%; }

/* Three values below the hero */
.values { padding-block: 34px; background: var(--bg-light); border-bottom: 1px solid var(--line); }
.values .wrap { display: flex; justify-content: center; }
.value {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 48px;
  font-size: 1.15rem;
  color: var(--ink);
}
.value + .value { border-left: 1px solid var(--rose); }
.value img { width: 44px; height: 44px; flex: none; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Five offers: three on the first row, two wider ones on the second */
.cards-offer { grid-template-columns: repeat(6, 1fr); }
.cards-offer .card { grid-column: span 2; }
.cards-offer .card:nth-child(n+4) { grid-column: span 3; }
/* Offer cards show an icon instead of the small line */
.cards-offer .card::before { display: none; }
.card-icon {
  width: 64px;
  height: 64px;
  padding: 8px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blush);
}
/* Offer intro: text on the left, Beyza's photo on the right */
.offer-intro {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
  margin-bottom: 56px;
}
.offer-intro .section-head { margin-bottom: 24px; }
.offer-setting { margin: 0; color: var(--plum-deep); }
.offer-photo { margin: 0; }
.offer-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(74, 42, 58, .45);
}
.subsection { margin-top: clamp(64px, 9vw, 96px); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.card::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  margin-bottom: 22px;
  background: var(--caramel);
}
.card p:last-child { margin-bottom: 0; }
.card ol { padding-left: 1.3em; margin: 0 0 1em; }
.card ol li { margin-bottom: .4em; }
.card .note { font-size: .9rem; color: var(--ink-soft); }

/* Treatment focus: one light card, list in up to three columns */
.focus {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
  box-shadow: var(--shadow);
}
.focus-list { columns: 3 240px; column-gap: 40px; list-style: none; padding: 0; margin: 0; }
.focus-list.single { columns: 1; }
.focus-list li {
  break-inside: avoid;
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--line);
}
.focus-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--caramel);
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* About: text on the left, second portrait on the right */
.about .wrap { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start; }
.about h3 { margin-top: 1.6em; }
.about-photo {
  order: 2;
  position: sticky;
  top: 130px;
  margin: 0;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(74, 42, 58, .45);
}

.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rose); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--caramel);
}
.timeline .when { display: block; font-size: .85rem; letter-spacing: .05em; color: var(--plum); }
.timeline .what { display: block; }
.timeline .where { display: block; font-size: .95rem; color: var(--ink-soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--plum);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rose);
}
.steps h3 { font-size: 1.2rem; }

/* Contact */
.contact-actions { margin: 0 0 2rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 1.15rem; }
.contact-list li { margin-bottom: 10px; }
.contact-list .label {
  display: block;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.privacy-note { font-size: .92rem; color: var(--ink-soft); }
.crisis {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--caramel);
  border-radius: var(--radius);
  padding: 28px;
}
.crisis h3 { font-size: 1.2rem; }
.crisis ul { padding-left: 1.1em; margin: 0; }

/* Contact form: own section right below the closing call to action */
.form-section { background: var(--blush); padding-top: 0; }
.contact-form {
  max-width: 760px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.contact-form label { display: block; margin-bottom: 16px; font-size: .95rem; color: var(--plum-deep); }
.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--rose); border-color: var(--plum); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.optional { color: var(--ink-soft); }
.form-hint { font-size: .9rem; color: var(--ink-soft); margin-top: -6px; }
.contact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent input { margin-top: .35em; accent-color: var(--plum); }
.contact-form .btn { cursor: pointer; font: inherit; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 16px; border-radius: 12px; }
.form-ok { background: var(--sand); }
.form-error { background: var(--blush); border: 1px solid var(--rose); }

/* Closing call to action above the footer */
.cta-band { background: var(--blush); text-align: center; }
.cta-band h2 { max-width: 22em; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; }
.cta-band .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum-deep);
  color: #ead9d4;
  padding-block: 48px;
  font-size: .95rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 24px; }

/* ---------- Legal pages ---------- */
.legal { padding-block: 64px 96px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal address { font-style: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  /* Menu moves to its own row below logo and language switch, scrollable sideways if needed */
  .site-header .wrap { flex-wrap: wrap; gap: 0 20px; min-height: 0; padding-top: 12px; }
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 22px;
    padding: 10px 0 12px;
    scrollbar-width: none;
  }
  html { scroll-padding-top: 150px; }
  .value { padding: 6px 28px; font-size: 1.05rem; }
}
@media (max-width: 960px) {
  .cards, .steps, .cards-offer { grid-template-columns: 1fr 1fr; }
  .cards-offer .card, .cards-offer .card:nth-child(n+4) { grid-column: auto; }
  .cards-offer .card:last-child { grid-column: 1 / -1; }
  .split, .about .wrap, .offer-intro { grid-template-columns: 1fr; gap: 40px; }
  .offer-photo { width: 100%; max-width: 250px; justify-self: center; }
  .about-photo { order: 0; position: static; width: 100%; max-width: 250px; justify-self: center; }
  .values .wrap { flex-direction: column; align-items: flex-start; gap: 14px; width: fit-content; }
  .value { padding: 0; }
  .value + .value { border-left: 0; }
}
@media (max-width: 640px) {
  /* Mobile order: heading, brain, intro text and button */
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero .wrap > div { display: contents; }
  .hero h1 { order: 1; }
  .hero-art { order: 2; width: min(85%, 320px); margin-block: 8px 28px; }
  .hero-slogan, .hero .lead { order: 3; }
  .hero .actions { order: 4; }
  .cards, .steps, .cards-offer, .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .site-header .wrap { gap: 0 12px; }
  .btn-header { display: none; }
  .brand-name { font-size: 2rem; }
  .brand-sub { font-size: .52rem; letter-spacing: .16em; margin-top: 6px; }
  .lang a { padding: 3px 7px; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: .9rem; }
  .wrap { padding-inline: 20px; }
}
