/* ─────────────────────────────────────────────────────────────────────────
   AGB / Impressum / Support · Redesign-Vorschau (docs/app_shell_redesign.md)
   1:1 Token-System + Navbar/Footer/Card-Bausteine aus style_transactions.css
   übernommen, damit diese drei Seiten optisch nahtlos an die übrigen Redesign-Seiten
   anschließen — bewusst KEINE Abhängigkeit von style_app.css. Ein gemeinsames Stylesheet
   für alle drei (statt je einer eigenen Kopie), weil sie strukturell fast identisch sind
   (Navbar + eine Content-Karte + Footer + öffentliche Login/Register-Modals) — anders als
   z.B. production.php vs. select_project.php, die funktional zu
   unterschiedlich sind, um sich ein Stylesheet zu teilen.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --ground: #f5f7fa; --surface: #ffffff; --surface-2: #eef1f6;
  --ink: #161b24; --ink-2: #56616f; --ink-3: #8a94a3;
  --border: #e2e7ee; --border-strong: #cfd6e0;
  --blue: #2f66d0; --blue-soft: #e7eefb;
  --gold: #b3822b; --gold-soft: #f6ecd6;
  --good: #2b9466; --good-soft: #e2f2ea;
  --warn: #c67d1e; --warn-soft: #f8ecd8;
  --danger: #c0392b; --danger-soft: #fbeceb;
  --wire: #dfe4ec;
  --shadow: 0 1px 2px rgba(20,27,40,.04), 0 8px 24px rgba(20,27,40,.05);
  --shadow-lg: 0 4px 10px rgba(20,27,40,.06), 0 16px 32px rgba(20,27,40,.08);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --navh: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d1017; --surface: #151a23; --surface-2: #1c222e;
    --ink: #eaeef4; --ink-2: #9aa5b4; --ink-3: #6b7686;
    --border: #262d3a; --border-strong: #333c4c;
    --blue: #5f8ef0; --blue-soft: #16233c; --gold: #e0a94a; --gold-soft: #2e2510;
    --good: #48b587; --good-soft: #12271d; --warn: #dd9a3c; --warn-soft: #2c220f;
    --danger: #e0605a; --danger-soft: #2c1614; --wire: #232a36;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    --shadow-lg: 0 4px 14px rgba(0,0,0,.35), 0 20px 40px rgba(0,0,0,.4);
  }
}
:root[data-theme="light"] {
  --ground:#f5f7fa; --surface:#fff; --surface-2:#eef1f6; --ink:#161b24; --ink-2:#56616f; --ink-3:#8a94a3;
  --border:#e2e7ee; --border-strong:#cfd6e0; --blue:#2f66d0; --blue-soft:#e7eefb; --gold:#b3822b; --gold-soft:#f6ecd6;
  --good:#2b9466; --good-soft:#e2f2ea; --warn:#c67d1e; --warn-soft:#f8ecd8; --danger:#c0392b; --danger-soft:#fbeceb; --wire:#dfe4ec;
}
:root[data-theme="dark"] {
  --ground:#0d1017; --surface:#151a23; --surface-2:#1c222e; --ink:#eaeef4; --ink-2:#9aa5b4; --ink-3:#6b7686;
  --border:#262d3a; --border-strong:#333c4c; --blue:#5f8ef0; --blue-soft:#16233c; --gold:#e0a94a; --gold-soft:#2e2510;
  --good:#48b587; --good-soft:#12271d; --warn:#dd9a3c; --warn-soft:#2c220f; --danger:#e0605a; --danger-soft:#2c1614; --wire:#232a36;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--ground); color: var(--ink); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
svg { display: block; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 640; font-size: .86rem;
  padding: 9px 16px; border-radius: 9px; border: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #2856b3; }
.btn.ghost { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--ink-2); }
.btn.ghost:hover { background: var(--border); }

/* ── Navbar (identisch zu style_transactions.css, plus öffentlicher Zustand) ── */
.nav-wire { position: sticky; top: 0; z-index: 500; display: flex; align-items: center; gap: 16px; height: var(--navh); padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.nlogo { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink); flex-shrink: 0; }
.nlogo span { color: var(--blue); }
.nl { font-size: .86rem; font-weight: 500; color: var(--ink-2); padding: 7px 12px; border-radius: 7px; background: none; border: none; cursor: pointer; }
.nl:hover { background: var(--surface-2); color: var(--ink); }
.nspacer { flex: 1; }
.ncluster { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── Hero ── */
.p2-hero { max-width: 900px; margin: 0 auto; padding: 28px 24px 6px; }
.eyebrow { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }
.p2-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 660; }
.p2-hero .lead { margin-top: 6px; color: var(--ink-2); font-size: .94rem; max-width: 62ch; }

/* ── Shell ── */
.p2-shell { max-width: 900px; margin: 0 auto; padding: 22px 24px 60px; display: flex; flex-direction: column; gap: 20px; }

/* ── Card ── */
.p2-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 24px 26px 26px; min-width: 0; }

