/*###############################
###
###     LEISTUNGEN STYLES
###     BASED ON: HTML, JS, CSS 
###     AUTHOR: Benjamin Benenwitz
###
###
###       ██████╗  ▀█
###       ██╔══██╗ █▄
###       ██████╦╝
###       ██╔══██╗
###       ██████╦╝
###       ╚═════╝
###
###
#################################*/

/* Inhaltsverzeichnis
    6. LEISTUNGEN & SERVICE-SYSTEM
        6.1 Design-Variablen
        6.2 Grund-Setup & Typografie
        6.3 Buttons & Interaktion
        6.4 Split-Hero Architektur
        6.5 Hero-Bilder & Overlays
        6.6 Vorteile-Sektion (Grid)
        6.7 Ablauf-Stepper
        6.8 Preis- & CTA-Block
        6.9 Übersichtskarten (inkl. Background-Bilder)
        6.10 ATF Section von leistungen-uebersicht.html
        6.11 Responsive Fixes (Zentrierung < 1100px)
   */

/* --- 6.1 Design-Variablen --- */
:root {
    --color-secondary: #0056b3;
    --color-accent: #f0f7ff;
    --color-highlight: #ffcc00;
    --color-dark: #2d3436;
    --shadow-md: 0 12px 30px rgba(23, 33, 77, 0.08);
    --shadow-lg: 0 20px 50px rgba(23, 33, 77, 0.12);
    --radius-lg: 24px;
    --radius-md: 12px;
}

/* --- 6.2 Grund-Setup & Typografie --- */
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* --- 6.3 Buttons & Interaktion --- */
.btn-outline-primary,
.btn-to-outline-primary {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline-primary {
    background: var(--color-primary);
    color: var(--color-light);
}

.btn-outline-primary:hover {
    transform: translateY(-3px);
    background: transparent;
    color: var(--color-primary);
}

.btn-to-outline-primary {
    background: transparent;
    color: var(--color-primary);
}

.btn-to-outline-primary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

/* --- 6.4 Split-Hero Architektur --- */
.leistung-hero {
    display: flex;
    min-height: 80vh;
    margin-top: 72px;
    background: var(--color-accent);
    position: relative;
    overflow: hidden;
}

.leistung-hero-upper {
    flex: 1.2;
    display: flex;
    align-items: center;
    padding: 60px 8%;
    z-index: 10;
}

.leistung-hero-flexcontainer {
    width: 100%;
    max-width: 700px;
    /* Desktop-Limit */
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
}

.leistung-hero-claim {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.leistung-hero-bullets {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.leistung-hero-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-weight: 500;
}

.leistung-hero-bullets li::before {
    content: "done";
    font-family: 'Material Symbols Outlined';
    color: var(--color-secondary);
    font-weight: 900;
}

.leistung-hero-lower {
    flex: 1;
    position: relative;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.leistung-hero-bgimg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.leistung-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* --- 6.5 Hero-Bilder & Overlays --- */
.leistung-hero-overlay.blue {
    background: linear-gradient(135deg, rgba(23, 33, 77, 0.85), rgba(0, 86, 179, 0.7));
}

.leistung-hero-overlay.yellow {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.8), rgba(255, 166, 0, 0.6));
}

/* Assets */
.fenster-bn {
    background-image: url('/images/bonn-teaser.webp');
}

.fenster-k {
    background-image: url('/images/teaser-bg-koeln.webp');
}

.wintergarten-bn {
    background-image: url('/images/wintergarten-bonn-teaser.webp');
}

.wintergarten-k {
    background-image: url('/images/wintergarten-teaser.webp');
}

/* --- 6.6 Vorteile-Sektion --- */
.leistung-benefits {
    padding: 100px 8%;
    background: var(--color-light);
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto 0;
}

.benefit-card {
    padding: 50px 40px;
    background: var(--color-accent);
    border-radius: var(--radius-lg);
    transition: 0.3s;
    text-align: left;
    border: 1px solid rgba(23, 33, 77, 0.05);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--color-light);
}

.benefit-icon {
    font-size: 3.5rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    display: block;
}

/* --- 6.7 Ablauf-Stepper --- */
.leistung-steps {
    padding: 100px 8%;
    background: var(--color-primary);
    color: var(--color-light);
    text-align: center;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    list-style: none;
    margin-top: 40px;
}

.step-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--color-highlight);
    margin-bottom: 15px;
    display: block;
}

/* --- 6.8 Preis- & CTA-Block --- */
.leistung-preis-section {
    padding: 100px 8%;
    text-align: center;
    background: var(--color-light);
}

.preis-ab {
    font-size: clamp(3.5rem, 8vw, 5rem);
    font-weight: 950;
    color: var(--color-primary);
    display: block;
}

.cta-btn-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* --- 6.9 Übersichtskarten --- */
.leistungen-uebersicht-section {
    padding: 40px 8% 100px;
    background: var(--color-light);
}

.leistungen-uebersicht-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.leistung-card {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.leistung-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.leistung-card-img {
    height: 240px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.leistung-card-content {
    padding: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

/* Mapping der Bilder für die Übersichtskarten */
.img-fenster {
    background-image: url('/images/teaser-bg-koeln.webp');
}

.img-rahmen {
    background-image: url('/images/bonn-teaser.webp');
}

.img-wintergarten {
    background-image: url('/images/wintergarten-teaser.webp');
}

.img-gewerbe {
    background-image: url('/images/wintergarten-bonn-teaser.webp');
}

/* 6.10 ATF Section von leistungen-uebersicht.html */
.leistungen-intro {
    padding: 12rem 6rem;
    text-align: center;
    background: linear-gradient(180deg, var(--color-accent, #f0f7ff) 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leistungen-intro h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--color-primary, #17214d);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    max-width: 900px;
}

.leistungen-intro p {
    font-size: 1.2rem;
    color: var(--color-secondary, #0056b3);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* --- 6.11 Responsive Fixes (< 1100px) --- */
@media (max-width: 1100px) {
    .leistung-hero {
        flex-direction: column;
        min-height: auto;
    }

    .leistung-hero-upper {
        padding: 80px 5% 60px;
        justify-content: center;
        text-align: center;
    }

    .leistung-hero-flexcontainer {
        max-width: 900px;
        /* Breitet sich aus, da Platz rechts frei wird */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .leistung-hero-bullets {
        display: inline-block;
        text-align: left;
        margin: 0 auto 2.5rem;
    }

    .leistung-hero-lower {
        height: 350px;
        width: 100%;
        clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
    }

    .cta-btn-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }

    .preis-ab {
        font-size: 3rem;
    }

    .leistungen-intro {
        padding: 100px 5% 40px;
    }

    .leistungen-intro h1 {
        font-size: 2.2rem;
    }
}