/**
 * Frontend-Styles IMpunkt ExoVerleih.
 * Farbwelt: #000000 (Schwarz), #017b6e (Grün), #769dc4 (Blau),
 * #99cac5 (Hell-Grün / Hintergrund), #ffffff (Weiß). Mobile-First.
 */

:root {
        --dnsys-black: #000000;
        --dnsys-green: #017b6e;
        --dnsys-blue: #769dc4;
        --dnsys-lightgreen: #99cac5;
        --dnsys-accent: #d9e9e7;
        --dnsys-white: #ffffff;
}

.dnsys-ev {
        background: var(--dnsys-lightgreen);
        color: var(--dnsys-black);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        line-height: 1.6;
        box-sizing: border-box;
}
.dnsys-ev *,
.dnsys-ev *::before,
.dnsys-ev *::after { box-sizing: border-box; }

.dnsys-ev h1, .dnsys-ev h2, .dnsys-ev h3, .dnsys-ev h4 { color: var(--dnsys-black); margin: 0 0 .6em; line-height: 1.25; }
.dnsys-ev h2 { font-size: 1.6rem; text-align: center; margin-top: 0; }
.dnsys-ev section { padding: 42px 18px; max-width: 1080px; margin: 0 auto; }
.dnsys-ev p { margin: 0 0 1em; }

/* Buttons */
.dnsys-ev-btn {
        display: inline-block;
        padding: 13px 26px;
        border-radius: 6px;
        font-weight: 700;
        text-decoration: none;
        border: 2px solid transparent;
        cursor: pointer;
        font-size: 1rem;
        transition: transform .1s ease, opacity .15s ease;
        text-align: center;
}
.dnsys-ev-btn:hover { transform: translateY(-1px); opacity: .94; }
.dnsys-ev-btn-primary { background: var(--dnsys-green); color: var(--dnsys-white); }
.dnsys-ev-btn-secondary { background: var(--dnsys-blue); color: var(--dnsys-white); }
.dnsys-ev-btn-ghost { background: transparent; color: var(--dnsys-green); border-color: var(--dnsys-green); }
.dnsys-ev-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* Topbar */
.dnsys-ev-topbar {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
        background: var(--dnsys-black); color: var(--dnsys-white);
        padding: 14px 20px; gap: 12px;
}
.dnsys-ev-logo { font-size: 1.4rem; font-weight: 800; color: var(--dnsys-lightgreen); letter-spacing: .5px; }
.dnsys-ev-brand-sub { display: block; font-size: .78rem; color: var(--dnsys-blue); }
.dnsys-ev-nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.dnsys-ev-nav a { color: var(--dnsys-white); text-decoration: none; font-size: .95rem; }
.dnsys-ev-nav a:hover { color: var(--dnsys-lightgreen); }
.dnsys-ev-nav-cta { background: var(--dnsys-green); padding: 8px 16px; border-radius: 5px; }

/* Hero */
.dnsys-ev-hero { background: linear-gradient(135deg, var(--dnsys-green), var(--dnsys-blue)); color: var(--dnsys-white); max-width: none; text-align: center; }
.dnsys-ev-hero-inner { max-width: 820px; margin: 0 auto; }
.dnsys-ev-hero h1 { color: var(--dnsys-white); font-size: 2.1rem; }
.dnsys-ev-hero-sub { font-size: 1.12rem; margin-bottom: 1.6em; }
.dnsys-ev-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dnsys-ev-hero .dnsys-ev-btn-ghost { color: var(--dnsys-white); border-color: var(--dnsys-white); }

/* Grids & Karten */
.dnsys-ev-grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.dnsys-ev-card { background: var(--dnsys-white); border-radius: 10px; padding: 24px; box-shadow: 0 3px 14px rgba(0,0,0,.08); }
.dnsys-ev-card h3 { color: var(--dnsys-green); }

/* Vorteile / Benefit-Karten mit Icon */
.dnsys-ev-benefit-card { text-align: center; }
.dnsys-ev-benefit-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--dnsys-accent); color: var(--dnsys-green); margin-bottom: 14px; }
.dnsys-ev-benefit-icon svg { display: block; }

