*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1a56db;
    --primary-dark: #1244b8;
    --primary-light: #dbeafe;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
}

html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text); background: var(--bg); line-height: 1.6;
}

/* ── COOKIE CONSENT ── */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: #0b1120; color: #cbd5e1;
    padding: 1.25rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
    border-top: 2px solid var(--primary);
}
#cookie-banner p { font-size: 0.85rem; line-height: 1.6; max-width: 700px; }
#cookie-banner a { color: #93c5fd; text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--primary); color: white;
    border: none; padding: 0.6rem 1.25rem; border-radius: 7px;
    font-size: 0.875rem; font-weight: 600; cursor: pointer;
    font-family: inherit;
}
.btn-cookie-reject {
    background: transparent; color: #cbd5e1;
    border: 1px solid #475569; padding: 0.6rem 1.25rem; border-radius: 7px;
    font-size: 0.875rem; font-weight: 600; cursor: pointer;
    font-family: inherit;
}
.cookie-hidden { display: none !important; }

/* ── NAV ── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.navbar .inner {
    max-width: 1100px; margin: 0 auto; padding: 0 2rem;
    height: 66px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { text-decoration: none; }
.nav-brand .name { font-weight: 800; font-size: 1.1rem; color: var(--text); letter-spacing: -0.02em; }
.nav-brand .name span { color: var(--primary); }
.nav-brand .tagline { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
    font-weight: 500; transition: color 0.2s; cursor: pointer;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
    background: var(--primary); color: white !important;
    padding: 0.5rem 1.25rem; border-radius: 8px;
    font-weight: 600; font-size: 0.875rem;
    transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--primary-dark) !important; color: white !important; }

/* ── HERO ── */
.hero {
    position: relative; overflow: hidden;
    min-height: 560px; display: flex; align-items: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=80') center/cover no-repeat;
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(10,20,50,0.93) 0%, rgba(20,50,120,0.78) 60%, rgba(26,86,219,0.55) 100%);
}
.hero .inner {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto; padding: 5rem 2rem;
    width: 100%;
}
.hero-content { max-width: 620px; }
.hero-eyebrow {
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #93c5fd; margin-bottom: 1.25rem;
}
.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
    color: white; margin-bottom: 1.25rem;
}
.hero p {
    font-size: 1.1rem; color: rgba(255,255,255,0.72);
    max-width: 500px; margin-bottom: 2.25rem; line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
    background: var(--primary); color: white;
    padding: 0.875rem 2rem; border-radius: 9px;
    text-decoration: none; font-weight: 700; font-size: 0.975rem;
    transition: background 0.2s, transform 0.15s;
    display: inline-block; letter-spacing: -0.01em;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white; padding: 0.875rem 2rem; border-radius: 9px;
    text-decoration: none; font-weight: 600; font-size: 0.975rem;
    transition: border-color 0.2s, background 0.2s;
    display: inline-block;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08); }
.hero-stats {
    display: flex; gap: 3rem; margin-top: 3.5rem;
    padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.12);
    flex-wrap: wrap;
}
.stat .num { font-size: 2rem; font-weight: 800; color: white; letter-spacing: -0.03em; }
.stat .label { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 0.2rem; }

/* ── SECTION BASE ── */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 0.875rem;
}
.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem;
}
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ── LEISTUNGEN ── */
#leistungen { background: var(--bg-alt); }
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.service-card {
    background: white; border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); transform: translateY(-2px); }
.service-card .img { height: 180px; overflow: hidden; background: #dbeafe; }
.service-card .img img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform 0.4s;
}
.service-card:hover .img img { transform: scale(1.03); }
.service-card .body { padding: 1.5rem; }
.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── ÜBER UNS ── */
#ueber { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img { border-radius: 16px; overflow: hidden; height: 460px; position: relative; }
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-img .badge {
    position: absolute; bottom: 1.5rem; left: 1.5rem;
    background: white; border-radius: 10px;
    padding: 1rem 1.25rem; box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.about-img .badge .b-num { font-size: 1.75rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.about-img .badge .b-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }
.about-text .section-eyebrow { display: block; text-align: left; }
.about-text h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; font-size: 0.975rem; }
.about-points { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.875rem; }
.about-point {
    display: flex; align-items: flex-start; gap: 0.875rem;
    padding: 1rem 1.25rem; background: var(--bg-alt);
    border-radius: 10px; border: 1px solid var(--border);
}
.about-point .dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.about-point span { font-size: 0.9rem; color: var(--text-muted); }
.about-point span strong { color: var(--text); }

