/*
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 */
    --hover-grey: #EDEDED;   /* aktiver Menuepunkt */
    --grey-mid: #A3A3A3;     /* Platzhalter, Hover von Eingabefeldern */
}


/* ============================================================
   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%; }
/* Button im Sektionskopf (Fachblog-Slider "Alle Beitraege"): unten buendig mit der
   Ueberschrift statt oben bei der Eyebrow, in natuerlicher Breite */
.section-head > .button { align-self: flex-end; flex: 0 0 auto; }

/* --- FAQ ----------------------------------------------------
   Design: Startseite Alternative 2. Zwei Spalten (4/12, 8/12), links
   Eyebrow, Headline und Kasten, rechts das Akkordeon mit Zahnrad.
   .faq-question ist ein <button>, kein <div onclick>. */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 80px;
    align-items: start;
}
.faq-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}
.faq-intro h2 { max-width: 400px; }

/* Kasten "Ihre Frage ist nicht dabei?": unten rechts schraeg ausgeschnitten,
   unten bleibt nur der Bereich um den Button */
.faq-box {
    align-self: stretch;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.faq-box-text {
    align-self: stretch;
    background: var(--grey);
    border-radius: 16px 16px 16px 0;
    padding: 28px 28px 20px;
}
.faq-box-text p {
    max-width: 300px;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-grey);
}
.faq-box-fuss {
    position: relative;
    height: 76px;
    padding: 0 16px 28px 28px;
    background: var(--grey);
    border-radius: 0 0 0 16px;
}
.faq-box-ecke {
    position: absolute;
    top: 0;
    left: calc(100% - 1px);
    display: block;
}
.faq-cta {
    height: 48px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    background: var(--white);
    color: var(--black);
    font-weight: 600;
    font-size: .9375rem;
    box-shadow: 0 1px 2px rgba(10, 25, 47, .06);
    transition: background .2s ease, color .2s ease;
}
.faq-cta:hover { background: var(--black); color: var(--white); }

/* Akkordeon */
.faq-liste { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 28px 0;
    text-align: left;
    color: var(--black);
}
.faq-frage {
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 700;
    font-size: 1.3125rem;
    line-height: 1.3;
    transition: color .2s ease;
}
.faq-question:hover .faq-frage { color: var(--contrast); }
.faq-icon {
    flex-shrink: 0;
    fill: var(--black);
    transition: transform .45s cubic-bezier(.22, .7, .2, 1), fill .2s ease;
}
.faq-icon.aktiv {
    fill: var(--accent);
    transform: rotate(60deg);
}
/* 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;
    /* zugeklappt nicht fokussierbar (Links in der Antwort) */
    visibility: hidden;
    transition: max-height .35s ease, visibility 0s .35s;
}
.faq-answer.aktiv {
    max-height: 1500px;
    visibility: visible;
    transition: max-height .35s ease, visibility 0s;
}
.faq-answer-inner {
    padding: 0 64px 32px 0;
    max-width: 784px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-grey);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .35s ease, transform .35s ease;
}
.faq-answer.aktiv .faq-answer-inner {
    opacity: 1;
    transform: none;
}
.faq-answer-inner p { margin-bottom: 1em; }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner ul,
.faq-answer-inner ol { margin: 0 0 1em 1.25em; }
.faq-answer-inner ul { list-style: disc; }
.faq-answer-inner a { color: var(--contrast); text-decoration: underline; text-underline-offset: 3px; }

/* --- 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);
}
/* Zwei Felder nebeneinander (Firma/Name, E-Mail/Telefon), mobil untereinander */
.form-zeile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    column-gap: 20px;
}
.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;
}
/* Datenschutz-Hinweis unter dem Formular (statt Checkbox) */
.form-card .form-hinweis {
    font-size: .875rem;
    line-height: 1.5;
    color: var(--text-grey);
}
/* Pflichtfeld-Markierung und Meldungen */
.form-card .pflicht {
    color: var(--accent);
}
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: .85rem;
    color: #c00;
}
/* CF7-Standard-CSS ist abgeschaltet, deshalb fehlen zwei Regeln, die das
   Plugin sonst mitbringt:
   1. Die Screenreader-Meldung samt Fehlerliste ist nur fuer Screenreader
      gedacht und muss optisch versteckt sein.
   2. Die Statusmeldung unter dem Formular darf nur erscheinen, wenn
      wirklich eine Meldung da ist - nicht schon im Ausgangszustand. */
.wpcf7 .screen-reader-response {
    position: absolute;
    overflow: hidden;
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
}
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output,
.wpcf7-response-output:empty {
    display: none !important;
}
.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; }
/* Zwischenueberschriften im Fliesstext kleiner als die Seitenueberschriften */
.entry-content h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; }
.entry-content h3 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.25; }

/* Beitragskopf (Hero): weiss, mit Linie und Abstand vom Text darunter */
.beitrag-hero {
    padding: 72px 24px 56px;
    border-bottom: 1px solid var(--line);
}
.beitrag-hero h1 { margin-bottom: 24px; }
.beitrag-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-grey);
    max-width: 820px;
}
.beitrag-bereich {
    margin-top: 28px;
    font-size: .9375rem;
    color: var(--text-grey);
}
.beitrag-bereich a { color: var(--contrast); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.beitrag-bereich a:hover { color: var(--black); }
/* Filter der Fachblog-Uebersicht: alle Eintraege orange; die Links normal und unterstrichen,
   der aktive Bereich fett und ohne Unterstreichung */
.beitrag-bereich.filter a { font-weight: 500; }
.beitrag-bereich .aktiv { color: var(--contrast); font-weight: 700; }
.beitrag-section { padding: 64px 24px 112px; }
.beitrag-hero + .section-padding { padding-top: 64px; }
.beitrag-bild { margin-bottom: 40px; }
.beitrag-bild img { width: 100%; height: auto; border-radius: 8px; }
.beitrag-section .entry-content > h2:first-child { margin-top: 0; }
.entry-content ul,
.entry-content ol { margin: 0 0 20px 20px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { margin: 30px 0; max-width: 100%; height: auto; border-radius: 8px; }
.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;
}

/* Videos: Karten wie die Produktkarten, 16:9-Platzhalterbild randlos. Das Bild ist immer
   dasselbe (Mediathek-ID 390), der Link oeffnet YouTube im neuen Tab. */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.video-karte .produkt-karte-bild {
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 0;
    background: var(--black);
}
.video-karte .produkt-karte-bild img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    mix-blend-mode: normal;
}
.video-karte .produkt-karte-text { padding-top: 24px; }
/* Videotitel sind oft lang ("Kartuschenabfuellstation Typ C - sichere & saubere ..."):
   kleiner als die Produktnamen, mit Silbentrennung und Notumbruch, damit nichts ueber den Kartenrand laeuft */
