/*
Theme Name: Bales Innovation
Theme URI: https://haudegen-webdesign.de
Author: Haudegen Webdesign
Author URI: https://haudegen-webdesign.de
Description: Custom-Theme fuer Bales Innovation auf Basis des Haudegen-Theme-Cores (kein Page Builder).
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: haudegen-theme
*/

/* ============================================================
   REIHENFOLGE DIESER DATEI - NEUE BLOECKE HIER EINSORTIEREN
   1  Tokens
   2  Fonts
   3  Reset / Basis
   4  Typografie (inkl. .eyebrow)
   5  Farb- und Hintergrundklassen
   6  Layout-Utilities (flex, grids, Container-Stufen)
   7  Abstaende
   8  Komponenten (button, card, section-head, faq, form, post)
   9  Header
   10 Footer
   11 Einblenden beim Scrollen
   12 Swiper-Basis
   13 Responsive
   14 Barrierefreiheit (Fokus, reduced motion)
============================================================ */


/* ============================================================
   1  TOKENS
   Acht Werte, jeder mit genau EINER Bedeutung.
   --grey ist eine FLAECHE und nie Text. Leiser Text ist --text-grey.
   Projektspezifische Variablen erst bei Bedarf einzeln ergaenzen.
============================================================ */
:root {
    --black: #0A192F;        /* Dark Navy: Text, Ueberschriften, dunkle Flaeche. Ersetzt Schwarz */
    --white: #FFFFFF;        /* Text auf dunkel, helle Flaeche */
    --grey: #F5F5F5;         /* helle Flaeche fuer Sektionswechsel - NIE Text */
    --text-grey: #525252;    /* leiser Text auf heller Flaeche */
    --line: #D9D9D9;         /* Linien, Rahmen, Inputs, Zebra, Nebenbutton */
    --accent: #FF6B00;       /* Industrial Orange: nur Interaktion (Buttons, Signale). Buttons tragen Navy-Schrift, nie Weiss */
    --accent-hover: #FFA366; /* Hover Primaerbutton (heller, Schrift bleibt Navy) */
    --contrast: #B84800;     /* Orange Deep: Textlinks, Eyebrows, Hover von Links */
    --navy-soft: #13294B;    /* Flaechen in Navy-Sektionen */
}


/* ============================================================
   2  FONTS
   Immer self-hosted, nie Google Fonts (DSGVO).
   Variable Datei ist der Standard - vor dem Hochladen pruefen, dass
   die Datei wirklich variabel ist (fvar-Tabelle) und wirklich woff2
   (Signatur wOF2). Sonst sind fette Ueberschriften duenn.
============================================================ */
@font-face {
    font-family: 'Archivo';
    src: url('fonts/archivo-variable-latin-wdth-wght.woff2') format('woff2-variations'),
         url('fonts/archivo-variable-latin-wdth-wght.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-latin-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ============================================================
   3  RESET / BASIS
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    /* clip statt hidden: hidden macht den Body zum Scroll-Container und
       bricht damit position:sticky im Header. */
    overflow-x: clip;
}

/* Scroll-Lock, wenn das Popup-Menue offen ist */
body.fixed {
    overflow: hidden;
}

/* height:auto ist PFLICHT. wp_get_attachment_image() liefert width- und
   height-Attribute; ohne diese Regel erzwingt das height-Attribut die
   Hoehe und staucht jedes Bild. */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: inherit;
}


/* ============================================================
   4  TYPOGRAFIE
============================================================ */
/* Headlines: Archivo mit Breitenachse 112 %. Gewicht 700 fuer H1/H2,
   600 fuer H3/H4 und Eyebrow. */
h1, h2, h3, h4 {
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 3.8vw, 3.5rem); line-height: 1.05; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -.015em; }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; line-height: 1.2; }
h4 { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); font-weight: 600; line-height: 1.3; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-small { font-size: .875rem; }
.text-lead { font-size: 1.25rem; line-height: 1.6; }

/* Auszeichnungsklassen: werden dem HTML-Element als ZUSAETZLICHE Klasse
   angehaengt (class="link-weiter underline"). Nie text-transform,
   Fettung oder Unterstreichung in die Regel einer Komponente schreiben. */
