/* DigitalMDMA ERP – Landingpage
   Klassisch minimalistisch, hell: weiße Flächen, schwarze Schrift, ein Akzent (Lime).
   CI: DigitalMDMA. Vanilla CSS, kein Framework, kein jQuery. */

:root {
    --bg: #ffffff;
    --bg-soft: #f6f7f2;
    --panel: #ffffff;
    --panel-2: #f4f4f5;
    --border: rgba(10, 10, 11, 0.10);
    --border-strong: rgba(10, 10, 11, 0.20);
    --text: #0a0a0b;
    --muted: #52525b;
    --muted-2: #71717a;
    --accent: #ccff00;
    --accent-dim: rgba(204, 255, 0, 0.16);
    --danger: #d92d20;
    --shadow: 0 1px 2px rgba(10, 10, 11, 0.05);
    --shadow-lg: 0 12px 32px rgba(10, 10, 11, 0.10);
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1140px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* Highlight-Wörter: Lime als Textmarker hinter schwarzer Schrift (lesbar auf Weiß) */
.accent {
    background: linear-gradient(transparent 60%, var(--accent) 60%);
    color: inherit;
    padding: 0 0.06em;
    border-radius: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    font-family: inherit;
}
.btn-primary { background: var(--accent); color: #0a0a0b; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); background: #bced00; box-shadow: var(--shadow-lg); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo { display: inline-flex; align-items: center; line-height: 1; }
.logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}
/* Weißes Logo-PNG als schwarze Silhouette rendern (heller Hintergrund) */
.logo-mark {
    height: 2.25em;
    width: auto;
    flex-shrink: 0;
    display: block;
    transform: translateY(0.02em);
    filter: brightness(0);
}
.logo-text { display: block; line-height: 1; }
.logo-sep { color: var(--muted-2); font-weight: 400; margin: 0 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 10px 20px; font-size: 14px; }
.nav-cta:hover { color: #0a0a0b; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 100px 0 84px; overflow: hidden; }
.hero::before {
    content: "";
    position: absolute;
    top: -320px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.30), transparent 60%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border-strong);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 26px;
    box-shadow: var(--shadow);
}
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #7a9c00;
    box-shadow: 0 0 0 0 rgba(122, 156, 0, .5);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(122, 156, 0, .5); }
    70% { box-shadow: 0 0 0 9px rgba(122, 156, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(122, 156, 0, 0); }
}
h1.hero-title {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    line-height: 0.99;
    font-weight: 800;
    letter-spacing: -2.5px;
    max-width: 18ch;
}
.hero-sub {
    margin: 28px 0 0;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--muted);
    max-width: 60ch;
    line-height: 1.6;
}
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-trust {
    margin-top: 28px;
    font-size: 13.5px;
    color: var(--muted-2);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.hero-trust b { color: var(--text); font-weight: 700; }
.hero-trust .sep { color: var(--border-strong); }

/* ---------- Section shells ---------- */
section { position: relative; }
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 62ch; margin-bottom: 52px; }
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--accent);
}
h2.section-title {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.2px;
}
.section-lead {
    margin: 18px 0 0;
    font-size: 1.08rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ---------- Module grid ---------- */
.modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.module {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.module:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.module-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.module-icon svg { width: 23px; height: 23px; stroke: #0a0a0b; }
.module h3 { margin: 0 0 10px; font-size: 1.18rem; font-weight: 700; letter-spacing: -0.4px; }
.module p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }
.modules-note {
    margin-top: 34px;
    text-align: center;
    color: var(--muted);
    font-size: 0.98rem;
}
.modules-note strong { color: var(--text); }

/* ---------- Vorteile ---------- */
.benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.benefit {
    display: flex;
    gap: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 28px;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.benefit:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.benefit-icon {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg { width: 22px; height: 22px; stroke: #0a0a0b; }
.benefit h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.4px; }
.benefit p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

/* ---------- Highlight (modulares Prinzip) ---------- */
.highlight-inner {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    align-items: center;
}
.highlight-inner h2 {
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1px;
}
.highlight-inner p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.highlight-inner p + p { margin-top: 14px; }
.highlight-inner .accent-line { color: var(--text); font-weight: 600; }

/* Modul-Schalter Visual */
.toggle-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: var(--shadow);
}
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .t-name { font-weight: 600; color: var(--text); font-size: 0.98rem; }
.toggle-row .t-sub { color: var(--muted-2); font-size: 12.5px; margin-top: 2px; }
.switch {
    flex: 0 0 auto;
    width: 44px; height: 26px;
    border-radius: 999px;
    background: var(--panel-2);
    border: 1px solid var(--border-strong);
    position: relative;
    transition: background .2s ease, border-color .2s ease;
}
.switch::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(10, 10, 11, 0.25);
    transition: transform .2s ease;
}
.switch.on { background: var(--accent); border-color: #b6e400; }
.switch.on::after { transform: translateX(18px); background: #0a0a0b; }

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.aud-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.aud-card h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px; }
.aud-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.96rem; }

/* ---------- Waitlist ---------- */
.waitlist { border-top: 1px solid var(--border); background: var(--bg-soft); }
.waitlist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.waitlist h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin: 0 0 18px;
}
.waitlist .lead { color: var(--muted); font-size: 1.08rem; line-height: 1.65; margin: 0 0 22px; }
.waitlist .mini { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.waitlist .mini .mini-item { display: flex; gap: 14px; align-items: flex-start; }
.waitlist .mini .mini-item .k {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.waitlist .mini .mini-item .k svg { width: 18px; height: 18px; stroke: #0a0a0b; }
.waitlist .mini .mini-item .v { color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
.waitlist .mini .mini-item .v strong { color: var(--text); }

.form-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 34px;
    box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 9px;
}
.field .hint { color: var(--muted-2); font-weight: 400; }
.input, .textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus {
    outline: none;
    border-color: #b6e400;
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.textarea { resize: vertical; min-height: 84px; }
.field-error { display: block; color: var(--danger); font-size: 12.5px; margin-top: 7px; min-height: 1px; }
.input.invalid, .textarea.invalid { border-color: var(--danger); }

/* Modul-Chips (Mehrfachauswahl) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 9px 15px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--muted);
    background: #ffffff;
    transition: all .15s ease;
    user-select: none;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.active { background: var(--accent); border-color: #b6e400; color: #0a0a0b; font-weight: 700; }

.form-foot { margin-top: 6px; }
.form-note { color: var(--muted-2); font-size: 12px; margin-top: 14px; line-height: 1.5; text-align: center; }
.honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Alerts + Success */
.alert {
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 14px;
    margin-bottom: 18px;
    display: none;
}
.alert.show { display: block; }
.alert-error { background: #fef3f2; border: 1px solid #fda29b; color: #b42318; }

.success-state { display: none; text-align: center; padding: 18px 8px; }
.success-state.show { display: block; }
.success-icon {
    width: 66px; height: 66px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.success-icon svg { width: 34px; height: 34px; }
.success-state h3 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.success-state p { margin: 0; color: var(--muted); line-height: 1.6; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: #ffffff; }
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.footer .logo-lockup { font-size: 17px; }
.footer p { margin: 0; color: var(--muted-2); font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted-2); font-size: 13px; transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .modules { grid-template-columns: repeat(2, 1fr); }
    .audience { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .benefits { grid-template-columns: 1fr; }
    .highlight-inner { grid-template-columns: 1fr; padding: 34px; gap: 30px; }
    .waitlist-grid { grid-template-columns: 1fr; gap: 36px; }
    .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 620px) {
    .modules { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .wrap { padding: 0 18px; }
    .hero { padding: 64px 0 56px; }
    .section { padding: 60px 0; }
    .form-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
    .reveal { transition: none; opacity: 1; transform: none; }
    .eyebrow .dot { animation: none; }
}