.video-karte .produkt-karte-text h3 {
    font-size: 1.0625rem;
    line-height: 1.3;
    hyphens: auto;
    overflow-wrap: break-word;
}

/* Beitragskarten: gleiche Optik wie die Produktkarten (.produkt-karte); Raster = .produkt-grid.
   Das Beitragsbild fuellt die Flaeche randlos (3:2), ohne Bild steht das Logo auf Hellgrau. */
.beitrag-karte .produkt-karte-bild {
    height: auto;
    aspect-ratio: 3 / 2;
    padding: 0;
    background: var(--grey);
}
.beitrag-karte .produkt-karte-bild img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    mix-blend-mode: normal;
}
.beitrag-karte .produkt-karte-bild img.karte-logo {
    width: 45%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: .5;
}
.beitrag-karte .produkt-karte-text { padding-top: 24px; }

/* Pagination: Zahlen als Textlinks, die aktuelle Seite in Navy */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 56px;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--white);
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}
.pagination a.page-numbers:hover { background: var(--black); color: var(--white); }
.pagination .page-numbers.current { background: var(--black); color: var(--white); }


/* --- Kategorieseite -----------------------------------------
   Hero zentriert, Highlight-Slider mit grossem Mittelprodukt, Raster. */

.kategorie-hero-section { padding-block: 120px 24px; }
.kategorie-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}
.kategorie-hero h1 {
    font-size: clamp(2.75rem, 6vw, 5.5rem);
    line-height: 1.02;
    max-width: 1000px;
}
.kategorie-hero-text {
    max-width: 640px;
    font-size: 1.3125rem;
    line-height: 1.55;
    color: var(--text-grey);
}

/* Text zum Produktbereich unter der Produktliste: gleicher grauer Grund,
   nur eine feine Linie als Trennung */
.kategorie-text-section { padding-top: 0; }
.kategorie-text {
    padding-top: 64px;
    border-top: 1px solid var(--line);
}
.kategorie-text h2 {
    max-width: 800px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin-bottom: 24px;
}
.kategorie-text-inhalt { max-width: 800px; }
.kategorie-text-inhalt h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
}
.kategorie-text-inhalt p {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-grey);
    margin-bottom: 1em;
}
.kategorie-text-inhalt p:last-child { margin-bottom: 0; }
.kategorie-text-inhalt strong { color: var(--black); }
.kategorie-text-inhalt ul { margin: 0 0 1em 1.25em; list-style: disc; color: var(--text-grey); }

.highlight-section {
    padding: 56px 24px 128px;
    overflow: hidden;
}
.highlight-slider { height: 660px; }
.highlight-slide {
    width: 440px;
    max-width: 80vw;
    height: 640px;
    transform-origin: 50% 0;
    transition: transform .45s cubic-bezier(.22, .7, .2, 1), opacity .45s ease;
}
/* Alle Slides ausserhalb von Mitte und Nachbarn liegen unten, kleiner und
   unsichtbar (Slot "2" im Entwurf). So blendet ein Produkt, das den Rand
   verlaesst, nach UNTEN aus und taucht auch von unten wieder auf.
   Der Selektor ist bewusst mit .highlight-slider verdoppelt: Swiper setzt
   ".swiper-backface-hidden .swiper-slide { transform: translateZ(0) }", das
   sonst eine einfache Klasse uebertrumpft und die Slides oben stehen laesst. */
.highlight-slider .highlight-slide {
    opacity: 0;
    transform: translateY(470px) scale(.42);
}
.highlight-slider .highlight-slide.swiper-slide-active {
    opacity: 1;
    transform: none;
}
/* Nachbarn: kleiner und tiefer, 0,54 wie im Entwurf */
.highlight-slider .highlight-slide.swiper-slide-prev,
.highlight-slider .highlight-slide.swiper-slide-next {
    opacity: .9;
    transform: translateY(290px) scale(.54);
}
.highlight-link {
    display: block;
    position: relative;
    height: 100%;
}
.highlight-bild {
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .45s cubic-bezier(.22, .7, .2, 1);
}
.swiper-slide-active .highlight-bild { transform: translateY(-10px); }
.swiper-slide-active .highlight-link:hover .highlight-bild { transform: translateY(-18px) scale(1.03); }
.highlight-bild img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.bild-platzhalter {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--grey);
    border-radius: 12px;
}
/* Titel nur beim mittleren Produkt, zweizeilig ueber <br> im Titel */
.highlight-titel {
    position: absolute;
    left: 50%;
    top: 541px;
    width: 600px;
    max-width: 90vw;
    margin-left: -300px;
    text-align: center;
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    text-wrap: balance;
    opacity: 0;
    transition: opacity .45s ease;
}
.swiper-slide-active .highlight-titel { opacity: 1; }
.slider-zentriert {
    display: flex;
    justify-content: center;
    padding-top: 32px;
}
/* Ohne Swiper: einfache Karten nebeneinander */
.highlight-statisch-inhalt {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
}
.highlight-statisch .highlight-slide { opacity: 1; height: auto; }
.highlight-statisch .highlight-titel {
    position: static;
    display: block;
    width: auto;
    max-width: none;
    margin: 16px 0 0;
    text-align: center;
    opacity: 1;
}
.highlight-statisch .highlight-bild { height: 440px; width: 440px; max-width: 80vw; }

/* Produktliste: Raster aus Produktkarten, auf Hellgrau mit weissen Karten */
.produkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.grey-bg .produkt-karte { background: var(--white); }
.produkt-gruppe + .produkt-gruppe { margin-top: 72px; }
.produkt-gruppe-titel { margin-bottom: 24px; }
.produkt-gruppe-titel a:hover { color: var(--contrast); }
.produkt-anzahl { font-variant-numeric: tabular-nums; }

