/* ===================================================================
   BEHLE:NATURSTEIN / BEHLE:RECYCLING – static site
   Breakpoints (wie Figma): Mobile < 800, Tablet 800–1279, Desktop >= 1280
   =================================================================== */

:root {
    --color-text: #1d1d1d;
    --color-text-soft: #333333;
    --color-dark: #373736;
    --color-red: #D43B16;
    --color-green: #4E9733;
    --color-gray-50: #808080;
    --color-btn: #d9d9d9;
    --color-btn-text: #4a4a4a;
    --color-border: rgba(0, 0, 0, 0.25);
    --color-divider: rgba(0, 0, 0, 0.1);
    --container: 1000px;
    --content: 936px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-text);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

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

/* ------------------------------------------------------------------ */
/* Header / Navigation                                                 */
/* ------------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: #ffffff;
    padding: 40px 0 16px;
    transition: padding 0.2s ease, box-shadow 0.2s ease;
}

.site-header.stuck {
    padding: 12px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.site-header .container {
    display: flex;
    flex-direction: column;
    gap: 28px;
    transition: gap 0.2s ease;
}

.site-header.stuck .container {
    gap: 12px;
}

.logo {
    display: inline-block;
    width: 260px;
    transition: width 0.2s ease;
}

.site-header.stuck .logo {
    width: 200px;
}

.logo img {
    width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--color-text);
    text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-green);
}

.main-nav a.nav-btn {
    background: var(--color-btn);
    color: var(--color-btn-text);
    padding: 8px 14px;
    transition: transform 0.2s ease;
}

.main-nav a.nav-btn:hover {
    color: var(--color-btn-text);
    transform: scale(1.05);
}

.main-nav a.nav-btn.active {
    color: var(--color-green);
}

/* Mobile menu */
.nav-close {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 6px 0 6px 12px;
}

/* ------------------------------------------------------------------ */
/* Scroll-Reveal (Bilder faden beim Scrollen sanft von unten ein)      */
/* ------------------------------------------------------------------ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

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

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
    margin-top: 24px;
}

.hero img {
    width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------ */
/* Content                                                             */
/* ------------------------------------------------------------------ */

.page-content {
    max-width: var(--content);
    margin: 0 auto;
    padding: 56px 24px 0;
}

h1.display {
    font-size: 48px;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 24px;
}

h1.page-title {
    font-size: 28px;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 20px;
}

h2.section-title {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 500;
    margin: 64px 0 24px;
}

.page-content p {
    color: var(--color-text-soft);
    margin-bottom: 20px;
}

.page-content p.strong {
    font-weight: 500;
    color: var(--color-text);
    margin: 28px 0 20px;
}

/* Feature tiles (Home, 2x2) */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 324px);
    gap: 40px 25px;
    margin-bottom: 24px;
}

.tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.tile-label,
.figure-label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
}

.tile-label::before,
.figure-label::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    background: var(--color-red);
    transform: translateY(-1px);
}

/* Stacked figures (Einsatzbereiche / Angebot) */
.figure-list figure {
    max-width: 786px;
    margin: 0 0 48px;
}

.figure-list img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.figure-list figcaption {
    margin-top: 14px;
}

/* Big single image (Home "Mehrwert", Kontakt "Anforderungen") */
.big-figure {
    margin: 32px 0 0;
}

.big-figure img {
    width: 100%;
    height: auto;
}

/* Dropdown look (Angebot) – rein dekorativ wie im Design */
.select-group {
    margin: 20px 0 28px;
}

.select-group .select-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.listbox {
    max-width: 520px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    font-size: 16px;
    color: var(--color-text-soft);
}

.listbox summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.listbox summary::marker,
.listbox summary::-webkit-details-marker {
    display: none;
}

.listbox .chevron {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-gray-50);
    border-bottom: 2px solid var(--color-gray-50);
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.2s ease;
}

.listbox[open] .chevron {
    transform: rotate(-135deg) translateY(-3px);
}

.option-list {
    list-style: none;
    margin: 0;
    padding: 10px 14px 16px;
    border-top: 1px solid var(--color-divider);
}

.option-list li {
    position: relative;
    padding: 9px 0 9px 30px;
}

.option-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 13px;
    height: 13px;
    background: var(--color-green);
}

.option-list .option-title {
    display: block;
    color: var(--color-text);
}

.option-list .option-detail {
    display: block;
    color: var(--color-text-soft);
    margin-top: 10px;
}

/* Beratung / Störer-Block (Angebot) */
.consulting {
    margin-top: 64px;
}

.consulting .aside-link {
    display: block;
    text-align: right;
    font-size: 16px;
    color: var(--color-text-soft);
    margin-top: 4px;
}

/* Kontakt: Karten / Maps */
.map-block {
    margin-bottom: 56px;
}

.map-block address {
    font-style: normal;
    color: var(--color-text-soft);
    margin-bottom: 20px;
}

.map-block address .addr-name {
    font-weight: 500;
    color: var(--color-text);
    display: block;
    margin-bottom: 12px;
}

.map-embed {
    width: 100%;
    max-width: 786px;
    height: 340px;
    border: 0;
    background: #e8f0fe;
}

/* Ansprechpartner */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 24px;
}

.contact-card {
    border: 1px solid var(--color-divider);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.contact-card .photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: top;
}

.contact-card .photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
}

.contact-card .card-body {
    padding: 18px 20px 20px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text-soft);
}

.contact-card .name {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-text);
}

.contact-card a {
    text-decoration: none;
    color: inherit;
}

.contact-card a:hover {
    color: var(--color-green);
}

.contact-card .mail {
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-text);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
    max-width: var(--content);
    margin: 96px auto 0;
    padding: 0 24px 40px;
}

.site-footer .company {
    font-size: 16px;
    color: var(--color-text-soft);
    margin-bottom: 28px;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
}

.footer-links a:hover,
.footer-links a.active {
    color: var(--color-green);
}

.badge {
    display: inline-block;
    background: var(--color-btn);
    color: var(--color-btn-text);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 14px;
    transition: transform 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

/* Back-to-top (fixes Element wie im Design) */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text-soft);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.to-top.visible {
    display: flex;
}

.to-top:hover {
    background: #f0f0f0;
}

/* ------------------------------------------------------------------ */
/* Tablet: 800–1279                                                    */
/* ------------------------------------------------------------------ */

@media (max-width: 1279px) {
    h1.display {
        font-size: 36px;
    }
}

/* ------------------------------------------------------------------ */
/* Mobile: < 800                                                       */
/* ------------------------------------------------------------------ */

@media (max-width: 799px) {
    body {
        font-size: 16px;
    }

    .site-header {
        padding: 20px 0 12px;
    }

    .site-header.stuck .logo {
        width: 160px;
    }

    .site-header .container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }

    .logo {
        width: 190px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: fixed;
        inset: 0;
        background: #ffffff;
        z-index: 100;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
    }

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

    .main-nav .nav-close {
        display: block;
        position: absolute;
        top: 24px;
        right: 24px;
        background: none;
        border: 0;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        color: var(--color-text);
    }

    .hero {
        margin-top: 0;
    }

    .page-content {
        padding-top: 40px;
    }

    h1.display {
        font-size: 28px;
        line-height: 1.4;
    }

    h1.page-title {
        font-size: 24px;
        line-height: 1.4;
    }

    h2.section-title {
        margin-top: 48px;
    }

    .tile-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-embed {
        height: 260px;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
