:root {
    --accent: #3aaa35;
    --accent-dark: #2d8a29;
    --bg-slider: #ffffff;
    --bg-form: #f5f5f5;
    --text-main: #1a1a1a;
    --text-muted: #6b6b6b;
    --border: rgba(0,0,0,0.08);
}
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background: var(--bg-form);
    overflow-y: auto;
}
.hero { display: flex; min-height: 100vh; }

/* ---------- Slider ---------- */
.slider-panel {
    flex: 0 0 58%;
    background: var(--bg-slider);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.slider-panel::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: var(--border);
}
.slider-progress-track { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(0,0,0,0.06); z-index: 2; }
.slider-progress-bar { height: 100%; width: 0%; background: var(--accent); }

.slides { position: relative; flex: 1; }
.slide {
    position: absolute; inset: 0;
    overflow-y: auto;
    padding: 46px 50px 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
    /* Verlauf schwach/lang gestreckt, damit vom Hintergrundbild viel sichtbar bleibt
       und er erst kurz vor dem unteren Rand komplett deckend wird. */
    background-image: linear-gradient(180deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.55) 35%, rgba(255,255,255,.92) 65%, #ffffff 85%), var(--slide-img);
    background-size: auto 100%;
    background-position: top left;
    background-repeat: no-repeat;
}
.slide.active { opacity: 1; pointer-events: auto; }

/* Wrapper nur zur Positionierung: Schatten (Geschwister, VOR der Card im DOM)
   + Card. Als Kind-Pseudoelement der Card läge der Schatten immer über dem
   eigenen Card-Hintergrund - als echtes, vorangestelltes Geschwister malt er
   stattdessen zuerst/dahinter. */
.slide-card {
    position: relative;
}

.slide-shadow {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -22px;
    height: 22px;
    background: rgba(0,0,0,.32);
    border-radius: 50%;
    filter: blur(14px);
}

.slide-content {
    position: relative;
    background: linear-gradient(180deg, rgba(238,238,238,.55) 0%, rgba(238,238,238,.85) 60%, rgba(230,230,230,1) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 30px 34px;
    max-width: 500px;
}

.slide-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(58,170,53,0.12); color: var(--accent);
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    padding: 6px 13px; border-radius: 20px; margin-bottom: 20px;
}
.slide-heading { font-size: 1.6rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 12px; max-width: 440px; }
.slide-sub { font-size: .92rem; line-height: 1.6; color: var(--text-muted); max-width: 440px; margin-bottom: 26px; }

.slide-bullets { list-style: none; display: flex; flex-direction: column; gap: 15px; max-width: 470px; margin-bottom: 22px; }
.slide-bullets li { display: flex; align-items: flex-start; gap: 12px; }
.slide-bullets li i { color: var(--accent); font-size: .8rem; margin-top: 4px; flex: none; }
.bullet-label { display: block; font-weight: 700; font-size: .9rem; }
.bullet-desc { display: block; font-size: .82rem; line-height: 1.45; color: var(--text-muted); margin-top: 2px; }

.store-section { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 4px; }
.store-section img { height: 38px; display: block; }

.slide-more-link {
    display: block; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none;
    margin-top: 22px; padding: 13px; border-radius: 6px;
    background: var(--accent); color: #fff; font-size: 0.95rem; font-weight: 700;
    transition: background .15s;
}
.slide-more-link:hover { background: var(--accent-dark); }

.slider-footer {
    position: absolute; bottom: 0; left: 0; right: 0; height: 64px;
    display: flex; align-items: center; justify-content: center; gap: 18px;
    z-index: 2;
}
.slider-prev, .slider-next {
    background: none; border: none; color: rgba(0,0,0,0.3); cursor: pointer;
    font-size: 1rem; padding: 8px 10px; transition: color .2s;
    display: flex; align-items: center; justify-content: center;
}
.slider-prev:hover, .slider-next:hover { color: var(--accent); }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.18); border: none; cursor: pointer; padding: 0; transition: background .3s, width .3s; }
.slider-dot.is-active { background: var(--accent); width: 20px; border-radius: 4px; }