/* Suchseite */
.suche-anzahl {
    margin-bottom: 32px;
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.suche-leer {
    max-width: 640px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
}
/* Seitenkarte ohne Bild (Suche): oberer Abstand. Doppelte Klasse, weil .produkt-karte-text weiter unten
   per Kurzschreibweise padding-top auf 0 setzt und eine einfache Klasse hier verlieren wuerde. */
.produkt-karte-text.seiten-karte { padding-top: 32px; }

/* --- 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;
    /* Langes Wort ("Materialverschwendung") in schmaler Karte: trennen statt ueber den Rand laufen */
    hyphens: auto;
    overflow-wrap: break-word;
}
.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 {
    /* natuerliches Seitenverhaeltnis, nichts wird beschnitten */
    width: auto;
    max-width: 100%;
    height: auto;
    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;
}
.daten-varianten {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.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;
    /* Produktfotos stehen auf reinem Weiss: multiply laesst das Weiss auf
       dem Grau der Karte verschwinden, das Produkt steht frei */
    mix-blend-mode: multiply;
    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;
}
/* Auf Weiss bekommt die Box eine graue Flaeche (auf Hellgrau ist sie weiss) */
.white-bg .teaser-box { background: var(--grey); }
.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); }
/* Eyebrow auf Navy: Orange Deep (3,3:1) ist zu dunkel, Akzent-Orange hat 6,2:1 */
.anfrage-info .eyebrow { color: var(--accent); }
.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;
}
/* Funktion auf Navy: .text-grey (#525252) ist hier unlesbar */
.anfrage-person .text-grey { color: var(--line); }
.anfrage-person img {
    /* Das runde PNG hat weisse Ecken (nicht transparent): clip-path schneidet den Randsaum ab.
       125 px Box minus 4 % Beschnitt = ca. 120 px sichtbarer Kreis; -2,5 px Rand haelt den Platzbedarf bei 120 px. */
    width: 125px;
    height: 125px;
    margin: -2.5px;
    flex: none;
    object-fit: cover;
    clip-path: circle(48%);
}
.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(--grey);
    color: var(--black);
    padding: 56px;
}
/* Wie beim Teaser: auf Weiss ist die Formularflaeche grau, auf Hellgrau weiss */
.grey-bg .anfrage-formular { background: var(--white); }


/* ============================================================
   9  HEADER
   Subheader (Telefon, Mail), darunter Logo, Mega-Menue, Suche, Button.
   Mobil (unter 900 px): nur Logo und Burger, alles andere im Popup.
   Nicht sticky: <main> braucht dadurch keinen Offset.
============================================================ */
header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid rgba(217, 217, 217, .7);
}
.header-inner {
    max-width: 1280px;
    margin-inline: auto;
    padding: 4px 24px 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}
header .logo { display: block; line-height: 0; }
header .logo img {
    max-height: 72px;
    width: auto;
}

/* Nur ab 900 px sichtbar */
.subheader,
.header-suche,
.header-cta,
#navi-big {
    display: none;
}

.subheader-inner {
    max-width: 1280px;
    margin-inline: auto;
    padding: 0 24px;
    height: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 28px;
    font-size: .875rem;
    font-weight: 500;
}
.subheader-inner a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;   /* Klickflaeche mindestens 24 x 24 px */
    transition: color .2s ease;
}
.subheader-inner svg { color: var(--contrast); }
.subheader-inner a:hover {
    color: var(--contrast);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#navi-big ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 14px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s ease;
}
.mega-trigger:hover,
.mega-trigger.aktiv { background: var(--hover-grey); }
.mega-trigger .pfeil { transition: transform .2s ease; }
.mega-trigger.aktiv .pfeil { transform: rotate(180deg); }

.header-suche {
    position: relative;
    flex: 0 1 280px;
    min-width: 180px;
    align-items: center;
}
.header-suche svg {
    position: absolute;
    left: 14px;
    color: var(--text-grey);
    pointer-events: none;
}
.header-suche input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 42px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--grey);
    font: inherit;
    font-size: .9375rem;
    color: var(--black);
    transition: border-color .2s ease, background .2s ease;
}
.header-suche input::placeholder { color: #737373; }
.header-suche input:hover { border-color: var(--grey-mid); }
.header-suche input:focus {
    outline: none;
    border-color: var(--black);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, .25);
}
.header-cta { align-self: center; padding: 0 22px; font-size: .9375rem; white-space: nowrap; }

/* Burger (mobil) */
.burger {
    margin-left: auto;
    width: 48px;
    height: 48px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    transition: transform .3s ease, opacity .3s ease;
}

/* Mega-Menue und Service-Dropdown: Panel unter dem Header */
.mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(10, 25, 47, .12);
}
.mega-inner {
    max-width: 1280px;
    margin-inline: auto;
    padding: 36px 24px 28px;
}
.mega-spalten {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 32px;
    align-items: start;
}
.mega-spalten-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-spalte ul { list-style: none; }
.mega-kopf {
    display: flex;
    align-items: flex-end;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.3;
    transition: color .2s ease;
}
.mega-kopf:hover { color: var(--contrast); }
.mega-unterkopf {
    display: block;
    padding-top: 12px;
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1.45;
    transition: color .2s ease;
}
.mega-unterkopf:hover { color: var(--contrast); }
.mega-link {
    display: block;
    padding: 5px 0;
    font-size: .9375rem;
    line-height: 1.45;
    color: var(--text-grey);
}
.mega-link:hover {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* Aufklappbare Gruppen ab der dritten Ebene (z. B. Hersteller unter 2K-Kartuschen):
   die ganze Zeile ist der Schalter, kein Link */
.mega-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 5px 0;
    text-align: left;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-grey);
    transition: color .2s ease;
}
.mega-toggle:hover,
.mega-toggle[aria-expanded="true"] { color: var(--black); }
.mega-toggle .pfeil { flex: none; transition: transform .2s ease; }
.mega-toggle[aria-expanded="true"] .pfeil { transform: rotate(180deg); }
.mega-gruppe-inhalt {
    margin: 2px 0 6px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
}
.mega-gruppe-inhalt .mega-gruppe-inhalt { margin-left: 4px; }
.mega-text {
    font-size: .9375rem;
    line-height: 1.55;
    color: var(--text-grey);
}
.mega-fuss {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.link-weiter-pfeil {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--contrast);
    transition: color .2s ease;
}
.mega-fuss .link-weiter-pfeil:hover { color: var(--black); }

.mega-service-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 28px 40px;
    align-items: start;
}
.mega-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-radius: 8px;
    background: var(--black);
    color: var(--white);
}
.mega-box-titel {
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 700;
    font-size: 1.375rem;
    line-height: 1.2;
}
.mega-box .link-weiter-pfeil { color: var(--accent); }

