/* B&M Wasserwelt – schlankes, schnelles Stylesheet.
   Orientiert am Original (Farben, Typografie, Komponenten). Kein Framework. */

/* --- Schrift (HKGrotesk, aus dem Original-Theme) --- */
@font-face {
    font-family: 'HK Grotesk';
    src: url('/assets/fonts/HKGrotesk-Regular.woff2') format('woff2'),
         url('/assets/fonts/HKGrotesk-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'HK Grotesk';
    src: url('/assets/fonts/HKGrotesk-Medium.woff2') format('woff2'),
         url('/assets/fonts/HKGrotesk-Medium.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'HK Grotesk';
    src: url('/assets/fonts/HKGrotesk-SemiBold.woff2') format('woff2'),
         url('/assets/fonts/HKGrotesk-SemiBold.ttf') format('truetype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'HK Grotesk';
    src: url('/assets/fonts/HKGrotesk-Bold.woff2') format('woff2'),
         url('/assets/fonts/HKGrotesk-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}

:root {
    --blau:        #0f4c81;
    --blau-hell:   #0059a4;
    --text:        #212121;
    --grau:        #54595f;
    --bg:          #ffffff;
    --bg-sanft:    #f4f4f4;
    --rand:        #e2e8ee;
    --breite:      1120px;
    --radius:      10px;
}

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

body {
    margin: 0;
    font-family: 'HK Grotesk', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

.container {
    width: 100%;
    max-width: var(--breite);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

a { color: var(--blau-hell); text-decoration: none; }
a:hover { text-decoration: underline; }

/* <picture> layout-neutral: das <img> verhält sich wie ein direktes Kind des Elternelements */
picture { display: contents; }

h1, h2, h3 { line-height: 1.2; color: var(--blau); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* --- Header / Navigation --- */
.site-header {
    border-bottom: 1px solid var(--rand);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.7rem;
    flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; display: block; }
.main-nav ul {
    display: flex;
    gap: 1.6rem;
    margin: 0; padding: 0;
    list-style: none;
    flex-wrap: wrap;
}
.main-nav a { color: var(--text); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; }
.main-nav a:hover { color: var(--blau-hell); text-decoration: none; }
.main-nav a.is-active { color: var(--blau-hell); }

/* Hamburger-Button (nur mobil sichtbar) */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background: var(--blau);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 820px) {
    .header-inner { position: static; }
    .nav-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--rand);
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
    }
    .main-nav.is-open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.25rem 1.25rem 0.75rem;
    }
    .main-nav li { border-bottom: 1px solid var(--rand); }
    .main-nav li:last-child { border-bottom: 0; }
    .main-nav a { display: block; padding: 0.9rem 0; font-size: 1.05rem; }

    .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); }
}

/* --- Inhalt --- */
main { padding-block: 0 3.5rem; }
section { margin-top: 3.5rem; }
.text-center { text-align: center; }
.mt-xl { margin-top: 3rem; }   /* Abstand vor abschließenden CTAs */

/* --- Hero --- */
.hero {
    text-align: center;
    color: #fff;
    padding: clamp(3.5rem, 11vw, 8rem) 1.5rem;
    margin-top: 0;
    background-color: var(--blau);
    background-image:
        linear-gradient(rgba(15, 76, 129, 0.45), rgba(15, 76, 129, 0.62)),
        image-set(url('/assets/img/hero.webp') type('image/webp'),
                  url('/assets/img/hero.jpg')  type('image/jpeg'));
    background-image:
        linear-gradient(rgba(15, 76, 129, 0.45), rgba(15, 76, 129, 0.62)),
        -webkit-image-set(url('/assets/img/hero.webp') 1x);
    background-size: cover;
    background-position: center 30%;
    /* volle Breite, auch wenn in .container */
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero p.lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 42rem;
    margin: 0 auto 1.5rem;
}

/* --- Buttons --- */
.button {
    display: inline-block;
    background: var(--blau-hell);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
}
.button:hover { background: var(--blau); text-decoration: none; }
.hero .button { background: #fff; color: var(--blau); }
.hero .button:hover { background: #eaf4fb; }

/* --- Intro-Sektion mit Bild --- */
.intro { text-align: center; max-width: 52rem; margin-inline: auto; }
.intro img {
    display: block;
    margin: 1.75rem auto 0;
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
}

/* --- Karten-Grid --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.card {
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 1.6rem;
    background: var(--bg);
}

/* Vorteils-Karten mit Icon, zentriert */
.vorteil { text-align: center; background: var(--bg-sanft); border-color: transparent; }
.vorteil img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 0.5rem; }
.vorteil h3 { color: var(--blau); margin: 0.25rem 0 0.5rem; }

/* --- Ablauf / Service-Schritte --- */
.schritte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}
.schritt img { width: 52px; height: 52px; object-fit: contain; }
.schritt .nr { color: var(--blau-hell); font-weight: 700; }
.schritt h3 { font-size: 1.05rem; margin: 0.4rem 0; }
.schritt p { color: var(--grau); font-size: 0.95rem; margin: 0; }

/* --- Blaue Sektion (Kundenstimmen) --- */
.section-blau {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--blau);
    color: #fff;
    padding-block: 3.5rem;
}
.section-blau h2 { color: #fff; text-align: center; }
.section-blau .inner {
    max-width: var(--breite);
    margin-inline: auto;
    padding-inline: 1.25rem;
}
.zitate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.zitat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    padding: 1.6rem;
}
.zitat img {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}
.zitat p { margin: 0 0 0.75rem; font-size: 0.98rem; }
.zitat cite { font-style: normal; font-weight: 700; }

/* Text-Kundenstimmen auf weißem Grund */
.card blockquote { margin: 0; }
.card blockquote p { margin: 0 0 0.75rem; }
.card cite {
    font-style: normal;
    font-weight: 700;
    color: var(--blau);
}

/* --- Kooperationspartner-Leiste --- */
.partner-leiste {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
}
.partner-leiste img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
}
.partner-leiste img:hover { filter: none; opacity: 1; }

