/*
Theme Name: Gleichgewicht Lollar
Theme URI: https://gleichgewicht-lollar.de
Description: Massgeschneidertes Child-Theme fuer die Praxis Gleichgewicht Lollar. Gestaltungsrichtung "Stiller Grund".
Author: Corinna Ring
Template: generatepress
Version: 1.0.0
Text Domain: gleichgewicht
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg:            #FFFFFF;
  --surface:       #F2F6F2;
  --surface-deep:  #E6EFE7;
  --ink:           #16211B;
  --ink-muted:     #4C5C53;
  --accent:        #2E5E45;
  --accent-deep:   #1D3F2E;
  --line:          #DBE5DC;

  --wrap:          1140px;
  --wrap-prose:    680px;
  --radius:        10px;

  --s-xs: 8px;
  --s-sm: 16px;
  --s-md: 28px;
  --s-lg: 56px;
  --s-xl: 96px;
  --s-xxl: 144px;

  --section-y: clamp(64px, 9vw, 128px);

  --font-h: Epilogue, "Helvetica Neue", Arial, sans-serif;
  --font-b: Manrope, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--s-sm);
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem);  line-height: 1.12; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem);  line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: 0; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap {
  width: min(100% - 2 * var(--s-md), var(--wrap));
  margin-inline: auto;
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2 * var(--s-sm)); }
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface); }
.section--deep { background: var(--surface-deep); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.prose { max-width: var(--wrap-prose); }
.prose p, .prose li { color: var(--ink-muted); }
.prose h2, .prose h3 { color: var(--ink); }
.prose h2 { margin-top: var(--s-lg); }
.prose h3 { margin-top: var(--s-md); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.15em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }

.lead {
  font-size: clamp(1.09rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 60ch;
}

.section-head { max-width: 46ch; margin-bottom: var(--s-lg); }
.section-head p { color: var(--ink-muted); margin-bottom: 0; }

.label {
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-sm);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  font-family: var(--font-h);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--primary:active { background: var(--accent-deep); transform: translateY(1px); }

.btn--ghost {
  background: transparent; color: var(--accent);
  border-color: var(--accent);
}
.btn--ghost:hover { background: var(--accent); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-sm); }

.textlink {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 2px;
  transition: border-color .18s ease, color .18s ease;
}
.textlink:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ==========================================================================
   Kopfbereich
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-md);
  min-height: 76px;
}

.brand {
  display: inline-flex; align-items: baseline; gap: 0.5em;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand__mark { color: var(--accent); }
.brand__sub {
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
@media (max-width: 900px) { .brand__sub { display: none; } }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a {
  font-family: var(--font-h);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--accent); border-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.nav .btn { color: #fff; border-bottom-color: transparent; }
.nav .btn:hover { color: #fff; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  content: ""; position: relative;
}
.nav-toggle-label span::before { top: -7px; position: absolute; }
.nav-toggle-label span::after  { top:  7px; position: absolute; }

@media (max-width: 900px) {
  .nav-toggle-label { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: var(--s-xs) var(--s-md) var(--s-md);
    display: none;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-of-type { border-bottom: 0; }
  .nav .btn { margin-top: var(--s-sm); justify-content: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(56px, 8vw, 116px) clamp(56px, 8vw, 104px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title { margin-bottom: var(--s-md); }
.hero__title em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.12;
}
.hero p.lead { margin-bottom: var(--s-lg); }
.hero__figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
}

/* ==========================================================================
   Zwei Bereiche
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.bereich {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.section--tint .bereich { background: #fff; border-color: transparent; }
.bereich__media { background: var(--surface-deep); }
.bereich__body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; }
.bereich__body h3 { margin-bottom: var(--s-xs); }
.bereich__body p { color: var(--ink-muted); }
.bereich__list {
  list-style: none; padding: 0;
  margin: var(--s-sm) 0 var(--s-md);
  color: var(--ink-muted);
  font-size: 0.97rem;
}
.bereich__list li {
  padding: 9px 0 9px 20px;
  border-top: 1px solid var(--line);
  position: relative;
}
.bereich__list li::before {
  content: ""; position: absolute; left: 2px; top: 18px;
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}
.bereich__foot { margin-top: auto; }

/* ==========================================================================
   Leistungsliste
   ========================================================================== */