/* 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 > nav > ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#navi-small summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 700;
    font-size: 1.35rem;
}
#navi-small summary::-webkit-details-marker { display: none; }
#navi-small summary::after {
    content: '+';
    font-size: 1.6rem;
    line-height: 1;
    color: var(--accent);
}
#navi-small details[open] summary::after { content: '–'; }
#navi-small .navi-unter {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0 4px 4px;
}
#navi-small .navi-unter a {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--line);
}
#navi-small .navi-direkt {
    display: block;
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 700;
    font-size: 1.35rem;
}
#navi-small a:hover { color: var(--accent); }
#navi-small .button:hover { color: var(--black); }
#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
   Navy. Spalten: Logo mit Adresse, Produkte, Service, Kontakt.
============================================================ */
footer {
    background: var(--black);
    color: var(--line);
    padding: 80px 24px 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1280px;
    margin-inline: auto;
}
.footer-logo {
    align-self: flex-start;
    max-height: 96px;
    width: auto;
}
.footer-titel {
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 600;
    font-size: .8125rem;
    line-height: 1.3;
    letter-spacing: .12em;
    color: var(--white);
}
.footer-kontakt a { color: var(--white); }
footer a:hover { color: var(--accent); }
footer .button:hover { color: var(--black); }
footer ul { list-style: none; }
.footer-bottom {
    max-width: 1280px;
    margin: 56px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--navy-soft);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 32px;
    font-size: .8125rem;
}
.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 32px;
}
.footer-rechtlich {
    display: flex;
    gap: 24px;
}
.footer-haudegen {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: .875rem;
}
.footer-haudegen img {
    height: 50px;
    width: auto;
}


/* ============================================================
   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);
}


/* ============================================================
   STARTSEITE (Handoff 05.11.2026): Hero, Warum, Produktbereiche, Ablauf
============================================================ */

/* Platzhalter, solange ein Bild fehlt (Hero, Teambild) */
.start-platzhalter {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    text-align: center;
    font-size: .875rem;
    line-height: 1.5;
}
.start-platzhalter strong { font-size: .9375rem; }

