/* Hilft im Haus – Landingpage. Farben/Abstände: Design-Paket theme/theme/theme.css (hell + dunkel nach System). */

@font-face { font-family: 'Nunito'; font-weight: 800; font-style: normal; font-display: swap; src: url('fonts/nunito-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-style: normal; font-display: swap; src: url('fonts/nunito-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --hih-primary: #11756B;
  --hih-primary-pressed: #0B5A52;
  --hih-primary-soft: #E3F1EE;
  --hih-on-primary: #FFFFFF;
  --hih-accent: #F0A733;
  --hih-accent-soft: #FDF1DC;
  --hih-on-accent: #1B2B2A;
  --hih-accent-text: #9A5B00;
  --hih-background: #F5F6F2;
  --hih-surface: #FFFFFF;
  --hih-surface-alt: #EDEFEA;
  --hih-text: #1B2B2A;
  --hih-text-muted: #4A5856;
  --hih-text-subtle: #5F6C6A;
  --hih-border: #DCE1DC;
  --hih-footer: #0F1C1B;
  --hih-band: #11756B;
  --hih-on-band: #FFFFFF;
  --hih-radius-md: 12px;
  --hih-radius-lg: 16px;
  --hih-radius-xl: 24px;
  --hih-font-heading: 'Nunito', system-ui, sans-serif;
  --hih-font-body: 'Inter', system-ui, sans-serif;
  --hih-shadow: 0 1px 3px rgba(15, 28, 27, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --hih-primary: #4FB8A9;
    --hih-primary-pressed: #6CCABD;
    --hih-primary-soft: #173A36;
    --hih-on-primary: #0F1C1B;
    --hih-accent: #F5B54E;
    --hih-accent-soft: #3A2E17;
    --hih-on-accent: #1B2B2A;
    --hih-accent-text: #F5B54E;
    --hih-background: #0F1C1B;
    --hih-surface: #172726;
    --hih-surface-alt: #1F3231;
    --hih-text: #EAF0EE;
    --hih-text-muted: #A9B6B3;
    --hih-text-subtle: #8A9895;
    --hih-border: #2A3D3B;
    --hih-footer: #0A1413;
    --hih-band: #173A36;
    --hih-on-band: #EAF0EE;
    --hih-shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--hih-background); scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.5 var(--hih-font-body); color: var(--hih-text); background: var(--hih-background); -webkit-font-smoothing: antialiased; }
a { color: var(--hih-primary); }
a:hover { color: var(--hih-primary-pressed); }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--hih-font-heading); font-weight: 800; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--hih-accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-head { display: grid; gap: 8px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
.lead { font-size: 17px; color: var(--hih-text-muted); max-width: 640px; }
.overline { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hih-primary); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hih-text); }
.brand-word { font-family: var(--hih-font-heading); font-weight: 800; font-size: 22px; }
.brand-word span { color: var(--hih-primary); }
.logo-line { stroke: var(--hih-primary); }
.logo-heart { fill: var(--hih-accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--hih-radius-md); border: 1.5px solid transparent; font: 600 16px var(--hih-font-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--hih-primary); color: var(--hih-on-primary); }
.btn-primary:hover { background: var(--hih-primary-pressed); color: var(--hih-on-primary); }
.btn-outline { border-color: var(--hih-border); color: var(--hih-text); background: var(--hih-surface); }
.btn-outline:hover { border-color: var(--hih-primary); color: var(--hih-primary); }
.btn-accent { background: var(--hih-accent); color: var(--hih-on-accent); }
.btn-accent:hover { filter: brightness(0.95); color: var(--hih-on-accent); }

/* Kopf */
.site-header { background: var(--hih-surface); border-bottom: 1px solid var(--hih-border); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; flex: 1; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--hih-text); text-decoration: none; }
.site-nav a:hover { color: var(--hih-primary); }
.header-actions { display: flex; gap: 10px; }
@media (max-width: 760px) { .site-nav { display: none; } .site-header .container { justify-content: space-between; } }

