/* Theme Name:      KIEFER MOLD Multisite Theme
Theme URI:       https://kiefer-mold.de
Description:     Kiefer Mold Custom Theme
Author:          Marcel Michael Maas
Author URI:      https://mossimedia.de
Version:         1.1.0
Text Domain:     kiefer-multi-theme
*/

/* ==========================================================================
   1. VARIABLEN & FONTS
   ========================================================================== */
:root {
    /* Farben */
    --kiefer-red: #e30613;
    --kiefer-gray: #aab2b7;
    --kiefer-dark: #3a3a3a;
    --kiefer-light: #f2f2f3;
    --transition: all 0.2s ease-in-out;

    /* Typografie-Skala (Modern & Legitim) */
    --font-base: 1rem;          /* 16px - Standard Fließtext & Listen */
    --font-small: 0.875rem;     /* 14px - Breadcrumbs, Copyright, Meta-Infos */
    
    /* Überschriften */
    --font-h1: 2.5rem;          /* 40px - Die Hauptüberschrift (Content) */
    --font-h2: 1.75rem;         /* 28px - Sektionsüberschriften */
    --font-h3: 1.35rem;         /* 21.6px - Unterüberschriften & Footer-Headlines */
    
    /* Navigationen */
    --font-nav-main: 1.1rem;    /* ~17.6px - Hauptmenü oben */
    --font-nav-sub: 1rem;       /* 16px - Dropdowns, Top-Nav & Sidebar */
}