/* --- Hero --- */
.hero-section { padding-top: 96px; padding-bottom: 112px; overflow: hidden; }
.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: center;
}
.hero-text {
    flex: 1.3 1 520px;   /* waechst staerker als das Bild: Textblock etwas breiter als der Bildbereich */
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.hero-text h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1.04; letter-spacing: -.02em; }
.hero-text .text-lead { font-size: 1.25rem; color: var(--line); max-width: 560px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 4px; }
.hero-bild {
    flex: 1 1 480px;
    min-width: 0;
    position: relative;
    padding: 24px;
}
.hero-bild img,
.hero-bild .start-platzhalter {
    display: block;
    width: 100%;
    height: 520px;
    border-radius: 8px;
    object-fit: contain;
}
.hero-bild .start-platzhalter {
    background: var(--navy-soft);
    border: 1.5px dashed var(--text-grey);
    color: var(--line);
}
.hero-bild .start-platzhalter strong { color: var(--white); }
/* vier orange Eckwinkel als Rahmen */
.ecke { position: absolute; width: 28px; height: 28px; border: 0 solid var(--accent); pointer-events: none; }
.ecke-ol { top: 0;    left: 0;  border-top-width: 2px;    border-left-width: 2px; }
.ecke-or { top: 0;    right: 0; border-top-width: 2px;    border-right-width: 2px; }
.ecke-ul { bottom: 0; left: 0;  border-bottom-width: 2px; border-left-width: 2px; }
.ecke-ur { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* Hero (Startseite): das Bild schwebt langsam auf und ab, der Rahmen (Eckwinkel) bleibt still.
   Nur ohne "weniger Bewegung" im System des Besuchers. */
@media (prefers-reduced-motion: no-preference) {
    .hero-bild img,
    .hero-bild .start-platzhalter {
        animation: hero-schweben 6s ease-in-out infinite;
    }
}
@keyframes hero-schweben {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* --- Warum Bales: Bild randabfallend links, Inhalt rechts --- */
.warum-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
}
.warum-bild {
    position: relative;
    min-height: 760px;
    background: var(--line);
    color: var(--text-grey);
}
.warum-bild > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.warum-bild .start-platzhalter { position: absolute; inset: 0; }
.warum-bild .start-platzhalter strong { color: var(--black); }
.warum-bildtext {
    position: absolute;
    left: 0;
    bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 24px 16px max(24px, calc(50vw - 616px));
    background: var(--black);
    color: var(--white);
    border-radius: 0 8px 8px 0;
}
.warum-bildtext strong {
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-size: 1.0625rem;
}
.warum-bildtext span { font-size: .875rem; color: var(--line); }
.warum-inhalt {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 112px max(24px, calc(50vw - 616px)) 112px 64px;
}
.warum-text { font-size: 1.125rem; line-height: 1.65; color: var(--text-grey); }
.warum-kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding-top: 8px;
}
.warum-kachel {
    background: var(--grey);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.warum-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: var(--black);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.warum-kachel h3 { font-size: 1.25rem; font-weight: 700; }
.warum-kachel p { font-size: .9375rem; line-height: 1.6; color: var(--text-grey); }

/* --- Produktbereiche: vier weisse Karten mit Rahmen --- */
.bereiche { display: flex; flex-direction: column; gap: 56px; }
.bereiche-kopf {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
}
.bereiche-kopf > div { max-width: 720px; }
.bereiche-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.produkt-karte.bereich {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.produkt-karte.bereich .produkt-karte-bild { height: 240px; padding: 24px; }
.produkt-karte.bereich .produkt-karte-bild img { mix-blend-mode: normal; }
.produkt-karte.bereich .produkt-karte-text { padding: 28px; }
.produkt-karte.bereich .produkt-karte-text h3 { font-size: 1.5rem; }
@media (min-width: 1200px) {
    .bereiche-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .bereiche-grid { grid-template-columns: 1fr; }
}

/* --- Zusammenarbeit: vier Schritte --- */
.ablauf { display: flex; flex-direction: column; gap: 56px; }
.ablauf-kopf { max-width: 760px; }
.ablauf-schritte {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    border-top: 2px solid var(--line);
}
.ablauf-schritt {
    padding: 32px 28px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ablauf-schritt.letzter { padding-right: 0; }
.ablauf-nummer {
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--line);
}
.ablauf-schritt.letzter .ablauf-nummer { color: var(--accent); }
.ablauf-schritt h3 { font-size: 1.3125rem; font-weight: 700; }
.ablauf-schritt p { font-size: .9375rem; line-height: 1.6; color: var(--line); }

/* Karo-Raster fest im Viewport: der Inhalt scrollt darueber.
   Nur die Startseite (Hero, Ablauf). iOS Safari ignoriert "fixed" und
   scrollt das Raster dort normal mit - das ist so gewollt als Rueckfall. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .karo-fix { background-attachment: fixed; }
}

/* Adresse in der Kontaktkarte (kein Link) */
.anfrage-kontakt span {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-section { padding-top: 56px; padding-bottom: 64px; }
    .hero-bild img,
    .hero-bild .start-platzhalter { height: 360px; }
    .warum-bild { min-height: 420px; }
    .warum-inhalt { padding: 64px 24px; }
    .warum-bildtext { padding-left: 24px; }
}


/* ============================================================
   LOHNABFUELLUNG (Handoff 06.11.2026): Seitenkopf,
   Nummernliste, Text-Duo, Leistungskarten, Bild-Liste
============================================================ */

/* Zwei-Spalten-Raster dieser Seite */
.spalten { display: grid; gap: 80px; }
.spalten-4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
.spalten-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }

/* Lange Woerter in Ueberschriften trennen statt ueber den Rand laufen */
.spalten h2,
.leistungen h2,
.leistung-text h3,
.nummernliste-item h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Textlink im Fliesstext */
.textlink { color: var(--contrast); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.textlink:hover { color: var(--black); }

/* --- Seitenkopf kompakt --- */
.seitenkopf-section { padding: 72px 24px 96px; }
.seitenkopf {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px 64px;
}
.seitenkopf-text { display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
/* .button hat align-self: flex-start und uebersteuert das align-items des Rasters.
   Hier unten ausrichten und mittig auf die Unterzeile setzen:
   Unterzeile 22 px x 1,5 = 33 px, Button 56 px -> (33 - 56) / 2 = -11.5 px */
.seitenkopf > .button { align-self: flex-end; margin-bottom: -11px; }
.seitenkopf-text h1 { font-size: clamp(2.5rem, 4.4vw, 3.75rem); line-height: 1.06; letter-spacing: -.02em; }
.seitenkopf-text p { font-size: 1.375rem; line-height: 1.5; color: var(--text-grey); }

/* --- Nummerierte Liste --- */
/* Linke Spalte scrollt wie der Rest der Seite mit (nicht sticky) */
.nummernliste-intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.nummernliste-intro h2 { font-size: clamp(1.875rem, 3vw, 2.75rem); }
.nummernliste-intro p { font-size: 1.0625rem; line-height: 1.65; }
.nummernliste-absatz-1 { color: var(--black); }
.nummernliste-absatz-2 { color: var(--text-grey); }
.nummernliste { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.nummernliste-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}
.nummernliste.ohne-nummern .nummernliste-item { grid-template-columns: minmax(0, 1fr); }
.nummernliste-nummer {
    font-family: 'Archivo', sans-serif;
    font-stretch: 112%;
    font-weight: 700;
    font-size: 1.3125rem;
    line-height: 1.3;
    color: var(--contrast);
    font-variant-numeric: tabular-nums;
}
.nummernliste-item h3 { font-size: 1.3125rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.nummernliste-item p { font-size: 1rem; line-height: 1.7; color: var(--text-grey); max-width: 720px; }
.nummernliste-item p + p,
.nummernliste-item p + ul { margin-top: 12px; }
.nummernliste-item ul { margin: 0 0 0 20px; font-size: 1rem; line-height: 1.7; color: var(--text-grey); max-width: 720px; }
.nummernliste-item li { margin-bottom: 6px; }

/* --- Text-Duo (Warum) --- */
.text-duo-rechts { display: flex; flex-direction: column; gap: 20px; padding-top: 40px; }
.text-duo-lead { font-size: 1.25rem; line-height: 1.6; color: var(--black); }
.text-duo-text { font-size: 1.0625rem; line-height: 1.65; color: var(--text-grey); }

/* --- Leistungskarten --- */
.leistungen { display: flex; flex-direction: column; gap: 48px; }
.leistungen-kopf { max-width: 760px; }
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}
.leistung-karte {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: box-shadow .25s ease;
}
.leistung-karte:hover { box-shadow: 0 4px 16px rgba(10, 25, 47, .08); }
.leistung-bild {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.leistung-bild.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leistung-bild.cover img { object-position: 50% 45%; }
/* Freisteller und Bilder auf reinem Weiss: multiply blendet das Weiss auf dem Grau der Flaeche aus (wie bei den Produktkarten) */
.leistung-bild.contain { background: var(--grey); padding: 12px; }
.leistung-bild.contain img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; mix-blend-mode: multiply; }
.leistung-bild .start-platzhalter { background: var(--grey); color: var(--text-grey); }
.leistung-text { display: flex; flex-direction: column; gap: 14px; padding: 0 8px 8px; flex: 1; }
.leistung-text h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.leistung-text p { font-size: 1rem; line-height: 1.65; color: var(--text-grey); flex: 1; }   /* flex:1 setzt alle Buttons auf eine Linie */

/* --- Bild + Liste (Eigenabfuellung) --- */
.bild-liste { align-items: center; }
.bild-liste-bild { height: 640px; border-radius: 8px; overflow: hidden; background: var(--grey); }
.bild-liste-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bild-liste-bild .start-platzhalter { color: var(--text-grey); }
.bild-liste-text { display: flex; flex-direction: column; gap: 24px; }
.bild-liste-text h2 { font-size: clamp(1.875rem, 3vw, 2.75rem); }
.bild-liste-text p { font-size: 1.0625rem; line-height: 1.65; }
/* Zahnrad als Aufzaehlungszeichen: nur hier (Abweichung vom Styleguide, gewollt) */
.liste-zahnrad { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.liste-zahnrad li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.55; }
.liste-zahnrad li::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 4px;
    background: var(--contrast);
    -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;
}

@media (max-width: 1100px) {
    .leistungen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    /* minmax(0, 1fr) statt 1fr: sonst weitet ein langes Wort (Kartuschenbefuellstationen) die Spalte ueber den Rand */
    .spalten { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .text-duo-rechts { padding-top: 0; }
    .seitenkopf-section { padding: 32px 24px 64px; }
    .seitenkopf > .button { margin-bottom: 0; }
    .bild-liste-bild { height: 420px; }
}
@media (max-width: 640px) {
    .leistungen-grid { grid-template-columns: 1fr; }
    .nummernliste-item { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
}


/* ============================================================
   13  RESPONSIVE
============================================================ */
@media (min-width: 900px) {
    .subheader { display: block; }
    #navi-big { display: block; margin: 0 auto 0 24px; }
    .header-suche { display: flex; }
    .header-cta { display: inline-flex; }
    .burger { display: none; }
}

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

@media (max-width: 900px) {
    .faq-layout { grid-template-columns: 1fr; gap: 48px; }
    .faq-answer-inner { padding-right: 0; }
    .faq-frage { font-size: 1.125rem; }
    .kategorie-hero-section { padding-top: 72px; }
    .highlight-section { padding-bottom: 72px; }
    .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 {
        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;
    }
}


/* ============================================================
   15  MOBILE-OPTIMIERUNG
   Nur Anpassungen unterhalb von 768 px (Telefon, Hochformat).
   Alles steht in max-width-Abfragen: Desktop und Tablet quer
   bleiben unveraendert. Pruefbreiten: 320, 360, 390, 430, 768.
============================================================ */
@media (max-width: 767px) {

    /* --- Schrift: Silbentrennung statt Ueberlauf, kleinere Ueberschriften --- */
    h1, h2, h3, h4 {
        hyphens: auto;
        overflow-wrap: break-word;
    }
    h1 { font-size: clamp(1.875rem, 8.4vw, 2.25rem); }
    h2 { font-size: clamp(1.625rem, 7vw, 2rem); }
    h3 { font-size: clamp(1.25rem, 5.4vw, 1.5rem); }
    .hero-text h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
    .seitenkopf-text h1 { font-size: clamp(1.875rem, 8.4vw, 2.5rem); }
    .kategorie-hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
    .cta-band-text h2,
    .anfrage-info h2,
    .nummernliste-intro h2,
    .bild-liste-text h2 { font-size: clamp(1.625rem, 7vw, 1.875rem); }
    .teaser-box h2 { font-size: clamp(1.5rem, 6.4vw, 1.625rem); }
    .produkt-detail-text h3 { font-size: clamp(1.375rem, 6vw, 1.5rem); }

    /* Einleitungstexte etwas kleiner, Zeilenlaenge bleibt gut lesbar */
    .kategorie-hero-text,
    .produkt-hero-text .text-lead,
    .beitrag-lead { font-size: 1.125rem; line-height: 1.55; }
    .produkt-detail-text p,
    .produkt-detail-text li,
    .kategorie-text-inhalt p { font-size: 1rem; }

    /* --- Abstaende --- */
    .kategorie-hero-section { padding-top: 48px; }
    .produkt-hero-section { padding-top: 40px; }
    .produkt-hero { gap: 32px; }
    .produkt-details { gap: 48px; }
    .produkt-detail { gap: 28px; }
    .beitrag-hero { padding: 40px 20px 36px; }
    .beitrag-section { padding: 40px 20px 72px; }
    .beitrag-hero + .section-padding { padding-top: 40px; }
    .kategorie-text { padding-top: 40px; }
    .produkt-gruppe + .produkt-gruppe { margin-top: 48px; }
    .highlight-section { padding: 32px 0 56px; }

    /* --- Buttons: volle Breite, gut tippbar (44 px und mehr) --- */
    .seitenkopf > .button,
    .produkt-hero-text .button,
    .anfrage-formular .button,
    .teaser-box .button { align-self: stretch; }
    .button { min-height: 48px; }
    .cta-band-buttons .button { flex: 1 1 100%; }

    /* --- Raster: Spalten nie breiter als der Bildschirm --- */
    .produkt-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
    .vorteile-grid { grid-template-columns: minmax(0, 1fr); }
    .ablauf-schritte { grid-template-columns: minmax(0, 1fr); }
    .ablauf { gap: 40px; }
    .ablauf-schritt { padding: 24px 0 8px; }
    .ablauf-nummer { font-size: 2.5rem; }

    /* --- Bilder --- */
    .produkt-hero-bild img { max-height: 380px; }
    .produkt-detail-bild img { max-height: 340px; }
    .bild-liste-bild { height: 300px; }
    .beitrag-bild { margin-bottom: 28px; }
    .entry-content img { margin: 20px 0; }

    /* --- Tabellen --- */
    .tabelle-box th,
    .tabelle-box td { padding: 12px 14px; }
    .tabelle-varianten thead th { padding: 12px 14px; }
    .tabelle-box table { font-size: .9375rem; }
    /* Eigenschaften: Label ueber Wert, kein Quetschen in zwei Spalten */
    .tabelle-eigenschaften,
    .tabelle-eigenschaften tbody,
    .tabelle-eigenschaften tr,
    .tabelle-eigenschaften th,
    .tabelle-eigenschaften td { display: block; width: 100%; }
    .tabelle-eigenschaften th { padding-bottom: 0; font-size: .875rem; }
    .tabelle-eigenschaften td { padding-top: 2px; }
    /* Varianten: seitlich scrollen, erste Spalte bleibt stehen */
    .tabelle-varianten tbody td:first-child,
    .tabelle-varianten thead th:first-child {
        position: sticky;
        left: 0;
        background: inherit;
        box-shadow: 1px 0 0 var(--line);
    }
    .tabelle-varianten tbody tr:nth-child(odd) td:first-child { background: var(--line); }
    .tabelle-varianten tbody tr:nth-child(even) td:first-child,
    .tabelle-varianten thead th:first-child { background: var(--white); }
    .tabelle-box { -webkit-overflow-scrolling: touch; }
    .tabs { gap: 6px; }
    .tab { height: 44px; padding: 0 14px; }

    /* Tabellen in Fachbeitraegen: scrollen statt die Seite zu weiten */
    .entry-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: .9375rem;
    }
    .entry-content th,
    .entry-content td { padding: 8px 12px; min-width: 96px; }

    /* --- Karten, Boxen --- */
    .box-weiss,
    .box-navy { padding: 20px; }
    .card { padding: 20px; }

    /* --- Tippflaechen (mindestens 44 px hoch) --- */
    .link-weiter { display: inline-flex; align-items: center; min-height: 44px; }
    .beitrag-bereich a { display: inline-block; padding-block: 8px; }
    .footer-grid a,
    .footer-bottom a { display: inline-block; padding-block: 8px; }
    .faq-frage { min-height: 48px; }

    /* --- Footer --- */
    .footer-grid { gap: 32px; }
    .footer-bottom {
        margin-top: 40px;
        flex-direction: column;
        align-items: flex-start;
        font-size: .875rem;
    }
    .footer-bottom-links,
    .footer-rechtlich { flex-wrap: wrap; gap: 4px 20px; }

    /* --- Formulare: 16 px verhindert den Zoom auf iOS beim Antippen --- */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    input[type="url"],
    select,
    textarea { font-size: 16px; }
}

/* Sehr schmale Geraete (320 bis 374 px, z. B. iPhone SE 1, kleine Android) */
@media (max-width: 374px) {
    h1 { font-size: 1.75rem; }
    .hero-text h1,
    .seitenkopf-text h1,
    .kategorie-hero h1 { font-size: 1.875rem; }
    h2,
    .cta-band-text h2,
    .anfrage-info h2,
    .nummernliste-intro h2,
    .bild-liste-text h2 { font-size: 1.5rem; }
    .section-padding { padding: 40px 16px; }
    .anfrage-info,
    .anfrage-formular,
    .teaser-box { padding: 24px 16px; }
    .button { padding: 0 16px; }
}


/* --- Mobile, Teil 2: Bedienung und Fuehrung (nur unter 768 px) --- */
@media (max-width: 767px) {

    /* Hero: beide Buttons gleich breit untereinander, daumenfreundlich */
    .hero-buttons { flex-direction: column; gap: 12px; }
    .hero-buttons .button { align-self: stretch; width: 100%; }

    /* Karten kompakter: kuerzere Seite, weniger Leerraum */
    .produkt-karte-bild { height: 200px; padding: 20px; }
    .produkt-karte.bereich .produkt-karte-bild { height: 200px; padding: 20px; }
    .produkt-karte-text { padding: 0 20px 20px; }
    .produkt-karte.bereich .produkt-karte-text { padding: 20px; }
    .produkt-karte-text.seiten-karte { padding-top: 24px; }
    .produkt-karte-text h3,
    .produkt-karte.bereich .produkt-karte-text h3 { font-size: 1.25rem; }

    /* Kontakt in Karte und Footer: Telefon und E-Mail gut antippbar */
    .anfrage-kontakt a,
    .anfrage-kontakt span,
    .footer-kontakt a { display: flex; align-items: center; min-height: 44px; }
    .footer-grid li a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
    .footer-rechtlich a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
    .produkt-gruppe-titel a { display: inline-block; padding-block: 8px; }

    /* Varianten-Tabelle: erste Spalte schmal und umbrechend, damit die naechste Spalte
       im Bild bleibt (zeigt: hier kann man seitlich wischen). Tabs untereinander. */
    .tabelle-varianten tbody td:first-child,
    .tabelle-varianten thead th:first-child {
        white-space: normal;
        min-width: 128px;
        max-width: 148px;
    }
    .tabs .tab { flex: 1 1 100%; text-align: left; height: auto; min-height: 44px; padding: 10px 14px; }

    /* Seitenkopf-Unterzeile kleiner; Formular: 16 px gegen iOS-Zoom, Senden-Button volle Breite */
    .seitenkopf-text p { font-size: 1.125rem; line-height: 1.5; }
    .form-card input[type="text"],
    .form-card input[type="email"],
    .form-card input[type="tel"],
    .form-card textarea,
    .form-card select { font-size: 16px; height: 52px; }
    .form-card textarea { height: auto; min-height: 140px; }
    .form-card input[type="submit"] { display: block; width: 100%; }
    .form-card .wpcf7-acceptance input[type="checkbox"] { width: 24px; height: 24px; }

    /* Highlight-Slider: kleiner, Titel mittig unter dem Bild (Desktop-Werte sind auf 440 px Breite ausgelegt) */
    .highlight-slider { height: 450px; }
    .highlight-slide { height: 430px; }
    .highlight-bild { height: 320px; }
    .highlight-titel {
        top: 340px;
        left: 0;
        margin-left: 0;
        width: 100%;
        max-width: none;
        font-size: 1.375rem;
    }
    .highlight-statisch-inhalt { gap: 32px; }
    .highlight-statisch .highlight-bild { height: 300px; width: 100%; max-width: 100%; }

    /* Fachblog-Filter: eine Zeile, seitlich wischbar statt vier Zeilen mit grossen Luecken */
    .beitrag-bereich.filter {
        white-space: nowrap;
        overflow-x: auto;
        margin-right: -20px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .beitrag-bereich.filter::-webkit-scrollbar { display: none; }
    .beitrag-bereich.filter a { padding-block: 12px; }
}


/* --- Mobile, Teil 3: Menue-Popup mit grossen Tippflaechen (Burger erscheint unter 900 px) --- */
@media (max-width: 899px) {
    #navi-small { padding: 84px 28px 32px; }
    #navi-small > nav > ul { gap: 0; }
    #navi-small summary,
    #navi-small .navi-direkt {
        display: flex;
        align-items: center;
        min-height: 56px;
        border-bottom: 1px solid var(--navy-soft);
    }
    #navi-small .navi-unter { gap: 0; padding: 8px 0 12px 4px; }
    #navi-small .navi-unter a {
        display: flex;
        align-items: center;
        min-height: 48px;
    }
    #navi-small .button { margin-top: 28px; width: 100%; }
    #navi-small .close {
        top: 12px;
        right: 12px;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    #navi-small > a,
    #navi-small a[href^="tel"],
    #navi-small a[href^="mailto"] {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
}


/* --- Mobile, Teil 4: Slider-Steuerung darf bei vielen Punkten nicht ueberlaufen --- */
@media (max-width: 767px) {
    .slider-steuerung { margin-top: 32px; }
    .slider-mitte { gap: 8px; max-width: 100%; justify-content: center; }
    .slider-mitte .swiper-pagination-bullet { width: 20px; }
    .slider-mitte .swiper-pagination-bullet::before { width: 12px; }
    .slider-mitte .swiper-pagination-bullet-active::before { width: 20px; }
}


/* --- Mobile, Teil 5: Silbentrennung feiner steuern --- */
@media (max-width: 767px) {
    /* Ueberschriften: nur lange Woerter trennen ("Gebinde" bleibt ganz, "Kartuschenbefuellstationen" wird getrennt) */
    h1, h2, h3, h4 {
        -webkit-hyphenate-limit-before: 4;
        -webkit-hyphenate-limit-after: 4;
        hyphenate-limit-chars: 9 4 4;
    }
    /* Fliesstext in schmaler Spalte: weniger Flattersatz */
    .produkt-detail-text p,
    .produkt-detail-text li,
    .entry-content p,
    .entry-content li,
    .kategorie-text-inhalt p {
        hyphens: auto;
        overflow-wrap: break-word;
    }
}


/* --- Mobiles Menue: Unterbereiche eingerueckt --- */
@media (max-width: 899px) {
    #navi-small .navi-ebene-1 a { padding-left: 20px; font-size: 1rem; font-weight: 400; }
}


/* --- Mobiles Menue: Suchfeld oben --- */
@media (max-width: 899px) {
    #navi-small .navi-suche { position: relative; display: flex; align-items: center; margin-bottom: 16px; }
    #navi-small .navi-suche svg { position: absolute; left: 14px; color: #737373; pointer-events: none; }
    #navi-small .navi-suche input {
        width: 100%;
        height: 52px;
        padding: 0 16px 0 44px;
        border: 1px solid var(--navy-soft);
        border-radius: 4px;
        background: var(--white);
        font: inherit;
        font-size: 16px;
        color: var(--black);
    }
    #navi-small .navi-suche input:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 107, 0, .45);
    }
}