/* ---------- Formular ---------- */
.form-panel {
    flex: 1;
    background: var(--bg-form);
    display: flex; align-items: center; justify-content: center;
}
.form-card { width: 100%; max-width: 520px; padding: 40px; }
.form-logo { text-align: center; margin-bottom: 36px; }
.form-logo img { max-height: 166px; width: auto; max-width: 100%; }
.form-card h1 { font-size: 1.3rem; font-weight: 800; margin-bottom: 24px; text-align: center; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.field input {
    width: 100%; padding: 12px 14px; border: 1px solid rgba(0,0,0,0.15); border-radius: 6px;
    font-size: 0.95rem; background: #fff; color: var(--text-main);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58,170,53,0.12); }
.submit-btn {
    width: 100%; padding: 13px; margin-top: 8px; border: none; border-radius: 6px;
    background: var(--accent); color: #fff; font-size: 0.95rem; font-weight: 700; cursor: pointer;
    transition: background .15s;
}
.submit-btn:hover { background: var(--accent-dark); }
.form-links { margin-top: 20px; text-align: center; font-size: 0.82rem; display: flex; flex-direction: column; gap: 8px; }
.form-links a { color: var(--text-muted); text-decoration: none; background: none; border: none; font: inherit; cursor: pointer; }
.form-links a:hover { color: var(--accent); }
.form-links .demo-link { font-weight: 700; color: var(--accent); }
.form-footer { margin-top: 32px; text-align: center; font-size: 0.72rem; color: rgba(0,0,0,0.32); }
.form-footer a { color: inherit; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .hero { flex-direction: column-reverse; }
    .slider-panel { flex: 1 1 auto; min-height: 420px; }
    .slider-panel::after { display: none; }
    .form-panel { flex: none; padding: 20px 0; }
}

/* ---------- Demo-Modal ---------- */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-card {
    background: #fff; color: #1a1a1a; border-radius: 10px; width: 100%; max-width: 400px; padding: 32px;
    position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-card .field label { color: #6b6b6b; }
.modal-card .field input { background: #fff; color: #1a1a1a; border: 1px solid rgba(0,0,0,0.15); }
.modal-close {
    position: absolute; top: 14px; right: 14px; background: none; border: none;
    font-size: 1.3rem; line-height: 1; cursor: pointer; color: rgba(0,0,0,0.4);
}
.modal-close:hover { color: #1a1a1a; }
.modal-card h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; color: #1a1a1a; }
.modal-card .modal-sub { font-size: 0.85rem; color: #6b6b6b; margin-bottom: 22px; }
.modal-card .field input[type="checkbox"] { width: auto; display: inline-block; margin-right: 8px; }
.modal-checkbox-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; font-size: 0.8rem; color: #6b6b6b; }
.modal-checkbox-row input { margin-top: 3px; width: auto; }
.modal-checkbox-row a { color: var(--accent); }

.form-message { margin-top: 14px; font-size: 0.85rem; }
.form-message.is-success { color: #155724; background: #d4edda; padding: 10px; border-radius: 5px; }
.form-message.is-error { color: #721c24; background: #f8d7da; padding: 10px; border-radius: 5px; }

/* ---------- Datenschutz-/Impressum-Modal ---------- */
.modal-card--legal {
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* nicht die ganze Card scrollt, nur .legal-scroll darin */
}
.modal-card--legal h2 { flex: none; }

.legal-actions { flex: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.legal-action-link {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.8rem; font-weight: 700; color: var(--accent);
    background: rgba(58,170,53,0.1); padding: 8px 14px; border-radius: 20px;
    text-decoration: none; transition: background .15s;
}
.legal-action-link:hover { background: rgba(58,170,53,0.18); }

.legal-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 14px;
    margin-right: -14px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(0,0,0,0.06);
}
.legal-scroll::-webkit-scrollbar { width: 9px; }
.legal-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.06); border-radius: 10px; }
.legal-scroll::-webkit-scrollbar-thumb { background-color: var(--accent); border-radius: 10px; border: 2px solid #fff; background-clip: padding-box; }
.legal-scroll::-webkit-scrollbar-thumb:hover { background-color: var(--accent-dark); }

.legal-scroll h3 { font-size: 1rem; font-weight: 800; color: #1a1a1a; margin: 26px 0 10px; }
.legal-scroll h3:first-child { margin-top: 0; }
.legal-scroll h4 { font-size: 0.88rem; font-weight: 700; color: #1a1a1a; margin: 16px 0 6px; }
.legal-scroll p { font-size: 0.87rem; line-height: 1.65; color: #6b6b6b; margin-bottom: 10px; }
.legal-scroll ul { margin: 0 0 12px 18px; padding: 0; }
.legal-scroll li { font-size: 0.87rem; line-height: 1.6; color: #6b6b6b; margin-bottom: 4px; }
.legal-scroll a { color: var(--accent); }

.legal-impressum-box {
    background: var(--bg-form); border-radius: 10px; padding: 18px 20px;
    margin-top: 20px; font-size: 0.87rem; line-height: 1.8; color: #1a1a1a;
}
.legal-impressum-box i { color: var(--accent); width: 16px; text-align: center; }

.legal-meta { margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.08); font-size: 0.75rem !important; color: rgba(0,0,0,0.4) !important; }

@media (max-width: 640px) {
    .modal-card--legal { max-height: 92vh; padding: 24px; }
}