@font-face {
    font-family: 'Ubuntu';
    src: url('assets/fonts/Ubuntu-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}

@font-face {
    font-family: 'Ubuntu Condensed';
    src: url('assets/fonts/UbuntuCondensed-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}

/* Font Awesome */
@font-face {
    font-family: 'Font Awesome Free';
    src: url('assets/fonts/fa-regular-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

/* ==========================================================================
   2. RESET & BASICS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    font-family: "Ubuntu", sans-serif;
    color: var(--kiefer-dark);
    font-size: var(--font-base);
    line-height: 1.5;
}

h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }

h1, h2, h3, h4, h5, h6 {
    font-family: "Ubuntu Condensed", sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

section .container a {
    color: var(--kiefer-red);
}

section .container a:hover {
    color: var(--kiefer-gray);
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

.container {
    width: min(100% - 2rem, 1320px);
    margin-inline: auto;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0);
}

.flex {
    display: flex;
}

[hidden] { display: none !important; }

h1.align-left, h2.align-left, h3.align-left, h4.align-left, h5.align-left, h6.align-left{text-align:left;}
h1.align-center, h2.align-center, h3.align-center, h4.align-center, h5.align-center, h6.align-center{text-align:center;}


/* ==========================================================================
   3. HEADER & COMPLETE NAVIGATION BLOCK
   ========================================================================== */

/* --- Top Bar --- */
.header-top {
  position: relative;
  z-index: 20;
  background: #000000;
  color: #ffffff;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
}

/* Left: Group Logo */
.header-top__left {
  display: flex;
  align-items: center;
}

.group-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.group-logo img {
  height: 24px;
  max-height: 26px;
  width: auto;
  display: block;
}

/* Right: Navigation & Language Switcher */
.header-top__right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.top-nav {
  display: block !important;
}

.top-nav > ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav a {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.top-nav a:hover {
  opacity: 0.8;
}

.top-nav i {
  color: #e30613;
  font-size: 0.8rem;
}

/* Language Switcher */
.top-nav__lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 0.25rem;
}

.top-nav__lang-switcher .lang-item {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-nav__lang-switcher .lang-item.is-active {
  color: #e30613;
}

.top-nav__lang-switcher .lang-item:hover {
  color: #e30613;
  opacity: 1;
}

.top-nav__lang-switcher .lang-sep {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}


/* ==========================================================================
   MAIN HEADER (TRANSPARENT ON HERO)
   ========================================================================== */

/* Wenn der Header über das Hero-Bild ragt */
header.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header-main {
  position: relative;
  z-index: 10;
  background: transparent; /* Transparent für das Hero-Bild */
  padding: 1rem 0;
  transition: background-color 0.3s ease;
}

/* Sticky State (falls gekoppelt beim Scrollen) */
header.is-sticky .header-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo img {
  width: 200px;
  height: auto;
  display: block;
}

/* --- Mobile Burger Button (.nav-toggle) --- */
.nav-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle__line,
.nav-toggle__line::before,
.nav-toggle__line::after {
  position: absolute;
  left: 7px;
  width: 30px;
  height: 2px;
  background: #ffffff; /* Weißer Burger-Button auf dunklem Hero */
  content: "";
  transition: 0.25s ease;
}

.nav-toggle__line { top: 21px; }
.nav-toggle__line::before { top: -10px; left: 0; }
.nav-toggle__line::after { top: 10px; left: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__line {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line::before {
  top: 0;
  transform: rotate(45deg);
  background: #e30613;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line::after {
  top: 0;
  transform: rotate(-45deg);
  background: #e30613;
}

/* --- Dropdown-Pfeile --- */
.dropdown-trigger {
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #ffffff; /* Weißer Pfeil für dunklen Hintergrund */
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.has-dropdown.is-open > .dropdown-trigger::after {
  transform: rotate(180deg) !important;
}


/* ==========================================================================
   NAVIGATION UNTER 1300px (MOBILE / TABLET LOGIK)
   ========================================================================== */
@media (max-width: 1299px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: 100%;
    padding: 1rem;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav > ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .main-nav .has-dropdown {
    position: relative !important;
    display: block !important;
    width: 100% !important;
  }

  .main-nav a {
    display: block !important;
    padding: 12px 60px 12px 15px !important;
    color: #ffffff !important;
    text-align: left !important;
    width: 100% !important;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
  }

  .main-nav a:hover {
    color: #e30613 !important;
  }

  .dropdown-trigger {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 60px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 10 !important;
  }

  .main-nav__dropdown {
    display: none !important;
    width: 100% !important;
    background: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
  }

  .has-dropdown.is-open > .main-nav__dropdown {
    display: block !important;
  }

  .main-nav__dropdown a {
    padding-left: 30px !important;
    font-size: 0.85rem !important;
    text-transform: none;
  }
  
  .main-nav__dropdown .main-nav__dropdown a {
    padding-left: 45px !important;
  }

  .search-toggle {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
  }

  .search-toggle i {
    color: #e30613;
  }
}


/* ==========================================================================
   NAVIGATION AB 1300px (DESKTOP LOGIK)
   ========================================================================== */
@media (min-width: 1300px) {
  .top-nav { display: block; }
  .header-main__inner { min-height: 90px; }
  .logo img { width: 224px; }
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    background: transparent;
  }

  .main-nav > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .main-nav a,
  .main-nav button {
    width: auto;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff; /* Weiße Schrift für transparente Ansicht */
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .main-nav a:hover,
  .main-nav button:hover {
    color: #e30613;
  }

  .main-nav .has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
  }

  .main-nav .main-nav__dropdown {
    display: none !important;
    position: absolute;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 10px 0;
    list-style: none;
    margin: 0;
  }

  .main-nav > ul > .has-dropdown > .lvl-1 {
    top: 100%;
    left: 0;
    min-width: 230px;
    z-index: 1000;
  }

  .lvl-1 > .has-dropdown > .lvl-2 {
    top: -10px;
    left: 100% !important;
    min-width: 230px;
    z-index: 1001;
  }

  .main-nav > ul > .has-dropdown:hover > .lvl-1,
  .lvl-1 > .has-dropdown:hover > .lvl-2 {
    display: block !important;
  }
  
  .has-dropdown:hover > .dropdown-trigger::after {
    transform: rotate(180deg);
  }

  /* Dropdown Links (wieder dunkel auf weißem Grund) */
  .main-nav__dropdown a {
    display: block;
    padding: 0.65rem 1.2rem;
    white-space: nowrap;
    width: 100%;
    color: #111111 !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    text-transform: none;
  }

  .main-nav__dropdown a:hover {
    color: #ffffff !important;
    background: #e30613;
  }

  .dropdown-trigger {
    padding: 0 0 0 4px;
    height: 100%;
  }

  /* Such-Icon Button rechts */
  .search-toggle {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 1rem;
    padding: 0.5rem;
  }

  .search-toggle i {
    color: #ffffff;
    transition: color 0.2s ease;
  }

  .search-toggle:hover i {
    color: #e30613;
  }

  .search-toggle span {
    display: none;
  }
}


/* ==========================================================================
   MOBILE OPTIMIERUNG FOR HEADER TOP & MAIN
   ========================================================================== */
@media (max-width: 768px) {
  .header-top {
    padding: 0.3rem 0;
  }

  .header-top__inner {
    min-height: 32px;
  }

  .top-nav a[href^="tel:"],
  .top-nav a[href^="mailto:"] {
    display: none !important;
  }

  .top-nav > ul {
    gap: 0.85rem;
  }

  .top-nav a {
    font-size: 0.78rem;
  }

  .group-logo img {
    height: 20px;
  }

  .logo img {
    width: 150px;
  }

  .header-main__inner {
    min-height: 60px;
  }
}

@media (max-width: 480px) {
  .top-nav > ul {
    gap: 0.6rem;
  }
}


/* --- Search Overlay --- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.95);
}

.search-overlay__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
}

.search-form { 
  width: min(100%, 520px); 
}

.search-form input {
  width: 100%;
  padding: 1rem;
  color: #fff;
  font-size: 1.2rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid #e30613;
  outline: none;
}

.search-form input::placeholder { 
  color: rgba(255, 255, 255, 0.6); 
}

/* ==========================================================================
   4. SEITEN-INHALTE & LAYOUTS
   ========================================================================== */
/* ==========================================================================
   BREADCRUMBS SECTION (MAX SPACING & PROPER CLEARANCE)
   ========================================================================== */

section.breadcrumbs-section {
    background-color: #0d0d0d !important; /* Passt zum Header-Schwarz */
    
    /* ABSTÄNDE NORMALISED */
    padding-top: 160px !important;    /* VIEL MEHR ABSTAND NACH OBEN (unter die Navigation) */
    padding-bottom: 25px !important;  /* MEHR ABSTAND NACH UNTEN IN DER SCHWARZEN BOX */
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    position: relative;
    z-index: 1;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px; /* Etwas mehr Abstand zwischen den Links & Pfeilen */
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Breadcrumb Links */
.breadcrumbs a.breadcrumb-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.25s ease;
}

.breadcrumbs a.breadcrumb-link:hover {
    color: #e30613;
}

/* Aktive Seite */
.breadcrumbs .breadcrumb-current {
    color: #ffffff;
    font-weight: 700;
}

/* Pfeil-Trennzeichen */
.breadcrumbs .breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

/* Mobile responsive Anpassungen */
@media (max-width: 991px) {
    section.breadcrumbs-section {
        padding-top: 156px !important;
        padding-bottom: 20px !important;
    }
}

/* ==========================================================================
   AKTUELLES SECTION (REVISED & RESPONSIVE)
   ========================================================================== */

section.aktuelles {
    background: #f4f4f4;
    padding: 2em 0;
    margin: 4em 0 -4em 0; /* Negativen Margin entfernt */
    width: 100%;
}

section.aktuelles h2 {
    text-align: center;
    font-size: var(--font-h2);
    margin-top: 0;
    margin-bottom: 2.5rem;
}

/* Grid-Layout für die 2 Artikel */
section.aktuelles .news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Einzelnes Artikel-Element */
section.aktuelles .news-item {
    margin: 0;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

section.aktuelles .news-item .main-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Bildbereich */
section.aktuelles .news-image {
    flex: 0 0 160px; /* Feste Breite fürs Bild */
    max-width: 160px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

section.aktuelles .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

section.aktuelles .news-item:hover .news-image img {
    transform: scale(1.05);
}

/* Inhaltbereich */
section.aktuelles .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

section.aktuelles .news-title {
    font-size: var(--font-h3);
    line-height: 1.3;
    margin: 0;
}

section.aktuelles .news-title a {
    color: var(--kiefer-dark) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

section.aktuelles .news-title a:hover {
    color: var(--kiefer-red) !important;
}

section.aktuelles .news-excerpt {
    font-size: var(--font-small);
    color: #555555;
    line-height: 1.5;
}

section.aktuelles .news-button {
    margin-top: auto; /* Schiebt den Button nach unten */
}

/* Trennlinie & Übersicht-Link */
section.aktuelles hr.aktuelles-divider {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

section.aktuelles .allnews_link {
    text-align: center;
    margin: 0;
}

section.aktuelles .allnews_link a {
    color: var(--kiefer-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

section.aktuelles .allnews_link a:hover {
    color: var(--kiefer-dark);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
    section.aktuelles .news-grid {
        grid-template-columns: 1fr; /* Untereinander auf Tablets & Mobile */
        gap: 25px;
    }
}

@media (max-width: 576px) {
    section.aktuelles .news-item .main-grid {
        flex-direction: column; /* Bild über den Text auf Handys */
    }

    section.aktuelles .news-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: 200px;
    }
}

.row {
    display: flex;
}

.sidebar {
    flex: 0 0 370px;
    border-right: 1px solid #f2f2f3;
    margin-right: 40px;
    padding-top: 20px;
}

.sidebar-subnav li {
    list-style-type: none;
    padding: 5px 0;
}

.sidebar-subnav li a {
    padding: 6px 0 6px 12px;
    color: #000;
    font-weight: bold;
    font-size: var(--font-nav-sub);
}

.sidebar-subnav li a:hover, .sidebar-subnav li.active a {
    color: var(--kiefer-red) !important;
}

.sidebar-subnav li a::before {
    margin-right: 5px;
    color: #aab2b7;
    content: '>';
}

.sidebar-subnav li.lv-2 a {
    padding-left: 20px;
    color: #aab2b7;
    font-weight: bold;
}

.sidebar-subnav li.lv-2 a::before {
    margin-right: 5px;
    color: #aab2b7;
    content: '∟';
}

/* ==========================================================================
   5. MAIN CONTENT STRUKTUR & TABELLEN
   ========================================================================== */
.main-layout {
    flex-grow: 1;
}

.main-layout--full-width > .main-content-area {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 0;
}

.main-layout section {
}

.main-layout h1 {
    font-size: var(--font-h1);
    margin: 20px 0;
    line-height: 1.2em;
}

.main-layout p {
    margin: 0 0 20px;
    font-size: var(--font-base);
}

.main-layout p a {
    color: #e30613;
}

/* ==========================================================================
   GALERIE MODUL
   ========================================================================== */

.main-layout .galerie {
    display: grid;
    /* Nutzt die Spaltenanzahl aus ACF (Standard: 3 Spalten) */
    grid-template-columns: repeat(var(--spalten, 3), 1fr);
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.galerie__item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Sorgt für einheitliche Bildhöhen */
    overflow: hidden;
    border-radius: 4px;
}

.galerie__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.galerie__item:hover img {
    transform: scale(1.03); /* Dezent er Hover-Effekt */
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .main-layout .galerie {
        /* Maximal 2 Spalten auf Tablets */
        grid-template-columns: repeat(min(var(--spalten, 3), 2), 1fr);
    }
}

@media (max-width: 576px) {
    .main-layout .galerie {
        /* 1 Spalte auf Smartphones */
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.main-layout li {
    padding: 4px 0 4px 22px;
    position: relative;
    list-style: none outside none;
    font-size: var(--font-base);
}



.main-layout li p {
    margin: 0;
}

.main-layout table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-base);
}

.main-layout table th {
    border-top: 1px solid #dadada;
    padding: 0.5em 0.75em;
    vertical-align: top;
    background: #e30613;
    color: #fff;
    border-right: 1px solid #fff;
    text-align: left;
}

.main-layout table td {
    border-top: 1px solid #dadada;
    padding: 0.5em 0.75em;
    vertical-align: top;
    background: #e6e6e6;
    border-right: 1px solid #fff;
}

.main-layout tr:nth-child(2n) td {
    background: #f2f2f3;
}

.main-layout img.alignleft {
    float: left;
    padding-right: 10px;
}

.main-layout img.alignright {
    float: right;
    padding-left: 10px;
}

a.button, .news-button a {
    background: var(--kiefer-red);
    padding: 10px;
    color: #fff !important;
    border: 2px solid var(--kiefer-red);
    display: inline-block;
    font-size: var(--font-base);
}

a.button:hover, .news-button a:hover {
    background: transparent;
    padding: 10px;
    color: var(--kiefer-red) !important;
    border: 2px solid var(--kiefer-red);
}



/* ==========================================================================
   NEWS LOOP
   ========================================================================== */

.news-item {
    margin: 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e6e6e6;
}

.news-item:first-of-type {
    padding-top: 0;
}

.news-item:last-of-type {
    border-bottom: 0;
}


/* --------------------------------------------------------------------------
   Grundlayout
   -------------------------------------------------------------------------- */

.news-item .main-grid {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    width: 100%;
}


/* --------------------------------------------------------------------------
   Bild
   -------------------------------------------------------------------------- */

.news-item .news-image {
    width: 155px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.news-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */

.news-item .news-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


/* Titel + Datum */

.news-item .news-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: start;
}

.news-item .news-title {
    min-width: 0;
    font-family: "Ubuntu Condensed", sans-serif;
    font-size: var(--font-h2);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.news-item .news-title a {
    color: var(--kiefer-red);
    text-decoration: none;
}

.news-item .news-title a:hover {
    color: var(--kiefer-dark);
}

.news-item .news-date {
    white-space: nowrap;
    font-size: var(--font-small);
    color: var(--kiefer-dark);
    padding-top: 0.25rem;
}


/* Text */

.news-item .news-excerpt {
    font-size: var(--font-base);
    line-height: 1.5;
}

.news-item .news-excerpt p:last-child {
    margin-bottom: 0;
}


/* Button */

.news-item .news-button {
    margin-top: 0.25rem;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

    .news-item .main-grid {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .news-item .news-image {
        width: 140px;
    }

    .news-item .news-title {
        font-size: 1.5rem;
    }

    .news-item .news-title-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .news-item .news-date {
        grid-row: 1;
        font-size: var(--font-small);
        color: #777;
        padding-top: 0;
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .news-item {
        padding: 1.75rem 0;
    }

    /*
     * Auf Mobile KEIN Bild links neben einer winzigen Textspalte.
     * Alles sauber untereinander.
     */
    .news-item .main-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-item .news-image {
        width: 100%;
        max-width: none;
        aspect-ratio: 16 / 9;
    }

    .news-item .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .news-item .news-content {
        width: 100%;
        min-width: 0;
        gap: 0.75rem;
    }

    /*
     * Datum oberhalb des Titels.
     */
    .news-item .news-title-row {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .news-item .news-date {
        order: -1;
        padding: 0;
        font-size: 0.875rem;
        color: #777;
    }

    .news-item .news-title {
        font-size: 1.5rem;
        line-height: 1.15;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: auto;
    }

    .news-item .news-excerpt {
        font-size: var(--font-base);
        line-height: 1.5;
    }

    .news-item .news-button {
        margin-top: 0.25rem;
    }
}

/* ==========================================================================
   HERO SLIDER - COMPLETE REBUILD
   ========================================================================== */

main {
    position: relative;
    width: 100%;
}

/* 1. Slider Basis */
.simple-slider {
    position: relative;
    width: 100%;
    min-height: 650px;
    height: 85vh;
    overflow: hidden;
    background: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 2. Slide Sichtbarkeit & Transition */
.simple-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.simple-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* 3. Hintergrundbild */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. Overlay mit tiefschwarzem Horizontal-Verlauf */
.slide-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.95) 35%, 
        rgba(0, 0, 0, 0.6) 60%, 
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: 120px; /* Platz für transparenten Header */
    box-sizing: border-box;
}

/* Container-Ausrichtung im Grid */
.slide-overlay .container {
    width: min(100% - 2rem, 1320px);
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.slide-content {
    max-width: 550px;
    text-align: left;
}

/* Kicker Text */
.slide-kicker {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e30613;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

/* Titel (H1) */
.slide-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Beschreibungstext */
.slide-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

/* 5. Button Ausrichtung & Stylings */
/* ==========================================================================
   BUTTON FIXES (KEIN VERKLEINERN BEIM HOVER & STABLE OUTLINE)
   ========================================================================== */

.slide-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* Verhindert Theme-Reset & Größenänderungen */
.slide-buttons a.button, button.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    height: 48px !important;
    padding: 0 28px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    
    /* Hover-Fixes gegen Shrinking */
    transform: none !important; 
    zoom: 1 !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
}

/* Auf Hover explizit Transform/Scale unterbinden */
.slide-buttons a.button:hover {
    transform: none !important;
    scale: 1 !important;
}

/* Button 1: Rot gefüllt */
.button--primary {
    background-color: #e30613 !important;
    color: #ffffff !important;
    border: 2px solid #e30613 !important;
}

.button--primary:hover {
    background-color: #c0040f !important;
    border-color: #c0040f !important;
    color: #ffffff !important;
}

/* Button 2: Transparent / Outline (Exakt wie Vorlage) */
.slide-buttons a.button--outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
}

.slide-buttons a.button--outline:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* 6. Navigation (Pfeile & Dots) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-arrow:hover { background: rgba(0, 0, 0, 0.8); }
.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.1);
}

/* 7. Responsive Anpassungen */
@media (max-width: 768px) {
    .simple-slider {
        min-height: 500px;
        height: 70vh;
    }

    .slide-overlay {
        background: linear-gradient(
            180deg, 
            rgba(0, 0, 0, 0.95) 0%, 
            rgba(0, 0, 0, 0.75) 60%, 
            rgba(0, 0, 0, 0.4) 100%
        );
        padding-top: 90px;
    }

    .slide-title {
        font-size: 2.1rem;
    }

    .prev-arrow { left: 5px; }
    .next-arrow { right: 5px; }
}

/* Erweitertes Styling für Slider-Videos */
.slide-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* ==========================================================================
   SITE FOOTER & SUBFOOTER (HEADER-MATCHING DARK DESIGN)
   ========================================================================== */

/* 1. Haupt-Footer */
.site-footer {
    background-color: #0d0d0d; /* Tiefschwarz analog zum Header */
    padding: 70px 0 50px;
    color: #ffffff;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4em;
}

/* Dynamisches Grid: Verteilt 1, 2 oder 3 Spalten automatisch gleichmäßig */
.footer-container {
    width: min(100% - 2rem, 1320px);
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    box-sizing: border-box;
}

.footer-col {
    width: 100%;
}

/* Headlines im Footer */
.footer-headline {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
    position: relative;
}

.footer-headline::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #e30613; /* Kiefer Rot Akzent */
    margin-top: 8px;
}

/* Typografie & Links */
.footer-content, 
.footer-address {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-contact-list,
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 10px;
}

.footer-contact-list a,
.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.6;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-contact-list a i {
    color: #e30613; /* Rotes Icon */
    width: 16px;
    text-align: center;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-contact-list a:hover,
.footer-nav a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* Social Media Boxes */
.social-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.social-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-box:hover {
    background: #e30613;
    border-color: #e30613;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Rechtliche Links (Socket Menu) & Copyright */
.legal-links ul,
.socket-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.socket-menu a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.socket-menu a:hover {
    color: #e30613;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 10px;
}

.copyright strong {
    color: rgba(255, 255, 255, 0.8);
}

/* 2. Subfooter (Kiefer Gruppe) */
#subfooter {
    background-color: #050505; /* Noch eine Nuance dunkler */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    color: #ffffff;
}

.subfooter-container {
    width: min(100% - 2rem, 1320px);
    margin: 0 auto;
    box-sizing: border-box;
}

.subfooter-headline {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.subfooter-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.subfooter-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.subfooter-links a:hover {
    color: #e30613;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .site-footer {
        padding: 50px 0 30px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .subfooter-links {
        gap: 12px 20px;
    }
}

/* ==========================================================================
   8. FORMULARE
   ========================================================================== */
.km_form, .km_form form, .km_form .wpcf7 {
    max-width: 550px;
	width: 100%;
}

.km_form {
    margin: 1em 0;
}

.km_form input, .km_form textarea {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: var(--font-base);
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: .0625rem solid #ced4da;
    border-radius: 0;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    background-clip: unset;
    border-width: .125rem;
    outline: 0;
    box-shadow: none;
    resize: none;
}

.km_form input:focus, .km_form textarea:focus {
    border-color: var(--kiefer-red);
    outline: 0;
    box-shadow: none;
}

.km_form .wpcf7-submit {
    background: var(--kiefer-red);
    padding: 10px;
    color: #fff;
    border: 2px solid var(--kiefer-red);
    display: inline-block;
    font-size: var(--font-base);
    transition: var(--transition);
    width: auto;
    margin: 0;
    display: block;
    font-family: 'Ubuntu';
}

.km_form .wpcf7-submit:hover {
    background: transparent;
    padding: 10px;
    color: var(--kiefer-red);
    border: 2px solid var(--kiefer-red);
}

/* Sternchen automatisch an Pflichtfelder anhängen (Fix für Label-Verschachtelung) */
.wpcf7-form-control-wrap.wpcf7-validates-as-required {
    display: inline-block;
    position: relative;
}

.wpcf7-form-control-wrap.wpcf7-validates-as-required::before {
    content: "*";
    color: var(--kiefer-red); /* Dein Kiefer-Rot */
    font-weight: bold;
    position: absolute;
    top: -1.5rem; /* Schiebt das Sternchen hoch auf die Höhe des Label-Textes */
    right: 0;
}




/* Zusätzlicher Content */
.content-image, .content-video{
	display:block;
}

.content-video{
width: 100%;
}


/* Layout-Raster */
.main-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	
}

/* Wenn Sidebar aktiv: Aufteilung 25% zu ~70% */
.main-layout--has-sidebar .sidebar {
	flex: 1 1 250px;
	max-width: 300px;
}

.main-layout--has-sidebar .main-layout-area {
	flex: 3 1 600px;
}

/* Wenn keine Sidebar aktiv: Volle Breite */
.main-layout--full-width .main-layout-area {
	flex: 1 1 100%;
}

/* Einfache Sidebar-Menü Optik */
.sidebar-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	padding-right:40px;
}

.sidebar-menu__item {
	margin-bottom: 8px;
}

.sidebar-menu__link {
	display: block;
	padding: 6px 15px;
	color: #333;
	text-decoration: none;
}

.sidebar-menu__item.is-active > .sidebar-menu__link {
	color: #ff0000; /* Deine Theme-Farbe */
	font-weight: bold;
}

/* Einrückung für Unterseiten */
.sidebar-menu__item.lv-1 { padding-left: 15px; }
.sidebar-menu__item.lv-2 { padding-left: 30px; }

@media (max-width: 768px) {
	.main-layout {
		flex-direction: column-reverse; /* Mobil wandert die Sidebar über oder unter den Content */
	}
	.main-layout--has-sidebar .main-layout-area {
    flex: auto;
}
	.main-layout--has-sidebar .sidebar {
		max-width: 100%;
	}
}


/* ==========================================================================
   FLEXIBLE BOXEN / TEASER GRID
   ========================================================================== */

/* Das umschließende Grid */
.teaser-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin: 4em 0 4em 0;
	width: 100%;
}

/* Die einzelne Box */
.teaser-box {
	flex: 1 1 calc(33.333% - 20px); /* 3 Spalten auf Desktop */
	min-width: 280px;
	background-color: #f4f4f4; /* Das helle Grau aus dem Screenshot */
	display: flex;
	flex-direction: column; /* Richtet Inhalt von oben nach unten aus */
	overflow: hidden;
}

/* Bildbereich oben */
.teaser-box__image {
	width: 100%;
	height: 200px; /* Feste Höhe für die Bilder-Zeile */
	background-color: #ddd; /* Fallback, falls kein Bild da ist */
}

.teaser-box__image img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Schneidet das Bild sauber passend zu */
}

/* Platzhalter, falls im Backend mal kein Bild gepflegt ist */
.teaser-box__image--placeholder {
	background: #e0e0e0;
	height: 150px; 
}

/* Text-Inhalt der Box */
.teaser-box__content {
	padding: 25px 20px;
	text-align: center; /* Alles zentrieren wie im Screenshot */
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Sorgt dafür, dass dieser Bereich den Rest der Box füllt */
}

/* Große Hauptüberschrift */
.teaser-box__title {
	font-size: 1.6rem;
	font-weight: bold;
	text-transform: uppercase; /* Komplett in Großbuchstaben */
	color: #000;
	margin: 0 0 5px 0;
}

/* Kleine Unterüberschrift */
.teaser-box__subtitle {
	font-size: 0.95rem;
	text-transform: uppercase;
	color: #777; /* Grauer Text */
	font-weight: 600;
	margin: 0 0 20px 0;
	letter-spacing: 0.5px;
}

/* Beschreibungstext */
.teaser-box__text {
	font-size: 1rem;
	color: #333;
	line-height: 1.5;
	margin: 0 0 25px 0;
}

/* Button-Wrapper, der den Button nach ganz unten drückt */
.teaser-box__button-wrapper {
	margin-top: auto; /* Magischer Flexbox-Trick: Drückt den Button an den Boden */
}

/* --- Responsive Anpassungen --- */
@media (max-width: 992px) {
	.teaser-box {
		flex: 1 1 calc(50% - 15px); /* 2 Spalten auf Tablets */
	}
}

@media (max-width: 600px) {
	.teaser-grid {
		gap: 20px;
	}
	.teaser-box {
		flex: 1 1 100%; /* 1 Spalte auf Handys */
	}
}

/* ==========================================================================
   SMALL SLIDER (ROTEN BOX LOOK)
   ========================================================================== */

.small-slider-container {
	position: relative;
	width: 100%;
	
	    max-width: 870px;
	margin: 40px 0;
	overflow: hidden;
}

.small-slider-wrapper {
	position: relative;
	width: 100%;
	/* Wir geben dem Container eine Mindesthöhe (Bild-Höhe + geschätzte rote Box-Höhe) */
	min-height: 500px; 
}

/* Einzelner Slide (Übereinandergelegt) */
.small-slide {
	position: absolute;
	top: 0;
	left: 0;
width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
	display: flex;
	flex-direction: column;
	z-index: 1;
}

.small-slide.active {
	opacity: 1;
	visibility: visible;
	position: relative; /* Der aktive Slide bestimmt die reale Höhe */
	z-index: 2;
}

/* Bildbereich oben */
.small-slide__image {
	width: 100%;
	height: 300px; /* Höhe des Werkzeug-Bildes */
}

.small-slide__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Die markante rote Box darunter */
.small-slide__red-box {
	background-color: #d90414; /* Dein Kiefer-Rot */
	color: #ffffff;
	padding: 40px 20px 60px 20px; /* Unten mehr Platz für die Pfeile */
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-grow: 1;
}

.small-slide__content {
	max-width: 800px;
	width: 100%;
}

.small-slide__title {
	font-size: 1.8rem;
	font-weight: bold;
	text-transform: uppercase;
	color: #000000; /* Schwarze Schrift auf rotem Grund laut Screenshot */
	margin: 0 0 15px 0;
	letter-spacing: 0.5px;
}

.small-slide__text {
	font-size: 1.05rem;
	color: #000000; /* Schwarze Schrift auf rotem Grund */
	line-height: 1.6;
	margin: 0;
}

/* Pfeil-Navigation absolut am unteren Ende der roten Box zentrieren */
.small-slider-nav {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 20px;
	z-index: 10;
}

.small-slider-arrow {
	background: none;
	border: none;
	color: #ffffff; /* Weiße Pfeile */
	font-size: 1.8rem;
	font-weight: bold;
	cursor: pointer;
	padding: 5px 10px;
	transition: transform 0.2s ease, opacity 0.2s;
}

.small-slider-arrow:hover {
	transform: scale(1.2);
	opacity: 0.8;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
	.small-slide__image {
		height: 200px; /* Mobil etwas flacheres Bild */
	}
	.small-slide__title {
		font-size: 1.4rem;
	}
	.small-slide__text {
		font-size: 0.95rem;
	}
}
/* ==========================================================================
   CUSTOM LOOP (ZEILEN / ROW LAYOUT)
   ========================================================================== */

.custom-loop-container {
	width: 100%;
	margin: 30px 0;
	display: flex;
	flex-direction: column;
	gap: 35px; /* Abstand zwischen den einzelnen Zeilen */
}

/* Die einzelne Zeile */
.custom-loop-item {
	display: flex;
	gap: 25px; /* Abstand zwischen Bild und Text */
	align-items: flex-start; /* Verhindert, dass das Bild gestreckt wird */
	width: 100%;
}

/* Bild-Container links */
.custom-loop-item__image {
	flex: 0 0 180px; /* Fixe Breite für das Bild, wie im Screenshot */
	height: 120px;   /* Feste Höhe */
	overflow: hidden;
	border: 1px solid #ddd; /* Optionaler feiner Rahmen ums Werkzeug-Bild */
}

.custom-loop-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Schneidet das Bild perfekt in die Box ein */
}

/* Inhalts-Container rechts */
.custom-loop-item__content {
	flex: 1; /* Nutzt den gesamten restlichen Platz */
}

/* Die Überschrift (Serifenlos, Fett, komplett in Großbuchstaben) */
.custom-loop-item__title {
	font-size: 1.25rem;
	font-weight: bold;
	text-transform: uppercase;
	color: #000000;
	margin: 0 0 12px 0;
	letter-spacing: 0.5px;
}

/* Der Fließtext */
.custom-loop-item__text {
	font-size: 1rem;
	color: #333333;
	line-height: 1.5;
}

/* Der rote "...mehr" Link */
.custom-loop-item__more-link {
	color: #d90414; /* Das Kiefer-Rot */
	text-decoration: none;
	font-weight: bold;
	white-space: nowrap; /* Verhindert, dass "...mehr" mitten im Wort umbricht */
	transition: color 0.2s ease;
}

.custom-loop-item__more-link:hover {
	color: #000000;
	text-decoration: underline;
}

/* --- Responsive Anpassung für mobile Endgeräte --- */
@media (max-width: 600px) {
	.custom-loop-item {
		flex-direction: column; /* Bild wandert mobil über den Text */
		gap: 15px;
	}

	.custom-loop-item__image {
		flex: 0 0 auto;
		width: 100%;    /* Bild nutzt mobile volle Breite */
		height: 180px;  /* Etwas mehr Höhe im mobilen Viewport */
	}
}

/* ==========================================================================
   PORTFOLIO ITEM / BRAND CARD
   ========================================================================== */

.brand-cards-container {
	width: 100%;
	margin: 40px 0;
	/* Der obere Trennstrich laut Screenshot */
	border-top: 1px solid #cccccc;
}

/* Der untere Trennstrich (wird nach dem letzten Element platziert) */
.brand-card-divider-bottom {
	border-bottom: 1px solid #cccccc;
	width: 100%;
	margin-top: 20px;
}

/* Das Flex-Layout für die Reihe */
.brand-card {
	display: flex;
	align-items: center; /* Vertikale Zentrierung von Logo und Text */
	gap: 50px;
	padding: 30px 10px;
	width: 100%;
}

/* Linke Spalte: Logo */
.brand-card__logo-col {
	flex: 0 0 250px; /* Feste Basis-Breite fürs Logo */
	display: flex;
	justify-content: center;
	align-items: center;
}

.brand-card__logo-col img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

/* Rechte Spalte: Inhalt */
.brand-card__content-col {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Überschrift */
.brand-card__title {
	font-size: 1.75rem;
	font-weight: bold;
	color: #0b2d48; /* Dunkelblau aus deinem Screenshot */
	margin: 0 0 8px 0;
}

/* Subline */
.brand-card__subline {
	font-size: 1.05rem;
	color: #4a5568;
	margin: 0 0 20px 0;
}

/* Zeile für den Button */
.brand-card__button-row {
	margin-bottom: 20px;
}

/* Der ovale dunkelrote Button */
.button--brand-oval {
	display: inline-block;
	background-color: #b0030f; /* Dunkleres Rot aus der Vorlage */
	color: #ffffff !important;
	text-decoration: none;
	padding: 8px 25px;
	font-size: 1rem;
	border-radius: 20px; /* Macht den Button komplett oval */
	transition: background-color 0.2s ease;
}

.button--brand-oval:hover {
	background-color: #d90414;
}

/* Social Media Icons */
.brand-card__socials {
	display: flex;
	gap: 12px;
}

.brand-card__socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background-color: #1a202c; /* Dunkle Kreise */
	color: #ffffff !important;
	border-radius: 50%; /* Macht es kreisrund */
	font-size: 0.9rem;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.2s;
}

.brand-card__socials a:hover {
	background-color: #b0030f; /* Hovert im Kiefer-Rot */
	transform: scale(1.1);
}

/* --- Responsive Anpassung --- */
@media (max-width: 768px) {
	.brand-card {
		flex-direction: column; /* Stapelt Logo und Content mobil untereinander */
		gap: 25px;
		text-align: center;
	}
	
	.brand-card__logo-col {
		flex: 0 0 auto;
		max-width: 200px;
		margin: 0 auto;
	}
	
	.brand-card__button-row {
		display: flex;
		justify-content: center;
	}
	
	.brand-card__socials {
		justify-content: center;
	}
}

/* ==========================================================================
   MILESTONES COUNTER GRID
   ========================================================================== */

.milestones-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* Zentriert die Boxen, falls eine Zeile nicht voll wird */
	gap: 40px 30px; /* 40px Abstand nach unten, 30px zwischen den Boxen */
	margin: 50px 0;
	width: 100%;
}

.milestone-card {
	/* Standardmäßig berechnet auf bis zu 3 oder 4 Spalten */
	flex: 1 1 calc(25% - 25px); 
	min-width: 220px;
	max-width: 320px;
	text-align: center; /* Alles zentrieren wie im Screenshot */
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Die grauen Icons oben */
.milestone-card__icon {
	font-size: 2.8rem;
	color: #888888; /* Elegantes Grau aus dem Screenshot */
	margin-bottom: 15px;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 60px;
}

/* Die dicke rote Zahl */
.milestone-card__number {
	font-size: 2.5rem;
	font-weight: 800;
	color: #d90414; /* Dein markantes Kiefer-Rot */
	line-height: 1;
	margin-bottom: 12px;
	font-variant-numeric: tabular-nums; /* Verhindert, dass die Box beim Zählen wackelt */
}

/* Der Beschreibungstext unten */
.milestone-card__text {
	font-size: 1.1rem;
	font-weight: bold;
	color: #000000;
	line-height: 1.4;
	margin: 0;
}

/* --- Responsive Anpassungen --- */
@media (max-width: 992px) {
	.milestone-card {
		flex: 1 1 calc(50% - 20px); /* 2 Spalten auf Tablets */
	}
}

@media (max-width: 480px) {
	.milestones-grid {
		gap: 30px 10px;
	}
	.milestone-card {
		flex: 1 1 100%; /* Volle Breite auf kleinen Handys */
	}
	.milestone-card__number {
		font-size: 2.2rem;
	}
}

/* ==========================================================================
   BUTTON GRUPPE
   ========================================================================== */

.button-group-container {
	display: flex;
	flex-wrap: wrap; /* Lässt Buttons umbrechen, wenn der Platz nicht reicht */
	gap: 15px;       /* Abstand zwischen den einzelnen Buttons */
	margin: 25px 0;
	width: 100%;
}

/* Falls die Button-Gruppe mobil untereinander gestapelt werden soll */
@media (max-width: 480px) {
	.button-group-container {
		flex-direction: column;
		align-items: stretch; /* Macht alle Buttons gleich breit (volle Breite) */
	}
	
	.button-group-container .button {
		text-align: center;
	}
}



.main-content-area {
    flex-grow: 1;
	min-width:0;
}


#subfooter{
	background:#1a1a1a;
	padding: 2em 0;
}

#subfooter a, #subfooter h3{
	color:#fff;
}

#subfooter h3{
	padding-bottom: 15px;
}

#subfooter ul{
	display:flex;
	gap: 25px;
}

@media (max-width: 991px) {
#subfooter ul{
	flex-direction:column;
}
}

/* ==========================================================================
   ICON BOX GRUPPE (LARGE SPACING & SPACIOUS LAYOUT)
   ========================================================================== */

.icon-box-container {
    padding: 100px 0;              /* Massiv mehr Raum zum Atmen (Top/Bottom) */
    background-color: #f7f7f7;        /* Sehr feines Off-White wie in der Vorlage */
}

.icon-box-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1320px;
    box-sizing: border-box;
}

.icon-box-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    border-right: 1px solid #e0e0e0; /* Subtile vertikale Trennlinie */
    box-sizing: border-box;
}

/* Letzte Spalte ohne Trennlinie */
.icon-box-item:last-child {
    border-right: none;
}

/* Icon Styling */
.icon-box-item__icon {
    flex-shrink: 0;
    font-size: 2.2rem;               /* Leicht markanter */
    color: #e30613;                  /* Kiefer Rot */
    line-height: 1;
    margin-top: 2px;
}

.icon-box-item__icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Inhaltsbereich */
.icon-box-item__title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #111111;
    margin: 0 0 10px 0;
    line-height: 1.3;
    letter-spacing: 0.4px;
}

.icon-box-item__text {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Overrides */
@media (max-width: 1100px) {
    .icon-box-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 50px auto;
    }
    .icon-box-item {
    }
    .icon-box-item:nth-child(2n) {
        border-right: none;
    }
    .icon-box-item:nth-child(1),
    .icon-box-item:nth-child(2) {
        padding-bottom: 30px;
    }
}

@media (max-width: 650px) {
    .icon-box-grid {
        grid-template-columns: 1fr;
    }
    .icon-box-item {
        border-right: none !important;
        border-bottom: 1px solid #e0e0e0;
    }
    .icon-box-item:last-child {
        border-bottom: none;
    }
}

.icon-box-grid {
    display: grid;
    /* Nutzt dynamisch den Wert aus --cols */
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    gap: 30px 20px;
}

/* Automatische Begrenzung für kleinere Bildschirme */
@media (max-width: 1200px) {
    .icon-box-grid {
        grid-template-columns: repeat(min(var(--cols, 3), 4), minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .icon-box-grid {
        grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .icon-box-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LOOP ENGINE (GRID & CAROUSEL COMPATIBLE)
   ========================================================================== */

/* --- Outer Section Base --- */
.loop-engine {
    width: 100%;
    padding: 60px 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    overflow: hidden; /* Hauptsicherung gegen horizontales Ausbrechen */
}

/* Theme Varianten */
.loop-engine--dark {
    background-color: #000000;
    color: #ffffff;
}

.loop-engine--light {
    background-color: #f4f4f4;
    color: var(--kiefer-dark, #222222);
}

/* --- Header Bereich --- */
.loop-engine__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.loop-engine__kicker {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--kiefer-red, #e30613);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.loop-engine--light .loop-engine__kicker::before {
    content: "";
    display: block;
    width: 35px;
    height: 3px;
    background-color: var(--kiefer-red, #e30613);
    margin-bottom: 12px;
}

.loop-engine__title {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.loop-engine--dark .loop-engine__title { color: #ffffff; }
.loop-engine--light .loop-engine__title { color: #000000; }

.loop-engine__top-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loop-engine--dark .loop-engine__top-link { color: #ffffff; }
.loop-engine--light .loop-engine__top-link { color: #000000; }

.loop-engine__top-link .arrow {
    color: var(--kiefer-red, #e30613);
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.loop-engine__top-link:hover .arrow {
    transform: translateX(4px);
}

/* --- 1. MODUS: Standard Grid (Swiper DEAKTIVIERT) --- */
.loop-engine__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.loop-engine__grid .loop-engine__item {
    flex: 1 1 calc(16.666% - 20px); /* Basiert auf bis zu 6 Spalten auf Desktop */
    min-width: 160px;
}

/* ==========================================================================
   LOOP ENGINE CAROUSEL
   Native Scroll-Snap Lösung ohne Swiper
   ========================================================================== */

.loop-engine__wrapper-outer.has-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


/*
 * Der Track.
 *
 * --slides-desktop wird per JS aus dem vorhandenen
 * ACF-Feld "slides_per_view" gesetzt.
 */
.loop-engine__track {
    --slides-desktop: 4;
    --slides-visible: 1;
    --slide-gap: 20px;

    display: flex;

    gap: var(--slide-gap);

    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;
    -ms-overflow-style: none;

    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;

    box-sizing: border-box;

    /*
     * Wichtig auf Touch-Geräten:
     * horizontal darf geswiped werden,
     * vertikales Seitenscrollen bleibt erhalten.
     */
    touch-action: pan-x pan-y;
}


/* Chrome / Safari Scrollbar verstecken */
.loop-engine__track::-webkit-scrollbar {
    display: none;
}


/*
 * Einzelner Slide.
 *
 * Die Breite wird ausschließlich aus:
 *
 * 100% Containerbreite
 * - Gaps
 * / sichtbare Slides
 *
 * berechnet.
 */
.loop-engine__track .loop-engine__slide {
    flex: 0 0 calc(
        (
            100%
            - (var(--slides-visible) - 1) * var(--slide-gap)
        )
        / var(--slides-visible)
    );

    min-width: 0;
    height: auto;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    box-sizing: border-box;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */


/* Mobile: 1 Element */
.loop-engine__track {
    --slides-visible: 1;
    --slide-gap: 20px;
}


/* Größere Smartphones / kleine Tablets: 2 */
@media (min-width: 576px) {

    .loop-engine__track {
        --slides-visible: 2;
        --slide-gap: 20px;
    }
}


/* Tablet / kleiner Desktop: 3 */
@media (min-width: 992px) {

    .loop-engine__track {
        --slides-visible: 3;
        --slide-gap: 25px;
    }
}


/*
 * Desktop:
 * Anzahl kommt aus deinem ACF-Feld.
 */
@media (min-width: 1200px) {

    .loop-engine__track {
        --slides-visible: var(--slides-desktop);
        --slide-gap: 30px;
    }
}

/* Navigation Pfeile - Minimalistisch im Kiefer-Rot & AUẞERHALB platziert */
.loop-engine__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 50px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: none;
}

.loop-engine__arrow svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: var(--kiefer-red, #e30613);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hover-Skalierung */
.loop-engine__arrow--prev:hover {
    transform: translateY(-50%) translateX(-3px) scale(1.1);
}

.loop-engine__arrow--next:hover {
    transform: translateY(-50%) translateX(3px) scale(1.1);
}

/* Pfeile nach AUẞERHALB des Containers schieben */
.loop-engine__arrow--prev { 
    left: -45px; 
}

.loop-engine__arrow--next { 
    right: -45px; 
}

.loop-engine__arrow.swiper-button-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Items & Card Layout (Gilt für beide Modi) --- */
.loop-engine__item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.loop-engine__img-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #222222;
}

.loop-engine__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.loop-engine__item-link:hover .loop-engine__img-wrapper img {
    transform: scale(1.05);
}

.loop-engine__item-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 12px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.loop-engine--dark .loop-engine__item-title { color: #ffffff; }
.loop-engine--light .loop-engine__item-title { color: #000000; }

.loop-engine__item-link:hover .loop-engine__item-title {
    color: var(--kiefer-red, #e30613);
}

/* --- Responsive Anpassungen --- */
@media (max-width: 1400px) {
    /* Bei engerem Viewport rücken die Pfeile leicht ins Innere, damit sie nicht aus dem Bild schießen */
    .loop-engine__arrow--prev { left: -25px; }
    .loop-engine__arrow--next { right: -25px; }
}

@media (max-width: 768px) {
    .loop-engine {
        padding: 40px 0;
    }
    
    .loop-engine__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .loop-engine__grid .loop-engine__item {
        flex: 1 1 calc(50% - 10px); /* Mobil 2 Spalten im Grid-Modus */
    }

    /* Pfeile auf Touch-Geräten ausblenden (Swiping reicht) */
    .loop-engine__arrow {
        display: none;
    }
}



/* ==========================================================================
   FEATURE SECTION (SPLIT LAYOUT WITH CARDS)
   ========================================================================== */

.feature-section {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.6fr; /* Text links schmaler, Cards rechts breiter */
    gap: 50px;
    align-items: center;
    box-sizing: border-box;
	margin: 4em 0;
}

/* Linke Spalte */
.feature-section__kicker {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--kiefer-red, #e30613);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.feature-section__title {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #000000;
    line-height: 1.15;
    margin: 0 0 25px 0;
}

.feature-section__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 30px;
}

.feature-section__text p {
    margin-bottom: 15px;
}

/* Red-underlined Button */
.feature-section__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #000000;
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--kiefer-red, #e30613);
    transition: color 0.2s ease;
}

.feature-section__btn .arrow {
    color: var(--kiefer-red, #e30613);
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.feature-section__btn:hover .arrow {
    transform: translateX(4px);
}

/* Rechte Spalte (Karten Grid) */
.feature-section__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.feature-card__img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 4.5;
    overflow: hidden;
    background-color: #eee;
}

.feature-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card__body {
    padding: 25px 20px;
    background-color: #ffffff;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

.feature-card__title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #000000;
    line-height: 1.25;
    margin: 0;
    white-space: pre-line; /* Damit Umbrüche im Titel klappen */
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .feature-section {
        grid-template-columns: 1fr; /* Stapelt Text & Cards untereinander */
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .feature-section__cards {
        grid-template-columns: 1fr; /* Auf Mobilgeräten Karten einzeln untereinander */
    }
    .feature-section {
        padding: 40px 0;
    }
}

/* ==========================================================================
   TEXT MEDIA ELEMENT (TEXT + BILD / VIDEO)
   ========================================================================== */

.text-media {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    box-sizing: border-box;
	padding-bottom:60px;
}

/* Orientierung: Media Links */
.text-media--media-left {
    grid-template-areas: "media content";
}

.text-media--media-left .text-media__media { grid-area: media; }
.text-media--media-left .text-media__content { grid-area: content; }

/* Orientierung: Media Rechts (Default) */
.text-media--media-right {
    grid-template-areas: "content media";
}

.text-media--media-right .text-media__content { grid-area: content; }
.text-media--media-right .text-media__media { grid-area: media; }

/* Text Content Styling */
.text-media__text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--kiefer-dark, #222222);
}

.text-media__text p {
    margin-bottom: 20px;
}

.text-media__text p:last-child {
    margin-bottom: 0;
}

.text-media__text p:first-child {
}

/* Media Wrapper & Element Handling */
.text-media__wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.text-media__wrapper img,
.text-media__wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Responsive Embeds (YouTube / Vimeo) */
.text-media__wrapper--responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .text-media {
        grid-template-columns: 1fr;
        grid-template-areas: "content" "media" !important;
        gap: 35px;
        padding: 40px 0;
    }
}


/* ==========================================================================
   COUNTER GRUPPE (LIGHT / DARK / RED)
   ========================================================================== */

.counter-group {
    width: 100%;
    padding: 50px 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dynamisches Grid über Inline-Variable --cols */
.counter-group__grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    width: 100%;
}

.counter-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    position: relative;
    text-align: center;
}

/* Trennlinien zwischen den Spalten */
.counter-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
}

.counter-item__number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.counter-item__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   THEME VARIANTEN
   -------------------------------------------------------------------------- */

/* 1. RED MODE (Roter Hintergrund, weiße Schrift, Icons zentriert oben) */
.counter-group--red {
    background-color: var(--kiefer-red, #e30613);
    color: #ffffff;
}

.counter-group--red .counter-item {
    flex-direction: column;
}

.counter-group--red .counter-item__icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.counter-group--red .counter-item:not(:last-child)::after {
    background-color: #ffffff;
    opacity: 0.3;
}

/* 2. LIGHT MODE (Heller Hintergrund, rote Zahlen, dezente Trennlinien) */
.counter-group--light {
    background-color: #f4f4f4;
    color: var(--kiefer-dark, #222222);
}

.counter-group--light .counter-item {
    flex-direction: column;
}

.counter-group--light .counter-item__icon {
    font-size: 2rem;
    color: var(--kiefer-red, #e30613);
    margin-bottom: 12px;
}

.counter-group--light .counter-item__number {
    color: var(--kiefer-red, #e30613);
}

.counter-group--light .counter-item:not(:last-child)::after {
    background-color: #000000;
    opacity: 0.12;
}

/* 3. DARK MODE (Dunkler Hintergrund, rote Outlined Icons links nebeneinander) */
.counter-group--dark {
    background-color: #0d0d0d;
    color: #ffffff;
}

.counter-group--dark .counter-item {
    flex-direction: row;
    gap: 18px;
    text-align: left;
}

.counter-group--dark .counter-item__icon {
    font-size: 2.4rem;
    color: var(--kiefer-red, #e30613);
    display: flex;
    align-items: center;
}

.counter-group--dark .counter-item:not(:last-child)::after {
    background-color: #ffffff;
    opacity: 0.15;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    .counter-group__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px 0;
    }

    .counter-item:nth-child(2n)::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .counter-group {
        padding: 40px 0;
    }

    .counter-group__grid {
        grid-template-columns: 1fr !important;
        gap: 25px 0;
    }

    .counter-item::after {
        display: none !important;
    }

    .counter-group--dark .counter-item {
        justify-content: flex-start;
    }
}



/* ==========================================================================
   ROBUSTER FIXED / TRANSPARENT HEADER
   ========================================================================== */

/* Header liegt fest über dem Inhalt */
header.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: transparent;
}

header.site-header .header-main__inner {
    transition: all 0.33s ease;
}

/* --- STICKY STATE (Beim Scrollen) --- */
header.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.95); /* Dunkler Hintergrund beim Scrollen */
}

header.site-header.is-sticky .header-top {
    display: none;
}

header.site-header.is-sticky .header-main {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

header.site-header.is-sticky .header-main__inner {
    min-height: 65px;
}

header.site-header.is-sticky .logo img {
    transform: scale(0.85);
    transform-origin: left center;
}



/* ==========================================================================
   ALIGNMENT ENGINE
   ========================================================================== */

/* Text */
.text-content.align-left p {
    text-align: left;
}

.text-content.align-center p {
    text-align: center;
}

.text-content.align-right p {
    text-align: right;
}


/* Bilder */
.bild-content.align-left img {
    display: block;
    margin-left: 0;
    margin-right: auto;
}

.bild-content.align-center img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.bild-content.align-right img {
    display: block;
    margin-left: auto;
    margin-right: 0;
}


/* Videos */
.video-content.align-left video {
    display: block;
    margin-left: 0;
    margin-right: auto;
}

.video-content.align-center video {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.video-content.align-right video {
    display: block;
    margin-left: auto;
    margin-right: 0;
}



/*Fixes*/
section h2{
	margin-top:2em;
	margin-bottom:1em;
}

section .icon-box-container h2, h2.karriere-header__title{
	margin-top:0;
	margin-bottom:1em;
}

section .loop-engine h2, section .text-media h2{
	margin-top:0;
	margin-bottom:0;
}

section .container h1{
	margin-top:2em;
}

section .container h1.slide-title{
	margin-top:0;
}

input[type="checkbox"] {
    display: inline;
    width: auto;
}

.wpcf7-list-item {
    margin: 0;
}



/* Verschiebt den Header nach unten, wenn die Admin-Bar sichtbar ist */
body.admin-bar header.site-header, body.admin-bar header.is-sticky .header-main {
  top: 32px;
}

/* Anpassung für mobile Geräte, da die Admin-Bar dort 46px hoch ist */
@media screen and (max-width: 782px) {
  body.admin-bar header.site-header, body.admin-bar header.is-sticky .header-main {
    top: 46px;
  }
}



:root {
  --header-height: 120px; /* Hier die echte Höhe deines Headers eintragen */
}

/* 1. DER MAIN SLIDER: Soll unter den Header gezogen werden */
.site-main.has-main-slider .hero-section {
  margin-top: 0; /* Geht bis ganz nach oben hinter den transparenten Header */
}

/* 2. BREADCRUMBS ANWESEND:
   Falls der Main Slider da ist, rückt die Breadcrumb nach unten. 
   Falls KEIN Slider da ist, schieben wir die Breadcrumb unter den Header. */
.site-main.no-main-slider.has-breadcrumbs .breadcrumbs-section {
  padding-top: calc(var(--header-height) + 20px);
}

/* 3. WEDER SLIDER NOCH BREADCRUMBS (Der Problemfall):
   Wir schieben den normalen Inhaltsbereich unter den Header! */
.site-main.no-main-slider.no-breadcrumbs .content-wrapper {
  padding-top: var(--header-height);
}


/* Wenn <main> sowohl no-main-slider als auch no-breadcrumbs hat, verpass dem Header eine Farbe */
body:has(#primary.no-main-slider.no-breadcrumbs) .header-main {
  background-color: #0d0d0d !important; /* Deine gewünschte Farbe */
}


/* Layout für Menüpunkte mit Icons */
.main-nav__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Abstand falls Icon + Text aktiv sind */
}

.main-nav__list .menu-icon {
  width: 20px;  /* Gewünschte Breite anpassen */
  height: auto;
  display: block;
}

.main-nav__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Abstand zwischen Icon und Text */
}

/* Falls das Icon ohne Text genutzt wird */
.main-nav__list .menu-icon {
  font-size: 1.1em; /* Größe nach Bedarf anpassen */
}


/* ==========================================================================
   RESPONSIVE SECTION VISIBILITY CONTROL (MATCHING THEME BREAKPOINTS)
   ========================================================================== */

/* Desktop (Ab 1300px) */
@media (min-width: 1300px) {
    section.hide-on-desktop {
        display: none !important;
    }
}

/* Tablet (Zwischen 769px und 1299px) */
@media (min-width: 769px) and (max-width: 1299px) {
    section.hide-on-tablet {
        display: none !important;
    }
}

/* Mobile (Bis 768px) */
@media (max-width: 768px) {
    section.hide-on-mobile {
        display: none !important;
    }
}




/* ==========================================================================
   BRAND LOOP
   ========================================================================== */

.brand-loop {
    width: 100%;
    padding: 60px 0;
    background-color: #f4f4f4;
    color: var(--kiefer-dark, #222);
    box-sizing: border-box;
}

/* --- Header Bereich --- */
.brand-loop__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.brand-loop__kicker {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--kiefer-red, #e30613);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.brand-loop__title {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    color: #000000;
}

.brand-loop__header-text {
    font-size: 0.9rem;
    color: #555555;
    text-align: right;
    line-height: 1.4;
}

/* --- Grid & Karten Layout --- */
.brand-loop__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.brand-loop__item {
    flex: 1 1 220px;
    min-width: 0;
}

.brand-loop__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

/* Bild-Container */
.brand-loop__img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #222;
}

.brand-loop__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.brand-loop__card:hover .brand-loop__img-wrapper img {
    transform: scale(1.04);
}

/* Karten-Inhalt */
.brand-loop__body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.brand-loop__item-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: #000000;
}

.brand-loop__item-subtitle {
    font-size: 0.8rem;
    color: #666666;
    margin: 0 0 20px 0;
    line-height: 1.4;
    flex-grow: 1; /* Schiebt den Link immer nach unten */
}

/* Link-Styling unten */
.brand-loop__item-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--kiefer-red, #e30613);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.brand-loop__item-link .arrow {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.brand-loop__card:hover .brand-loop__item-link .arrow {
    transform: translateX(4px);
}

/* --- Responsive Anpassungen --- */
@media (max-width: 768px) {
    .brand-loop {
        padding: 40px 0;
    }
    
    .brand-loop__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .brand-loop__header-text {
        text-align: left;
    }
    
    .brand-loop__item {
        flex: 1 1 100%; /* Vollbreite auf Mobilgeräten */
    }
}





/* ==========================================================================
   KARRIERE HEADER / HERO SECTION
   ========================================================================== */

.karriere-header-wrapper {
    position: relative;
    background-color: #0d0d0d;
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 0;
    overflow: hidden;
}

.karriere-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

/* --- LINKE SPALTE: Content & Benefits --- */
.karriere-header__content {
    flex: 1 1 500px;
    max-width: 580px;
    padding-bottom: 50px;
}

.karriere-header__kicker {
    display: block;
    color: var(--kiefer-red, #e30613);[cite: 1]
    font-family: 'Ubuntu Condensed', sans-serif;[cite: 1]
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.karriere-header__title {
    font-family: 'Ubuntu Condensed', sans-serif;[cite: 1]
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;[cite: 1]
    color: #ffffff;
    margin-bottom: 20px;
}

.karriere-header__text {
    font-family: 'Ubuntu', sans-serif;[cite: 1]
    font-size: 16px;
    line-height: 1.5;
    color: #cccccc;
    margin-bottom: 35px;
}

/* Benefits Liste */
.karriere-header__benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.karriere-header__benefit-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.karriere-header__benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--kiefer-red, #e30613);[cite: 1]
    background: rgba(227, 6, 19, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.karriere-header__benefit-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.karriere-header__benefit-title {
    font-family: 'Ubuntu', sans-serif;[cite: 1]
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
    text-transform: none;
}

.karriere-header__benefit-text {
    font-family: 'Ubuntu', sans-serif;[cite: 1]
    font-size: 13px;
    color: #a0a0a0;
    margin: 0;
}

/* --- RECHTE SPALTE: Bild & CF7 Formular --- */
.karriere-header__side {
    flex: 0 1 480px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.karriere-header__hero-img {
    width: 100%;
    max-height: 260px;
    overflow: hidden;
    margin-bottom: -40px; /* Erzeugt den Überlappungs-Effekt mit dem Formular */
    position: relative;
    z-index: 1;
}

.karriere-header__hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.karriere-header__form-wrapper {
    width: 100%;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 25px;
    position: relative;
    z-index: 2;
}

/* Contact Form 7 Styling innerhalb der Box */
.karriere-header__form-wrapper .wpcf7-form p {
    margin-bottom: 15px;
}

.karriere-header__form-wrapper input[type="text"],
.karriere-header__form-wrapper input[type="email"],
.karriere-header__form-wrapper input[type="tel"],
.karriere-header__form-wrapper select,
.karriere-header__form-wrapper textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 10px 0;
    font-family: 'Ubuntu', sans-serif;[cite: 1]
    font-size: 14px;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.karriere-header__form-wrapper input:focus,
.karriere-header__form-wrapper select:focus,
.karriere-header__form-wrapper textarea:focus {
    border-bottom-color: var(--kiefer-red, #e30613);[cite: 1]
}

.karriere-header__form-wrapper input[type="submit"],
.karriere-header__form-wrapper .wpcf7-submit {
    width: 100%;
    background-color: var(--kiefer-red, #e30613);[cite: 1]
    color: #ffffff;
    font-family: 'Ubuntu Condensed', sans-serif;[cite: 1]
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    padding: 14px 20px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
	color:#fff !important;
}

.karriere-header__form-wrapper input[type="submit"]:hover,
.karriere-header__form-wrapper .wpcf7-submit:hover {
    background-color: #be040f;
}

/* --- UNTERER CTA BUTTON (Volle Breite) --- */
.karriere-header__bottom-cta {
    position: relative;
    margin-top: 40px;
}

.karriere-header__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: var(--kiefer-red, #e30613);[cite: 1]
    color: #ffffff !important;
    font-family: 'Ubuntu Condensed', sans-serif;[cite: 1]
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
	color:#fff !important;
}

.karriere-header__cta-btn:hover {
    background-color: #be040f;
}

.karriere-header__cta-btn .arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.karriere-header__cta-btn:hover .arrow {
    transform: translateX(5px);
}

/* --- RESPONSIVE ANPASSUNGEN --- */
@media (max-width: 991px) {
    .karriere-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .karriere-header__content,
    .karriere-header__side {
        max-width: 100%;
        flex: 1 1 100%;
    }
    
    .karriere-header__title {
        font-size: 32px;
    }
    
    .karriere-header__hero-img {
        max-height: 200px;
        margin-bottom: 0;
    }
}


/* Font Awesome Icon Styling */
.karriere-header__benefit-icon i,
.karriere-header__benefit-icon span {
    font-size: 18px;
    color: var(--kiefer-red, #e30613);[cite: 1]
    line-height: 1;
}

/* Contact Form 7 Button Fix (Bessere Lesbarkeit & Kontrast) */
.karriere-header__form-wrapper input[type="submit"],
.karriere-header__form-wrapper .wpcf7-submit {
    background-color: var(--kiefer-red, #e30613) !important;[cite: 1]
    color: #ffffff !important;
    font-family: 'Ubuntu Condensed', sans-serif;[cite: 1]
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    padding: 14px 20px;
    margin-top: 15px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.karriere-header__form-wrapper input[type="submit"]:hover,
.karriere-header__form-wrapper .wpcf7-submit:hover {
    background-color: #be040f !important;
}

/* Unterer CTA Button Anpassungen */
.karriere-header__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: var(--kiefer-red, #e30613) !important;[cite: 1]
    color: #ffffff !important;
    font-family: 'Ubuntu Condensed', sans-serif;[cite: 1]
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.karriere-header__cta-btn:hover {
    background-color: #be040f !important;
}

/* Checkbox & Text Alignment im Formular */
.karriere-header__form-wrapper .wpcf7-list-item {
    margin: 0;
}

.karriere-header__form-wrapper .wpcf7-list-item-label {
    font-size: 12px;
    color: #a0a0a0;
    line-height: 1.4;
}



/* ==========================================================================
   SEARCH RESULTS PAGE (SUCHERGEBNISSE)
   ========================================================================== */

/* Layout & Container-Abstände */
.search-header h1{
	margin-top:2em;
}

.search-results-main {
    padding: 60px 0;
}

.search-results-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--kiefer-light, #f2f2f3);
}

.search-results-title {
    font-size: var(--font-h1);
    color: var(--kiefer-dark, #3a3a3a);
    margin-bottom: 10px;
}

.search-results-title span {
    color: var(--kiefer-red, #e30613);
}

.search-results-count {
    font-size: var(--font-small);
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Liste der Suchergebnisse */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

/* Einzelnes Suchergebnis */
.search-result-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    transition: var(--transition, all 0.2s ease-in-out);
    position: relative;
}

.search-result-item:hover {
    border-color: var(--kiefer-red, #e30613);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-result-item__title {
    font-size: var(--font-h3);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.search-result-item__title a {
    color: var(--kiefer-dark, #3a3a3a);
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-result-item__title a:hover {
    color: var(--kiefer-red, #e30613);
}

.search-result-item__meta {
    font-size: var(--font-small);
    color: var(--kiefer-gray, #aab2b7);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.search-result-item__excerpt {
    font-size: var(--font-base);
    color: #444444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.search-result-item__link {
    font-size: var(--font-small);
    font-weight: 700;
    color: var(--kiefer-red, #e30613);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-result-item__link:hover {
    color: var(--kiefer-dark, #3a3a3a);
}

/* Pagination (Seitennavigation) */
.search-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}

.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    color: var(--kiefer-dark, #3a3a3a);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition, all 0.2s ease-in-out);
}

.search-pagination .page-numbers.current,
.search-pagination .page-numbers:hover {
    background-color: var(--kiefer-red, #e30613);
    border-color: var(--kiefer-red, #e30613);
    color: #ffffff;
}

/* Fallback: Keine Ergebnisse gefunden */
.search-no-results {
    padding: 40px;
    background-color: var(--kiefer-light, #f2f2f3);
    text-align: center;
}

.search-no-results p {
    margin-bottom: 20px;
}

.search-no-results .search-form {
    margin: 0 auto;
}

.search-no-results .search-form input {
    color: var(--kiefer-dark, #3a3a3a);
    border-bottom: 2px solid var(--kiefer-red, #e30613);
}

.search-no-results .search-form input::placeholder {
    color: #888888;
}


/* ==========================================================================
   PAGINATION (.nav-links)
   ========================================================================== */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 20px;
}

/* Alle Seitenzahlen und Buttons */
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: var(--kiefer-dark, #3a3a3a);
    font-family: var(--font-heading, 'Ubuntu Condensed', sans-serif);
    font-size: var(--font-base, 16px);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition, all 0.2s ease-in-out);
    box-sizing: border-box;
}

/* Hover-Zustand für normale Links */
.nav-links a.page-numbers:hover {
    background-color: var(--kiefer-red, #e30613);
    border-color: var(--kiefer-red, #e30613);
    color: #ffffff;
}

/* Aktive Seite */
.nav-links .page-numbers.current {
    background-color: var(--kiefer-red, #e30613);
    border-color: var(--kiefer-red, #e30613);
    color: #ffffff;
    cursor: default;
}

/* Anpassung für "Zurück" und "Weiter" Text-Buttons */
.nav-links .prev.page-numbers,
.nav-links .next.page-numbers {
    padding: 0 16px;
}


/* ==========================================================================
   MOBILE MAIN LAYOUT FIX
   Flex-Child darf nicht über den Viewport hinaus wachsen
   ========================================================================== */

@media (max-width: 768px) {

    .main-layout {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .main-content-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        flex: 0 1 100%;
    }
}


.text-media__wrapper--video {
    position: relative;
}

/* Wrapper als Bezugspunkt für den Mute-Button */
.text-media__wrapper--video,
.text-media__wrapper--responsive-iframe,
.video-file-wrapper,
.video-embed {
    position: relative;
}


/* Mute / Unmute Button – Text Media + Video Element */
.text-media__mute-toggle,
.video-content__mute-toggle {
    position: absolute;
    bottom: 15px;
    right: 15px;

    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;

    border: none;
    border-radius: 50%;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: background-color 0.3s ease;

    z-index: 2;
}


/* Hover */
.text-media__mute-toggle:hover,
.video-content__mute-toggle:hover {
    background: var(--kiefer-red, #e30613);
}


/* Tastatur-Fokus */
.text-media__mute-toggle:focus-visible,
.video-content__mute-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}


/* Icon */
.text-media__mute-toggle i,
.video-content__mute-toggle i {
    pointer-events: none;
}







/* Roter Link-Bereich wie in der Brand-Gruppe */
.loop-engine__item-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--kiefer-red, #e30613);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto; /* Richtet den Link immer unten aus */
    transition: color 0.2s ease;
}

.loop-engine__item-link .arrow {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

/* Hover-Effekt: Pfeil bewegt sich leicht nach rechts */
.loop-engine__item-card:hover .loop-engine__item-link .arrow {
    transform: translateX(4px);
}


.loop-engine__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.loop-engine__img-wrapper {
    width: 100%;
    display: block;
}

.loop-engine__img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.loop-engine__body {
    display: block;
    width: 100%;
    padding-top: 12px;
}

.loop-engine__item-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #000;
}

.loop-engine__item-title .arrow {
    color: var(--kiefer-red, #e30613);
    margin-left: 4px;
    display: inline-block;
}


/* Card Grund-Styling */
.loop-engine__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Bild-Wrapper & Zoom-Effekt */
.loop-engine__img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10; /* hält das Format stabil */
    overflow: hidden;      /* schneidet den Zoom sauber ab */
}

.loop-engine__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 1. HOVER: Bild vergrößern */
.loop-engine__card:hover .loop-engine__img-wrapper img {
    transform: scale(1.04);
}

/* Pfeil Styling */
.loop-engine__item-title .arrow {
    color: var(--kiefer-red, #e30613);
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.2s ease;
}

/* 2. HOVER: Pfeil nach rechts schieben */
.loop-engine__card:hover .loop-engine__item-title .arrow {
    transform: translateX(5px);
}





/* ==========================================================================
   KARRIERE HERO UND STELLENANZEIGEN
   ========================================================================== */

.site-main.has-career-hero.no-main-slider.no-breadcrumbs .content-wrapper {
    padding-top: 0;
}

body:has(#primary.has-career-hero) .header-main {
    background-color: transparent !important;
}

.karriere-header-wrapper {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 650px;
    padding: 80px 0 0;
    overflow: hidden;
    color: #fff;
    background: #0d0d0d;
}

.karriere-header-wrapper--page-hero {
    padding-top: calc(var(--header-height, 120px) + 55px);
}

.karriere-header__media,
.karriere-header__overlay {
    position: absolute;
    inset: 0;
}

.karriere-header__media {
    z-index: -2;
}

.karriere-header__media img,
.karriere-header__media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.karriere-header__overlay {
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.90) 42%,
        rgba(0, 0, 0, 0.65) 72%,
        rgba(0, 0, 0, 0.48) 100%
    );
}

.karriere-header__inner {
    position: relative;
    z-index: 1;
	margin-top:4em;
}

.karriere-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
    gap: clamp(40px, 7vw, 100px);
    align-items: end;
}

.karriere-header--without-form {
    grid-template-columns: minmax(0, 680px);
}

.karriere-header__content {
    max-width: 620px;
    padding: 0;
}

.karriere-header__kicker,
.stellenanzeigen-loop__kicker {
    margin: 0 0 10px;
    color: var(--kiefer-red, #e30613);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

section .container h1.karriere-header__title,
.karriere-header__title {
    margin: 0 0 20px;
    color: #fff;
    font-family: "Ubuntu Condensed", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 700;
    line-height: 1.02;
    text-transform: uppercase;
}

.karriere-header__text {
    max-width: 580px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.65;
}

.karriere-header__text p {
    margin: 0 0 1em;
}

.karriere-header__text p:last-child {
    margin-bottom: 0;
}

.karriere-header__benefits {
    display: grid;
    gap: 18px;
}

.karriere-header__benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.karriere-header__benefit-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1.5px solid var(--kiefer-red, #e30613);
    border-radius: 50%;
    color: var(--kiefer-red, #e30613);
    background: rgba(227, 6, 19, 0.10);
}

.karriere-header__benefit-icon i,
.karriere-header__benefit-icon span {
    color: inherit;
    font-size: 18px;
    line-height: 1;
}

.karriere-header__benefit-title {
    margin: 0 0 2px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.karriere-header__benefit-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
}

.karriere-header__side {
    width: 100%;
    max-width: 480px;
}

.karriere-header__form-wrapper {
    width: 100%;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(8, 8, 8, 0.82);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
}

.quick-application{
	margin-top:1em;
}

.karriere-header .quick-application > div.form-field{
	margin: 0 1em;
}

.wpcf7-spinner{
	display:none;
}

.karriere-header__form-wrapper .wpcf7-form p {
    margin: 0;
}

.karriere-header__form-wrapper input[type="text"],
.karriere-header__form-wrapper input[type="email"],
.karriere-header__form-wrapper input[type="tel"],
.karriere-header__form-wrapper select,
.karriere-header__form-wrapper textarea {
    width: 100%;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    outline: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    font: inherit;
	max-height:100px;
	resize: none !important;
}

.karriere-header__form-wrapper textarea {
    min-height: 100px;
    resize: vertical;
}

.karriere-header__form-wrapper input:focus,
.karriere-header__form-wrapper select:focus,
.karriere-header__form-wrapper textarea:focus {
    border-color: var(--kiefer-red, #e30613);
}

.karriere-header__form-wrapper input[type="submit"],
.karriere-header__form-wrapper .wpcf7-submit {
    width: 100%;
    margin-top: 8px;
    padding: 15px 20px;
    border: 2px solid var(--kiefer-red, #e30613);
    border-radius: 0;
    color: #fff !important;
    background: var(--kiefer-red, #e30613) !important;
    font-family: "Ubuntu Condensed", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

.karriere-header__form-wrapper .wpcf7-submit:hover {
    background: #be040f !important;
}

.karriere-header__bottom-cta {
    position: relative;
    margin-top: 45px;
}

.karriere-header__cta-btn {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 20px;
    color: #fff !important;
    background: var(--kiefer-red, #e30613) !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.karriere-header__cta-btn:hover {
    background: #be040f !important;
}

/* Stellenanzeigen */

.stellenanzeigen-loop {
    padding: clamp(55px, 7vw, 90px) 0;
    color: var(--kiefer-dark, #222);
    background: #0d0d0d !important;
}

.stellenanzeigen-loop__header {
    max-width: 760px;
    margin-bottom: 32px;
}

section .stellenanzeigen-loop__title,
.stellenanzeigen-loop__title {
    margin: 0 0 12px;
    color: #FFF;
    font-family: "Ubuntu Condensed", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    text-transform: uppercase;
}

.stellenanzeigen-loop__intro,
.stellenanzeigen-loop__intro p {
    margin: 0;
    color: #FFF;
    line-height: 1.6;
}

.stellenanzeigen-loop__filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 280px));
    gap: 18px;
    margin-bottom: 32px;
}

.stellenanzeigen-loop__filter label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
	color:#fff;
}

.stellenanzeigen-loop__filter select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d1d1d1;
    border-radius: 0;
    color: #222;
    background: #fff;
    font: inherit;
}

.stellenanzeigen-loop__filter select:focus {
    border-color: var(--kiefer-red, #e30613);
    outline: 2px solid rgba(227, 6, 19, 0.16);
}

.stellenanzeigen-loop__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.stellenanzeigen-loop__card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.stellenanzeigen-loop__card[hidden] {
    display: none !important;
}

.stellenanzeigen-loop__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    color: #fff;
    background: #191919;
}

.stellenanzeigen-loop__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stellenanzeigen-loop__card:hover .stellenanzeigen-loop__image img {
    transform: scale(1.035);
}

.stellenanzeigen-loop__image-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--kiefer-red, #e30613);
    font-size: 42px;
    background: linear-gradient(135deg, #161616, #303030);
}

.stellenanzeigen-loop__body {
    padding: 23px;
}

.stellenanzeigen-loop__card-title {
    margin: 0 0 13px;
    font-size: 1.35rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.stellenanzeigen-loop__card-title a {
    color: #171717;
    text-decoration: none;
}

.stellenanzeigen-loop__card-title a:hover {
    color: var(--kiefer-red, #e30613);
}

.stellenanzeigen-loop__meta {
    display: grid;
    gap: 7px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.stellenanzeigen-loop__meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stellenanzeigen-loop__meta i {
    width: 16px;
    color: var(--kiefer-red, #e30613);
    text-align: center;
}

.stellenanzeigen-loop__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border: 2px solid var(--kiefer-red, #e30613);
    color: #fff !important;
    background: var(--kiefer-red, #e30613);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.stellenanzeigen-loop__button:hover {
    color: var(--kiefer-red, #e30613) !important;
    background: transparent;
}

.stellenanzeigen-loop__empty,
.stellenanzeigen-loop__no-results {
    margin: 24px 0 0;
    padding: 20px;
    border-left: 4px solid var(--kiefer-red, #e30613);
    background: #fff;
}

@media (max-width: 991px) {
    .karriere-header-wrapper,
    .karriere-header-wrapper--page-hero {
        padding-top: calc(var(--header-height, 120px) + 35px);
    }

    .karriere-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .karriere-header__content,
    .karriere-header__side {
        max-width: 100%;
    }

    .karriere-header__side {
        padding-bottom: 45px;
    }

    .karriere-header__overlay {
        background: rgba(0, 0, 0, 0.82);
    }

    .stellenanzeigen-loop__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .karriere-header-wrapper,
    .karriere-header-wrapper--page-hero {
        min-height: 0;
        padding-top: calc(var(--header-height, 120px) + 25px);
    }

    .karriere-header__content {
        padding-bottom: 30px;
    }

    .karriere-header__bottom-cta {
        margin-top: 0;
    }

    .stellenanzeigen-loop__filters,
    .stellenanzeigen-loop__grid {
        grid-template-columns: 1fr;
    }
}


/* Responsive Container für Videos */
.text-media__wrapper--responsive-iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* Erzwingt das 16:9 Format */
    position: relative;
    background-color: #000; /* Verhindert Blitzen beim Laden */
    overflow: hidden;
}

/* iframe muss sich komplett an den Wrapper anpassen */
.text-media__wrapper--responsive-iframe iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}



/* Grund-Styling für das Video */
.video-content .content-video {
    width: 100%;
    height: auto;
    display: block;
}

/* Videogrößen-Klassen (analog zu WordPress Bildgrößen) */
.video-content.video-size-full {
    max-width: 100%;
}

.video-content.video-size-large {
    max-width: 1024px;
}

.video-content.video-size-medium {
    max-width: 600px;
}

.video-content.video-size-thumbnail {
    max-width: 300px;
}

/* Zentrierung / Ausrichtung berücksichtigen */
.video-content.align-center {
    margin-left: auto;
    margin-right: auto;
}

.video-content.align-right {
    margin-left: auto;
    margin-right: 0;
}

.video-content.align-left {
    margin-left: 0;
    margin-right: auto;
}






/* Dynamic Padding Utility Classes */
.site-section.has-padding-top {
    padding-top: 60px;
}
.site-section.has-padding-bottom {
    padding-bottom: 60px;
}

/* Dynamic Margin Utility Classes */
.site-section.has-margin-top {
    margin-top: 60px;
}
.site-section.has-margin-bottom {
    margin-bottom: 60px;
}

.bild-content{
	margin: 30px 0;
}



.main-layout .main-content-area li {
    position: relative;
    padding: 4px 0 4px 27px;
    list-style: none;
}

.main-layout .main-content-area li > .kiefer-list-icon {
    position: absolute;
    left: 0;
    top: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: var(--kiefer-red);

    border-radius: 5px;
    font-size: 10px;
    line-height: 1;
}


.kiefer-login {
	max-width: 480px;
	margin: 60px auto;
}

.kiefer-login form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.kiefer-login p {
	margin: 0;
}

.kiefer-login label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.kiefer-login input[type="text"],
.kiefer-login input[type="password"] {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.kiefer-login .login-submit {
	margin-top: 10px;
}




.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.content-video {
    display: block;
    width: 100%;
    height: auto;
}



/* Überschriften:
   Erst normale Wörter umbrechen.
   Nur wenn EIN einzelnes Wort wirklich zu breit ist,
   darf innerhalb des Wortes gebrochen werden. */
h1,
h2,
h3,
h4,
h5,
h6 {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}


/* =========================================================
   RESPONSIVE CONTENT TABLE
   ========================================================= */

.main-layout table.contenttable {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Zellen grundsätzlich sauber behandeln */
.main-layout table.contenttable th,
.main-layout table.contenttable td {
    box-sizing: border-box;
    min-width: 0;
}

/* Zusatztexte wie Abteilung unter dem Namen */
.main-layout table.contenttable td span {
    display: block;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /*
     * Fixed verhindert, dass lange Inhalte wie
     * joerg.schmalzhaf(at)kiefer-mold.de
     * die gesamte Tabelle breiter als den Viewport machen.
     */
    .main-layout table.contenttable {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed;
    }

    /*
     * Inhalte dürfen innerhalb ihrer Spalte umbrechen.
     */
    .main-layout table.contenttable th,
    .main-layout table.contenttable td {
        min-width: 0 !important;
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    /*
     * Spaltenverteilung:
     * Name | E-Mail | Telefon
     */
    .main-layout table.contenttable td:nth-child(1) {
        width: 28%;
    }

    .main-layout table.contenttable td:nth-child(2) {
        width: 42%;
    }

    .main-layout table.contenttable td:nth-child(3) {
        width: 30%;
    }

    /*
     * Die roten Überschriften haben colspan="3"
     * und sollen immer die komplette Tabellenbreite nutzen.
     */
    .main-layout table.contenttable th[colspan="3"] {
        width: 100% !important;
    }
}


.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}



/* ==========================================================================
   TEXT MEDIA
   ========================================================================== */

.text-media {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}


/* ==========================================================================
   AUSRICHTUNG
   ========================================================================== */

/* Medium rechts – Standard */
.text-media--media-right {
    flex-direction: row;
}

/* Medium links */
.text-media--media-left {
    flex-direction: row-reverse;
}


/* ==========================================================================
   TEXT
   ========================================================================== */

.text-media__content {
    flex: 1 1 0;
    min-width: 0;
}

.text-media__text {
    width: 100%;
}

.text-media__text > :first-child {
    margin-top: 0;
}

.text-media__text > :last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   MEDIENBREITEN

   Die ACF-Werte entsprechen bewusst den bestehenden
   Bild-/Video-Größen:

   full      = 50 %
   large     = 40 %
   medium    = 33.333 %
   thumbnail = 25 %

   Der Text nimmt automatisch den verbleibenden Platz ein.
   ========================================================================== */

.text-media__media {
    min-width: 0;
}


/* Full */
.text-media--size-full .text-media__media {
    flex: 0 0 50%;
    width: 50%;
}


/* Large */
.text-media--size-large .text-media__media {
    flex: 0 0 40%;
    width: 40%;
}


/* Medium */
.text-media--size-medium .text-media__media {
    flex: 0 0 33.333%;
    width: 33.333%;
}


/* Thumbnail */
.text-media--size-thumbnail .text-media__media {
    flex: 0 0 25%;
    width: 25%;
}


/* ==========================================================================
   MEDIA WRAPPER
   ========================================================================== */

.text-media__wrapper {
    position: relative;
    width: 100%;
}


/* Bilder */

.text-media__image,
.text-media__wrapper img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}


/* Video-Dateien */

.text-media__wrapper video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   YOUTUBE / VIMEO
   ========================================================================== */

.text-media__wrapper--responsive-iframe {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.text-media__wrapper--responsive-iframe iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ==========================================================================
   MUTE BUTTON
   ========================================================================== */

.text-media__mute-toggle {
    position: absolute;
    bottom: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;

    cursor: pointer;
    transition: background-color 0.3s ease;

    z-index: 2;
}

.text-media__mute-toggle:hover {
    background: var(--kiefer-red, #e30613);
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 992px) {

    .text-media {
        gap: 1.5rem;
    }

    /*
     * Auf Tablet verhindern wir zu kleine Medien.
     * Thumbnail und Medium dürfen daher etwas mehr Raum bekommen.
     */

    .text-media--size-thumbnail .text-media__media {
        flex-basis: 30%;
        width: 30%;
    }

    .text-media--size-medium .text-media__media {
        flex-basis: 35%;
        width: 35%;
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    /*
     * Auf Mobile grundsätzlich untereinander.
     */
    .text-media,
    .text-media--media-right,
    .text-media--media-left {
        flex-direction: column;
        gap: 1.25rem;
    }


    /*
     * Text und Medium nutzen die komplette verfügbare Breite.
     *
     * Die Desktop-Größenauswahl soll Mobile nicht künstlich
     * auf 25 / 33 / 40 / 50 % zusammendrücken.
     */
    .text-media__content,
    .text-media__media,
    .text-media--size-full .text-media__media,
    .text-media--size-large .text-media__media,
    .text-media--size-medium .text-media__media,
    .text-media--size-thumbnail .text-media__media {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }


    /*
     * Reihenfolge beibehalten:
     *
     * media-right = Text -> Medium
     * media-left  = Medium -> Text
     */
    .text-media--media-right .text-media__content {
        order: 1;
    }

    .text-media--media-right .text-media__media {
        order: 2;
    }

    .text-media--media-left .text-media__media {
        order: 1;
    }

    .text-media--media-left .text-media__content {
        order: 2;
    }
}


.counter-item__custom-icon {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}