/* --- Beitragskarten: Text aus dem Inhalt, begrenzt auf 4 Zeilen; Slider flacher (2:1) --- */
.beitrag-karte .produkt-karte-text p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}
.blog-slider .beitrag-karte .produkt-karte-bild { aspect-ratio: 3 / 2; }
.blog-slider .beitrag-karte .produkt-karte-text { padding-top: 20px; gap: 8px; }


/* --- Beitragskarten: immer gleiche Aufteilung ---
   Titel: feste Hoehe von 3 Zeilen, Text: feste Hoehe von 4 Zeilen, Link ganz unten.
   So beginnen Titel und Text in allen Karten nebeneinander auf derselben Hoehe. */
.beitrag-karte .produkt-karte-text h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    min-height: 3.6em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.beitrag-karte .produkt-karte-text p { min-height: 6rem; }


/* --- Beitragskarten: Bildflaeche immer exakt im Seitenverhaeltnis ---
   Ein Foto hat sonst durch "height: 100%" in einer Box mit aspect-ratio seine eigene
   Hoehe (3:2) und dehnt die Box; die Logo-Karte bleibt flach. Das Foto liegt deshalb
   absolut in der Box. Ergebnis: alle Karten gleich, Titel beginnen auf einer Linie. */
.beitrag-karte .produkt-karte-bild {
    position: relative;
    overflow: hidden;
}
.beitrag-karte .produkt-karte-bild img:not(.karte-logo) {
    position: absolute;
    inset: 0;
}