.uppercase { text-transform: uppercase; }
.bold { font-weight: 700; }
.underline {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Label UEBER der Ueberschrift, mit Zahnrad davor.
   NIE innerhalb einer Ueberschrift - sonst liest Google die H1 als
   "eyebrow + headline" in einem Satz.
   Das Zahnrad ist ein CSS-Pseudoelement (Maske in currentColor): Farbe
   folgt dem Text, kein SVG im Markup noetig. Rein dekorativ. */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.3;
    color: var(--contrast);
    margin-bottom: 12px;
}
.eyebrow::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M20.6 12.0 L22.9 13.5 L22.2 16.2 L19.4 16.4 L18.1 18.1 L18.6 20.8 L16.2 22.2 L14.1 20.3 L12.0 20.6 L10.5 22.9 L7.8 22.2 L7.6 19.4 L5.9 18.1 L3.2 18.6 L1.8 16.2 L3.7 14.1 L3.4 12.0 L1.1 10.5 L1.8 7.8 L4.6 7.6 L5.9 5.9 L5.4 3.2 L7.8 1.8 L9.9 3.7 L12.0 3.4 L13.5 1.1 L16.2 1.8 L16.4 4.6 L18.1 5.9 L20.8 5.4 L22.2 7.8 L20.3 9.9 Z M15.6 12 A3.6 3.6 0 1 0 8.4 12 A3.6 3.6 0 1 0 15.6 12 Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M20.6 12.0 L22.9 13.5 L22.2 16.2 L19.4 16.4 L18.1 18.1 L18.6 20.8 L16.2 22.2 L14.1 20.3 L12.0 20.6 L10.5 22.9 L7.8 22.2 L7.6 19.4 L5.9 18.1 L3.2 18.6 L1.8 16.2 L3.7 14.1 L3.4 12.0 L1.1 10.5 L1.8 7.8 L4.6 7.6 L5.9 5.9 L5.4 3.2 L7.8 1.8 L9.9 3.7 L12.0 3.4 L13.5 1.1 L16.2 1.8 L16.4 4.6 L18.1 5.9 L20.8 5.4 L22.2 7.8 L20.3 9.9 Z M15.6 12 A3.6 3.6 0 1 0 8.4 12 A3.6 3.6 0 1 0 15.6 12 Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Auf Navy ist Orange Deep zu dunkel - dort das Signal-Orange */
.black-bg .eyebrow,
.karo-bg .eyebrow {
    color: var(--accent);
}


/* ============================================================
   5  FARB- UND HINTERGRUNDKLASSEN
============================================================ */
.black { color: var(--black); }
.white { color: var(--white); }
.accent { color: var(--accent); }
.text-grey { color: var(--text-grey); }
.contrast { color: var(--contrast); }

.black-bg { background: var(--black); color: var(--white); }
.white-bg { background: var(--white); color: var(--black); }
.grey-bg { background: var(--grey); color: var(--black); }
.contrast-bg { background: var(--contrast); color: var(--white); }
.accent-bg { background: var(--accent); color: var(--black); }

/* Leiser Text auf dunkler Flaeche - --text-grey waere dort zu dunkel */
.black-bg .text-grey,
.contrast-bg .text-grey,
footer .text-grey { color: rgba(255, 255, 255, .7); }


/* ============================================================
   6  LAYOUT-UTILITIES
   Layout wird im Markup zusammengesetzt, nicht pro Seite neu in CSS.
============================================================ */
.flex {
    display: flex;
    flex-direction: column;
}
.flex-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.flex-start { align-items: flex-start; }
.flex-end { align-items: flex-end; }
.flex-center { align-items: center; }
.flex-between { justify-content: space-between; }

