/* ════════════════════════════════════════════════════════════════════════
 * GruppenhausOS Portal — portal.css
 *
 * v0.6.0 Software-First-Welle:
 *   - Neue Design-Tokens (Petrol/Creme/Gold), Inter-only (kein Playfair)
 *   - Klassenpräfix `.ghos-*` durchgängig für neue Komponenten
 *   - Legacy-Selektoren `.haus-karte`, `.suche-*` bleiben kompatibel
 *   - Mobile-Hamburger, Demo-CTA, Sticky-Header
 *   - Form-Komponenten mit Pflichtfeld-Markierung und Feedback
 *
 *   CI: Petrol #183447 + Akzent-Gold #D6A43A auf Creme #F7F4ED
 * ════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Design-Tokens ──────────────────────────────────────────────── */
  --color-primary:        #183447;
  --color-primary-dark:   #102635;
  --color-primary-light:  #234760;
  --color-accent:         #D6A43A;
  --color-accent-dark:    #B5882D;
  --color-bg:             #F7F4ED;
  --color-bg-alt:         #EFE9DA;
  --color-surface:        #FFFFFF;
  --color-text:           #17202A;
  --color-muted:          #64717F;
  --color-border:         #E3DED2;
  --color-border-strong:  #C7BFAA;
  --color-success:        #2F7D4F;
  --color-success-bg:     #E5F2EA;
  --color-error:          #B43A3A;
  --color-error-bg:       #FBEAEA;

  /* Typografie — Inter only */
  --ff:                   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --container:            1200px;
  --container-narrow:     760px;
  --radius-sm:            8px;
  --radius-card:          18px;
  --radius-button:        999px;
  --radius-input:         10px;

  --shadow-soft:          0 18px 50px rgba(16,38,53,.10);
  --shadow-card:          0 4px 14px rgba(16,38,53,.06), 0 2px 4px rgba(16,38,53,.04);
  --shadow-hover:         0 18px 40px rgba(16,38,53,.12);
}

/* ════════════════════════════════════════════════════════════════════
 *  RESET & BASE
 * ════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color .15s ease;
}
a:hover, a:focus { color: var(--color-accent-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0 0 .5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2.5rem 0; }
small { font-size: .85rem; color: var(--color-muted); }

::selection { background: var(--color-accent); color: var(--color-primary-dark); }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ════════════════════════════════════════════════════════════════════
 *  CONTAINER & SECTIONS
 * ════════════════════════════════════════════════════════════════════ */
.ghos-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.ghos-container--schmal { max-width: var(--container-narrow); }

