:root {
    --green-950: #10261a;
    --green-900: #173721;
    --green-800: #20502d;
    --green-700: #2b6a3b;
    --green-100: #e8f2ea;
    --green-50: #f4f8f5;
    --gold: #b68b35;
    --ink: #17201a;
    --muted: #647068;
    --line: #dce5de;
    --danger: #a82c2c;
    --warning: #8a5b00;
    --surface: #ffffff;
    --shadow: 0 18px 50px rgba(20, 50, 30, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--green-50); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: var(--green-700); }
button, input, select, textarea { font: inherit; }
.shell { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green-800); font-weight: 800; letter-spacing: -.04em; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 1px; }
nav { display: flex; gap: 18px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 650; }
nav a:hover { color: var(--green-700); }
.hero { color: white; background: radial-gradient(circle at 80% 15%, rgba(182,139,53,.28), transparent 24%), linear-gradient(135deg, var(--green-950), var(--green-700)); padding: 72px 0 86px; }
.hero-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-flex; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--gold); }
h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.05em; margin: 12px 0 22px; }
.lead { font-size: 1.16rem; color: rgba(255,255,255,.82); max-width: 720px; }
.process { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.process span { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.17); padding: 8px 12px; border-radius: 999px; font-size: .9rem; }
.process b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--green-950); background: white; }
.hero-card { padding: 28px; border-radius: 20px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow); }
.hero-card h2 { margin-top: 0; }
.hero-card ul { padding-left: 20px; margin-bottom: 0; }
.hero-card li + li { margin-top: 10px; }
.content-shell { margin-top: -34px; padding-bottom: 80px; position: relative; z-index: 2; }
.alert { padding: 18px 20px; border-radius: 14px; margin-bottom: 20px; border: 1px solid; background: white; }
.alert-warning { color: #684300; border-color: #e6c777; background: #fff8e5; }
.alert-error { color: #7c2020; border-color: #e8adad; background: #fff0f0; }
.application-form { display: grid; gap: 22px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 38px); box-shadow: 0 8px 28px rgba(20,50,30,.05); }
.section-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.025em; }
.section-heading p { margin: 5px 0 0; color: var(--muted); }
.step { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--green-100); color: var(--green-800); font-weight: 850; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span-2 { grid-column: 1 / -1; }
label { display: grid; gap: 7px; font-weight: 700; }
label > span[aria-hidden="true"] { color: var(--danger); }
.optional { color: var(--muted); font-size: .78rem; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid #bdcbc0; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(43,106,59,.12); }
label small { color: var(--muted); font-weight: 500; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price-grid article { padding: 17px; background: var(--green-50); border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 4px; }
.price-grid span { color: var(--green-700); font-size: 1.25rem; font-weight: 850; }
.muted { color: var(--muted); }
.document-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.document-links a { text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; font-weight: 750; background: white; }
.document-links small { display: block; color: var(--muted); margin-top: 4px; }
.check-stack { display: grid; gap: 12px; }
.check { grid-template-columns: 22px 1fr; align-items: start; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; font-weight: 500; cursor: pointer; }
.check input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-700); }
.check strong, .check small { display: block; }
.check small { margin-top: 4px; }
.required-checks .check { background: var(--green-50); }
.consent-stack .check:hover { border-color: #9fb4a4; }
.choice-group { border: 0; padding: 0; margin: 0 0 20px; }
.choice-group legend { font-weight: 750; margin-bottom: 9px; }
.choice { display: inline-flex; align-items: center; grid-template-columns: auto 1fr; margin-right: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.choice input { width: 18px; min-height: 18px; margin-right: 9px; accent-color: var(--green-700); }
.sepa-panel { display: grid; gap: 18px; }
.legal-box { padding: 18px; border-left: 4px solid var(--green-700); background: var(--green-50); border-radius: 8px; }
.legal-box p:last-child { margin-bottom: 0; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 25px; }
.submit-row p { max-width: 650px; margin: 0; color: var(--muted); }
.primary-button { border: 0; border-radius: 11px; padding: 14px 20px; background: var(--green-700); color: white; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(43,106,59,.22); }
.primary-button:hover { background: var(--green-800); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.inline-button { display: inline-block; text-decoration: none; margin-top: 16px; }
.site-footer { background: var(--green-950); color: white; padding: 34px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; }
.footer-grid p { color: rgba(255,255,255,.68); }
.footer-grid > div:last-child { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-grid a { color: white; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, var(--green-100), var(--green-50) 50%); }
.result-card { width: min(620px, 100%); text-align: center; background: white; border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 6vw, 54px); box-shadow: var(--shadow); }
.result-card h1 { font-size: clamp(2rem, 5vw, 3rem); }
.result-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; margin: auto; background: var(--green-100); color: var(--green-700); font-size: 2rem; font-weight: 900; }
.error-icon { color: var(--danger); background: #ffeded; }
.reference { display: inline-block; background: var(--green-50); border-radius: 8px; padding: 8px 12px; font-family: ui-monospace, monospace; }
.legal-page { padding: 58px 0 78px; }
.legal-article { background: white; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 5vw, 54px); box-shadow: 0 8px 28px rgba(20,50,30,.05); }
.legal-article h1 { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--green-950); }
.legal-article h2 { margin-top: 34px; color: var(--green-900); }
.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px; border: 1px solid var(--line); }
.legal-table th { background: var(--green-50); }
code { background: rgba(0,0,0,.06); padding: 2px 5px; border-radius: 4px; }