.gap-5 { gap: 5px; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.gap-40 { gap: 40px; }

.section-padding {
    padding: 112px 24px;
}

.double-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
/* Bild links, Text rechts - ohne die Reihenfolge im Markup zu drehen
   (die DOM-Reihenfolge bleibt so auch mobil korrekt) */
.double-grid.reverse > *:first-child { order: 2; }

.triple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

/* Container-Stufen.
   Das nackte ".max-width" gibt es NICHT mehr: es bedeutete in einem
   Projekt 700px (Textspalte) und im naechsten 1600px (Seitenbreite).
   Jede Stufe traegt jetzt ihre Breite im Namen.
   Standard-Seitencontainer = .max-width-1600 */
.max-width-700,
.max-width-1100,
.max-width-1280,
.max-width-1400,
.max-width-1600 {
    margin-inline: auto;
    width: 100%;
}
.max-width-700  { max-width: 700px; }   /* schmale Textspalte, Rechtstexte */
.max-width-1100 { max-width: 1100px; }  /* Beitrag, Formular, FAQ */
.max-width-1280 { max-width: 1280px; }  /* Inhaltscontainer Bales (Entwurf) */
.max-width-1400 { max-width: 1400px; }  /* engerer Inhaltscontainer */
.max-width-1600 { max-width: 1600px; }  /* Standard-Seitencontainer */


/* ============================================================
   7  ABSTAENDE
============================================================ */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }


/* ============================================================
   8  KOMPONENTEN
============================================================ */

/* --- Button -------------------------------------------------
   Primaer: Orange mit NAVY-Schrift (Weiss auf #FF6B00 hat nur 2,86 : 1).
   Varianten als zweite Klasse: class="button grau" (Sekundaer),
   "button outline", "button dark", "button gross" (Hero, 56 px). */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-start;
    height: 48px;
    padding: 0 24px;
    background: var(--accent);
    color: var(--black);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    border-radius: 4px;
    transition: background .2s ease, color .2s ease;
}
.button:hover {
    background: var(--accent-hover);
}
.button.gross {
    height: 56px;
    padding: 0 28px;
}
/* Sekundaer: nur auf Weiss oder Navy, nicht auf Hellgrau */
.button.grau {
    background: var(--line);
    color: var(--black);
}
.button.grau:hover {
    background: var(--black);
    color: var(--white);
}
.black-bg .button.grau:hover,
.karo-bg .button.grau:hover {
    background: var(--white);
    color: var(--black);
}
.button.outline {
    background: transparent;
    border: 2px solid var(--contrast);
    color: var(--contrast);
    padding: 0 22px;
}
.button.outline:hover {
    background: var(--contrast);
    color: var(--white);
}
.button.dark {
    background: var(--black);
    color: var(--white);
}
.button.dark:hover {
    background: var(--navy-soft);
}
/* Auf dunkler Flaeche braucht outline eine helle Linie */
.black-bg .button.outline,
.contrast-bg .button.outline {
    border-color: var(--white);
    color: var(--white);
}
.black-bg .button.outline:hover,
.contrast-bg .button.outline:hover {
    background: var(--white);
    color: var(--black);
}

/* --- Karte --------------------------------------------------
   Ein Baustein fuer alle Kartenmuster (Vorteil, Leistung, Formular).
   Auf Hellgrau ist die Karte weiss und ohne Rahmen, auf Weiss hat sie
   einen Rahmen. Nicht pro Sektion neu definieren. */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
}
.grey-bg .card {
    border-color: transparent;
}
.black-bg .card,
.contrast-bg .card {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .15);
}
/* Nur bei klickbaren Karten: dezenter Schatten, 2 px Anheben */
a.card,
.card.klickbar {
    transition: box-shadow .25s ease, transform .25s ease;
}
a.card:hover,
.card.klickbar:hover {
    box-shadow: 0 2px 8px rgba(10, 25, 47, .04);
    transform: translateY(-2px);
}

/* --- Sektionskopf -------------------------------------------
   Eyebrow + Headline links, Zusatztext rechts. Bei genug Platz
   nebeneinander, sonst untereinander. */
.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 50px;
}
.section-head > *:first-child { flex: 1 1 460px; }
.section-head > *:last-child  { flex: 0 1 380px; }
.section-head > *:only-child  { flex: 1 1 100%; }

/* --- FAQ ----------------------------------------------------
   .faq-question ist ein <button>, kein <div onclick>. */