/* Geräte-Zeile: beide Geräte nebeneinander in einer Zeile */
.dnsys-ev-device-row { display: grid; grid-template-columns: 1fr; gap: 24px; }
.dnsys-ev-device-card { display: flex; align-items: stretch; gap: 22px; background: var(--dnsys-green); color: var(--dnsys-white); border: 2px solid var(--dnsys-lightgreen); border-radius: 14px; padding: 24px; }
.dnsys-ev-device-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dnsys-ev-device-body h3 { color: var(--dnsys-white); margin-bottom: .6em; }
.dnsys-ev-device-body p { color: var(--dnsys-white); margin: 0; font-size: .92rem; line-height: 1.55; }
.dnsys-ev-device-img { flex: 0 0 40%; align-self: stretch; min-height: 210px; border-radius: 10px; overflow: hidden; }
.dnsys-ev-device-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Beratung / Sales */
.dnsys-ev-consult, .dnsys-ev-sales { background: var(--dnsys-accent); border-radius: 12px; text-align: center; }
.dnsys-ev-consult h2, .dnsys-ev-sales h2 { color: var(--dnsys-green); }
.dnsys-ev-consult { box-shadow: none; }

/* Schritte */
.dnsys-ev-steps-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.dnsys-ev-step { background: var(--dnsys-white); border-radius: 10px; padding: 22px; position: relative; }
.dnsys-ev-step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--dnsys-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px; }