/* ── ANFRAGE ── */
#anfrage { background: var(--bg-alt); }
.form-wrapper {
    max-width: 700px; margin: 0 auto;
    background: white; border: 1px solid var(--border);
    border-radius: 18px; padding: 3rem;
    box-shadow: 0 4px 40px rgba(0,0,0,0.05);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.83rem; font-weight: 600; color: var(--text); }
.form-group label .req { color: var(--primary); }
.req { color: var(--primary); }
.form-group input,
.form-group select,
.form-group textarea {
    border: 1.5px solid var(--border); border-radius: 9px;
    padding: 0.75rem 1rem; font-size: 0.925rem;
    font-family: inherit; color: var(--text);
    background: var(--bg-alt); outline: none; width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.09);
    background: white;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-sep { grid-column: 1 / -1; height: 1px; background: var(--border); margin: 0.25rem 0; }
.form-section-label {
    grid-column: 1 / -1; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); padding-top: 0.25rem;
}
.checkbox-group {
    grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 0.75rem;
}
.checkbox-group input[type="checkbox"] {
    width: 16px; height: 16px; flex-shrink: 0;
    margin-top: 2px; cursor: pointer; accent-color: var(--primary);
}
.checkbox-group label { font-size: 0.83rem; color: var(--text-muted); cursor: pointer; font-weight: 400; }
.checkbox-group label a { color: var(--primary); text-decoration: none; cursor: pointer; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }
.btn-submit {
    width: 100%; background: var(--primary); color: white;
    border: none; padding: 1rem; border-radius: 9px;
    font-size: 0.975rem; font-weight: 700; font-family: inherit;
    cursor: pointer; margin-top: 1rem; letter-spacing: -0.01em;
    transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.875rem; }
.form-error {
    background: #fef2f2; border: 1px solid #fca5a5;
    border-radius: 9px; padding: 0.875rem 1rem;
    font-size: 0.875rem; color: #b91c1c;
    margin-top: 1rem; display: none;
}

/* ── SUCCESS ── */
.success-msg { display: none; text-align: center; padding: 3rem 1rem; }
.success-msg .s-icon {
    width: 64px; height: 64px; background: #dbeafe;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--primary);
    margin: 0 auto 1.5rem; font-weight: 700;
}
.success-msg h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.625rem; }
.success-msg p { color: var(--text-muted); font-size: 0.95rem; }

/* ── MODAL ── */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    padding: 2rem;
    align-items: flex-start; justify-content: center;
    overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: white; border-radius: 16px;
    max-width: 760px; width: 100%; margin: auto;
    padding: 2.5rem; position: relative;
    max-height: 90vh; overflow-y: auto;
}
.modal-close {
    position: absolute; top: 1.25rem; right: 1.25rem;
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: 8px; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem; color: var(--text-muted);
    font-family: inherit;
}
.modal-close:hover { background: var(--border); }
.modal-box h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.5rem; }
.modal-box h3 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.modal-box p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 0.75rem; }
.modal-box address { font-style: normal; font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }
.modal-box ul { padding-left: 1.25rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }
.modal-box a { color: var(--primary); }

/* ── FOOTER ── */
footer { background: #0b1120; color: #64748b; padding: 3rem 2rem 2rem; }
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem; padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .name { font-weight: 800; font-size: 1rem; color: white; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 270px; }
.footer-brand .contact { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; }
.footer-brand .contact a { color: #64748b; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-brand .contact a:hover { color: white; }
.footer-address { font-size: 0.85rem; color: #64748b; }
.footer-powered { color: white; font-weight: 700; }
.footer-col h4 { color: white; font-size: 0.82rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: #64748b; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; cursor: pointer; }
.footer-col ul a:hover { color: white; }
.footer-bottom {
    max-width: 1100px; margin: 1.5rem auto 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.78rem; flex-wrap: wrap; gap: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-img { height: 300px; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: 1; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-stats { gap: 2rem; }
    .form-wrapper { padding: 2rem 1.25rem; }
}