/* Fotos in Beitragskarten: nie oben abschneiden; bei abweichendem Format faellt der Rest unten weg */
.beitrag-karte .produkt-karte-bild img:not(.karte-logo) { object-position: center top; }


/* --- Rechtstexte (Impressum, Datenschutz, AGB) --- */
/* Das "Website by"-Logo im Impressum soll auf einer Zeile mit dem Text stehen; der Editor setzt sonst <br> in den Block */
.website-by br { display: none; }
/* Ueberschrift direkt ueber dem Text, gleiche linke Kante; kein doppelter Abstand zur ersten Ueberschrift */
.entry-content > :first-child { margin-top: 0; }
.rechtstext h1 { margin-bottom: 40px; }


/* --- Highlight-Slider mobil: eine Ebene statt Dreieck ---
   Unter 768 px sind alle Slides gleich gross und liegen auf einer Linie, ohne Versatz und Verkleinerung.
   Jede Slide ist so breit wie die Sektion, daher ist am Rand kein Nachbar zu sehen. Der Titel erscheint
   weiter nur unter dem aktiven Produkt. Desktop und Tablet (ab 768 px) bleiben wie sie sind. */
@media (max-width: 767px) {
    .highlight-slide { width: 100%; max-width: none; }
    .highlight-slider .highlight-slide,
    .highlight-slider .highlight-slide.swiper-slide-active,
    .highlight-slider .highlight-slide.swiper-slide-prev,
    .highlight-slider .highlight-slide.swiper-slide-next {
        opacity: 1;
        transform: none;
    }
    .swiper-slide-active .highlight-bild,
    .swiper-slide-active .highlight-link:hover .highlight-bild { transform: none; }
}