.ghos-abschnitt {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.ghos-abschnitt--hell    { background: var(--color-surface); }
.ghos-abschnitt--alt     { background: var(--color-bg-alt); }
.ghos-abschnitt--dunkel  { background: var(--color-primary); color: #fff; }
.ghos-abschnitt--dunkel h2, .ghos-abschnitt--dunkel h3 { color: #fff; }

.ghos-abschnitt__kopf {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 760px;
}
.ghos-abschnitt__titel { margin: 0 0 .6rem; }
.ghos-abschnitt__lede {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin: 0;
}
.ghos-abschnitt__cta { margin-top: 2rem; text-align: center; }

.ghos-kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: .8rem;
  padding: .25rem .7rem;
  border-radius: var(--radius-button);
  background: rgba(214,164,58,.12);
}

/* ════════════════════════════════════════════════════════════════════
 *  BUTTONS
 * ════════════════════════════════════════════════════════════════════ */
.ghos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.ghos-btn:hover  { transform: translateY(-1px); }
.ghos-btn:active { transform: translateY(0); }
.ghos-btn--gross { padding: .95rem 1.8rem; font-size: 1rem; }
.ghos-btn--block { display: flex; width: 100%; }

.ghos-btn--primaer {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.ghos-btn--primaer:hover, .ghos-btn--primaer:focus {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.ghos-btn--gold {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
}
.ghos-btn--gold:hover, .ghos-btn--gold:focus {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.ghos-btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}
.ghos-btn--ghost:hover, .ghos-btn--ghost:focus {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.ghos-btn--text {
  background: transparent;
  border-color: transparent;
  color: var(--color-primary);
  padding: .5rem .25rem;
}
.ghos-btn--text:hover { color: var(--color-accent-dark); transform: none; }

/* ════════════════════════════════════════════════════════════════════
 *  HEADER & NAV
 * ════════════════════════════════════════════════════════════════════ */
.ghos-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,244,237,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.ghos-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 14px 0;
}
.ghos-header__marke {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.ghos-header__marke:hover { color: var(--color-primary-dark); }
.ghos-header__marke svg { width: 28px; height: 28px; }

.ghos-header__nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
}
.ghos-header__nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: .4rem 0;
}
.ghos-header__nav a:hover,
.ghos-header__nav a:focus { color: var(--color-primary); }
.ghos-header__nav a.is-aktiv {
  color: var(--color-primary);
  font-weight: 600;
}
.ghos-header__nav a.is-aktiv::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
.ghos-header__cta {
  margin-left: .5rem;
}

.ghos-burger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  width: 44px;
  height: 44px;
  color: var(--color-primary);
}
.ghos-burger svg { width: 24px; height: 24px; }

.ghos-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16,38,53,.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ghos-mobile-nav.is-offen { display: block; }
.ghos-mobile-nav__drawer {
  position: absolute;
  top: 0; right: 0;
  width: min(86vw, 360px);
  height: 100%;
  background: var(--color-surface);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(16,38,53,.18);
  animation: ghos-drawer-in .18s ease-out;
}
@keyframes ghos-drawer-in {
  from { transform: translateX(20%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.ghos-mobile-nav__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}
.ghos-mobile-nav__close {
  background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 8px;
  color: var(--color-text);
}
.ghos-mobile-nav__close svg { width: 24px; height: 24px; }
.ghos-mobile-nav__links a {
  display: block;
  padding: .85rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.ghos-mobile-nav__links a:last-child { border-bottom: 0; }
.ghos-mobile-nav__links a.is-aktiv { color: var(--color-primary); font-weight: 600; }
.ghos-mobile-nav__cta { margin-top: 1.5rem; }

/* ════════════════════════════════════════════════════════════════════
 *  HERO — Software-First
 * ════════════════════════════════════════════════════════════════════ */
.ghos-hero {
  position: relative;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.ghos-hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(214,164,58,.10) 0%, transparent 60%);
  pointer-events: none;
}
.ghos-hero__inner {
  position: relative;
  text-align: center;
  max-width: 920px;
}
.ghos-hero__switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-card);
}
.ghos-hero__switch-btn {
  padding: .55rem 1.1rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  border-radius: var(--radius-button);
  transition: background .15s ease, color .15s ease;
}
.ghos-hero__switch-btn.is-aktiv {
  background: var(--color-primary);
  color: #fff;
}
.ghos-hero__switch-btn:hover:not(.is-aktiv) { color: var(--color-primary); }

.ghos-hero__h1 {
  margin: 0 0 1.25rem;
  color: var(--color-primary);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.ghos-hero__sub {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--color-muted);
  line-height: 1.5;
}
.ghos-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.ghos-hero__trust {
  font-size: .9rem;
  color: var(--color-muted);
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════
 *  SUCH-HERO (Verzeichnis-Einstieg)
 * ════════════════════════════════════════════════════════════════════ */
.ghos-suchhero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 4rem 0;
  overflow: hidden;
}
.ghos-suchhero__bild {
  position: absolute; inset: 0;
  z-index: 0;
}
.ghos-suchhero__bild img {
  width: 100%; height: 100%; object-fit: cover;
}
.ghos-suchhero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,38,53,.45) 0%, rgba(16,38,53,.65) 100%);
}
.ghos-suchhero__overlay.is-dunkel {
  background: linear-gradient(180deg, rgba(16,38,53,.6) 0%, rgba(16,38,53,.8) 100%);
}
.ghos-suchhero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.ghos-suchhero__h1 {
  color: #fff;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.ghos-suchhero__sub {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,.92);
}

/* ════════════════════════════════════════════════════════════════════
 *  SUCHBOX
 * ════════════════════════════════════════════════════════════════════ */
.ghos-suchbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  max-width: 720px;
  margin: 0 auto;
}
.ghos-suchbox--kompakt {
  box-shadow: var(--shadow-card);
  padding: 8px;
}
.ghos-suchbox__zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.ghos-suchbox__feld {
  flex: 1 1 200px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  background: var(--color-bg);
  border-radius: var(--radius-input);
  text-align: left;
}
.ghos-suchbox__feld--region   { flex: 2 1 240px; }
.ghos-suchbox__feld--klein    { flex: 0 0 130px; }
.ghos-suchbox__label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.ghos-suchbox input,
.ghos-suchbox__input,
.ghos-suchbox__select {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .95rem;
  color: var(--color-text);
  padding: 2px 0;
  outline: 0;
  width: 100%;
}
.ghos-suchbox .ghos-btn { flex: 0 0 auto; align-self: stretch; }

/* ════════════════════════════════════════════════════════════════════
 *  ZIELGRUPPEN-SPLIT
 * ════════════════════════════════════════════════════════════════════ */
