/* =========================================================
   ACelik Bauunternehmungs GmbH – Stylesheet
   Farbpalette abgeleitet aus dem Firmenlogo
   ========================================================= */

:root {
    --navy:        #082A52; /* rgb(8,42,82)    – Dunkelblau Logo */
    --blue:        #064F85; /* rgb(6,79,133)   – Blau Logo */
    --blue-bright: #0a67ad; /* helleres Akzentblau */
    --gray:        #797C7D; /* rgb(121,124,125)– Grau Logo */
    --light:       #E7E6E5; /* rgb(231,230,229)– Hellgrau Logo */
    --bg:          #f6f7f9;
    --white:       #ffffff;
    --ink:         #16202e;
    --muted:       #5a6573;
    --line:        #e2e6eb;

    --radius:   14px;
    --radius-sm: 8px;
    --shadow:   0 18px 40px -18px rgba(8, 42, 82, .35);
    --shadow-sm: 0 8px 24px -12px rgba(8, 42, 82, .28);
    --container: 1180px;
    --header-h: 104px;

    --font-head: 'Barlow Condensed', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typo helpers ===== */
.eyebrow {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 600;
    font-size: .95rem;
    color: var(--blue);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.05;
    font-size: clamp(1.9rem, 4vw, 3rem);
    color: var(--navy);
    letter-spacing: .01em;
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-intro { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-bright); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--light); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
    transition: box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(8,42,82,.45); }

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand-logo { height: 78px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navy);
    letter-spacing: .02em;
}
.brand-sub {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--gray);
    margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.08rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--navy);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: color .18s ease, background .18s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 6px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav-link:hover { color: var(--blue); }
.nav-link.active::after { transform: scaleX(1); }
.nav-cta {
    margin-left: 10px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
    background: var(--navy);
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    transition: background .18s ease, transform .18s ease;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-2px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    margin: 0 auto;
    background: var(--navy);
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 0;
    overflow: hidden;
    color: #fff;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url("StartHintergrund.jpg") center/cover no-repeat;
    transform: scale(1.05);
    animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.14); } }
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(8,42,82,.92) 0%, rgba(8,42,82,.72) 38%, rgba(6,79,133,.30) 70%, rgba(6,79,133,.12) 100%);
}
.hero-content { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 760px; padding-top: 30px; padding-bottom: 50px; }
.hero-eyebrow {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 18px;
    font-size: 1rem;
}
.hero-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    line-height: .98;
    letter-spacing: .01em;
    margin-bottom: 24px;
}
.hero-title span { color: var(--light); }
.hero-text { font-size: 1.18rem; max-width: 620px; color: rgba(255,255,255,.92); }
.hero-text strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.16);
    border-top: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(4px);
    margin-bottom: 0;
}
.stat {
    background: rgba(8,42,82,.55);
    padding: 26px 20px;
    text-align: center;
}
.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #fff;
    line-height: 1;
}
.stat-label {
    display: block;
    margin-top: 8px;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--light);
}

/* ===== Sections base ===== */
section { scroll-margin-top: var(--header-h); }
.about, .services, .contact { padding: 96px 0; }

/* ===== Über uns ===== */
.about { background: var(--white); }
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}
.about-text p { color: var(--muted); margin-top: 18px; }
.about-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.about-list li {
    position: relative;
    padding-left: 34px;
    color: var(--ink);
    font-weight: 500;
}
.about-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 7px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.85), 0 0 0 3px rgba(6,79,133,.2);
}
.about-card {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--header-h) + 20px);
}
.about-card h3 {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.about-card-lead { color: var(--light); margin: 8px 0 22px; }
.about-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: .98rem;
}
.about-card-row span { color: rgba(255,255,255,.7); }
.about-card-row strong { text-align: right; }
.about-card .btn { margin-top: 26px; }

