/* LeSeCo – Beratung & Coaching
   Gemeinsame Styles. Die meisten Gestaltungsdetails stehen direkt im HTML (style="…"),
   hier liegen Grundlagen, das Handy-Menü, die FAQ und das Kontakt-Popup. */

:root {
  --cream: #F4F1EB;
  --paper: #FBF9F5;
  --ink: #16252A;
  --text: #2F3A3D;
  --muted: #5C6466;
  --terra: #9E4F33;
  --terra-dark: #7A3B25;
  --petrol: #3F5B57;
  --line: #E2DCD0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--cream); color: #1E2B2E; font-family: 'Jost', system-ui, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: #1E2B2E; }
a:hover { color: var(--terra); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
[id] { scroll-margin-top: 16px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* Navigation: Desktop-Leiste vs. Handy-Menü */
.nav-mob, .nav-panel { display: none; }
@media (max-width: 900px) {
  .nav-desk { display: none !important; }
  .nav-mob { display: inline-flex !important; }
  .nav-panel { display: flex !important; }
}
.nav-panel[hidden] { display: none !important; }
@media (max-width: 900px) {
  .hero-deco { top: 0 !important; right: 0 !important; }
}
@media (max-width: 640px) {
  .logo-sub { display: none !important; }
}

/* Bereiche mit dunklem Hintergrund */
.on-dark a { color: #F0D2B6; }
.on-dark a:hover { color: #FFFFFF; }
.sec-footer a { color: #E8E2D7; }
.sec-footer a:hover { color: #FFFFFF; }

/* Rechtliche Seiten */
.legal h2 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.25; color: var(--ink); }
.legal p, .legal ul { margin: 0; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--terra); }
.legal a:hover { color: var(--terra-dark); }

/* FAQ */
.faq-item { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; }
.faq-item[open] { border: 1.5px solid var(--terra); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px clamp(18px, 2vw, 28px); min-height: 44px;
  font-family: 'Newsreader', Georgia, serif; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 clamp(18px, 2vw, 28px) 26px; white-space: pre-line; font-size: 17px; line-height: 1.65; color: #3A4447; }

/* Kontakt-Popup */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding: clamp(12px, 5vw, 64px) 12px; overflow-y: auto; background: rgba(22, 37, 42, .62); }
.modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.modal-card { position: relative; width: 100%; max-width: 720px; background: var(--paper); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.28); overflow: hidden; color: #1E2B2E; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(18px, 4vw, 28px) 16px; border-bottom: 1px solid #E8E2D7; }
.modal-head .brand { display: flex; align-items: baseline; gap: 14px; }
.modal-head .brand b { font-family: 'Newsreader', Georgia, serif; font-size: 26px; font-weight: 500; color: var(--ink); }
.modal-head .brand span { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; display: flex; align-items: center; justify-content: center; color: #1E2B2E; cursor: pointer; }
.icon-btn:hover { background: #EFEAE1; }
.progress { padding: 18px clamp(18px, 4vw, 28px) 0; display: flex; flex-direction: column; gap: 8px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.progress-bar { height: 6px; border-radius: 999px; background: #E8E2D7; overflow: hidden; }
.progress-bar div { height: 100%; background: var(--terra); border-radius: 999px; transition: width .3s; }
.modal-body { padding: 28px clamp(18px, 4vw, 28px) 30px; display: flex; flex-direction: column; gap: 22px; }
.modal-body h2 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: clamp(25px, 3.4vw, 32px); line-height: 1.2; color: var(--ink); }
.modal-body .hint { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.options { display: flex; flex-direction: column; gap: 10px; }
.opt { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 12px; cursor: pointer; text-align: left; font-family: 'Jost', system-ui, sans-serif; background: #FFFFFF; color: #1E2B2E; border: 1px solid var(--line); transition: background .15s; }
.opt:hover { border-color: #B9B2A6; }
.opt .mark { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #FFFFFF; border: 1.5px solid #B9B2A6; }
.opt.multi .mark { border-radius: 6px; }
.opt .mark svg { display: none; }
.opt .txt { display: flex; flex-direction: column; gap: 2px; }
.opt .txt b { font-size: 17px; font-weight: 500; }
.opt .txt small { font-size: 14px; color: var(--muted); }
.opt[aria-pressed="true"] { background: var(--petrol); color: #FFFFFF; border: 1.5px solid var(--petrol); }
.opt[aria-pressed="true"] .mark { background: var(--terra); border-color: var(--terra); }
.opt[aria-pressed="true"] .mark svg { display: block; }
.opt[aria-pressed="true"] .txt small { color: #D6DDD8; }
.note { background: #F6E7DD; border: 1px solid #E3C2AE; border-radius: 12px; padding: 16px 20px; font-size: 15px; line-height: 1.55; color: #5A2E1E; }
.info { background: #EFEAE1; border-radius: 12px; padding: 14px 18px; font-size: 14px; line-height: 1.55; color: #3A4447; }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; }
.field { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.field input, .field textarea { min-height: 48px; width: 100%; border: 1px solid #D5CEC2; border-radius: 10px; padding: 12px 14px; font: 16px 'Jost', system-ui, sans-serif; color: #1E2B2E; background: #FFFFFF; }
.field textarea { resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--text); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--terra); }
.modal-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 10px; border-top: 1px solid #E8E2D7; }
.btn-back { min-height: 48px; display: inline-flex; align-items: center; gap: 8px; background: transparent; border: none; padding: 12px 4px; font: 16px 'Jost', system-ui, sans-serif; color: #3A4447; cursor: pointer; }
.btn-next { min-height: 52px; display: inline-flex; align-items: center; gap: 12px; border: none; border-radius: 6px; padding: 14px 26px; font: 500 17px 'Jost', system-ui, sans-serif; color: #FFFFFF; background: var(--terra); cursor: pointer; }
.btn-next:hover { background: var(--terra-dark); }
.btn-next:disabled { background: #C9B9AE; cursor: not-allowed; }
.crisis-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; text-decoration: none; color: var(--ink); }
.crisis-link b { display: block; font-size: 17px; font-weight: 500; }
.crisis-link small { font-size: 14px; color: var(--muted); }
.crisis-link span.num { font-family: 'Newsreader', Georgia, serif; font-size: 28px; color: var(--terra); }
.text-btn { align-self: flex-start; min-height: 44px; background: transparent; border: none; padding: 8px 0; font: 15px 'Jost', system-ui, sans-serif; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.done { text-align: center; align-items: center; padding: 16px 0 4px; }
.done .ok { width: 64px; height: 64px; border-radius: 50%; background: #DDE3DB; color: var(--petrol); display: flex; align-items: center; justify-content: center; }
.done p { margin: 0; max-width: 480px; font-size: 17px; line-height: 1.6; color: var(--text); }
.done p.small { font-size: 14px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