.faq-item {
    border-bottom: 1px solid var(--line);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 25px 0;
    font-weight: 700;
    font-size: 1.05rem;
}
.faq-icon {
    flex-shrink: 0;
    transition: transform .3s ease;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent);
}
.faq-icon.aktiv {
    transform: rotate(45deg);
}
/* max-height reicht fuer ca. 15 Zeilen Antwort. Bei laengeren
   Antworten den Wert erhoehen - eine Hoehe von "auto" laesst sich
   nicht animieren. */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-answer.aktiv {
    max-height: 1500px;
}
.faq-answer-inner {
    padding-bottom: 25px;
    color: var(--text-grey);
}

/* --- Formular (CF7) -----------------------------------------
   Die Plugin-Styles sind in functions.php abgeschaltet, deshalb
   steht das komplette Formular-CSS hier. */
.form-card label {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 6px;
}
.form-card p {
    margin-bottom: 18px;
}
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card textarea,
.form-card select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    font: inherit;
    color: var(--black);
}
.form-card textarea {
    height: auto;
    padding: 14px 16px;
    min-height: 150px;
    resize: vertical;
}
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, .25);
    outline: none;
}
.form-card input[type="submit"] {
    display: inline-block;
    height: 56px;
    padding: 0 30px;
    background: var(--accent);
    color: var(--black);
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s ease;
}
.form-card input[type="submit"]:hover {
    background: var(--accent-hover);
}
/* Consent-Checkbox */
.form-card .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}
.form-card .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: .85rem;
    line-height: 1.5;
}
.form-card .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--black);
}
.form-card .wpcf7-acceptance a {
    color: var(--contrast);
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* Pflichtfeld-Markierung und Meldungen */
.form-card .pflicht {
    color: var(--accent);
}
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: .85rem;
    color: #c00;
}
.wpcf7-response-output {
    margin-top: 20px !important;
    padding: 14px 18px !important;
    border: 1px solid var(--line) !important;
    border-radius: 4px;
    font-size: .95rem;
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #2a7f3f !important;
    background: #eef7f0;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: #c00 !important;
    background: #fdeeee;
}
.wpcf7-spinner {
    display: none;
}
/* Honeypot- / Hidden-Felder */
.hidden-fields-container {
    visibility: hidden !important;
    position: absolute;
    left: -9999px;
}

/* --- Beitrag / Seite ----------------------------------------
   entry-content: hier stehen die Styles fuer vom Editor
   ausgegebenes HTML, das wir nicht mit Klassen versehen koennen. */
.entry-content h2,
.entry-content h3 { margin: 40px 0 15px; }
.entry-content ul,
.entry-content ol { margin: 0 0 20px 20px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { margin: 30px 0; }
.entry-content a {
    color: var(--contrast);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}
.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
}

.post-meta {
    display: block;
    color: var(--accent);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Beitragsraster (index, archive, search) */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.post-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}
.post-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 5px;
}
.post-card h3 {
    font-size: 1.3rem;
    transition: color .25s ease;
}
.post-card:hover h3 {
    color: var(--accent);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    padding: 10px 16px;
    background: var(--grey);
    border-radius: 2px;
}
.pagination .page-numbers.current {
    background: var(--accent);
    color: var(--white);
}


/* --- Produktseite -------------------------------------------
   Module aus dem Entwurf (Dispenser 1K / Statikmischer). Container
   ist .max-width-1280, der Hero .max-width-1100. */
.section-titel {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin-bottom: 48px;
}
.section-titel .eyebrow { margin-bottom: 16px; }

.produkt-hero-section { padding-top: 72px; }
.produkt-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
}
.produkt-hero-text {
    flex: 0 1 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
/* Langes Wort ("Kartuschenabfuellstation") in schmaler Spalte: Silbentrennung
   (html lang="de") und Notumbruch statt abgeschnittenem Titel */
.produkt-hero-text h1 {
    hyphens: auto;
    overflow-wrap: break-word;
}
.produkt-hero-text .text-lead {
    font-size: 1.3125rem;
    line-height: 1.55;
    color: var(--text-grey);
    max-width: 480px;
}
.produkt-hero-bild {
    flex: 1 1 560px;
    min-width: 0;
}
.produkt-hero-bild img {
    width: 100%;
    max-height: 720px;
    object-fit: contain;
    margin-inline: auto;
}

/* Vorteile: nummerierte Kacheln */
.vorteile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}
.vorteile-grid .card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vorteil-nr {
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    color: var(--contrast);
}
.vorteil-titel {
    font-family: 'Inter', sans-serif;
    font-stretch: 100%;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.35;
}
.vorteil-text {
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--text-grey);
}