/* --- Footer mobil (unter 768 px) ---
   Produkte und Service nebeneinander, Logo/Adresse und Kontakt ueber die ganze Breite,
   kompaktere Abstaende, "Website by" in einer Zeile. Desktop bleibt unveraendert. */
@media (max-width: 767px) {
    footer { padding: 48px 20px 28px; }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 20px;
    }
    .footer-grid > :first-child,
    .footer-grid > :last-child { grid-column: 1 / -1; }
    .footer-grid ul { gap: 0; }
    .footer-grid li a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding-block: 6px;
        line-height: 1.3;
    }
    .footer-grid .footer-titel { margin-bottom: 4px; }
    .footer-grid .footer-kontakt { gap: 0; }
    .footer-grid .footer-kontakt a { min-height: 40px; }
    /* Button: die Link-Regel oben (inline-block, padding-block 8px) wuerde ihn sonst oben aufhaengen */
    .footer-grid .button { display: flex; align-items: center; justify-content: center; width: 100%; padding-block: 0; text-align: center; }
    .footer-bottom { margin-top: 36px; padding-top: 24px; gap: 4px; align-items: flex-start; }
    .footer-bottom-links { flex-direction: column; align-items: flex-start; gap: 4px 0; }
    .footer-rechtlich { flex-wrap: wrap; gap: 0 24px; }
    .footer-bottom a.footer-haudegen { display: inline-flex; align-items: center; gap: 14px; padding-block: 8px; margin-top: 16px; }
}



/* Person-Box auf sehr schmalen Handys: kleineres Foto und weniger Abstand, damit das Wort
   "Geschaeftsfuehrer" (ca. 107 px) noch in die Box passt */
@media (max-width: 399px) {
    .anfrage-person { gap: 16px; }
    .anfrage-person img { width: 76px; height: 76px; }
}


/* --- Produkt-Hero (ab 700 px zweispaltig, Text etwas breiter) und Detailbloecke auf Tablets (700 bis ca. 1120 px) ---
   Text (440 px) + Gap + bild (560 px) brauchen 1048 px; darunter brach der Hero um: Text 440 px links oben,
   rechts daneben leer, darunter das Bild in voller Breite (bis zu 720 px hoch). Jetzt bleiben beide
   Spalten nebeneinander und teilen sich die Breite. Handys (unter 700 px) stapeln wie bisher,
   der Desktop ab 1120 px bleibt unveraendert. */
@media (min-width: 700px) {
    /* Text und Bild immer nebeneinander, der Text etwas breiter (12 %) als das Bild */
    .produkt-hero { flex-wrap: nowrap; align-items: center; }
    .produkt-hero-text { flex: 1.12 1 0; }
    .produkt-hero-bild { flex: 1 1 0; }
}
@media (min-width: 700px) and (max-width: 1119px) {
    .produkt-hero { gap: 32px; }
    .produkt-hero-text .text-lead { font-size: 1.125rem; }

    /* Detailbloecke (Bild + Text): ebenfalls nebeneinander statt Bild in voller Breite ueber dem Text.
       "rechts" bleibt Bild rechts, weil der Text dort im Markup zuerst steht. */
    .produkt-detail,
    .produkt-detail.rechts { flex-wrap: nowrap; align-items: center; gap: 32px; }
    .produkt-detail-bild,
    .produkt-detail-text { flex: 1 1 0; }
    .produkt-detail-text h3 { font-size: 1.375rem; }
    .produkt-detail-text p,
    .produkt-detail-text li { font-size: 1rem; }
}


/* <address> im Footer: Browser stellen es kursiv dar, hier soll es wie der bisherige Absatz aussehen */
address { font-style: normal; }


/* --- Footer: Social-Media-Icons (unter der E-Mail) ---
   Runde Linien-Buttons 40 px, Rahmen wie die Slider-Buttons, im Hover Orange. */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}
.footer-grid .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 0;
    padding: 0;
    border: 1.5px solid var(--navy-soft);
    border-radius: 50%;
    color: var(--white);
    transition: color .2s ease, border-color .2s ease;
}
.footer-grid .footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
}