@media (max-width: 800px) {
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero { padding: 54px 0 70px; }
    .form-grid, .price-grid, .document-links { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .submit-row, .footer-grid { align-items: stretch; flex-direction: column; }
    .primary-button { width: 100%; }
}
@media (max-width: 640px) {
    .header-inner { align-items: flex-start; padding: 14px 0; }
    nav { display: none; }
    .brand strong { font-size: .92rem; }
    .brand small { font-size: .78rem; }
    .shell { width: min(100% - 24px, 1120px); }
    .form-card { padding: 20px; border-radius: 15px; }
    .section-heading { gap: 10px; }
    .step { width: 36px; height: 36px; border-radius: 10px; }
    .choice { display: flex; margin: 0 0 9px; }
}
@media print {
    .site-header, .site-footer, .primary-button { display: none !important; }
    body { background: white; }
    .legal-article, .form-card { box-shadow: none; border: 0; }
}

/* Adminbereich */
.admin-body { background: #eef3ef; }
.admin-header { background: var(--green-950); color: white; }
.admin-header .header-inner { min-height: 68px; }
.admin-header a { color: white; }
.admin-main { padding: 34px 0 70px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.admin-toolbar h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; color: var(--green-950); }
.admin-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 8px 28px rgba(20,50,30,.05); }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-row a { text-decoration: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; }
.filter-row a.active { background: var(--green-800); color: white; border-color: var(--green-800); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.admin-table a { font-weight: 750; text-decoration: none; }
.status-badge { display: inline-block; border-radius: 999px; padding: 5px 9px; font-size: .78rem; font-weight: 800; background: #edf1ee; color: #435047; }
.status-pending_review { background: #fff1c9; color: #745000; }
.status-approved { background: #dff2e4; color: #17652d; }
.status-rejected, .status-expired { background: #fde4e4; color: #8b2525; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-section { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 22px; }
.detail-section h2 { margin: 0 0 16px; color: var(--green-900); }
.definition-list { display: grid; grid-template-columns: minmax(150px, .65fr) 1fr; gap: 8px 18px; margin: 0; }
.definition-list dt { color: var(--muted); }
.definition-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.full-width { grid-column: 1 / -1; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.secondary-button, .danger-button { display: inline-block; text-decoration: none; border-radius: 9px; padding: 10px 14px; font-weight: 750; cursor: pointer; }
.secondary-button { color: var(--green-800); background: white; border: 1px solid var(--green-700); }
.danger-button { color: white; background: var(--danger); border: 1px solid var(--danger); }
.decision-form { display: grid; gap: 14px; }
.decision-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.audit-list { list-style: none; padding: 0; margin: 0; }
.audit-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.yes { color: #17652d; font-weight: 800; }
.no { color: var(--muted); }
.login-shell { width: min(430px, calc(100% - 30px)); }
.login-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 2.2rem; margin-top: 0; }
.login-form { display: grid; gap: 16px; }
.print-sheet { max-width: 900px; margin: 24px auto; background: white; padding: 42px; border: 1px solid #ddd; }
.print-sheet h1 { font-size: 2.4rem; }
.print-signature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; }
.print-signature div { border-top: 1px solid #333; padding-top: 7px; }
@media (max-width: 800px) {
    .detail-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: auto; }
    .admin-toolbar { flex-direction: column; align-items: stretch; }
    .definition-list { grid-template-columns: 1fr; gap: 3px; }
    .definition-list dd { margin-bottom: 10px; }
}
.verify-card { text-align: left; max-width: 760px; }
.verify-card > .result-icon, .verify-card > h1, .verify-card > p, .verify-card > .eyebrow { text-align: center; margin-inline: auto; }
.verify-summary { background: var(--green-50); border: 1px solid var(--line); border-radius: 13px; padding: 18px; margin: 22px 0; }
.left-align { text-align: left; }
.single-column { grid-template-columns: 1fr; }
.verify-form { display: grid; gap: 15px; margin-top: 20px; }

/* Integration in die Vereinswebseite */
.membership-footer{margin-top:56px;background:#12351f;color:#fff;padding:30px 0}
.membership-footer .shell{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.membership-footer p{margin:0;color:rgba(255,255,255,.82)}
.membership-footer nav{display:flex;gap:16px;flex-wrap:wrap}
.membership-footer a{color:#fff;text-decoration:none;font-weight:700}
.membership-footer a:hover{text-decoration:underline}
.site-header{box-shadow:0 4px 25px rgba(0,0,0,.08)}
.site-header nav{display:flex;gap:10px;flex-wrap:wrap}
.site-header nav a{padding:10px 14px;border-radius:999px}
.site-header nav a:hover{background:#e7f2e9}
@media(max-width:720px){.membership-footer .shell{display:block;text-align:center}.membership-footer nav{justify-content:center;margin-top:16px}.header-inner{align-items:flex-start}.site-header nav{width:100%;margin-top:12px}}