/* Produktdetails: Text-Bild-Bloecke im Wechsel.
   "rechts" = Bild rechts. wrap-reverse stellt mobil das Bild nach oben. */
.produkt-details {
    display: flex;
    flex-direction: column;
    gap: 88px;
}
.produkt-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
}
.produkt-detail.rechts { flex-wrap: wrap-reverse; }
.produkt-detail-bild {
    flex: 1 1 480px;
    min-width: 0;
}
.produkt-detail-bild img {
    max-height: 640px;
    margin-inline: auto;
    border-radius: 8px;
}
.produkt-detail-text {
    flex: 1 1 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.produkt-detail-text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.produkt-detail-text p,
.produkt-detail-text li {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-grey);
}
.produkt-detail-text ul,
.produkt-detail-text ol { margin-left: 20px; }

/* Karo-Hintergrund auf Navy (CTA-Band) */
.karo-bg {
    background-color: var(--black);
    background-image:
        linear-gradient(rgba(217, 217, 217, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 217, 217, .12) 1px, transparent 1px);
    background-size: 48px 48px;
    color: var(--white);
}
.cta-band {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
    align-items: center;
    justify-content: space-between;
}
.cta-band-text {
    flex: 1 1 520px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cta-band-text h2 { font-size: clamp(1.875rem, 3vw, 2.75rem); }
.cta-band-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--line);
}
.cta-band-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Technische Daten + Downloads */
.daten-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}
.daten-haupt {
    flex: 2 1 620px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.daten-haupt .section-titel { margin-bottom: 0; }
.daten-seite {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tabelle-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
}
.tabelle-scroll {
    overflow-x: auto;
}
.tabelle-box table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    text-align: left;
}
.tabelle-box th,
.tabelle-box td {
    padding: 16px 24px;
    vertical-align: top;
}
/* Zebra: jede zweite Zeile in Kundengrau */
.tabelle-box tbody tr:nth-child(even) { background: var(--line); }
.tabelle-box tbody tr + tr { border-top: 1px solid var(--line); }
/* Eigenschaften: Label leise, Wert fett */
.tabelle-eigenschaften th {
    font-weight: 400;
    color: var(--text-grey);
    width: 34%;
}
.tabelle-eigenschaften td {
    font-weight: 600;
    hyphens: auto;
    overflow-wrap: break-word;
}
/* Varianten: Kopfzeile klein und grau, erste Spalte fett */
.tabelle-varianten thead th {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-grey);
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.tabelle-varianten tbody td:first-child { font-weight: 600; }
/* Die Kopfzeile zaehlt als weisse Zeile 0: erste Datenzeile grau, dann
   im Wechsel - sonst stehen Kopf und erste Zeile beide weiss. */
.tabelle-varianten tbody tr:nth-child(odd)  { background: var(--line); }
.tabelle-varianten tbody tr:nth-child(even) { background: transparent; }
.tabelle-varianten td { white-space: nowrap; }

/* Tabs fuer mehrere Variantentabellen (nur mit JavaScript sichtbar) */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tabs[hidden] { display: none; }
.tab {
    height: 44px;
    padding: 0 18px;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--black);
    font-weight: 600;
    font-size: .9375rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab[aria-selected="true"] {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}