/* --- Statistik-Karten --- */
.stat strong { display: block; font-size: 1.6rem; color: var(--blau); }

/* --- Team-Foto --- */
.team-foto {
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: var(--radius);
    display: block;
    margin: 1.5rem auto 0;
}

/* --- Team-Karten (Über uns) --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 760px;
    margin: 2.5rem auto 0;
}
.team-karte {
    background: var(--blau);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    text-align: center;
}
.team-karte img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}
.team-karte h2 { color: #fff; font-size: 1.3rem; margin: 0 0 0.5rem; }
.team-karte .rolle {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.25rem;
}
.team-karte .linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 600;
}
.team-karte .linkedin span {
    display: inline-grid;
    place-items: center;
    width: 26px; height: 26px;
    background: #fff;
    color: var(--blau);
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
}
.team-karte .linkedin:hover { text-decoration: none; opacity: 0.9; }

/* --- Formular --- */
form.anfrage { max-width: 42rem; margin-inline: auto; display: grid; gap: 1.1rem; }
form.anfrage .feld { display: grid; gap: 0.35rem; }
form.anfrage label,
form.anfrage legend { font-weight: 600; }
form.anfrage input,
form.anfrage select,
form.anfrage textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    font: inherit;
    background: #fff;
}
form.anfrage textarea { min-height: 8rem; resize: vertical; }
form.anfrage small { color: var(--grau); }
/* Checkbox & Datei nicht auf volle Breite ziehen (überschreibt input{width:100%}) */
form.anfrage input[type="checkbox"] { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; margin: 0; }
form.anfrage input[type="file"] { width: auto; padding: 0.4rem; }

/* Zwei-Spalten-Reihen (Vorname/Nachname etc.) */
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.feld-reihe .feld-schmal { /* z.B. PLZ */ }
@media (max-width: 560px) { .feld-reihe { grid-template-columns: 1fr; } }

/* Anliegen-Checkboxen */
form.anfrage fieldset { border: 0; padding: 0; margin: 0; }
form.anfrage legend { padding: 0; margin-bottom: 0.6rem; }
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1.5rem;
}
@media (max-width: 560px) { .checkbox-grid { grid-template-columns: 1fr; } }
.check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 400;
}
.check-datenschutz {
    align-items: flex-start;
    font-size: 0.92rem;
    color: var(--grau);
}
.check-datenschutz input { margin-top: 0.2rem; }