/* ===== Leistungen ===== */
.services { background: var(--bg); }
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.service-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.service-card:hover .service-media img { transform: scale(1.07); }
.service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,42,82,0) 45%, rgba(8,42,82,.45) 100%);
}
.service-icon {
    position: absolute;
    left: 16px; bottom: 16px;
    z-index: 1;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--blue);
    box-shadow: var(--shadow-sm);
    letter-spacing: .05em;
}

.service-body { padding: 26px 28px 30px; }
.service-card h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: .01em;
}
.service-card p { color: var(--muted); font-size: .98rem; }

.service-card--cta {
    background: linear-gradient(150deg, var(--blue), var(--navy));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border: none;
    padding: 34px 30px;
}
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: rgba(255,255,255,.88); margin-bottom: 22px; }
.service-card--cta:hover { transform: translateY(-6px); }

/* ===== CTA Banner ===== */
.cta-banner {
    background:
        linear-gradient(rgba(8,42,82,.93), rgba(8,42,82,.93)),
        url("StartHintergrund.jpg") center/cover fixed;
    color: #fff;
    padding: 70px 0;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-inner h2 {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: .01em;
}
.cta-inner p { color: var(--light); margin-top: 8px; max-width: 520px; }

/* ===== Kontakt ===== */
.contact { background: var(--white); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: start;
}
.info-block { margin-bottom: 28px; }
.info-block h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: .02em;
}
.info-block p { color: var(--muted); }
.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    margin-top: 8px;
}
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

.contact-form {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--navy);
}
.contact-form input,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    transition: border-color .18s ease, box-shadow .18s ease;
    resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aa3ae; font-weight: 400; }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(6,79,133,.15);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .92rem; font-weight: 600; min-height: 1em; }
.form-note.success { color: #1c7a43; }
.form-note.error { color: #c0392b; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding-top: 64px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}
.footer-logo { height: 84px; width: auto; border-radius: 6px; margin-bottom: 18px; background: #fff; padding: 8px; }
.footer-brand p { max-width: 320px; }
.footer-col h4 {
    font-family: var(--font-head);
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.72); margin-bottom: 10px; transition: color .18s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 22px 0;
    font-size: .88rem;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255,255,255,.6);
}

/* ===== Rechtstexte (Impressum / Datenschutz) ===== */
.legal-hero {
    background: linear-gradient(150deg, var(--navy), var(--blue));
    color: #fff;
    padding: calc(var(--header-h) + 60px) 0 60px;
}
.legal-hero .eyebrow { color: var(--light); }
.legal-hero h1 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    letter-spacing: .01em;
}
.legal { padding: 64px 0 90px; background: var(--white); }
.legal-content { max-width: 820px; }
.legal-content h2 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--navy);
    margin: 40px 0 12px;
    letter-spacing: .01em;
}
.legal-content h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 24px 0 8px;
}
.legal-content p { color: var(--muted); margin-bottom: 14px; }
.legal-content ul { color: var(--muted); margin: 0 0 14px 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-content a:hover { color: var(--blue-bright); }
.legal-content strong { color: var(--ink); }
.legal-note {
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin: 16px 0;
    color: var(--muted);
    font-size: .95rem;
}
.back-link { display: inline-block; margin-top: 40px; }

.footer-legal a { display: inline; color: rgba(255,255,255,.6); }
.footer-legal a:hover { color: #fff; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-card { position: static; }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
    :root { --header-h: 86px; }
    .brand-logo { height: 60px; }
    .brand-name { font-size: 1.25rem; }
    .brand-sub { font-size: .62rem; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: #fff;
        padding: 16px 20px 24px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px -20px rgba(8,42,82,.4);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease, transform .22s ease;
    }
    .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-link { padding: 14px 12px; font-size: 1.15rem; }
    .nav-link::after { display: none; }
    .nav-cta { margin: 8px 0 0; text-align: center; }

    .hero-stats { grid-template-columns: 1fr; }
    .stat { padding: 18px; }
    .about, .services, .contact { padding: 70px 0; }
    .form-row { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; }
    /* fixed background performt auf Mobile schlecht */
    .cta-banner { background-attachment: scroll; }
}