.tabelle-titel {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* Downloads */
.box-weiss {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.box-navy {
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.box-navy p {
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--line);
}
.box-navy .button { align-self: stretch; }
.box-titel {
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.25;
}
.download-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color .2s ease;
}
.download-link:hover { border-color: var(--black); }
.download-link svg { flex-shrink: 0; color: var(--contrast); }
.download-link strong { display: block; font-weight: 600; }
.download-link span { display: block; font-size: .8125rem; color: var(--text-grey); }

.cta-band-section { padding-block: 88px; }
/* Wrapper ohne eigene Box: Kinder sitzen direkt im Grid (Fallback ohne Swiper) */
.inhalt-direkt { display: contents; }

/* Produktkarten (Passende Produkte, Kategorie, Startseite) */
.produkt-karte {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--grey);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}
.produkt-karte:hover {
    box-shadow: 0 2px 8px rgba(10, 25, 47, .04);
    transform: translateY(-2px);
}
.produkt-karte-bild {
    height: 280px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.produkt-karte-bild img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform .3s ease;
}
.produkt-karte:hover .produkt-karte-bild img { transform: scale(1.04); }
.produkt-karte-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 32px 32px;
}
.produkt-karte-text h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.produkt-karte-text p {
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--text-grey);
}
/* Textlink: Orange Deep, Hover Navy */
.link-weiter {
    margin-top: auto;
    padding-top: 10px;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--contrast);
    transition: color .2s ease;
}
.produkt-karte:hover .link-weiter { color: var(--black); }
.slider-steuerung .link-weiter {
    margin-top: 0;
    padding-top: 0;
    justify-self: start;
    font-size: 1rem;
    text-underline-offset: 4px;
}

/* Slider-Steuerung: Pfeile links/rechts, Balken in der Mitte */
.slider-steuerung {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
}
.slider-mitte {
    display: flex;
    align-items: center;
    gap: 28px;
}
.slider-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.slider-btn:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}
.slider-btn.swiper-button-disabled { opacity: .35; cursor: default; }
/* Passen alle Karten auf einmal in die Ansicht, sperrt Swiper die Pfeile -
   dann gar nicht erst anzeigen (.slider-btn setzt display und schlaegt
   sonst die Swiper-Regel). */
.slider-btn.swiper-button-lock { display: none; }
.slider-mitte .swiper-pagination {
    position: static;
    width: auto;
    display: flex;
    align-items: center;
}
.slider-mitte .swiper-pagination-bullet {
    width: 32px;
    height: 44px;
    margin: 0 !important;
    border-radius: 0;
    background: transparent;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.slider-mitte .swiper-pagination-bullet::before {
    content: '';
    display: block;
    width: 16px;
    height: 4px;
    border-radius: 2px;
    background: var(--line);
    transition: width .3s ease, background .3s ease;
}
.slider-mitte .swiper-pagination-bullet-active::before {
    width: 32px;
    background: var(--black);
}

/* Lohnabfuellung-Teaser: weisse Box */
.teaser-box {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px 56px;
}
.teaser-box > div {
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.teaser-box h2 { font-size: clamp(1.625rem, 2.4vw, 2.125rem); letter-spacing: -.01em; }
.teaser-box p { font-size: 1.0625rem; line-height: 1.6; color: var(--text-grey); max-width: 640px; }
.teaser-box .button { flex: 0 0 auto; }

/* Anfrage: Navy-Karte links, Formular rechts */
.anfrage {
    background: var(--black);
    color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}
.anfrage-info {
    flex: 1 1 440px;
    min-width: 0;
    padding: 56px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.anfrage-info h2 { font-size: clamp(1.875rem, 3vw, 2.75rem); }
.anfrage-info p {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--line);
}
.anfrage-person {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--navy-soft);
    border-radius: 8px;
}
.anfrage-person img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}
.anfrage-kontakt {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.anfrage-kontakt a {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--white);
}
.anfrage-kontakt svg { flex-shrink: 0; color: var(--accent); }
.anfrage-formular {
    flex: 1 1 520px;
    min-width: 0;
    background: var(--white);
    color: var(--black);
    padding: 56px;
}


/* ============================================================
   9  HEADER
   Nicht standardmäßig sticky, weil wir nicht bei kleinen / einfachen Seiten brauchen dass der Header standardmäßig mitläuft
============================================================ */
header {
    top: 0;
    z-index: 100;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 15px 5vw;
}
.header-inner {
    max-width: 1600px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
header .logo img {
    max-height: 50px;
    width: auto;
}

/* Grosse Navigation ab 1200px */
#navi-big {
    display: none;
}
#navi-big ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    list-style: none;
}
#navi-big a:hover,
#navi-big .current-menu-item > a {
    color: var(--accent);
}