.honeypot { position: absolute; left: -9999px; }

.hinweis { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.hinweis.ok     { background: #e6f4ea; color: #1e4620; }
.hinweis.fehler { background: #fdecea; color: #611a15; }

/* --- Artikel-Übersicht --- */
.intro-text { max-width: 48rem; }
.intro-text--zentriert { margin-inline: auto; text-align: center; }
.artikel-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.artikel-card .artikel-bild { display: block; }
.artikel-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}
.artikel-card h2 { font-size: 1.2rem; margin: 1rem 1.25rem 0.5rem; }
.artikel-card h2 a { color: var(--blau); }
.artikel-card h2 a:hover { color: var(--blau-hell); text-decoration: none; }
.artikel-card > p { margin: 0 1.25rem; color: var(--grau); }
.artikel-card .weiterlesen { font-weight: 600; }
.artikel-card > p:last-child { margin-bottom: 1.25rem; margin-top: 0.75rem; }

/* --- Produktpakete (abwechselnd Bild/Text) --- */
.produkt-liste {
    display: grid;
    gap: 3rem;
    margin-top: 2.5rem;
}
.produkt-zeile {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2.5rem;
    align-items: center;
}
.produkt-zeile:nth-child(even) .produkt-bild { order: 2; }
.produkt-bild img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}
.produkt-text h2 { margin-top: 0; }
.produkt-text p { color: var(--grau); margin-bottom: 0; }

@media (max-width: 720px) {
    .produkt-zeile { grid-template-columns: 1fr; gap: 1.25rem; }
    .produkt-zeile:nth-child(even) .produkt-bild { order: 0; }
}

/* --- Einzelner Beitrag --- */
.beitrag { max-width: 48rem; margin-inline: auto; }
.beitrag img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0 1.5rem;
}
.wert-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.wert-tabelle th,
.wert-tabelle td {
    text-align: left;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--rand);
}
.wert-tabelle th { background: var(--bg-sanft); color: var(--blau); }
.wert-tabelle td:first-child { white-space: nowrap; font-weight: 600; }

/* --- FAQ-Akkordeon --- */
details {
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-sanft);
}
details summary { cursor: pointer; font-weight: 600; color: var(--blau); }
details[open] summary { margin-bottom: 0.5rem; }

/* --- Rechtstexte --- */
.rechtstext { max-width: 48rem; }
.rechtstext h2 { margin-top: 2rem; font-size: 1.3rem; }
.rechtstext p { margin: 0.6rem 0; }

/* --- Kontakt-Leiste über dem Footer --- */
.kontakt-band {
    text-align: center;
    padding-block: 3rem 0.5rem;
    margin-top: 3.5rem;
    border-top: 1px solid var(--rand);
}
.kontakt-band h2 {
    max-width: 46rem;
    margin: 0 auto 0.75rem;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}
.kontakt-band .oeffnung { color: var(--grau); margin: 0 0 2rem; }
.kontakt-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.kontakt-icons .ki img { width: 48px; height: 48px; object-fit: contain; }
.kontakt-icons .ki strong { display: block; color: var(--blau); margin: 0.5rem 0 0.25rem; }
.kontakt-icons .ki p { margin: 0; color: var(--grau); }
.kontakt-icons .ki a { color: var(--blau-hell); }

/* --- Footer --- */
.site-footer {
    background: var(--blau);
    color: #fff;
    padding-block: 2.5rem 1.75rem;
    margin-top: 0;
}
.footer-domain { font-size: 0.85rem; opacity: 0.8; margin: 0 0 0.5rem; }
.footer-adresse p { margin: 0; line-height: 1.5; }
.site-footer a { color: #fff; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: start;
}
.footer-logo img { height: 64px; width: auto; }
.footer-kontakt p { margin: 0.25rem 0; }
.footer-nav ul {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 1.5rem 0 0.75rem;
    padding: 0;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.25rem;
}
.copyright { color: rgba(255, 255, 255, 0.8); margin: 0; font-size: 0.9rem; }