.ghos-zielgruppen { background: var(--color-bg-alt); }
.ghos-zielgruppen__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.ghos-zielkarte {
  padding: 2.5rem 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow .2s ease, transform .15s ease;
}
.ghos-zielkarte:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.ghos-zielkarte__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.ghos-zielkarte__titel { margin: 0; font-size: 1.65rem; }
.ghos-zielkarte__text { color: var(--color-muted); margin: 0; flex: 1; line-height: 1.55; }
.ghos-zielkarte .ghos-btn { align-self: flex-start; }
.ghos-zielkarte--primaer { background: var(--color-primary); color: #fff; }
.ghos-zielkarte--primaer .ghos-zielkarte__titel { color: #fff; }
.ghos-zielkarte--primaer .ghos-zielkarte__label { color: var(--color-accent); }
.ghos-zielkarte--primaer .ghos-zielkarte__text  { color: rgba(255,255,255,.85); }
.ghos-zielkarte--primaer .ghos-btn--primaer {
  background: var(--color-accent); color: var(--color-primary-dark); border-color: var(--color-accent);
}
.ghos-zielkarte--primaer .ghos-btn--primaer:hover {
  background: #fff; border-color: #fff; color: var(--color-primary-dark);
}

/* ════════════════════════════════════════════════════════════════════
 *  PROBLEM-PAIN
 * ════════════════════════════════════════════════════════════════════ */
.ghos-pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.ghos-pain__karte {
  padding: 1.75rem;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.ghos-pain__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--color-error-bg);
  color: var(--color-error);
}
.ghos-pain__titel { margin: 0; font-size: 1.15rem; }
.ghos-pain__text  { color: var(--color-muted); margin: 0; }

/* ════════════════════════════════════════════════════════════════════
 *  WORKFLOW
 * ════════════════════════════════════════════════════════════════════ */
.ghos-workflow { background: var(--color-surface); }
.ghos-workflow__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: ghos-step;
}
.ghos-workflow__step {
  position: relative;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.ghos-workflow__num {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
}
.ghos-workflow__body { flex: 1; }
.ghos-workflow__titel { margin: 0 0 .3rem; font-size: 1.05rem; }
.ghos-workflow__text  { margin: 0; color: var(--color-muted); font-size: .95rem; }

/* ════════════════════════════════════════════════════════════════════
 *  SOFTWAREMODULE-GRID
 * ════════════════════════════════════════════════════════════════════ */
.ghos-module__grid {
  display: grid;
  gap: 1.25rem;
}
.ghos-module__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ghos-module__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ghos-module__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.ghos-modul {
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.ghos-modul:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-accent);
}
.ghos-modul__icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(24,52,71,.06);
  color: var(--color-primary);
  margin-bottom: .25rem;
}
.ghos-modul__titel { margin: 0; font-size: 1.05rem; }
.ghos-modul__text  { margin: 0; color: var(--color-muted); font-size: .92rem; line-height: 1.5; }

/* ════════════════════════════════════════════════════════════════════
 *  PRICING-TEASER
 * ════════════════════════════════════════════════════════════════════ */
.ghos-pricing-teaser { background: var(--color-bg-alt); }
.ghos-pricing-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.ghos-tier {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .15s ease, box-shadow .2s ease;
}
.ghos-tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.ghos-tier--hervor {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.ghos-tier--hervor .ghos-tier__name,
.ghos-tier--hervor .ghos-tier__preis-zahl { color: #fff; }
.ghos-tier--hervor .ghos-tier__lede,
.ghos-tier--hervor .ghos-tier__preis-sub  { color: rgba(255,255,255,.82); }
.ghos-tier--hervor .ghos-tier__features li { color: rgba(255,255,255,.92); }
.ghos-tier--hervor .ghos-tier__features li::before { color: var(--color-accent); }
.ghos-tier__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: var(--radius-button);
}
.ghos-tier__name {
  margin: 0;
  font-size: 1.3rem;
}
.ghos-tier__lede {
  margin: 0;
  color: var(--color-muted);
  font-size: .95rem;
}
.ghos-tier__preis {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  padding: .5rem 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  border-color: var(--color-border);
}
.ghos-tier--hervor .ghos-tier__preis { border-color: rgba(255,255,255,.2); }
.ghos-tier__preis-zahl {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}
.ghos-tier__preis-sub {
  font-size: .9rem;
  color: var(--color-muted);
}
.ghos-tier__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}
.ghos-tier__features li {
  position: relative;
  padding-left: 24px;
  font-size: .95rem;
}
.ghos-tier__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23D6A43A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8.5 6.5 12 13 4.5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.ghos-tier__features li::before { color: var(--color-accent); }

/* ════════════════════════════════════════════════════════════════════
 *  FUNKTIONEN-UEBERSICHT
 * ════════════════════════════════════════════════════════════════════ */
.ghos-funktionen { background: var(--color-surface); }
.ghos-funktionen__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.ghos-funktionen__spalte {
  padding: 1.75rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}
.ghos-funktionen__name {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--color-border);
}
.ghos-funktionen__liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .92rem;
}
.ghos-funktionen__liste li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: var(--color-text);
  line-height: 1.4;
}
.ghos-funktionen__liste li svg {
  flex: 0 0 16px;
  width: 16px; height: 16px;
  color: var(--color-accent);
  margin-top: 2px;
}

