/* ===================================================================
   ZeuTie Tiefbau GmbH – Redesign 2026
   Farbwelt: Anthrazit + Baustellen-Gelb, viel Weißraum
   =================================================================== */

:root {
    --anthracite: #1f262e;
    --anthracite-light: #2c3540;
    --amber: #f0a500;
    --amber-dark: #d18f00;
    --text: #2b3138;
    --text-muted: #5c6670;
    --bg: #ffffff;
    --bg-alt: #f4f5f7;
    --border: #e2e5e9;
    --radius: 10px;
    --shadow: 0 8px 24px rgba(31, 38, 46, 0.10);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

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

a {
    color: var(--amber-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

h1, h2, h3 {
    line-height: 1.25;
    color: var(--anthracite);
    font-weight: 700;
}

/* ------------------------------------------------------------------
   Topbar
   ------------------------------------------------------------------ */
.topbar {
    background: var(--anthracite);
    color: #cfd5dc;
    font-size: 0.875rem;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    flex-wrap: wrap;
}

.topbar a {
    color: #fff;
}

.topbar-links {
    display: flex;
    gap: 1.5rem;
}

/* ------------------------------------------------------------------
   Header / Navigation
   ------------------------------------------------------------------ */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--amber);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(31, 38, 46, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 76px;
}

.brand img {
    height: 46px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--anthracite);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.main-nav a:hover {
    background: var(--bg-alt);
    text-decoration: none;
}

.main-nav a.nav-cta {
    background: var(--amber);
    color: var(--anthracite);
    margin-left: 0.5rem;
}

.main-nav a.nav-cta:hover {
    background: var(--amber-dark);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--anthracite);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-bottom: 3px solid var(--amber);
        box-shadow: var(--shadow);
        padding: 0.75rem 1.25rem 1.25rem;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 0.85rem 0.75rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .main-nav a.nav-cta {
        margin-left: 0;
        margin-top: 0.75rem;
        border-radius: 6px;
        text-align: center;
        border-bottom: none;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ------------------------------------------------------------------
   Hero (Startseite)
   ------------------------------------------------------------------ */
.hero {
    position: relative;
    background: linear-gradient(rgba(21, 26, 32, 0.72), rgba(21, 26, 32, 0.72)), url("../img/hero.jpg") center 60% / cover no-repeat;
    color: #fff;
    padding: 7rem 0 8rem;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.25rem);
    max-width: 44rem;
    margin-bottom: 1.25rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--amber);
}

.hero p {
    max-width: 40rem;
    font-size: 1.15rem;
    color: #e3e7ec;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-block;
    background: var(--amber);
    color: var(--anthracite);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--amber);
    color: var(--anthracite);
}

.btn-primary:hover {
    background: var(--amber-dark);
    color: #fff;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    margin-left: 0.75rem;
}

.btn-outline:hover {
    background: #fff;
    color: var(--anthracite);
}

/* ------------------------------------------------------------------
   Sektionen
   ------------------------------------------------------------------ */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    max-width: 44rem;
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    background: var(--amber);
    border-radius: 2px;
}

.section-head p {
    color: var(--text-muted);
}

/* Kennzahlen-Leiste */
.stats {
    background: var(--anthracite);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 2.75rem 1.25rem;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 2.25rem;
    color: var(--amber);
    line-height: 1.2;
}

.stat span {
    color: #cfd5dc;
    font-size: 0.9375rem;
}