.leistungen { border-top: 1px solid var(--line); }
.leistung {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(26px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.leistung h3 { margin: 0; }
.leistung__text { color: var(--ink-muted); }
.leistung__text p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .leistung { grid-template-columns: 1fr; gap: var(--s-xs); }
}

/* ==========================================================================
   Zitat
   ========================================================================== */
.zitat { text-align: center; }
.zitat blockquote {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--font-h);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.zitat cite {
  display: block;
  margin-top: var(--s-md);
  font-family: var(--font-b);
  font-style: normal;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ==========================================================================
   Portraet
   ========================================================================== */
.portrait {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.portrait__media { border-radius: var(--radius); overflow: hidden; background: var(--surface-deep); }
@media (max-width: 860px) { .portrait { grid-template-columns: 1fr; } }

/* ==========================================================================
   Kontaktband
   ========================================================================== */
.cta-band { background: var(--accent); color: #fff; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 46ch; }
.cta-band__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
.cta-band .btn--primary { background: #fff; color: var(--accent); }
.cta-band .btn--primary:hover { background: var(--surface); color: var(--accent-deep); }
.cta-band a:not(.btn) { color: #fff; }
@media (max-width: 860px) { .cta-band__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Formular
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

.kontaktdaten dl { margin: 0; }
.kontaktdaten dt {
  font-family: var(--font-h);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.kontaktdaten dd {
  margin: 0 0 var(--s-md);
  color: var(--ink-muted);
}
.kontaktdaten a { color: var(--ink); text-decoration-color: var(--line); }
.kontaktdaten a:hover { color: var(--accent); }

.feld { margin-bottom: var(--s-md); }
.feld label {
  display: block;
  font-family: var(--font-h);
  font-size: 0.9rem; font-weight: 600;
  margin-bottom: 7px;
}
.feld .hinweis { font-weight: 400; color: var(--ink-muted); }
.feld input[type=text],
.feld input[type=email],
.feld input[type=tel],
.feld select,
.feld textarea {
  width: 100%;
  font-family: var(--font-b);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.feld textarea { min-height: 168px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}
.feld input::placeholder, .feld textarea::placeholder { color: #93A399; }
.feld--fehler input, .feld--fehler textarea, .feld--fehler select { border-color: #A5342B; }
.feld__fehler {
  display: block; margin-top: 6px;
  font-size: 0.88rem; color: #A5342B;
}

.feld--check { display: flex; gap: 12px; align-items: flex-start; }
.feld--check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.feld--check label { font-family: var(--font-b); font-weight: 400; font-size: 0.94rem; color: var(--ink-muted); margin: 0; }

.honigtopf { position: absolute; left: -9999px; }

.meldung {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: var(--s-md);
  font-size: 0.97rem;
}
.meldung--ok    { background: var(--surface-deep); border: 1px solid var(--accent); color: var(--ink); }
.meldung--fehler{ background: #FBF0EF; border: 1px solid #D8AAA5; color: #7C2A22; }

/* ==========================================================================
   Fusszeile
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding-block: var(--s-xl) var(--s-lg);
  font-size: 0.95rem;
}
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: var(--s-lg);
}
@media (max-width: 780px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff;
  font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase;
  margin-bottom: var(--s-sm);
}
.site-footer .brand { color: #fff; margin-bottom: var(--s-sm); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer__base {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: var(--s-md);
  display: flex; flex-wrap: wrap; gap: var(--s-sm) var(--s-md);
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

/* ==========================================================================
   Seitenkopf innen
   ========================================================================== */
.pagehead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(48px, 6.5vw, 96px);
}
.pagehead h1 { max-width: 20ch; margin-bottom: var(--s-sm); }
.pagehead p { max-width: 56ch; color: var(--ink-muted); margin-bottom: 0; }

/* ==========================================================================
   Hinweisbox fuer offene Angaben
   ========================================================================== */
.todo {
  background: #FFF8E6;
  border: 1px dashed #C99A2E;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: var(--s-sm) 0;
  font-size: 0.93rem;
  color: #6B5210;
}
.todo strong { color: #6B5210; font-weight: 700; }

/* ==========================================================================
   Platzhaltergrafik
   ========================================================================== */
.platzhalter { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Navigationsliste (auch fuer WordPress-Menues)
   ========================================================================== */
.nav__list {
  display: flex; align-items: center;
  gap: clamp(14px, 2vw, 30px);
  list-style: none; margin: 0; padding: 0;
}
.nav__list li { margin: 0; }
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { color: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__list a { display: block; }
}

/* ==========================================================================
   Hinweisbox
   ========================================================================== */
.hinweisbox {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: var(--s-md) 0;
  color: var(--ink-muted);
  font-size: 0.97rem;
}
.hinweisbox strong { color: var(--ink); }

/* Fliesstext-Abstand in .prose fuer eingebettete Boxen */
.prose .hinweisbox { margin-block: var(--s-md); }

/* ==========================================================================
   Hero-Feinabstimmung: Ueberschrift bleibt zweizeilig
   ========================================================================== */
.hero__grid { grid-template-columns: 1.12fr 0.88fr; }
.hero__title { font-size: clamp(2.3rem, 4.4vw, 3.5rem); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Sichtbare Luecken fuer noch fehlende Angaben
   ========================================================================== */
.offen {
  display: inline-block;
  background: rgba(201, 154, 46, 0.16);
  border-bottom: 1px dashed rgba(201, 154, 46, 0.75);
  padding: 0 5px;
  border-radius: 3px;
  font-size: 0.94em;
  color: inherit;
  opacity: 0.9;
}

/* ==========================================================================
   Fotos
   ========================================================================== */
.foto {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__figure {
  aspect-ratio: 4 / 3;
}
.hero__figure .foto,
.hero__figure .platzhalter { height: 100%; object-fit: cover; }

.bereich__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.bereich__media .foto,
.bereich__media .platzhalter { height: 100%; object-fit: cover; }

/* Einstiegsabschnitt der Unterseiten: Text neben Bild */
.einstieg {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
.einstieg__bild {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-deep);
}
@media (max-width: 860px) {
  .einstieg { grid-template-columns: 1fr; }
}

/* Portraetflaeche behaelt ihr Hochformat */
.portrait__media { aspect-ratio: 13 / 16; }
.portrait__media .platzhalter,
.portrait__media .foto { height: 100%; object-fit: cover; }
