:root {
    --blue: #5fa8f3;
    --blue2: #2f8ee8;
    --dark: #111827;
    --line: #e5eef9;
    --light: #f8fbff
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: #fff;
    line-height: 1.6
}

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

.container {
    width: min(1180px, 92%);
    margin: 0 auto
}

/* ── Topbar ── */
.topbar {
    background: linear-gradient(90deg, #5fa8f3, #4198ee);
    color: #fff;
    font-weight: 600;
    font-size: 13px
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 9px 0
}

/* ── Header ── */
.header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 999
}

.nav {
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    position: relative
}

.logo img {
    height: 130px;
    width: auto;
    display: block
}

/* ── Desktop Menu ── */
.menu {
    display: flex;
    align-items: center;
    gap: 28px
}

.menu a,
.dropbtn {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    letter-spacing: .3px;
    transition: color .15s
}

.menu a:hover,
.dropbtn:hover { color: var(--blue2) }

.nav-active { color: var(--blue2) !important; font-weight: 600 }

.menu-cta {
    background: var(--blue) !important;
    color: #fff !important;
    padding: 11px 18px !important;
    border-radius: 4px;
    font-weight: 700 !important;
    transition: background .2s !important
}

.menu-cta:hover { background: var(--blue2) !important }

/* ── Dropdown ── */
.dropdown { position: relative }

.dropbtn:after {
    content: " ▾";
    font-size: 11px
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border-top: 4px solid var(--blue);
    box-shadow: 0 14px 34px rgba(18,65,110,.14);
    z-index: 1000
}

.dropdown:hover .dropdown-content { display: block }

.dropdown-content a {
    display: block;
    padding: 12px 18px;
    border-bottom: 1px solid #edf4fc;
    font-size: 14px;
    font-weight: 500;
    text-transform: none
}

.dropdown-content a:hover {
    background: #f5faff;
    color: var(--blue2)
}

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    z-index: 1001
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg) }
.hamburger.active span:nth-child(2) { opacity: 0 }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg) }

/* ── Hero ── */
.hero {
    background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.90), rgba(255,255,255,.2)),
                url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=1800&q=80');
    background-size: cover;
    background-position: center right;
    min-height: 560px;
    display: flex;
    align-items: center
}

.hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    text-transform: uppercase;
    font-weight: 900;
    margin: 0 0 18px
}

.hero h1 span {
    display: block;
    color: var(--blue2)
}

.hero p {
    font-size: 18px;
    color: #444;
    max-width: 680px;
    margin: 0 0 32px;
    font-weight: 400
}

.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 13px;
    margin-bottom: 16px
}

.kicker:before {
    content: "";
    width: 34px;
    height: 3px;
    background: var(--blue);
    flex-shrink: 0
}

.btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 4px;
    letter-spacing: .3px;
    transition: all .2s
}