/* ─── v0.19.0: Varianten ────────────────────────────────────────────
 *   Zwei optische Modi, gesteuert durch das `variante`-Cfg-Feld im
 *   funktionen_uebersicht-Block. „aktiv" hebt produktive Funktionen
 *   visuell hervor (Goldakzent), „roadmap" dämpft die Spalten und
 *   tauscht das Häkchen gegen ein Uhren-Icon — so liest der Besucher
 *   in einem Blick, was er heute bekommt und was in Entwicklung ist.
 *   Ohne `variante` bleibt das Legacy-Layout unverändert.
 *
 *   Klassen werden nur am .ghos-funktionen-Section-Element gesetzt;
 *   alle Selektoren leiten sich davon ab, damit Bestandsseiten ohne
 *   Variante 1:1 wie vorher rendern.
 * ─────────────────────────────────────────────────────────────── */
.ghos-funktionen--aktiv {
  background: var(--color-surface);
}
.ghos-funktionen--aktiv .ghos-funktionen__spalte {
  background: var(--color-bg);
  border-color: var(--color-border-strong);
  position: relative;
  overflow: hidden;
}
.ghos-funktionen--aktiv .ghos-funktionen__spalte::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
}
.ghos-funktionen--aktiv .ghos-funktionen__name {
  border-bottom-color: var(--color-border-strong);
}
.ghos-funktionen--aktiv .ghos-funktionen__liste li svg {
  color: var(--color-accent);
}

.ghos-funktionen--roadmap {
  background: var(--color-bg-alt);
}
.ghos-funktionen--roadmap .ghos-funktionen__spalte {
  background: var(--color-bg);
  border: 1px dashed var(--color-border-strong);
}
.ghos-funktionen--roadmap .ghos-funktionen__name {
  color: var(--color-muted);
  border-bottom-color: var(--color-border-strong);
}
.ghos-funktionen--roadmap .ghos-funktionen__liste {
  font-size: .9rem;
}
.ghos-funktionen--roadmap .ghos-funktionen__liste li {
  color: var(--color-muted);
}
.ghos-funktionen--roadmap .ghos-funktionen__liste li svg {
  color: var(--color-muted);
  opacity: .85;
}

/* ════════════════════════════════════════════════════════════════════
 *  KONTAKT-FORM (Demo-Anfrage)
 * ════════════════════════════════════════════════════════════════════ */
