/* ============================================================
   Praxis Godau – Stylesheet
   Brand: her existing teal #1A7890 on white (like the current
   site); dark mode is the inversion (deep teal ground, white
   text). Calming, smooth, low-noise. Palette derives only from
   the practice photos and the existing brand teal.
   Fonts as on the current site: Montserrat 400 headlines,
   Quicksand body (Cyrillic falls back to Montserrat).
   DSGVO: no external requests, no cookies, no client storage.
   ============================================================ */

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

:root {
  /* light mode (default): white + Praxis Godau brand teal #1A7890,
     matching the current site's look. */
  --bg:            #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     #F2F7F9;   /* whisper of teal for bands */
  --ink:           #212B2F;   /* dark teal-grey, brand family */
  --muted:         #5C6B71;
  --primary:       #1A7890;   /* her teal, unchanged from the current site */
  --primary-deep:  #145F73;
  --tint:          #E3EFF3;   /* pale teal wash */
  --line:          #E1E8EB;

  --radius: 8px;
  --shadow: 0 2px 14px rgba(43, 43, 53, 0.07);
  --transition: 0.22s ease;
  --max-width: 1160px;

  --fs-xl:   clamp(1.9rem, 4.2vw, 2.7rem);
  --fs-lg:   clamp(1.35rem, 2.4vw, 1.8rem);
  --fs-md:   1.15rem;
  --fs-base: 1rem;
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;
}

/* Dark mode = inversion of the light scheme: deep teal ground, white
   text, teal lifted for contrast. Follows the OS/browser preference. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0E2229;
    --surface:      #153039;
    --surface-2:    #1A3944;
    --ink:          #F2F6F7;
    --muted:        #9FB4BB;
    --primary:      #5FB6CC;
    --primary-deep: #83C8DA;
    --tint:         #17333D;
    --line:         #24444F;
    --shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  /* Matches the current site: body copy in Quicksand.
     Quicksand has no Cyrillic: Russian body text falls back to Montserrat. */
  font-family: 'Quicksand', 'Montserrat', system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  /* Matches the current site: headlines in Montserrat, regular weight */
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  text-wrap: balance;
}
h1 strong, h2 strong { font-weight: 700; }

h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); margin-bottom: 0.9rem; }
h3 { font-size: var(--fs-md); margin-bottom: 0.5rem; }

/* No mid-word breaks anywhere: words always wrap whole (Jack's rule) */
p, li, h1, h2, h3, h4 { hyphens: none; overflow-wrap: normal; word-break: normal; }
p { margin-bottom: 1rem; max-width: 68ch; }
li { max-width: 65ch; }
a { color: var(--primary-deep); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; }

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

section { padding: 3.5rem 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  font-weight: 600;          /* uniform weight across the whole wordmark */
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: var(--muted);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: #fff; background: var(--primary); }

/* Legal entries live only in the burger menu */
.nav-links .nav-legal { display: none; }
@media (prefers-color-scheme: dark) {
  .nav-links a.active { color: #0E2229; }
}

.lang-switcher { display: flex; gap: 4px; align-items: center; }
.lang-switcher a, .lang-switcher .current {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  color: var(--muted);
}
.lang-switcher .current { background: var(--primary); color: #fff; }
@media (prefers-color-scheme: dark) {
  .lang-switcher .current { color: #0E2229; }
}
.lang-switcher a:hover { background: var(--surface-2); color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;      /* photo left, text right */
  gap: 3.5rem;
  align-items: center;
  padding: 2rem 0;                       /* tight above/below the photo */
}

.hero-kicker {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 0.9rem;
}

.hero-sub {
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 0.4rem;
  max-width: 56ch;
}
.hero-sub2 { margin-top: 0; }
.hero .hero-langs { font-size: 1.02rem; margin-top: 1.4rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero-kicker { margin-bottom: 1.1rem; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.hero-img { display: flex; justify-content: center; }
.hero-closures { display: none; }  /* mobile only, see media block */
.hero-img img {
  /* full uncropped portrait, scaled down to sit with the text */
  width: auto;
  max-width: 100%;
  max-height: 576px;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow);
}

.closures-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.closures-cols h3 { color: var(--primary-deep); font-weight: 600; margin-bottom: 0.5rem; }
.closures-cols p { margin-bottom: 0.3rem; }

.hero-langs {
  margin-top: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #0E2229; }
  .btn-primary:hover { color: #0E2229; }
}
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary-deep); }
.btn-outline:hover { background: var(--tint); }

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--primary-deep); }

/* ---------- Info band (closures, contact) ---------- */
.band { background: var(--surface-2); }
.notice {
  background: var(--tint);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  max-width: 640px;
}
.notice p { margin-bottom: 0.35rem; }

/* ---------- Content pages ---------- */
.page-header {
  background: var(--surface-2);
  padding: 2.6rem 0;
}
.page-header h1 { color: var(--ink); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; color: var(--primary-deep); }
.prose h3, .prose h4 { margin-top: 1.6rem; color: var(--primary-deep); font-weight: 600; }

/* Grouped subsections: visually bound to the h2 above them */
.subsections {
  border-left: 3px solid var(--line);
  padding-left: 1.75rem;
  margin: 1.25rem 0 2rem;
}
.subsections h3:first-child { margin-top: 0.5rem; }

/* Quotes: teal bar, tinted box */
blockquote {
  border-left: 4px solid var(--primary);
  background: var(--tint);
  padding: 1.15rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p { margin-bottom: 0.4rem; }
blockquote p:last-child { margin-bottom: 0; }
blockquote p:not(:only-child):last-child { font-size: var(--fs-sm); color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.35rem; }

.page-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;    /* larger image column */
  gap: 3rem;
  align-items: start;
}
.page-side { position: sticky; top: 90px; }
.page-side img { width: 100%; border-radius: calc(var(--radius) * 2); box-shadow: var(--shadow); }

/* Full-width prose for legal pages (wide: true in frontmatter) */
.prose-wide { max-width: none; }
.prose-wide p, .prose-wide li { max-width: none; }

/* Feature layout: large photo + short intro, long text below full width */
.feature-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;   /* text | image (image dominant) */
  gap: 3rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.feature-grid--left { grid-template-columns: 1.15fr 0.85fr; }
.feature-grid--left .feature-img { order: -1; }

.feature-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow);
}

.feature-text { font-size: 1.05rem; }

.prose-rest {
  max-width: none;
  border-top: 1px solid var(--line);
  padding-top: 2.25rem;
}
.prose-rest p, .prose-rest li, .prose-rest blockquote { max-width: none; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; }
.contact-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { display: inline-block; min-width: 7.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav-links a { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
}
@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--surface);
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-inner { gap: 0.7rem; }
  .lang-switcher a, .lang-switcher .current { padding: 0.3rem 0.38rem; }
  .nav-links .nav-legal { display: block; }
  .nav-links .nav-legal a { font-size: var(--fs-xs); color: var(--muted); }
  .nav-links .nav-legal-first {
    border-top: 1px solid var(--line);
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
  .hero-img { order: 2; }   /* mobile: photo below the hero text */
  .hero-closures { display: block; order: 3; }  /* closures directly under the photo */
  .closures-desktop { display: none; }          /* avoid the duplicate below */
  .page-grid, .info-grid { grid-template-columns: 1fr; gap: 2rem; }
  .feature-grid, .feature-grid--left { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-grid--left .feature-img { order: 0; }
}