.btn-primary { background: var(--blue); color: #fff }
.btn-primary:hover { background: var(--blue2) }
.btn-outline { border: 2px solid var(--blue); color: var(--blue2); background: #fff }
.btn-outline:hover { background: var(--blue); color: #fff }

/* ── Sections ── */
.section { padding: 80px 0 }
.light { background: var(--light) }

.center {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 44px
}

.label {
    color: var(--blue2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 12px
}

.center h2 {
    font-size: clamp(26px, 4vw, 42px);
    text-transform: uppercase;
    font-weight: 800;
    margin: 8px 0 14px
}

.center p {
    color: #555;
    font-size: 16px
}

/* ── Cards ── */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px
}

.card {
    background: #fff;
    border: 1px solid #dfeaf7;
    box-shadow: 0 6px 22px rgba(18,65,110,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    transition: transform .2s ease, box-shadow .2s ease
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(18,65,110,.15)
}

.card-img {
    height: 210px;
    background-size: cover;
    background-position: center
}

.card-body {
    padding: 0 22px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1
}

.icon {
    width: 70px;
    height: 70px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -35px auto 16px;
    position: relative;
    z-index: 2;
    font-size: 26px;
    font-weight: 900
}

.card--plain .card-body { padding-top: 32px }
.card--plain .icon { margin-top: 0; margin-bottom: 20px; position: static }

.card h3 {
    color: var(--blue2);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 0 0 12px
}

.card p {
    color: #555;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 20px;
    flex: 1
}

.more {
    color: var(--blue2);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .5px
}

.more:hover { color: var(--blue) }

/* ── Stats ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 8px 28px rgba(18,65,110,.10);
    border: 1px solid #e4eef9;
    border-radius: 8px;
    overflow: hidden
}

.stat {
    text-align: center;
    padding: 30px 16px;
    border-right: 1px solid #dceafa
}

.stat:last-child { border-right: 0 }

.stat strong {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--blue2)
}

.stat span {
    font-size: 13px;
    color: #444;
    font-weight: 500
}

/* ── About ── */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center
}

.about h2 {
    font-size: clamp(26px, 4vw, 40px);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px
}

.about p {
    color: #555;
    font-size: 16px
}

.checks {
    display: grid;
    gap: 12px;
    margin: 22px 0
}

.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #444;
    font-size: 15px
}

.check:before {
    content: "✓";
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700
}

.about-box {
    background: #fff;
    border-top: 5px solid var(--blue);
    box-shadow: 0 8px 24px rgba(18,65,110,.09);
    padding: 30px;
    border-radius: 0 0 6px 6px
}

.about-box h3 {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 12px
}

/* ── Service Hero ── */
.service-hero {
    background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.86)), var(--bg);
    background-size: cover;
    background-position: center;
    padding: 90px 0
}

.service-hero h1 {
    font-size: clamp(36px, 6vw, 66px);
    text-transform: uppercase;
    font-weight: 900;
    margin: 0 0 14px;
    line-height: 1.05
}

.service-hero h1 span { color: var(--blue2) }

.service-hero p {
    font-size: 18px;
    color: #444;
    max-width: 800px
}

.detail {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 48px;
    align-items: start
}

.detail-img {
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(18,65,110,.13)
}

.detail-text h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 0 16px
}

.detail-text p {
    color: #555;
    font-size: 16px;
    line-height: 1.7
}

.bullet {
    background: #fff;
    border-left: 5px solid var(--blue);
    box-shadow: 0 4px 14px rgba(18,65,110,.07);
    padding: 13px 18px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    border-radius: 0 4px 4px 0
}

/* ── Footer ── */
.footer {
    background: #f8fbff;
    border-top: 1px solid #dbeafa;
    padding: 52px 0 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 42px
}

.footer-logo img {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 12px
}

.footer h4 {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--blue2);
    margin: 0 0 14px;
    font-size: 13px;
    letter-spacing: .5px
}

.footer p,
.footer a {
    display: block;
    color: #444;
    margin: 0 0 8px;
    font-size: 14px
}

.footer a:hover { color: var(--blue2) }

.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px
}

.footer-cols a:before {
    content: "✓";
    color: var(--blue);
    font-weight: 700;
    margin-right: 6px
}