.ghos-kontakt-form { background: var(--color-bg-alt); }
.ghos-form {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ghos-form__hp { display: none !important; }
.ghos-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ghos-form__feld {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.ghos-form__label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: .02em;
}
.ghos-form__label em {
  color: var(--color-error);
  font-style: normal;
  margin-left: 2px;
}
.ghos-form input,
.ghos-form textarea,
.ghos-form select {
  font: inherit;
  font-size: .95rem;
  padding: .65rem .85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.ghos-form input:focus,
.ghos-form textarea:focus,
.ghos-form select:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(24,52,71,.12);
}
.ghos-form textarea { resize: vertical; min-height: 120px; }
.ghos-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .15rem;
}
.ghos-form__radio {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .85rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  cursor: pointer;
  font-size: .9rem;
  transition: background .15s ease, border-color .15s ease;
}
.ghos-form__radio input { width: auto; padding: 0; margin: 0; accent-color: var(--color-primary); }
.ghos-form__radio:has(input:checked) {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.ghos-form__check {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .9rem;
  color: var(--color-muted);
  line-height: 1.4;
}
.ghos-form__check input { width: auto; margin-top: 3px; accent-color: var(--color-primary); }
.ghos-form__check a { color: var(--color-primary); }
.ghos-form__feedback {
  min-height: 1.5rem;
  font-size: .92rem;
}
.ghos-form__feedback.is-erfolg { color: var(--color-success); font-weight: 500; }
.ghos-form__feedback.is-fehler { color: var(--color-error);  font-weight: 500; }
.ghos-form button[type="submit"] { align-self: flex-start; }

/* ════════════════════════════════════════════════════════════════════
 *  AUFNAHME-CTA
 * ════════════════════════════════════════════════════════════════════ */
.ghos-aufnahme-cta { background: var(--color-primary); color: #fff; }
.ghos-aufnahme-cta__karte {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.ghos-aufnahme-cta__titel {
  margin: 0 0 .8rem;
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
}
.ghos-aufnahme-cta__text {
  margin: 0 0 1.2rem;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
}
.ghos-aufnahme-cta__zaehler {
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  margin: 0 0 1.5rem;
}
.ghos-aufnahme-cta__zaehler strong { color: var(--color-accent); font-weight: 700; font-size: 1.05em; }
.ghos-aufnahme-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 0;
}
.ghos-aufnahme-cta .ghos-btn--text { color: var(--color-accent); }

/* ════════════════════════════════════════════════════════════════════
 *  PILOT-NOTICE (wenn zu wenige Häuser)
 * ════════════════════════════════════════════════════════════════════ */
.ghos-pilot__karte {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.ghos-pilot__karte h2 { margin: 0 0 .8rem; }
.ghos-pilot__karte p  { color: var(--color-muted); }

/* ════════════════════════════════════════════════════════════════════
 *  KARTEN-VORSCHAU
 * ════════════════════════════════════════════════════════════════════ */
.ghos-karten-vorschau__map {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

/* ════════════════════════════════════════════════════════════════════
 *  HAUS-KARTE & GRID (Legacy + neu)
 * ════════════════════════════════════════════════════════════════════ */
.haus-grid, .ghos-haeuser__grid {
  display: grid;
  gap: 1.5rem;
}
.haus-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.haus-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.haus-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.haus-karte {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
}
.haus-karte:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}
.haus-karte--premium { border-color: var(--color-accent); }
.haus-karte__bild {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.haus-karte__bild img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.haus-karte:hover .haus-karte__bild img { transform: scale(1.04); }
.haus-karte__platzhalter {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: var(--color-muted);
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}
.haus-karte__platzhalter svg { width: 56px; height: 56px; opacity: .35; }
.haus-karte__logo-platzhalter {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: var(--color-bg-alt);
  padding: 2rem;
}
.haus-karte__logo-platzhalter img {
  max-width: 70%; max-height: 70%; object-fit: contain;
}
.haus-karte__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: .25rem .7rem;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius-button);
}
.haus-karte__inhalt {
  padding: 1.1rem 1.25rem 1.3rem;
  display: flex; flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.haus-karte__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.haus-karte__name a { text-decoration: none; color: var(--color-primary); }
.haus-karte__name a:hover { color: var(--color-accent-dark); }
.haus-karte__ort { color: var(--color-muted); font-size: .9rem; margin: 0; }
.haus-karte__fakten {
  list-style: none; padding: 0;
  margin: .25rem 0;
  display: flex; flex-wrap: wrap;
  gap: .35rem .9rem;
  font-size: .9rem;
  color: var(--color-muted);
}
.haus-karte__fakten li strong { color: var(--color-text); font-weight: 600; }
.haus-karte__kurz { font-size: .92rem; color: var(--color-text); margin: 0; }
.haus-karte__tags {
  list-style: none; padding: 0;
  margin: .35rem 0 0;
  display: flex; flex-wrap: wrap;
  gap: .3rem;
}
.haus-karte__tags li {
  background: var(--color-bg);
  border-radius: var(--radius-button);
  padding: .15rem .65rem;
  font-size: .78rem;
  color: var(--color-muted);
}
.haus-karte__cta {
  margin-top: auto;
  padding-top: .75rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.haus-karte__cta:hover { color: var(--color-accent-dark); }

/* ════════════════════════════════════════════════════════════════════
 *  SUCHE-LAYOUT
 * ════════════════════════════════════════════════════════════════════ */
.suche-kopf {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 0 2rem;
}
.suche-kopf h1 {
  color: #fff;
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
}
.suche-kopf .ghos-suchbox { background: var(--color-surface); }

.suche-ergebnisse { padding: 2.5rem 0; }
.suche-ergebnisse__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}
.suche-filter {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  align-self: start;
  position: sticky;
  top: 80px;
}
.suche-filter h2 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
  margin: 0 0 1rem;
}
.suche-filter .filter-form { display: flex; flex-direction: column; gap: 1.25rem; }

/* v0.11.2: spezifischer machen — label-Regel galt fälschlich auch auf
   die filter-tag-Labels, die in <ul class="filter-tags"> liegen und
   inline-flex sein müssen. Wir scopen jetzt auf die Form-Gruppen-Labels,
   schließen aber explizit die filter-tag-Labels aus. */
.suche-filter .filter-form .filter-gruppe label:not(.filter-tag),
.suche-filter .filter-form .filter-gruppe > div > label {
  display: flex; flex-direction: column;
  gap: .25rem;
  font-size: .85rem;
  color: var(--color-muted);
}

/* Filter-Titel als Sub-Heading innerhalb einer Gruppe */
.suche-filter .filter-titel {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
  font-weight: 600;
  margin: 0;
}
/* Inline-Label (z.B. "Ausstattung" über den Tag-Pillen) — sieht aus
   wie ein normales Form-Label, aber als <span> ohne for-Attribut. */
.suche-filter .filter-label {
  font-size: .85rem;
  color: var(--color-muted);
  display: block;
}

/* Eine Filter-Gruppe ist ein vertikal gestapelter Block (Titel + Inputs) */
.suche-filter .filter-gruppe {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
/* Zwei-Spalter (z.B. PLZ + Umkreis nebeneinander) */
.suche-filter .filter-gruppe--paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

/* Filter-Tag-Pillen (Haustypen, Bundesland, Ausstattung) */
.suche-filter ul.filter-tags,
.suche-filter .filter-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.suche-filter .filter-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  font-size: .82rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  /* Wichtig: NICHT flex-direction column erben (Bug aus alter Regel) */
  flex-direction: row;
}
.suche-filter .filter-tag:hover {
  border-color: var(--color-muted);
}
.suche-filter .filter-tag input[type="checkbox"],
.suche-filter .filter-tag input[type="radio"] {
  margin: 0;
  width: auto;
  appearance: auto;
  accent-color: var(--color-accent, var(--color-primary, #2563EB));
}
.suche-filter .filter-tag.is-aktiv,
.suche-filter .filter-tag:has(input:checked) {
  background: var(--color-accent, var(--color-primary, #2563EB));
  color: #fff;
  border-color: transparent;
}
.suche-filter .filter-tag.is-aktiv input[type="checkbox"],
.suche-filter .filter-tag.is-aktiv input[type="radio"] {
  filter: brightness(1.5);
}

.suche-filter input,
.suche-filter select {
  font: inherit; font-size: .92rem;
  padding: .5rem .65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  /* v0.11.5 — Ohne diese drei Regeln greift der Browser-Default für
     number-/text-/select-Inputs (≈200 px intrinsische Breite). In der
     schmalen Sidebar und insbesondere in der 1fr/1fr-Spalte des
     `filter-gruppe--paar` (Schlafplätze min/max) ragten die Inputs
     dann rechts aus dem Filter-Container. `min-width:0` ist nötig,
     weil Form-Controls in Grid-/Flex-Children sonst nicht unter ihre
     intrinsische Min-Width schrumpfen. */
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.suche-zaehler {
  font-size: .95rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}
.suche-zaehler strong { color: var(--color-text); }

/* ════════════════════════════════════════════════════════════════════
 *  PAGINATION
 * ════════════════════════════════════════════════════════════════════ */
.ghos-pagination {
  display: flex;
  justify-content: center;
  gap: .35rem;
  margin-top: 2.5rem;
}
.ghos-pagination a, .ghos-pagination span {
  padding: .55rem .9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  text-decoration: none;
  color: var(--color-text);
  font-size: .92rem;
}
.ghos-pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.ghos-pagination .is-aktiv {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════
 *  HAUS-DETAIL
 * ════════════════════════════════════════════════════════════════════ */
.haus-detail__kopf {
  padding: 2rem 0 1rem;
}
.haus-detail__breadcrumb {
  font-size: .9rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.haus-detail__breadcrumb a { color: var(--color-primary); text-decoration: none; }
.haus-detail__h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}
.haus-detail__ort {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}
.haus-detail__galerie {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 2rem;
}
.haus-detail__galerie img {
  width: 100%; height: 280px;
  object-fit: cover;
  background: var(--color-bg-alt);
}
.haus-detail__galerie--leer {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt);
  height: 280px;
  color: var(--color-muted);
}
.haus-detail__galerie--leer svg { width: 64px; height: 64px; opacity: .3; }

.haus-detail__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  padding-bottom: 4rem;
}
.haus-detail__inhalt h2 {
  font-size: 1.4rem;
  margin: 1.75rem 0 .75rem;
}
.haus-detail__fakten {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  align-self: start;
}
.haus-detail__fakten dl { margin: 0; }
.haus-detail__fakten dt {
  font-size: .82rem;
  color: var(--color-muted);
  margin-top: .75rem;
}
.haus-detail__fakten dt:first-child { margin-top: 0; }
.haus-detail__fakten dd { margin: 0; font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════
 *  FOOTER
 * ════════════════════════════════════════════════════════════════════ */
.ghos-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.ghos-footer__cols {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.ghos-footer__marke {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  margin-bottom: .75rem;
}
.ghos-footer__marke svg { width: 26px; height: 26px; }
.ghos-footer__claim {
  font-size: .92rem;
  color: rgba(255,255,255,.7);
  max-width: 320px;
  margin: 0;
  line-height: 1.5;
}
.ghos-footer__h {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 1rem;
}
.ghos-footer__liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.ghos-footer__liste a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .92rem;
}
.ghos-footer__liste a:hover { color: var(--color-accent); }
.ghos-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ════════════════════════════════════════════════════════════════════
 *  DIAGNOSE-SEITE
 * ════════════════════════════════════════════════════════════════════ */
.diag-kachel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.diag-kachel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}
.diag-kachel__label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
}
.diag-kachel__wert {
  font-size: 1.5rem;
  font-weight: 700;
  margin: .35rem 0;
  color: var(--color-primary);
}
.diag-kachel__hinweis {
  font-size: .85rem;
  color: var(--color-muted);
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════
 *  RESPONSIVE
 * ════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ghos-pricing-teaser__grid,
  .ghos-funktionen__grid     { grid-template-columns: repeat(2, 1fr); }
  .ghos-module__grid--cols-4 { grid-template-columns: repeat(3, 1fr); }
  .haus-grid--cols-4         { grid-template-columns: repeat(3, 1fr); }
  .ghos-workflow__steps      { grid-template-columns: repeat(2, 1fr); }
  .haus-detail__layout       { grid-template-columns: 1fr; }
  .haus-detail__fakten       { position: static; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .ghos-header__nav { display: none; }
  .ghos-header__cta { display: none; }
  .ghos-burger { display: inline-flex; align-items: center; justify-content: center; }
  .ghos-hero__switch { width: 100%; }
  .ghos-hero__switch-btn { flex: 1; text-align: center; }
  .ghos-hero__ctas { flex-direction: column; align-items: stretch; }
  .ghos-hero__ctas .ghos-btn { width: 100%; }
  .ghos-zielgruppen__grid,
  .ghos-pain__grid,
  .ghos-pricing-teaser__grid,
  .ghos-funktionen__grid,
  .ghos-workflow__steps,
  .ghos-module__grid--cols-3,
  .ghos-module__grid--cols-4,
  .ghos-module__grid--cols-2 { grid-template-columns: 1fr; }
  .haus-grid--cols-3,
  .haus-grid--cols-4         { grid-template-columns: repeat(2, 1fr); }
  .ghos-form__row            { grid-template-columns: 1fr; }
  .ghos-form                 { padding: 1.5rem; }
  .ghos-footer__cols         { grid-template-columns: 1fr; gap: 2rem; }
  .suche-ergebnisse__layout  { grid-template-columns: 1fr; }
  .suche-filter              { position: static; }
  .haus-detail__galerie      { grid-template-columns: 1fr; }
  .haus-detail__galerie img,
  .haus-detail__galerie--leer{ height: 220px; }
}

@media (max-width: 480px) {
  .haus-grid--cols-2, .haus-grid--cols-3, .haus-grid--cols-4 { grid-template-columns: 1fr; }
  .ghos-form                  { padding: 1.25rem; }
  .ghos-abschnitt             { padding: 2.5rem 0; }
  .ghos-suchbox__zeile        { flex-direction: column; }
  .ghos-suchbox__feld         { flex: 1 1 100%; }
}

/* ════════════════════════════════════════════════════════════════════
 *  HILFSKLASSEN
 * ════════════════════════════════════════════════════════════════════ */
.ghos-text-zentriert { text-align: center; }
.ghos-mt-0 { margin-top: 0; }
.ghos-mb-0 { margin-bottom: 0; }
.ghos-nowrap { white-space: nowrap; }

/* Print */
@media print {
  .ghos-header, .ghos-footer, .ghos-hero__ctas, .ghos-suchbox { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
 *  v0.6.1 HOTFIX — Legacy-Klassen, die sonst broken rendern
 *  ────────────────────────────────────────────────────────────────────
 *  Problem auf Live-Site:
 *    1. suche.php und haus.php nutzen <div class="container">, das in
 *       der neuen portal.css nicht definiert war → H1 hing links raus.
 *    2. Der Lizenzserver-HeroBlock rendert direkt <section
 *       class="ghos-hero"> mit Sub-Klassen __bild/__inner/__titel/
 *       __lede/__ctas. Die neue .ghos-hero ist aber für software_hero
 *       (mit __h1/__sub/__switch) — die Sub-Klassen kollidierten.
 *
 *  Lösung:
 *    1. .container als Alias zu .ghos-container.
 *    2. Alte Hero-Sub-Klassen wiederherstellen, mit neuen Tokens.
 * ════════════════════════════════════════════════════════════════════ */

/* ── Container-Alias ──────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Legacy HeroBlock (LS-Direkt-Render) ──────────────────────────── */
/* Wenn der CMS-HeroBlock ein .ghos-hero MIT __bild rendert, behandeln
 * wir das als großes Verzeichnis-Hero mit Bild-Hintergrund. Der neue
 * software_hero nutzt KEIN __bild und bekommt daher den Software-Look
 * aus dem ghos-hero--software-Modifier oben. */
.ghos-hero:has(.ghos-hero__bild) {
  position: relative;
  min-height: 480px;
  padding: 0;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--color-primary);
}
.ghos-hero:has(.ghos-hero__bild)::before { content: none; }

.ghos-hero__bild {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ghos-hero__bild img {
  width: 100%; height: 100%; object-fit: cover;
}
.ghos-hero__bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,38,53,.45) 0%, rgba(16,38,53,.7) 100%);
}
.ghos-hero--overlay-dunkel .ghos-hero__bild::after {
  background: linear-gradient(180deg, rgba(16,38,53,.6) 0%, rgba(16,38,53,.82) 100%);
}

/* __inner soll innerhalb des Bilds liegen und zentriert sein */
.ghos-hero:has(.ghos-hero__bild) .ghos-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 24px;
  text-align: center;
}

.ghos-hero__titel {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.ghos-hero__lede {
  color: rgba(255,255,255,.92);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin: 0 auto 2rem;
  max-width: 680px;
  line-height: 1.5;
}
.ghos-hero__ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.ghos-hero__ctas .ghos-btn--text {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ghos-hero__ctas .ghos-btn--text:hover {
  color: #fff;
}

/* ── Body-Background: dezent, keine Berge ─────────────────────────── */
body { background: var(--color-bg); }

/* ── Block-Preview-Klassen aus cms-blocks.css überleben lassen ────── */
.ghos-block-preview {
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-card);
  padding: 1rem;
  color: var(--color-muted);
  font-size: .9rem;
}
.ghos-block-preview__chip {
  display: inline-block;
  padding: .2rem .6rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-button);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: .4rem;
  font-size: .85rem;
}
.ghos-block-preview__zeile { color: var(--color-text); }
.ghos-block-preview__hinweis { font-size: .8rem; opacity: .7; margin-top: .35rem; }

/* ── Suche-Kopf braucht Container-Padding zwingend ────────────────── */
.suche-kopf > .container,
.suche-kopf > .ghos-container {
  padding-left: 24px;
  padding-right: 24px;
}

/* ════════════════════════════════════════════════════════════════════
 *  v0.6.2 HOTFIX — Hero-Styles final übersteuern
 *  ────────────────────────────────────────────────────────────────────
 *  Drei Bugs aus der 14:54-Iteration:
 *
 *  1. Headlines rendern in Playfair Display, weil cms-blocks.css
 *     `var(--ff-serif, "Playfair Display", ...)` als Schrift hatte.
 *     Variable existierte nicht mehr → Browser fiel auf Playfair zurück.
 *     Fix: cms-blocks.css final auf `var(--ghos-font)` (= Inter)
 *     umgestellt, plus dieser Override hier mit höchster Spezifizität.
 *
 *  2. `.ghos-hero--software` rendert mit Petrol-Background statt creme,
 *     weil cms-blocks.css `:not(.ghos-hero--overlay)` Regel zugriff.
 *     Fix: cms-blocks-Regel um `:not(.ghos-hero--software)` ergänzt,
 *     plus dieser explizite Override hier.
 *
 *  3. /aufnahme-Headline „Macht euer..." war Petrol-auf-Petrol —
 *     mein `.ghos-hero__h1` setzte `color: var(--color-primary)`
 *     auf einem Hero, der durch cms-blocks Petrol-Background hatte.
 *     Schrift unsichtbar. Fix: durch Software-Background-Reparatur
 *     (Punkt 2) jetzt cremig → Petrol-Text lesbar.
 *
 *  Spezifizität-Trick: `.ghos-hero.ghos-hero--software` ist 0,2,0 statt
 *  0,1,0 → schlägt cms-blocks-Regel zuverlässig auch bei späterer
 *  Cascade-Reihenfolge. Plus !important für absolute Sicherheit.
 * ════════════════════════════════════════════════════════════════════ */

.ghos-hero.ghos-hero--software {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%) !important;
  color: var(--color-text);
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

/* Schrift in Hero-Modifiern explizit Inter, kein Browser-Default mehr */
.ghos-hero .ghos-hero__h1,
.ghos-hero .ghos-hero__titel,
.ghos-hero .ghos-hero__sub,
.ghos-hero .ghos-hero__lede,
.ghos-suchhero .ghos-suchhero__h1 {
  font-family: var(--ff, var(--ghos-font, "Inter", system-ui, sans-serif)) !important;
}

/* Software-Hero: Petrol-Schrift auf creme-Background */
.ghos-hero.ghos-hero--software .ghos-hero__h1,
.ghos-hero.ghos-hero--software .ghos-hero__titel {
  color: var(--color-primary) !important;
}
.ghos-hero.ghos-hero--software .ghos-hero__sub,
.ghos-hero.ghos-hero--software .ghos-hero__lede {
  color: var(--color-muted) !important;
}
.ghos-hero.ghos-hero--software .ghos-kicker {
  color: var(--color-accent-dark);
  background: rgba(214,164,58,.14);
}

/* CMS-Hero (ohne Software-Modifier): bleibt Petrol mit weißer Schrift,
 * aber Schrift muss explizit weiß sein (cms-blocks setzt es weiß, der
 * Override hier verhindert versehentliche Petrol-Schriftvererbung) */
.ghos-hero:not(.ghos-hero--software):not(:has(.ghos-hero__bild)) .ghos-hero__titel,
.ghos-hero:not(.ghos-hero--software):not(:has(.ghos-hero__bild)) .ghos-hero__h1 {
  color: #ffffff !important;
}
.ghos-hero:not(.ghos-hero--software):not(:has(.ghos-hero__bild)) .ghos-hero__lede,
.ghos-hero:not(.ghos-hero--software):not(:has(.ghos-hero__bild)) .ghos-hero__sub {
  color: rgba(255,255,255,.92) !important;
}

/* aufnahme.php nutzt __inner mit ghos-container — sicherstellen, dass
 * das padding korrekt ist und nicht doppelt vom cms-blocks-__inner
 * zugefügt wird (max-width unter 1200 wäre falsch) */
.ghos-hero.ghos-hero--software .ghos-hero__inner {
  max-width: var(--container);
  padding: 0 24px;
}