/* Hero */
.hero { background: var(--hih-primary-soft); }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: grid; gap: 24px; }
.hero h1 { font-weight: 900; font-size: clamp(38px, 5vw, 60px); line-height: 1.08; }
.hero .lead { font-size: 19px; line-height: 1.55; }
.search { background: var(--hih-surface); border-radius: 18px; padding: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; max-width: 640px; box-shadow: var(--hih-shadow); }
.field { flex: 1 1 200px; display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select { height: 48px; border: 1.5px solid var(--hih-border); border-radius: var(--hih-radius-md); padding: 0 14px; font: 400 16px var(--hih-font-body); color: var(--hih-text); background: var(--hih-surface); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--hih-primary); outline: none; }
.field-error { font-size: 13px; color: #C2413A; min-height: 0; }
.field-wide { flex-basis: 100%; }
.optional { font-weight: 400; color: var(--hih-text-muted); }
.field input[type=search] { -webkit-appearance: none; appearance: none; }
.search .btn { flex: 1 1 160px; }

/* Einstieg „Ich suche Hilfe“ / „Ich biete Hilfe“ (W-11): Radio-Buttons als Umschalter, Texte per :has() */
.entry { flex: 1 1 100%; display: flex; gap: 4px; margin: 0; padding: 4px; border: 0; border-radius: var(--hih-radius-md); background: var(--hih-surface-alt); }
.entry label { flex: 1; min-height: 44px; display: grid; place-items: center; border-radius: 9px; font-weight: 600; font-size: 16px; color: var(--hih-text-muted); cursor: pointer; text-align: center; padding: 0 8px; }
.entry input:checked + label { background: var(--hih-surface); color: var(--hih-primary); box-shadow: inset 0 0 0 2px var(--hih-primary); }
.entry input:focus-visible + label { outline: 3px solid var(--hih-accent); outline-offset: 2px; }
.entry-hint { flex: 1 1 100%; font-size: 14px; color: var(--hih-text-muted); }
.search .for-helpers { display: none; }
.search:has(#art-request:checked) .for-helpers { display: revert; }
.search:has(#art-request:checked) .for-seekers { display: none; }

/* Handy-Vorschau */
.phone { flex: 1 1 280px; display: flex; justify-content: center; }
.phone-frame { width: 300px; border-radius: 40px; border: 10px solid #1B2B2A; background: var(--hih-background); overflow: hidden; box-shadow: 0 24px 60px rgba(15, 28, 27, 0.25); }
.phone-frame img { width: 100%; height: auto; }

/* Kategorien */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--hih-surface); border-radius: var(--hih-radius-lg); padding: 24px; display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--hih-text); box-shadow: var(--hih-shadow); border: 2px solid transparent; transition: border-color .15s; }
a.card:hover { border-color: var(--hih-primary); color: var(--hih-text); }
.card h3 { font-size: 20px; }
.card p { font-size: 15px; color: var(--hih-text-muted); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--hih-primary-soft); color: var(--hih-primary); display: grid; place-items: center; margin-bottom: 8px; }
.icon svg { width: 26px; height: 26px; }

/* Ablauf */
.steps-section { background: var(--hih-surface); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.step { display: grid; gap: 10px; }
.step-number { width: 44px; height: 44px; border-radius: 50%; background: var(--hih-accent); color: var(--hih-on-accent); display: grid; place-items: center; font-family: var(--hih-font-heading); font-weight: 900; font-size: 20px; }
.step h4 { font-family: var(--hih-font-heading); font-weight: 800; font-size: 20px; margin: 0; }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 64px; }
.path { display: grid; gap: 28px; align-content: start; }
.path .steps { grid-template-columns: 1fr; gap: 24px; }
.path .step { grid-template-columns: 44px 1fr; gap: 4px 16px; }
.path .step-number { grid-row: span 2; }
.path .step h4 { align-self: center; min-height: 44px; display: flex; align-items: center; }
.path .btn { justify-self: start; }
.path-title { font-size: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--hih-border); }
.step p { color: var(--hih-text-muted); }

/* Hilfe anbieten */
.band { background: var(--hih-band); color: var(--hih-on-band); }
.band .container { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.band-text { flex: 999 1 460px; display: grid; gap: 16px; }
.band .overline { color: var(--hih-accent); }
.band h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
.band p { opacity: 0.9; max-width: 560px; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-on-band { border-color: currentColor; color: var(--hih-on-band); background: transparent; }
.btn-on-band:hover { background: rgba(255, 255, 255, 0.1); color: var(--hih-on-band); }
.band-list { flex: 1 1 300px; display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.band-list li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, 0.1); border-radius: var(--hih-radius-md); padding: 16px 18px; font-weight: 600; }
.band-list svg { flex: none; width: 20px; height: 20px; color: var(--hih-accent); margin-top: 2px; }

/* Vertrauen */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.trust h3 { font-family: var(--hih-font-body); font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.trust p { color: var(--hih-text-muted); font-size: 15px; }

/* Fragen */
.faq-section { background: var(--hih-surface); }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hih-border); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--hih-primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--hih-text-muted); }
.faq .faq-more { margin-top: 20px; font-weight: 600; }
.faq .faq-more a { color: var(--hih-primary); }

/* Abschluss */
.cta { background: var(--hih-primary-soft); }
.cta .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Fuß */
.site-footer { background: var(--hih-footer); color: #EAF0EE; padding: 32px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.site-footer .brand { color: #FFFFFF; }
.site-footer .brand-word { font-size: 19px; }
.site-footer .brand-word span { color: #FFFFFF; }
.site-footer .logo-line { stroke: #FFFFFF; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; flex: 1; font-size: 14px; }
.site-footer a { color: #EAF0EE; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer small { font-size: 13px; color: #A9B6B3; }
