:root {
    --blue-dark: #002b5c;
    --blue: #0050a4;
    --blue-light: #e8f2ff;
    --yellow: #ffd200;
    --text: #172033;
    --muted: #667085;
    --white: #ffffff;
    --border: #dfe7f3;
    --shadow: 0 20px 50px rgba(0, 43, 92, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #f7f9fc;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar { background: var(--blue-dark); color: var(--white); font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.topbar a { color: var(--yellow); font-weight: 700; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    backdrop-filter: blur(10px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 82px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--blue-dark); }
.logo-mark {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--yellow); color: var(--blue-dark);
    display: grid; place-items: center; font-weight: 900;
}
.logo-text { font-size: 20px; line-height: 1.05; }
.logo-text span { display: block; color: var(--blue); }
.main-nav { display: flex; gap: 32px; align-items: center; font-weight: 700; }
.main-nav a { position: relative; color: var(--blue-dark); }
.main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -8px; width: 0; height: 3px;
    background: var(--yellow); transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 27px; height: 3px; margin: 5px; background: var(--blue-dark); }

.hero-slider { position: relative; height: 680px; min-height: 560px; overflow: hidden; background: var(--blue-dark); }
.slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    background-position: center; background-size: cover;
    transition: opacity .8s ease, visibility .8s ease;
}
.slide.active { opacity: 1; visibility: visible; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,43,92,.86), rgba(0,80,164,.48), rgba(0,0,0,.15)); }
.slide-content {
    position: relative; z-index: 2; min-height: 680px; display: flex; justify-content: center;
    flex-direction: column; max-width: 760px; color: var(--white);
}
.eyebrow, .section-kicker { color: var(--yellow); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.slide h1, .slide h2 { font-size: clamp(38px, 6vw, 72px); line-height: .98; margin: 0 0 22px; max-width: 860px; }
.slide p:not(.eyebrow) { font-size: 20px; max-width: 620px; margin-bottom: 34px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; width: 22%;
    min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 800; border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
@media (max-width: 560px) {
.btn {
    display: inline-flex; align-items: center; justify-content: center; width: fit-content;
    min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 800; border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--yellow); color: var(--blue-dark); }
.btn-secondary { background: var(--white); color: var(--blue-dark); }
.btn-light { background: var(--white); color: var(--blue-dark); }
.slider-controls {
    position: absolute; z-index: 4; left: 50%; bottom: 34px; transform: translateX(-50%);
   /* display: flex; */ display: none; align-items: center; gap: 16px;
}
.slider-controls button {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
    background: rgba(255,255,255,.16); color: var(--white); font-size: 28px; cursor: pointer;
}
.dots { display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.dot.active { background: var(--yellow); }

.quick-access { margin-top: -45px; position: relative; z-index: 10; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick-grid a {
    background: var(--white); border-radius: 18px; padding: 24px; box-shadow: var(--shadow);
    border-top: 5px solid var(--yellow);
}
.quick-grid strong { display: block; color: var(--blue-dark); font-size: 20px; margin-bottom: 6px; }
.quick-grid span { color: var(--muted); }

.section { padding: 96px 0; }
.two-col { display: grid; grid-template-columns: 1fr 0.9fr; gap: 56px; align-items: center; }
.section-kicker { color: var(--blue); }
h2 { color: var(--white); font-size: clamp(32px, 4vw, 50px); line-height: 1.1; margin: 0 0 20px; }
.about-section { background: var(--white); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.trust-row div { background: var(--blue-light); border-radius: 16px; padding: 18px; }
.trust-row strong { display: block; color: var(--blue); font-size: 28px; }
.trust-row span { color: var(--muted); font-size: 14px; }
.image-card { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }

.products-section { background: linear-gradient(180deg, #f7f9fc, #edf4ff); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 34px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: 0 12px 35px rgba(0,43,92,.08); }
.product-icon { width: 58px; height: 58px; border-radius: 18px; background: var(--blue-light); display: grid; place-items: center; font-size: 26px; }
.product-card h3 { color: var(--blue-dark); margin-bottom: 10px; }
.product-card p { color: var(--muted); }
.product-card a { color: var(--blue); font-weight: 800; }

.cta-section { background: var(--blue-dark); color: var(--white); padding: 70px 0; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-box h2 { color: var(--white); }
.contact-section { background: var(--white); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.contact-form { background: #f7f9fc; border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.contact-form label { display: block; font-weight: 700; margin-bottom: 18px; color: var(--blue-dark); }
.contact-form input, .contact-form textarea {
    width: 100%; margin-top: 7px; border: 1px solid var(--border); border-radius: 12px;
    padding: 14px 16px; font: inherit; outline: none; background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,80,164,.1); }
.site-footer { background: #061a33; color: var(--white); padding: 42px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-grid a { display: inline-block; margin-left: 20px; color: #dbe8ff; }

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute; left: 20px; right: 20px; top: 116px; display: none; flex-direction: column;
        background: var(--white); border-radius: 18px; padding: 24px; box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .hero-slider, .slide-content { min-height: 620px; height: 620px; }
    .quick-grid, .product-grid, .two-col { grid-template-columns: 1fr; }
    .cta-box, .footer-grid, .topbar-inner { flex-direction: column; align-items: flex-start; }
    .trust-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 28px, 1180px); }
    .slide h1, .slide h2 { font-size: 38px; }
    .slide p:not(.eyebrow) { font-size: 17px; }
    .section { padding: 70px 0; }
    .footer-grid a { margin: 10px 16px 0 0; }
}

/* Vorschau-Login */
.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(255, 210, 0, .22), transparent 34%), linear-gradient(135deg, var(--blue-dark), var(--blue));
}
.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}
.login-box {
    width: min(100%, 460px);
    background: var(--white);
    border-radius: 26px;
    padding: 38px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}
.login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.login-box h1 {
    margin: 0 0 14px;
    color: var(--blue-dark);
    line-height: 1.1;
    font-size: clamp(28px, 5vw, 40px);
}
.login-box p:not(.section-kicker) {
    color: var(--muted);
    margin-bottom: 24px;
}
.login-box label {
    display: block;
    color: var(--blue-dark);
    font-weight: 800;
    margin-bottom: 8px;
}
.login-box input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 15px 16px;
    font: inherit;
    margin-bottom: 18px;
}
.login-box input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0,80,164,.1);
}
.login-error {
    background: #fff0f0;
    border: 1px solid #ffc7c7;
    color: #9d1717;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-weight: 700;
}
.preview-logout {
    margin-left: 16px;
    background: var(--blue-light);
    color: var(--blue-dark);
    padding: 9px 15px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}

@media (max-width: 900px) {
    .preview-logout {
        margin-left: auto;
        margin-right: 12px;
    }
}
/* Korrektur: dunkle Überschriften in hellen Bereichen */
.dark-heading {
    color: var(--blue-dark) !important;
}

/* Logout-Link im Header */
.logout-link {
    background: var(--blue-light);
    color: var(--blue-dark) !important;
    padding: 8px 14px;
    border-radius: 999px;
}
.logout-link::after {
    display: none !important;
}

.form-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
}
.form-success {
    background: #edf9f0;
    color: #176b2c;
    border: 1px solid #bfe8c8;
}
.form-error {
    background: #fff0f0;
    color: #9d1717;
    border: 1px solid #ffc7c7;
}
.form-honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}