.copy {
    background: linear-gradient(90deg, #5fa8f3, #4198ee);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500
}

.copy a {
    color: rgba(255,255,255,.8);
    border-bottom: 1px solid rgba(255,255,255,.4);
    padding-bottom: 1px;
    transition: color .15s
}

.copy a:hover { color: #fff }

/* ── Impressum ── */
.impressum {
    background: #fff;
    border-top: 5px solid var(--blue);
    box-shadow: 0 8px 24px rgba(18,65,110,.08);
    padding: 34px;
    border-radius: 0 0 6px 6px
}

/* ── Responsive 1000px ── */
@media(max-width:1000px) {
    .cards { grid-template-columns: repeat(2, 1fr) }
    .about, .footer-grid { grid-template-columns: 1fr }
    .detail { grid-template-columns: 1fr }
    .detail-img { order: -1 }
    .stats-grid { grid-template-columns: repeat(2, 1fr) }
    .stat:nth-child(even) { border-right: 0 }
    .stat:nth-child(-n+2) { border-bottom: 1px solid #dceafa }
}

/* ── Responsive 700px ── */
@media(max-width:700px) {
    .topbar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
        font-size: 12px
    }

    .nav {
        height: auto;
        padding: 12px 0
    }

    .logo img { height: 80px }

    .hamburger { display: flex }

    .menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 3px solid var(--blue);
        box-shadow: 0 14px 30px rgba(0,0,0,.12);
        padding: 8px 20px 20px;
        z-index: 1000
    }

    .menu.open { display: flex }

    .menu > a,
    .dropbtn {
        padding: 13px 0;
        border-bottom: 1px solid var(--line);
        font-size: 14px;
        width: 100%;
        text-align: left;
        display: block
    }

    .menu-cta {
        margin-top: 12px;
        text-align: center !important;
        border-bottom: 0 !important;
        padding: 13px 18px !important;
        border-radius: 4px
    }

    .dropdown:hover .dropdown-content { display: none }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border-top: 0;
        padding-left: 14px;
        min-width: unset;
        border-left: 3px solid var(--line)
    }

    .dropdown.open .dropdown-content { display: block }

    .cards { grid-template-columns: 1fr }

    .hero {
        min-height: auto;
        padding: 56px 0 60px;
        background-position: center
    }

    .hero p { font-size: 15px }

    .section { padding: 52px 0 }
    .detail-img { height: 240px }
    .service-hero { padding: 56px 0 }
    .service-hero p { font-size: 16px }
    .about { gap: 28px }
    .footer-cols { grid-template-columns: 1fr }
    .impressum { padding: 22px }
}

/* ── Responsive 480px ── */
@media(max-width:480px) {
    .btns { flex-direction: column; align-items: stretch }
    .btn { justify-content: center }
    .stats-grid { grid-template-columns: 1fr }
    .stat { border-right: 0; border-bottom: 1px solid #dceafa }
    .stat:last-child { border-bottom: 0 }
}

/* ════════════════════════════════
   ANIMATIONEN
   ════════════════════════════════ */

/* ── Keyframes ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px) }
    to   { opacity: 1; transform: translateY(0) }
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px) }
    to   { opacity: 1; transform: translateY(0) }
}

@keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-10px) }
    to   { opacity: 1; transform: translateY(0) }
}

/* ── Hero entrance (page load) ── */
.hero .kicker { animation: fadeInUp .55s ease both .10s }
.hero h1      { animation: fadeInUp .55s ease both .25s }
.hero p       { animation: fadeInUp .55s ease both .40s }
.hero .btns   { animation: fadeInUp .55s ease both .55s }

/* ── Service hero entrance ── */
.service-hero .kicker { animation: fadeInUp .5s ease both .10s }
.service-hero h1      { animation: fadeInUp .5s ease both .20s }
.service-hero p       { animation: fadeInUp .5s ease both .35s }

/* ── Desktop dropdown ── */
.dropdown:hover .dropdown-content {
    animation: dropdownIn .18s ease both
}

/* ── Mobile menu slide in ── */
@media(max-width:700px) {
    .menu.open { animation: menuSlideDown .22s ease both }
}

/* ── Button micro-lift ── */
.btn:hover        { transform: translateY(-2px) }
.btn:active       { transform: translateY(0) }
.btn-primary:hover { background: var(--blue2); transform: translateY(-2px) }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px) }

/* ── Logo hover ── */
.logo { transition: opacity .2s }
.logo:hover { opacity: .85 }

/* ── Scroll Reveal (JS adds .reveal / .is-visible) ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0)
}

/* Cards: use only opacity reveal so hover-transform still works fast */
.card.reveal {
    transform: none;
    transition: opacity .55s ease, transform .2s ease, box-shadow .2s ease
}

/* After reveal, restore fast hover transitions */
.card.reveal.is-visible {
    transition: opacity .55s ease, transform .2s ease, box-shadow .2s ease
}

/* ── Reduced motion ── */
@media(prefers-reduced-motion: reduce) {
    .hero .kicker, .hero h1, .hero p, .hero .btns,
    .service-hero .kicker, .service-hero h1, .service-hero p {
        animation: none
    }
    .reveal, .reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important
    }
    .btn:hover, .btn-primary:hover, .btn-outline:hover { transform: none }
}