/* Burger (mobil) */
.burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    margin-right: -10px;
}
.burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--black);
    transition: transform .3s ease, opacity .3s ease;
}

/* Popup-Menue (mobil) */
#navi-small {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: 340px;
    max-width: 85vw;
    background: var(--black);
    color: var(--white);
    z-index: 200;
    transform: translateX(100%);
    transition: transform .35s ease;
    padding: 100px 40px 40px;
    overflow-y: auto;
    visibility: hidden;
}
#navi-small.aktiv {
    transform: translateX(0);
    visibility: visible;
}
#navi-small ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#navi-small a {
    font-size: 1.35rem;
    font-weight: 700;
}
#navi-small a:hover {
    color: var(--accent);
}
#navi-small .close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2.2rem;
    line-height: 1;
    padding: 5px;
}

/* Overlay hinter dem Popup */
.body-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease;
}
.body-overlay.aktiv {
    opacity: 1;
    visibility: visible;
}


/* ============================================================
   10  FOOTER
============================================================ */
footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 5vw 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1600px;
    margin-inline: auto;
}
footer a:hover {
    color: var(--accent);
}
footer ul {
    list-style: none;
}
.footer-bottom {
    max-width: 1600px;
    margin: 50px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    font-size: .9rem;
}


/* ============================================================
   11  EINBLENDEN BEIM SCROLLEN
   Element bekommt class="content transform transform-small".
   Der Observer in script.js setzt .aktiv, sobald es sichtbar wird.
   Namen sind fest: content / aktiv - nicht umbenennen.
============================================================ */
.content {
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease;
}
.transform.transform-small  { transform: translateY(30px); }
.transform.transform-middle { transform: translateY(60px); }
.transform.transform-big    { transform: translateY(120px); }
.transform.transform-tilt   { transform: translateY(40px) rotate(-2deg); }
/* MUSS hinter den transform-Klassen stehen - gleiche Spezifitaet,
   sonst bleibt der Versatz nach dem Einblenden dauerhaft stehen. */
.content.aktiv {
    opacity: 1;
    transform: none;
}

/* Ohne JavaScript bleibt sonst die halbe Seite unsichtbar */
.no-js .content {
    opacity: 1;
    transform: none;
}


/* ============================================================
   12  SWIPER-BASIS
   Slider-spezifisches CSS und die Initialisierung kommen INLINE
   ins jeweilige Slider-Template - jeder Slider hat eigene
   breakpoints, slidesPerView, loop, autoplay.
============================================================ */
.swiper {
    width: 100%;
    overflow: hidden;
}
.swiper-pagination-bullet {
    background: var(--accent);
    opacity: .35;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent);
}


/* ============================================================
   13  RESPONSIVE
============================================================ */
@media (min-width: 1200px) {
    #navi-big { display: block; }
    .burger   { display: none; }
}

@media (max-width: 1100px) {
    .triple-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .anfrage-info,
    .anfrage-formular { padding: 32px 24px; }
    .teaser-box { padding: 32px 24px; }
    .produkt-details { gap: 56px; }
    .slider-steuerung { grid-template-columns: 1fr; justify-items: center; }
    .double-grid,
    .triple-grid,
    .footer-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }
    /* Ohne zwei Spalten braucht auch die Umkehrung nicht mehr zu greifen */
    .double-grid.reverse > *:first-child { order: 0; }
    .section-padding { padding: 64px 24px; }
}

@media (max-width: 400px) {
    .section-padding { padding: 48px 20px; }
}


/* ============================================================
   14  BARRIEREFREIHEIT
============================================================ */
/* Sichtbarer Fokus - nie wegstylen */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Sprunglink zum Inhalt - erst beim Tabben sichtbar */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}
.skip-link:focus {
    left: 5vw;
    top: 10px;
    z-index: 300;
    background: var(--black);
    color: var(--white);
    padding: 12px 20px;
}

/* Nur fuer Screenreader */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
    .content {
        opacity: 1;
        transform: none;
    }
}
