/* KI.Pflege.Sozial – Anmeldeseite im Erscheinungsbild der EureCons Förderagentur GmbH
   Farben aus dem EureCons-Logo (Schwarz/Anthrazit und Gold); Systemschriften, keine externen Dienste. */

:root {
  --ink: #1d1d1b;
  --ink-2: #3a3a37;
  --muted: #5c5b56;
  --gold: #b09850;          /* Logo-Gold: Flächen, Linien, Buttons */
  --gold-light: #d4c08a;    /* Gold auf dunklem Grund */
  --gold-dark: #7a662b;     /* Gold als Text auf Weiß (Kontrast ≥ 4,5:1) */
  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --line: #ddd8cc;
  --error: #b3261e;
  --radius: 10px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-dark); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Kopfzeile */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo img { display: block; width: 220px; height: auto; }
.header-phone { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.header-phone:hover { color: var(--gold-dark); }
@media (max-width: 520px) { .logo img { width: 170px; } .header-phone { font-size: .9rem; } }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 64px 0 72px; border-bottom: 4px solid var(--gold); }
.eyebrow { color: var(--gold-light); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 4.4rem); letter-spacing: -.02em; margin-bottom: 10px; }
.claim { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); font-weight: 600; margin-bottom: 14px; }
.lead { max-width: 640px; color: #e4e2dc; }
.facts { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 18px 24px; }
.facts li { border-top: 2px solid var(--gold); padding-top: 10px; display: flex; flex-direction: column; }
.facts strong { font-size: 1.1rem; }
.facts span { color: #cfccc4; font-size: .92rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); color: var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-link { background: none; border: 0; padding: 4px 2px; min-height: 0; color: var(--gold-dark); font-weight: 600; text-decoration: underline; }
.btn-link:hover { color: var(--ink); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Kurs */
.course { padding: 56px 24px 24px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin: 20px 0; }
.module { background: var(--bg-soft); border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); padding: 22px 24px; }
.module-tag { color: var(--gold-dark); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.module p:last-child { margin: 0; color: var(--ink-2); }
.note { color: var(--muted); font-size: .95rem; }

/* Formular */
.register { padding: 40px 0 56px; }
.intro { color: var(--ink-2); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 24px; margin: 0 0 18px; }
@media (max-width: 600px) { .card { padding: 18px 16px 20px; } }
legend { font-weight: 700; font-size: 1.1rem; padding: 0 6px; margin-left: -6px; }
.hint { color: var(--muted); font-size: .92rem; margin: 2px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #b9b3a5; border-radius: 8px; padding: 10px 12px; min-height: 46px; width: 100%; }
textarea { resize: vertical; min-height: 90px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.err { color: var(--error); font-weight: 600; font-size: .88rem; }

.mode { display: grid; gap: 10px; }
.choice { flex-direction: row; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--gold); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.choice input, .check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--gold-dark); }
.choice span { display: flex; flex-direction: column; gap: 2px; }
.choice small { color: var(--muted); font-size: .9rem; }

.check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; margin-top: 14px; }
.check .err { display: block; }

.participants { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.participant { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px 16px; background: var(--bg-soft); }
.participant-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.participant-no { font-weight: 700; }
.participants .participant:only-child .remove { display: none; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }

form[data-mode="interesse"] .only-binding { display: none; }
form[data-mode="verbindlich"] .only-interest { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:not(:empty) { border-left: 4px solid var(--error); background: #fbeceb; color: var(--ink); padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; }
.btn-submit { width: 100%; font-size: 1.05rem; min-height: 52px; }
.alert { border-left: 4px solid var(--gold); background: var(--bg-soft); padding: 12px 14px; }
.success { border-top: 4px solid var(--gold); }
.success:focus { outline: none; }

/* Kontakt und Fuß */
.contact { padding: 8px 24px 48px; }
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: .88rem; color: var(--muted); }
.footer-inner { display: grid; gap: 14px; }
.site-footer .eu { width: 201px; height: auto; }
.fineprint { margin: 0; max-width: 760px; }
.legal { display: flex; gap: 20px; }
.legal a { color: var(--ink-2); }