/* Preisbox */
.dnsys-ev-pricebox { background: var(--dnsys-accent); border-radius: 12px; box-shadow: none; }
.dnsys-ev-price-table { width: 100%; border-collapse: collapse; max-width: 560px; margin: 0 auto; }
.dnsys-ev-price-table th, .dnsys-ev-price-table td { padding: 12px 10px; border-bottom: 1px solid #e6efee; }
.dnsys-ev-price-table thead th { border-bottom: 2px solid var(--dnsys-green); }
.dnsys-ev-price-device { text-align: right; font-weight: 800; color: var(--dnsys-green); white-space: nowrap; font-size: 1.02rem; }
.dnsys-ev-price-table tbody td:first-child { text-align: left; }
.dnsys-ev-price-table tbody td:not(:first-child) { text-align: right; font-weight: 700; white-space: nowrap; }
.dnsys-ev-price-total td { background: var(--dnsys-green); color: #fff; font-size: 1.1rem; border: none; }
.dnsys-ev-price-total td:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.dnsys-ev-price-total td:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.dnsys-ev-badge { display: inline-block; background: var(--dnsys-lightgreen); color: var(--dnsys-black); font-size: .72rem; padding: 2px 8px; border-radius: 10px; margin-left: 6px; font-weight: 700; }
.dnsys-ev-price-note { max-width: 560px; margin: 16px auto 0; font-size: .9rem; text-align: center; }

/* Videos */
.dnsys-ev-video-card { display: block; background: var(--dnsys-white); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--dnsys-black); box-shadow: 0 3px 14px rgba(0,0,0,.08); }
.dnsys-ev-video-thumb { position: relative; padding-top: 56%; background-size: cover; background-position: center; background-color: var(--dnsys-blue); }
.dnsys-ev-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; background: rgba(1,123,110,.9); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.dnsys-ev-video-card h4 { color: var(--dnsys-green); margin: 16px 16px 6px; }
.dnsys-ev-video-card p { margin: 0 16px 12px; font-size: .92rem; }
.dnsys-ev-video-link { display: inline-block; margin: 0 16px 16px; color: var(--dnsys-blue); font-weight: 700; }

/* FAQ */
.dnsys-ev-faq-list { max-width: 780px; margin: 0 auto; }
.dnsys-ev-faq-item { background: var(--dnsys-white); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.dnsys-ev-faq-q { width: 100%; text-align: left; background: none; border: none; padding: 16px 18px; font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--dnsys-black); }
.dnsys-ev-faq-q span { color: var(--dnsys-green); font-size: 1.4rem; }
.dnsys-ev-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.dnsys-ev-faq-a p { padding: 0 18px 16px; margin: 0; }
.dnsys-ev-faq-item.is-open .dnsys-ev-faq-a { max-height: 300px; }
.dnsys-ev-faq-item.is-open .dnsys-ev-faq-q span { transform: rotate(45deg); }

/* Footer */
.dnsys-ev-footer { background: var(--dnsys-black); color: var(--dnsys-white); max-width: none; text-align: center; font-size: .9rem; }
.dnsys-ev-footer-note { color: var(--dnsys-blue); margin-top: 10px; font-size: .82rem; }

/* Wizard */
.dnsys-ev-wizard-wrap { }
.dnsys-ev-wizard { background: var(--dnsys-white); border-radius: 14px; padding: 24px 18px; max-width: 860px; margin: 0 auto; box-shadow: 0 4px 20px rgba(0,0,0,.1); position: relative; }
.dnsys-ev-progress { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 26px; padding: 0; counter-reset: step; gap: 4px; }
.dnsys-ev-progress li { flex: 1; min-width: 90px; text-align: center; font-size: .78rem; color: #7a8a89; padding: 8px 4px; border-bottom: 3px solid #e0e9e8; font-weight: 700; }
.dnsys-ev-progress li.is-active { color: var(--dnsys-green); border-color: var(--dnsys-green); }
.dnsys-ev-progress li.is-done { color: var(--dnsys-blue); border-color: var(--dnsys-blue); }

.dnsys-ev-panel { display: none; }
.dnsys-ev-panel.is-active { display: block; animation: dnsysfade .25s ease; }
@keyframes dnsysfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dnsys-ev-panel h3 { color: var(--dnsys-green); }

.dnsys-ev-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.dnsys-ev-actions .dnsys-ev-btn { flex: 0 0 auto; }
.dnsys-ev-hint { font-size: .88rem; color: #4b5b5a; }

/* Geräteauswahl im Wizard */
.dnsys-ev-device-choice { display: grid; gap: 14px; }
.dnsys-ev-choice input { position: absolute; opacity: 0; }
.dnsys-ev-choice-box { display: block; border: 2px solid #d5e3e1; border-radius: 10px; padding: 18px; cursor: pointer; }
.dnsys-ev-choice-box strong { display: block; color: var(--dnsys-green); font-size: 1.1rem; }
.dnsys-ev-choice input:checked + .dnsys-ev-choice-box { border-color: var(--dnsys-green); background: #f0f9f7; }
.dnsys-ev-consult-field { margin-top: 20px; }
.dnsys-ev-consult-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.dnsys-ev-consult-field select { width: 100%; padding: 12px; border: 1px solid #cddad9; border-radius: 6px; font-size: 1rem; }

/* Formularfelder */
.dnsys-ev-fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.dnsys-ev-fields label, .dnsys-ev-block { display: block; font-weight: 700; font-size: .9rem; }
.dnsys-ev-fields input, .dnsys-ev-block input, .dnsys-ev-wizard input[type="text"], .dnsys-ev-wizard input[type="email"], .dnsys-ev-wizard input[type="tel"], .dnsys-ev-wizard input[type="file"] {
        width: 100%; padding: 12px; border: 1px solid #cddad9; border-radius: 6px; font-size: 1rem; margin-top: 5px; font-weight: 400;
}
.dnsys-ev-block { margin: 10px 0 20px; }

/* Kalender */
.dnsys-ev-calendar { background: #f6fbfa; border-radius: 10px; padding: 16px; }
.dnsys-ev-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dnsys-ev-cal-head button { background: var(--dnsys-green); color: #fff; border: none; width: 38px; height: 38px; border-radius: 6px; font-size: 1.2rem; cursor: pointer; }
#dnsys-ev-cal-title { font-weight: 800; font-size: 1.05rem; }
.dnsys-ev-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dnsys-ev-cal-dow { text-align: center; font-weight: 700; font-size: .78rem; color: #4b5b5a; padding: 4px 0; }
.dnsys-ev-cal-day { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: .9rem; background: #fff; border: 1px solid #e3edec; cursor: default; }
.dnsys-ev-cal-day.is-avail { background: #d7f2ec; border-color: var(--dnsys-green); color: #024; cursor: pointer; font-weight: 700; }
.dnsys-ev-cal-day.is-avail:hover { background: var(--dnsys-green); color: #fff; }
.dnsys-ev-cal-day.is-un { background: #fbe2e2; border-color: #e7b7b7; color: #9a5b5b; }
.dnsys-ev-cal-day.is-we { background: #eceff1; color: #aab3b8; }
.dnsys-ev-cal-day.is-past { background: #f4f6f6; color: #c3cccb; }
.dnsys-ev-cal-day.is-selected { background: var(--dnsys-green); color: #fff; box-shadow: 0 0 0 3px var(--dnsys-lightgreen); font-weight: 700; }
.dnsys-ev-cal-day.is-in-range { background: var(--dnsys-lightgreen); color: #024; font-weight: 700; }
.dnsys-ev-cal-day.is-range-start,
.dnsys-ev-cal-day.is-range-end { background: var(--dnsys-green); color: #fff; }
.dnsys-ev-cal-empty { background: transparent; border: none; }
/* Mehrere Einzelgeräte-Kalender nebeneinander (je physisches Gerät einer). */
.dnsys-ev-cal-units { display: grid; grid-template-columns: 1fr; gap: 12px; }
.dnsys-ev-cal-units[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.dnsys-ev-cal-units[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.dnsys-ev-cal-unit { background: #fff; border: 1px solid #e3edec; border-radius: 8px; padding: 8px; }
.dnsys-ev-cal-unit-title { font-weight: 700; font-size: .82rem; color: var(--dnsys-green); text-align: center; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #e3edec; }
.dnsys-ev-cal-loading { padding: 24px; text-align: center; color: #4b5b5a; }
/* Kompakte Darstellung, sobald mehrere Kalender nebeneinander stehen. */
.dnsys-ev-cal-units[data-count="2"] .dnsys-ev-cal-grid,
.dnsys-ev-cal-units[data-count="3"] .dnsys-ev-cal-grid { gap: 3px; }
.dnsys-ev-cal-units[data-count="2"] .dnsys-ev-cal-day,
.dnsys-ev-cal-units[data-count="3"] .dnsys-ev-cal-day { font-size: .72rem; border-radius: 4px; }
.dnsys-ev-cal-units[data-count="2"] .dnsys-ev-cal-dow,
.dnsys-ev-cal-units[data-count="3"] .dnsys-ev-cal-dow { font-size: .62rem; padding: 2px 0; }
/* Kalender bleiben auch auf Mobilgeräten nebeneinander, nur noch kompakter. */
@media (max-width: 720px) {
        .dnsys-ev-cal-units { gap: 8px; }
        .dnsys-ev-cal-unit { padding: 6px; }
        .dnsys-ev-cal-units[data-count="2"] .dnsys-ev-cal-grid,
        .dnsys-ev-cal-units[data-count="3"] .dnsys-ev-cal-grid { gap: 2px; }
        .dnsys-ev-cal-units[data-count="2"] .dnsys-ev-cal-day,
        .dnsys-ev-cal-units[data-count="3"] .dnsys-ev-cal-day { font-size: .6rem; }
        .dnsys-ev-cal-unit-title { font-size: .7rem; }
}
.dnsys-ev-cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: .8rem; }
.dnsys-ev-cal-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }
.dnsys-ev-l-avail { background: #d7f2ec; border: 1px solid var(--dnsys-green); }
.dnsys-ev-l-un { background: #fbe2e2; border: 1px solid #e7b7b7; }
.dnsys-ev-l-we { background: #eceff1; }
.dnsys-ev-l-sel { background: var(--dnsys-green); border: 1px solid var(--dnsys-green); }
.dnsys-ev-cal-hint { margin: 6px 0 12px; padding: 10px 12px; border-radius: 8px; background: #eef6f4; color: #234; font-size: .88rem; }
.dnsys-ev-cal-actions { margin-top: 12px; text-align: right; }
.dnsys-ev-range-info { margin-top: 16px; padding: 14px; border-radius: 8px; background: #f0f9f7; text-align: center; min-height: 10px; }
.dnsys-ev-range-ok { font-weight: 700; margin-bottom: 10px; }
.dnsys-ev-range-days { font-weight: 400; color: #4b5b5a; }
.dnsys-ev-range-err { color: #b23b3b; font-weight: 700; }
/* Preis-Tabelle (Kalender-Auswahl + Zusammenfassung) */
.dnsys-ev-price-table { width: 100%; border-collapse: collapse; margin: 6px auto 0; max-width: 420px; font-weight: 400; }
.dnsys-ev-price-table td { padding: 6px 10px; border: 1px solid #dcebe8; text-align: left; }
.dnsys-ev-price-table td:last-child { text-align: right; white-space: nowrap; }
.dnsys-ev-price-table tr.dnsys-ev-price-total td { background: var(--dnsys-green); color: #fff; font-weight: 700; border-color: var(--dnsys-green); }
.dnsys-ev-summary-price { margin-top: 12px; }

/* Vertrag / Checkboxen / Signatur */
.dnsys-ev-contract-box { max-height: 240px; overflow-y: auto; border: 1px solid #d5e3e1; border-radius: 8px; padding: 16px; background: #f9fdfc; font-size: .86rem; margin-bottom: 18px; }
.dnsys-ev-contract-box h5 { color: var(--dnsys-green); margin: 12px 0 4px; }
.dnsys-ev-checkboxes { display: grid; gap: 10px; margin-bottom: 20px; }
.dnsys-ev-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; background: #f6fbfa; padding: 12px; border-radius: 6px; }
.dnsys-ev-checkbox input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.dnsys-ev-signature { position: relative; }
#dnsys-ev-signature-pad { width: 100%; max-width: 600px; height: 180px; border: 2px dashed var(--dnsys-blue); border-radius: 8px; background: #fff; touch-action: none; }
.dnsys-ev-sig-clear { margin-top: 10px; padding: 8px 16px; font-size: .85rem; }

/* Zahlung */
.dnsys-ev-summary { background: #f0f9f7; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.dnsys-ev-paypal-btn { width: 100%; margin-top: 12px; }
.dnsys-ev-result { margin-top: 16px; padding: 16px; border-radius: 8px; display: none; }
.dnsys-ev-result.is-ok { display: block; background: #d7f2ec; border: 1px solid var(--dnsys-green); }
.dnsys-ev-result.is-err { display: block; background: #fbe2e2; border: 1px solid #d88; color: #922; }

/* Loading */
.dnsys-ev-loading { display: none; position: absolute; inset: 0; background: rgba(255,255,255,.85); align-items: center; justify-content: center; font-weight: 700; color: var(--dnsys-green); border-radius: 14px; z-index: 5; }
.dnsys-ev-loading.is-on { display: flex; }
.dnsys-ev-loading span { width: 22px; height: 22px; border: 3px solid var(--dnsys-lightgreen); border-top-color: var(--dnsys-green); border-radius: 50%; margin-right: 10px; animation: dnsysspin .8s linear infinite; }
@keyframes dnsysspin { to { transform: rotate(360deg); } }

.dnsys-ev-field-error { border-color: #d88 !important; background: #fff6f6 !important; }

/* Sehr schmale Bildschirme: Karte kompakter, Bild etwas schmaler */
@media (max-width: 420px) {
        .dnsys-ev-device-card { gap: 14px; padding: 16px; }
        .dnsys-ev-device-img { flex-basis: 38%; min-height: 150px; }
}

/* Ab Tablet: mehrspaltig */
@media (min-width: 720px) {
        .dnsys-ev-grid-3 { grid-template-columns: repeat(3, 1fr); }
        .dnsys-ev-device-row { grid-template-columns: repeat(2, 1fr); }
        .dnsys-ev-steps-grid { grid-template-columns: repeat(5, 1fr); }
        .dnsys-ev-fields { grid-template-columns: 1fr 1fr; }
        .dnsys-ev h2 { font-size: 1.9rem; }
        .dnsys-ev-hero h1 { font-size: 2.6rem; }
}