/* ── Rechtstext (AGB/Impressum) ── */
.legal .meta { color: var(--ink-2); font-size: .9rem; margin-bottom: 18px; }
.legal hr { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
.legal h3 { font-size: 1.02rem; font-weight: 660; margin: 24px 0 8px; }
.legal h3:first-of-type { margin-top: 4px; }
.legal p { color: var(--ink-2); font-size: .92rem; line-height: 1.65; margin-bottom: 12px; }
.legal p:last-child { margin-bottom: 0; }
.legal a { font-weight: 600; }
.legal .stand { font-size: .8rem; color: var(--ink-3); }

/* ── Kontaktformular (Support) ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .82rem; font-weight: 620; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--ink-2); margin: -4px 0 14px; }
.inp { font-family: inherit; font-size: .92rem; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); width: 100%; }
.inp:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea.inp { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.contact-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; font-size: .92rem; color: var(--ink-2); }
.contact-meta strong { color: var(--ink); }

/* ── Modals (identisches Verhalten wie index_v9.php: reines display:none⇄flex über
   .open, kein Scroll-Lock) ── */
.pmodal-overlay { display: none; position: fixed; inset: 0; z-index: 1150; background: rgba(10,12,16,.55); align-items: center; justify-content: center; padding: 20px; }
.pmodal-overlay.open { display: flex; }
.pmodal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 26px 26px 22px; width: 100%; max-width: 400px; max-height: 88vh; overflow-y: auto; position: relative; }
.pmodal-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 8px; border: none; background: var(--surface-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.pmodal-close:hover { background: var(--border); color: var(--ink); }
.pmodal-box h2 { font-size: 1.1rem; font-weight: 660; margin: 0 0 16px; padding-right: 30px; }
.pmodal-box form { display: flex; flex-direction: column; gap: 4px; }
.pmodal-box label { font-size: .8rem; font-weight: 620; color: var(--ink); margin: 10px 0 4px; }
.pmodal-box label:first-of-type { margin-top: 0; }
.pmodal-box input[type="text"], .pmodal-box input[type="email"], .pmodal-box input[type="password"] {
  font: inherit; font-size: .9rem; padding: 10px 12px; border-radius: 8px;
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--ink); width: 100%;
}
.pmodal-box input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.pmodal-box .error { display: block; font-size: .82rem; color: var(--danger); min-height: 1.1em; margin: 2px 0 6px; }
.pmodal-box .error:empty { margin: 0; min-height: 0; }
.pmodal-box .success { display: block; font-size: .84rem; color: var(--good); font-weight: 640; margin: 2px 0 6px; }
.pmodal-box .success:empty { display: none; }
.pmodal-box .btn.primary { justify-content: center; margin-top: 14px; }
.pmodal-box .modal-link { display: inline-block; margin-top: 12px; font-size: .84rem; color: var(--blue); text-align: center; cursor: pointer; }
.pmodal-box .modal-link:hover { text-decoration: underline; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
.agb-check { margin: 14px 0 6px; font-size: .84rem; color: var(--ink-2); }
.agb-check label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.agb-check input[type="checkbox"] { width: auto; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.recaptcha-notice { font-size: .74rem; color: var(--ink-3); margin-top: 8px; }
.recaptcha-notice a { color: inherit; text-decoration: underline; }
/* reCAPTCHA v3 zeigt sonst ein fixed Badge unten rechts — durch obigen
   Pflicht-Hinweistext ersetzt (Google-Vorgabe: Badge darf ausgeblendet
   werden, wenn der Hinweis stattdessen sichtbar bei der geschützten
   Aktion steht). */
.grecaptcha-badge { visibility: hidden !important; }

/* ── Cookie-Consent-Banner (identisches Markup wie script_consent.js erwartet) ── */
#consent-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; display: none; justify-content: center; padding: 16px; }
.consent-box { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); max-width: 400px; width: 100%; padding: 18px; border-radius: 12px; text-align: center; }
.consent-box h2 { font-size: 1rem; margin-bottom: 8px; }
.consent-box p { font-size: .8rem; color: var(--ink-2); margin-bottom: 16px; line-height: 1.5; }
.consent-actions { display: flex; justify-content: center; gap: 10px; }
.consent-actions button { padding: 8px 16px; font-size: .86rem; border: none; border-radius: 8px; cursor: pointer; font-weight: 620; }
.consent-actions .accept { background: var(--good); color: #fff; }
.consent-actions .accept:hover { background: #227a55; }
.consent-actions .deny { background: var(--surface-2); color: var(--ink-2); }
.consent-actions .deny:hover { background: var(--border); }

/* ── Footer ── */
.p2-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.p2-footer-inner { max-width: 900px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.p2-footer-logo { font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.p2-footer-logo span { color: var(--blue); }
.p2-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.p2-footer-links a { font-size: .8rem; color: var(--ink-3); }
.p2-footer-links a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .nav-wire { height: auto; padding: 12px 16px; }
}