/* Karten-Raster (Leistungen / Referenzen) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.4rem 1.5rem 1.6rem;
    flex: 1;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

a.card-link {
    color: inherit;
}

.ref-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

a.card-link:hover {
    text-decoration: none;
}

/* Zertifikate */
.certs {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.certs img {
    width: 130px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    background: #fff;
    padding: 0.4rem;
}

.cert-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* CTA-Band */
.cta-band {
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    color: var(--anthracite);
    text-align: center;
    padding: 3.5rem 0;
}

.cta-band h2 {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
}

.cta-band .btn {
    background: var(--anthracite);
    color: #fff;
    margin-top: 1.25rem;
}

.cta-band .btn:hover {
    background: var(--anthracite-light);
}

/* ------------------------------------------------------------------
   Innenseiten
   ------------------------------------------------------------------ */
.page-title {
    background: var(--anthracite);
    color: #fff;
    padding: 3.25rem 0;
}

.page-title h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-title p {
    color: #cfd5dc;
    margin-top: 0.5rem;
    max-width: 44rem;
}

.content {
    padding: 3.5rem 0;
}

.content h2 {
    font-size: 1.5rem;
    margin: 2.25rem 0 0.75rem;
}

.content h2:first-child {
    margin-top: 0;
}

.content h3 {
    font-size: 1.2rem;
    margin: 1.75rem 0 0.5rem;
}

.content p {
    margin-bottom: 1rem;
    max-width: 52rem;
}

.content ul {
    margin: 0 0 1rem 1.4rem;
}

.content li {
    margin-bottom: 0.35rem;
}

/* Info-Tabelle (Kontakt / Impressum) */
.info-table {
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    width: 100%;
    max-width: 40rem;
}

.info-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--anthracite);
    white-space: nowrap;
    width: 11rem;
}

/* Kontakt-Karten */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--amber);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(31, 38, 46, 0.05);
}

.contact-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin: 0;
    color: var(--text-muted);
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer {
    background: var(--anthracite);
    color: #cfd5dc;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
}

.site-footer h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: var(--amber);
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.45rem;
}

.footer-nav a {
    color: #cfd5dc;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-certs {
    display: flex;
    gap: 1rem;
}

.footer-certs img {
    width: 90px;
    background: #fff;
    padding: 0.3rem;
    border-radius: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--anthracite-light);
    font-size: 0.875rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #cfd5dc;
}

/* ------------------------------------------------------------------
   Referenzen: Filter, Galerie, Lightbox
   ------------------------------------------------------------------ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.25rem;
}

.filter-btn {
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--anthracite);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-btn:hover {
    border-color: var(--amber);
}

.filter-btn.active {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--anthracite);
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.ref-item {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--bg-alt);
    box-shadow: 0 2px 8px rgba(31, 38, 46, 0.08);
}

.ref-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ref-item:hover img,
.ref-item:focus-visible img {
    transform: scale(1.05);
}

.ref-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem 0.9rem 0.75rem;
    background: linear-gradient(transparent, rgba(21, 26, 32, 0.85));
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ref-jahr {
    align-self: flex-start;
    background: var(--amber);
    color: var(--anthracite);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 4px;
    padding: 0.05rem 0.45rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 19, 24, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox figure {
    margin: 0;
    max-width: min(92vw, 1400px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.lightbox img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 6px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.lightbox figcaption {
    color: #e3e7ec;
    text-align: center;
    font-size: 0.95rem;
    padding: 0 1rem;
}

.lb-close,
.lb-nav {
    position: fixed;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 1001;
}

.lb-close:hover,
.lb-nav:hover {
    background: var(--amber);
    color: var(--anthracite);
}

.lb-close {
    top: 1.25rem;
    right: 1.25rem;
}

.lb-prev {
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ------------------------------------------------------------------
   Scroll-Animationen
   ------------------------------------------------------------------ */

/* Grundzustand: unsichtbar und leicht nach unten versetzt.
   Die Klasse .reveal wird per JavaScript vergeben, damit die Seite
   ohne JavaScript vollständig sichtbar bleibt. */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* Hero-Inhalte beim Laden sanft einblenden */
@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero .hero-badge,
.hero h1,
.hero p,
.hero .btn {
    animation: hero-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero h1 {
    animation-delay: 0.15s;
}

.hero p {
    animation-delay: 0.3s;
}

.hero .btn {
    animation-delay: 0.45s;
}

.hero .container {
    will-change: transform, opacity;
}

/* Nutzer mit reduzierter Bewegung: alle Effekte deaktivieren */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero .hero-badge,
    .hero h1,
    .hero p,
    .hero .btn {
        animation: none;
    }
}
