/* autasi.de: Optik der Altseite (Bootstrap 3, autasi.css) auf knet_sitepackage übertragen.
   Quelle: TYPO3/update/autasi_v11-v14/07_optik-diagnose.md. Lädt nach theme.css (Setting knet.advanced.customCss).
   Farben alt: Rot #FF0000 (Header, Links, Kartentitel), Türkis #007A7B (Hover, Buttons, Aktiv), Footer #E80101,
   Bestell-Buttons #5D7D98, Text #333. Schriften: Oswald (Fließtext, Überschriften), News Cycle (Navigation, Slider). */

/* 1. Schriften lokal (woff2 aus dem alten Sitepackage, fileadmin/fonts/), kein Fremdaufruf */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/oswald-v23-latin-300.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/oswald-v23-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/oswald-v23-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/oswald-v23-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'News Cycle'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/news-cycle-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'News Cycle'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/news-cycle-v20-latin-700.woff2') format('woff2'); }

/* html:root schlägt die Inline-Variablen des Sitepackage (<style id="knet-theme-fonts">) */
html:root {
  --knet-font-body: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --knet-font-headline: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --bs-body-font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --autasi-rot: #ff0000;
  --autasi-tuerkis: #007a7b;
  --autasi-footer: #e80101;
  --autasi-bestellen: #5d7d98;
  --autasi-text: #333333;
  --autasi-grau: #6c6c6c;   /* alt #a5a5a5, für Kontrast 4,5:1 abgedunkelt (Final-Review I8) */
  --knet-radius: 2px;
}

/* 2. Typografie wie alt: Oswald 16 px, Zeilenhöhe 1.5, leichte Sperrung; Überschriften Gewicht 400 */
body { font-family: var(--knet-font-body); font-size: 16px; font-weight: 400; letter-spacing: 0.05em; color: var(--autasi-text); }
p { line-height: 1.5; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--knet-font-headline); font-weight: 400; color: var(--autasi-text); }
h1, .h1 { font-size: 2.25rem; }
h2, .h2, h3, .h3 { font-size: 1.5rem; }
a { color: var(--autasi-rot); }
a:hover, a:focus { color: var(--autasi-tuerkis); }

/* 2a. Seitentitel (H1 aus dem Seitentitel): dunkel, Gewicht 400, ohne Akzentlinie wie die alten Überschriften */
.knet-page-title { color: var(--autasi-text); font-weight: 400; letter-spacing: 0.05em; padding-bottom: 0; margin-bottom: 1.25rem; }
.knet-page-title::after { display: none; }

/* 3. Header: rotes Band, weißes Logo (SVG), Navigation News Cycle in Versalien, aktiv/hover türkis */
.knet-header { background: var(--autasi-rot); border-bottom: 0; box-shadow: none; }
.knet-header .navbar { min-height: 54px; padding-top: 0; padding-bottom: 0; }
.knet-header .navbar-brand { color: #fff; padding: 0.5rem 0; }
.knet-header .navbar-brand img, .knet-header .knet-logo { height: 26px; width: auto; max-height: 26px; }
.knet-header .navbar-nav .nav-link {
  font-family: 'News Cycle', 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 20px; text-transform: uppercase; letter-spacing: 0.8px;
  color: #fff; padding: 17px 22px;   /* gemessen alt: 16 px, Zeilenhöhe 20 px, Sperrung 0,8 px, Header 54 px (Runde 3, Punkt 1) */
}
.knet-header .navbar-nav .nav-link:hover,
.knet-header .navbar-nav .nav-link:focus,
.knet-header .navbar-nav .nav-item.active > .nav-link,
.knet-header .navbar-nav .nav-link.active,
.knet-header .navbar-nav .show > .nav-link { color: #fff; background: var(--autasi-tuerkis); }
.knet-header .dropdown-menu { border: 0; border-radius: 0; margin-top: 0; min-width: 300px; }   /* breit genug für „Vierkantpfosten Stahl ›“ in einer Zeile */
.knet-header .dropdown-item { white-space: nowrap; }
/* Kaskade Kategorie → Unterkategorie → Produkte (Runde 3b): Unterkategorien schmal, Produkte dürfen umbrechen,
   damit alle drei Stufen bei 1440 px nebeneinander passen (Dropdown ab ca. 650 px: 300 + 200 + 280) */
.knet-header .knet-flyout { min-width: 200px; }
.knet-header .knet-flyout .knet-flyout { min-width: 280px; max-width: 300px; }
.knet-header .knet-flyout .knet-flyout .dropdown-item { white-space: normal; }
.knet-header .dropdown-item { font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif; font-size: 16px; padding: 3px 20px; color: var(--autasi-text); }   /* alt: Oswald 16 px, 3 px Abstand */
.knet-header .knet-header-search .form-control { height: 28px; min-height: 28px; padding: 3px 8px; line-height: 20px; color: #555; }
.knet-header .dropdown-item:hover, .knet-header .dropdown-item:focus, .knet-header .dropdown-item.active { color: #fff; background: var(--autasi-tuerkis); }
.knet-header .knet-header-phone, .knet-header .knet-header-phone a, .knet-header .navbar-text, .knet-header .navbar-text a { color: #fff; }
.knet-header .navbar-toggler { border-color: rgba(255,255,255,.6); }
.knet-header .navbar-toggler-icon { filter: invert(1); }
@media (max-width: 991.98px) {
  .knet-header .navbar-collapse { background: var(--autasi-rot); }
  .knet-header .navbar-nav .nav-link { padding: 10px 15px; }
  .knet-header .dropdown-menu { background: rgba(255,255,255,.95); }
}

/* 4. Slider (Startseite) und Teaserbild: 500 px hoch, Bild beschnitten, Caption rechts in dunklem Grau,
   Indikatoren türkis, kein Button im Slide (alt: ganzer Slide verlinkt) */
.knet-hero .carousel-item img { height: 500px; object-fit: cover; }
.knet-hero .carousel-caption {
  left: auto; right: 5%; top: 50%; bottom: auto; transform: translateY(-50%);
  width: 30%; text-align: right; padding: 0; background: transparent;
}
.knet-hero .carousel-caption h2, .knet-hero .carousel-caption h3, .knet-hero .carousel-caption .h2 {
  font-family: 'News Cycle', 'Helvetica Neue', Arial, sans-serif; font-weight: 700; font-size: 4rem; line-height: 1.05;
  color: #575556; text-shadow: none; margin-bottom: 0;
}
.knet-hero .carousel-caption p { color: #575556; font-size: 1.5rem; }
.knet-hero .carousel-caption .btn { display: none; }
.knet-hero .carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; background: #ccc; opacity: 1; border: 0; }
.knet-hero .carousel-indicators .active { background: var(--autasi-tuerkis); }
.knet-hero .carousel-control-prev-icon, .knet-hero .carousel-control-next-icon { filter: invert(1) grayscale(1); }
@media (max-width: 767.98px) {
  .knet-hero .carousel-item img { height: 320px; }
  .knet-hero .carousel-caption { width: 50%; right: 4%; }
  .knet-hero .carousel-caption h2, .knet-hero .carousel-caption h3, .knet-hero .carousel-caption .h2 { font-size: 2.25rem; }
}

/* 5. Brotkrume: helles Band wie „Sie befinden sich hier“ (alt #f5f5f5), Links türkis */
.knet-breadcrumb .breadcrumb { background: #f5f5f5; padding: 0.6rem 1rem; border-radius: 0; font-size: 0.95rem; margin: 46px 0 20px; }   /* gemessen alt: 46 px unter dem Header, 20 px darunter */
.knet-breadcrumb .breadcrumb-item a { color: var(--autasi-tuerkis); text-decoration: none; }
.knet-breadcrumb .breadcrumb-item.active { color: var(--autasi-text); }

/* 6. Buttons: Formulare und Standard türkis mit kleinem Radius; Bestell-Buttons der Produktseite in Blaugrau */
.btn-primary, .btn-primary:focus { background: var(--autasi-tuerkis); border-color: var(--autasi-tuerkis); color: #fff; border-radius: 2px; }
.btn-primary:hover, .btn-primary:active { background: #006263; border-color: #006263; color: #fff; }
.btn-outline-primary { color: var(--autasi-tuerkis); border-color: var(--autasi-tuerkis); border-radius: 2px; }
.btn-outline-primary:hover { background: var(--autasi-tuerkis); border-color: var(--autasi-tuerkis); color: #fff; }
.produkt-bestellen .btn, .produkt-bestellen .btn:focus { background: var(--autasi-bestellen); border-color: var(--autasi-bestellen); color: #fff; margin-right: 0.5rem; margin-bottom: 0.5rem; }
.produkt-bestellen .btn:hover { background: #4a687f; border-color: #4a687f; }

/* 7. Karten (Kategorien, Produkte): zentriert, Titel rot, Trennlinie, leichter Schatten wie alt */
.knet-cards .card { border: 0; box-shadow: 1px 1px 5px rgba(0,0,0,.2); text-align: center; }
.knet-cards .card-img-top { padding: 1rem 1rem 0; object-fit: contain; height: 240px; }
.knet-cards .card-title { color: var(--autasi-rot); font-size: 1.125rem; padding-bottom: 0.5rem; border-bottom: 1px solid #ddd; }
.knet-cards .card-subtitle, .knet-cards .card .text-muted { color: var(--autasi-grau) !important; font-size: 0.875rem; }
.knet-cards .card-text { font-size: 0.9375rem; }
.knet-cards .card-footer { text-align: center; }

/* 8. Produktseite: Kategoriepfad grau klein, Ausführungen als graues Band mit Tabelle, Bestellkürzel hervorgehoben */
.produkt-pfad { color: var(--autasi-grau); font-size: 0.875rem; margin-bottom: 0.25rem; }
.frame-type-table { background: rgba(0,0,0,.08); padding: 1.25rem 1.25rem 0.5rem; border-radius: 2px; }
.frame-type-table h2, .frame-type-table .h2 { color: var(--autasi-tuerkis); font-size: 1.5rem; }
.frame-type-table table { margin-bottom: 0.75rem; background: transparent; }
.frame-type-table thead th { background: #bfbfbf; border: 0; font-weight: 600; }
.frame-type-table tbody td { border-color: rgba(0,0,0,.1); }
.frame-type-table tbody td:last-child { font-weight: 600; white-space: nowrap; }
.frame-type-textmedia .image-embed-item { border: 1px solid #e5e5e5; background: #fff; }
/* Produktbilder links neben dem Text: Spalte wie alt rund 40 % (Bootstrap 3: col-md-5). Feste Breite statt max-width: als
   Float richtete sich die Breite nach dem Inhalt und sprang beim Bildwechsel des Sliders kurz, der Text rutschte mit (Tommy, 9.11.) */
.ce-intext.ce-left .ce-gallery { width: 40%; max-width: 40%; margin-right: 2rem; }
.ce-intext.ce-left .ce-gallery img { max-width: 100%; height: auto; }
@media (max-width: 767.98px) { .ce-intext.ce-left .ce-gallery { max-width: 100%; float: none; margin-right: 0; } }

/* 9. Footer: rotes Band, weiße Schrift, drei Spalten mit Trennlinien, Meta-Links weiß */
.knet-footer { background: var(--autasi-footer); color: #fff; margin-top: 60px; }
.knet-footer a { color: #fff; }
.knet-footer a:hover { color: #000; }
.knet-footer .knet-prefooter { display: none; }
.knet-footer .knet-footer-cta { padding: 0; background: transparent; }   /* trägt nur die fixierten Seitenknöpfe (Abschnitt 13) */
.knet-footer .row > .col:nth-child(2) { text-align: center; }
.knet-footer .row > .col:nth-child(2) h2, .knet-footer .row > .col:nth-child(2) .h2, .knet-footer .row > .col:nth-child(2) h3 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.knet-footer .row > .col:nth-child(2) ul { list-style: none; padding: 0; margin: 0; }
.knet-footer .row > .col:nth-child(3) { text-align: right; }
.knet-footer .row > .col:nth-child(3) img { height: 20px; width: auto; }
.knet-footer .row > .col { min-height: 190px; border-left: 1px solid #f14b4b; box-shadow: -1px 0 0 #b50000; }
.knet-footer .row > .col:first-child { border-left: 0; box-shadow: none; }
.knet-footer .knet-footer-meta, .knet-footer .knet-footer-bottom { border-color: rgba(255,255,255,.35) !important; }
.knet-footer .knet-footer-meta-list a { color: #fff; }
.knet-footer p { margin-bottom: 0; }

/* 11. Header fixiert wie alt (navbar-fixed-top, 54 px), Inhalt rutscht darunter (Gate 2, B1) */
.knet-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; }
body { padding-top: 54px; }
html { scroll-padding-top: 70px; }   /* Sprungmarken (Fehlerübersicht der Formulare) nicht unter dem fixierten Header */
@media (max-width: 991.98px) { .knet-header .navbar-collapse { position: absolute; left: 0; right: 0; top: 100%; padding: 0 1rem 1rem; max-height: calc(100vh - 54px); overflow-y: auto; } }

/* 12. Slider in Containerbreite mit Schatten wie alt (Bootstrap-Container 1170 px, hier die knet-Stufen),
   Caption rechts, ganzer Slide klickbar (der Slide-Button wird zur unsichtbaren Fläche; Gate 2, B4) */
.knet-hero { max-width: 540px; margin: 1.5rem auto 0; padding: 0; }
@media (min-width: 768px) { .knet-hero { max-width: 720px; } }
@media (min-width: 992px) { .knet-hero { max-width: 960px; } }
@media (min-width: 1200px) { .knet-hero { max-width: 1140px; } }
@media (min-width: 1400px) { .knet-hero { max-width: 1320px; } }
.knet-hero .carousel, .knet-hero .carousel-item img { box-shadow: 1px 1px 5px rgba(0,0,0,.65); }
.knet-hero .carousel-item img { box-shadow: none; }
.knet-hero .carousel-caption {
  left: 0; right: 0; top: 0; bottom: 0; transform: none; width: auto;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 0 5%;
}
.knet-hero .carousel-caption h2, .knet-hero .carousel-caption h3, .knet-hero .carousel-caption .h2 { width: 30%; min-width: 220px; }
.knet-hero .carousel-caption .btn {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 1;
  border: 0; border-radius: 0; background: transparent;
}
.knet-hero .carousel-indicators, .knet-hero .carousel-control-prev, .knet-hero .carousel-control-next { z-index: 2; }
/* Tastatur: die unsichtbare Linkfläche zeigt bei Fokus einen Rahmen (Final-Review I8) */
.knet-hero .carousel-caption .btn:focus-visible { opacity: 1; outline: 3px solid var(--autasi-tuerkis); outline-offset: -3px; }

/* 13. Seitenknöpfe links wie alt (E-Mail, Anrufen, Adresse): fixiert ab 992 px, gleiten bei Hover herein (Gate 2, B2) */
.autasi-sidebuttons { position: fixed; left: 0; top: 200px; z-index: 1020; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; pointer-events: none; }   /* Liste fängt keine Klicks: sonst deckt sie Inhalte darunter ab (Chip-Leiste, 30.10.) */
.autasi-sidebuttons a { pointer-events: auto; }
.autasi-sidebuttons a {
  display: flex; align-items: center; width: 270px; transform: translateX(-220px); transition: transform .3s ease;
  background: var(--autasi-rot); color: #fff; text-decoration: none; border-radius: 0 4px 4px 0; box-shadow: 1px 1px 4px rgba(0,0,0,.3);
  font-family: 'News Cycle', 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 1.2;
}
.autasi-sidebuttons a:hover, .autasi-sidebuttons a:focus { transform: none; color: #fff; }
.autasi-sidebuttons .text { flex: 1; text-align: right; padding: 0.5rem 0.75rem; white-space: nowrap; }
.autasi-sidebuttons .icon { width: 58px; padding: 0.4rem 2px; text-align: center; border-left: 1px solid rgba(255,255,255,.5); }
.autasi-sidebuttons a { width: 278px; }
.autasi-sidebuttons .icon i { font-size: 1.25rem; display: block; }
.autasi-sidebuttons .label { font-size: 0.6875rem; display: block; margin-top: 2px; }
@media (max-width: 991.98px) { .autasi-sidebuttons { display: none; } }

/* 14. Runde 3 (09_sichttest): Chip-Leiste der Unterkategorien wie die alte Filterleiste (aktiv türkis, sonst Text),
   Produktmenü links auf der Suchseite, Zähler im Hauptmenü, Produktseite: Titel rot, Untertitel rot klein, Buttons im Text */
.knet-submenu-row .knet-submenu-nav { gap: 0.25rem 0.25rem; margin-bottom: 1.25rem; }
.knet-submenu-row .knet-submenu-nav .nav-link {
  font-family: 'News Cycle', 'Helvetica Neue', Arial, sans-serif; font-size: 15px; padding: 0.3rem 0.75rem; border: 0; border-radius: 2px;
  color: var(--autasi-text); background: transparent;
}
.knet-submenu-row .knet-submenu-nav .nav-link:hover, .knet-submenu-row .knet-submenu-nav .nav-link:focus { color: var(--autasi-tuerkis); background: #f5f5f5; }
.knet-submenu-row .knet-submenu-nav .nav-link.active, .knet-submenu-row .knet-submenu-nav .nav-link.active:hover { color: #fff; background: var(--autasi-tuerkis); }
.knet-submenu-count, .knet-nav-count { opacity: 0.7; }
.knet-submenu-list .list-group-item { border-radius: 0; color: var(--autasi-tuerkis); }   /* als Links erkennbar wie in der Brotkrume */
.knet-submenu-list .list-group-item:hover, .knet-submenu-list .list-group-item:focus { color: #fff; background: var(--autasi-tuerkis); }
.knet-submenu-list .list-group-item:first-child { font-weight: 700; }
.knet-submenu-list .list-group-item.active { background: var(--autasi-tuerkis); border-color: var(--autasi-tuerkis); color: #fff; }
body.layout-1 .frame-type-textmedia .ce-bodytext h1 { color: var(--autasi-rot); font-size: 1.625rem; font-weight: 400; margin: 0.25rem 0 0; }
body.layout-1 .frame-type-textmedia .ce-bodytext header { margin-bottom: 0; }
.produkt-untertitel { color: var(--autasi-rot); font-size: 0.9375rem; margin: 0 0 1rem; }
.produkt-bestellen { margin-top: 1.5rem; }
body.layout-1 .frame-type-table { margin-top: 1.5rem; }

/* 10. Formulare: Beschriftungen wie alt, Pflicht-Stern, Fieldset-Legenden klein */
.form-label, legend { font-weight: 400; }
legend { font-size: 1.125rem; color: var(--autasi-tuerkis); }
.form-control, .form-select { border-radius: 2px; }
.form-control:focus, .form-select:focus { border-color: var(--autasi-tuerkis); box-shadow: 0 0 0 0.2rem rgba(0,122,123,.2); }

/* 15. Bestellformular kompakt wie alt (Runde 3d): Beschriftung links rechtsbündig und fett, Feld daneben (alt: Bootstrap 3
   form-horizontal, col-sm-4 / col-sm-8, Zeile 49 px), Formular rund 880 px breit (alt col-md-9), Schrittüberschrift klein.
   Unter 576 px stehen Beschriftungen wieder über den Feldern. */
form[id^="bestellung-"] { max-width: 880px; }
form[id^="bestellung-"] h2 { font-size: 1.25rem; color: var(--autasi-tuerkis); margin: 0.25rem 0 0.75rem; }
form[id^="bestellung-"] .form-element { margin-bottom: 0.625rem !important; }
form[id^="bestellung-"] .form-element-statictext { margin-bottom: 1rem !important; }
form[id^="bestellung-"] .form-control { padding: 0.3rem 0.75rem; }
form[id^="bestellung-"] .form-element-fieldset { margin-top: 1rem; }
form[id^="bestellung-"] .form-element-fieldset legend { font-size: 1.125rem; margin-bottom: 0.5rem; }
form[id^="bestellung-"] .form-element-radio .form-check { margin-bottom: 0 !important; }
form[id^="bestellung-"] .form-navigation { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
/* Einzelnes Häkchen (Datenschutz): ext:form setzt hier kein .form-check, Kästchen und Text standen untereinander */
.form-element-check .form-check-wrapping-label { display: flex; align-items: flex-start; gap: 0.5rem; }
.form-element-check .form-check-wrapping-label .form-check-input { flex: 0 0 auto; margin-top: 0.3em; }
@media (min-width: 576px) {
  form[id^="bestellung-"] .form-element-text,
  form[id^="bestellung-"] .form-element-textarea,
  form[id^="bestellung-"] .form-element-radio,
  form[id^="bestellung-"] .form-element-checkbox {
    display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 1rem; align-items: center;
  }
  form[id^="bestellung-"] .form-element-textarea { align-items: start; }
  form[id^="bestellung-"] .form-label { text-align: right; font-weight: 600; margin: 0; }
  form[id^="bestellung-"] .form-element-radio legend {
    position: static !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0;
    overflow: visible !important; clip: auto !important; white-space: normal !important;
    text-align: right; font-weight: 600; font-size: 1rem; color: var(--autasi-text);
  }
  form[id^="bestellung-"] .form-element-radio [role="radiogroup"] { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
  form[id^="bestellung-"] .form-element-checkbox > .form-check,
  form[id^="bestellung-"] .form-element .form-text,
  form[id^="bestellung-"] .form-element .invalid-feedback,
  form[id^="bestellung-"] .form-element .error { grid-column: 2; }
  form[id^="bestellung-"] .actions,
  form[id^="bestellung-"] .form-element-check,
  form[id^="bestellung-"] .form-element-email { margin-left: 246px; }   /* Weiter/Zurück, Datenschutz-Häkchen und Altcha (Klasse form-element-email) bündig mit den Feldern */
}

/* 16. Produktbilder als Slider (fileadmin/custom.js, ab zwei Bildern): Punkte unter dem Bild wie der alte slick-Slider,
   Pfeile erst bei Hover oder Tastaturfokus, Lightbox-Link bleibt im Bild */
.produkt-slider { padding-bottom: 1.5rem; }
.produkt-slider .carousel-item figure { margin: 0; }
.produkt-slider .carousel-item img { width: 100%; height: auto; }
.produkt-slider .carousel-indicators { position: absolute; bottom: 0; margin: 0; }
.produkt-slider .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #bbb; opacity: 1; margin: 0 4px; }
.produkt-slider .carousel-indicators .active { background: var(--autasi-tuerkis); }
.produkt-slider .carousel-control-prev, .produkt-slider .carousel-control-next { width: 18%; bottom: 1.5rem; opacity: 0; transition: opacity .2s ease-out; }
.produkt-slider:hover .carousel-control-prev, .produkt-slider:hover .carousel-control-next,
.produkt-slider .carousel-control-prev:focus-visible, .produkt-slider .carousel-control-next:focus-visible { opacity: 1; }
.produkt-slider .carousel-control-prev-icon, .produkt-slider .carousel-control-next-icon { filter: invert(1) grayscale(1); width: 1.5rem; height: 1.5rem; }
@media (hover: none) { .produkt-slider .carousel-control-prev, .produkt-slider .carousel-control-next { opacity: 0.6; } }

/* 17. Rückmeldung 1 (12_ersteRueckmeldung, 9.11.): Startseiten-Slider wie alt. Die Caption deckt weiter die ganze Folie
   (Linkfläche aus Abschnitt 12), der Text sitzt absolut je Folie an anderer Stelle, immer auf dem weißen Bildteil
   (alt: .item-N-Regeln in autasi.css): Stahl und Edelstahl rechts, Aluminium links, Kunststoff links unten.
   custom.js zerlegt „Poller aus Stahl“ in drei Zeilen, die mittlere kleiner und eingerückt (alt: drei h3).
   Unterscheidung zu den Teaserbildern (Abschnitt 18) über den Inhalt: Folien ohne Text = Startseiten-Slider,
   Folien mit Text = Teaserbild. Das Feld „Layout“ bleibt frei (frame-layout-1 ist im Sitepackage ein Bild-Text-Raster). */
.knet-hero .carousel-caption:not(:has(p)) { display: block; padding: 0; }
.knet-hero .carousel-caption:not(:has(p)) h3 {
  position: absolute; right: 0; left: auto; bottom: 37%; width: 25%; min-width: 220px; margin: 0; padding: 0 2%;
  text-align: left; font-size: 2.5rem; line-height: 1.05;
}
.knet-hero .carousel-item:nth-child(3) .carousel-caption:not(:has(p)) h3 { right: auto; left: 15%; }
.knet-hero .carousel-item:nth-child(4) .carousel-caption:not(:has(p)) h3 { right: auto; left: 10%; bottom: 12%; }
/* Größen wie alt: Bootstrap 3 setzte html auf 10 px, die alten 5rem/3rem sind also 50/30 px (Tommy, 9.11.: „kleiner“) */
.knet-hero .hero-wort { display: block; white-space: nowrap; font-size: 3.125rem; line-height: 1.05; }
.knet-hero .hero-wort-klein { font-size: 1.875rem; margin-left: 30px; line-height: 1.1; }
@media (max-width: 1199.98px) {
  .knet-hero .hero-wort { font-size: 2.8rem; }
  .knet-hero .hero-wort-klein { font-size: 1.875rem; }
}
@media (max-width: 767.98px) {
  .knet-hero .carousel-caption:not(:has(p)) h3 { width: 30%; min-width: 150px; bottom: auto; top: 25%; font-size: 1.75rem; }
  .knet-hero .carousel-item:nth-child(4) .carousel-caption:not(:has(p)) h3 { top: auto; bottom: 12%; }
  .knet-hero .hero-wort { font-size: 1.875rem; }
  .knet-hero .hero-wort-klein { font-size: 1.25rem; margin-left: 20px; }
}

/* 18. Rückmeldung 1: Teaserbilder (Unternehmen, Downloads, Kontakt) mit Text wie alt: Titel rot, Text weiß mit Schatten, mittig
   (alt: jumbotron h1/p aus Titel und Beschreibung der Bildreferenz). Greift bei jeder Folie, die einen Text hat. */
.knet-hero .carousel-caption:has(p) {
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center; text-align: center; padding: 4.5rem 5% 0;
}
.knet-hero .carousel-caption:has(p) h3 {
  width: auto; min-width: 0; font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif; font-weight: 400; font-size: 4.5rem;
  line-height: 1.1; color: var(--autasi-rot); text-shadow: 1px 1px 6px rgba(0,0,0,.25); margin-bottom: 1rem;
}
.knet-hero .carousel-caption:has(p) p {
  max-width: 85%; margin: 0; font-size: 4rem; line-height: 1.3; color: #fff; text-shadow: 1px 1px 6px rgba(0,0,0,.9);
}
@media (max-width: 1199.98px) {
  .knet-hero .carousel-caption:has(p) h3 { font-size: 3rem; }
  .knet-hero .carousel-caption:has(p) p { font-size: 2.75rem; }
}
@media (max-width: 767.98px) {
  .knet-hero .carousel-caption:has(p) { padding-top: 2.5rem; }
  .knet-hero .carousel-caption:has(p) h3 { font-size: 2rem; margin-bottom: .5rem; }
  .knet-hero .carousel-caption:has(p) p { font-size: 1.5rem; max-width: 95%; }
}

/* 19. Rückmeldung 1: Produktkarten wie alt. Kategoriepfad grau klein über dem Namen (erster Absatz des Kartentexts, per
   Flex-Reihenfolge nach oben), Name rot, zweite Namenszeile rot klein (Untertitel), Trennlinie darunter, dann die
   Spezifikation. Ganze Karte klickbar: der Button bekommt eine unsichtbare Fläche über der Karte (stretched link). */
.knet-cards .card { position: relative; }
/* Hover: Schatten verstärken statt verschwinden lassen (Tommy, 9.11.); das Anheben aus dem Sitepackage bleibt */
.knet-cards .card:hover { box-shadow: 2px 2px 14px rgba(0,0,0,.35); }
.knet-cards .card-body { display: flex; flex-direction: column; }
.knet-cards .card-text { display: contents; }
.knet-cards .card-text .produkt-pfad { order: -1; margin-bottom: 0.5rem; font-size: 0.8125rem; }
.knet-cards .card-text p { margin-bottom: 0; }
.knet-cards .card-text p:not(.produkt-pfad) { margin-top: 0.75rem; }
.knet-cards .card-subtitle { color: var(--autasi-rot) !important; font-size: 0.875rem; margin: -0.25rem 0 0; padding-bottom: 0.5rem; border-bottom: 1px solid #ddd; }
.knet-cards .card-title:has(+ .card-subtitle) { border-bottom: 0; padding-bottom: 0; margin-bottom: 0.25rem; }
.knet-cards .card-footer .btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.knet-cards .card-footer .btn:focus-visible::after { outline: 3px solid var(--autasi-tuerkis); outline-offset: -3px; }

/* 20. Rückmeldung 1: Markenlogo (image-Element „Marke“ direkt nach dem Produkt-Element) rechts neben dem Produktnamen statt
   unter der Beschreibung (alt: Champion-Logo oben rechts). Betrifft die zwei Kunststoffpoller. */
body.layout-1 .knet-content-col { position: relative; }
body.layout-1 .frame-type-textmedia + .frame-type-image { position: absolute; top: 0; right: 0; width: 140px; margin: 0; z-index: 1; }
/* 21.11.2026: feste Breite statt 100 %. Firefox rechnet 100 % in der schrumpfenden Galerie-Hülle zu 0, das Logo fehlte dort. */
body.layout-1 .frame-type-textmedia + .frame-type-image img { width: 140px; max-width: 100%; height: auto; }
body.layout-1 .frame-type-textmedia + .frame-type-image figure { margin: 0; }
body.layout-1 .frame-type-textmedia:has(+ .frame-type-image) .ce-bodytext header { padding-right: 160px; }
@media (max-width: 767.98px) {
  body.layout-1 .frame-type-textmedia + .frame-type-image { position: static; width: 110px; margin: 0 0 1rem; }
  body.layout-1 .frame-type-textmedia + .frame-type-image img { width: 110px; }
  body.layout-1 .frame-type-textmedia:has(+ .frame-type-image) .ce-bodytext header { padding-right: 0; }
}

/* 21. Rückmeldung 1: Kontaktseite zweispaltig wie alt (Seitenfeld Layout 2 → Body-Klasse layout-2): Einleitung und Formular
   links (2/3), Adresse und Karte rechts (1/3); Reihenfolge der Elemente: Text, Formular, Adresse, Karte. */
@media (min-width: 768px) {
  body.layout-2 .knet-content-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 3rem; align-items: start; }
  body.layout-2 .knet-content-col > :nth-child(1) { grid-column: 1; grid-row: 1; }
  body.layout-2 .knet-content-col > :nth-child(2) { grid-column: 1; grid-row: 2; }
  body.layout-2 .knet-content-col > :nth-child(3) { grid-column: 2; grid-row: 1; }
  body.layout-2 .knet-content-col > :nth-child(4) { grid-column: 2; grid-row: 2; }
}

/* 22. Rückmeldung 1: Downloads wie alt, Titel der Datei als Link, Größe in Klammern dahinter in einer Zeile */
.ce-uploads { padding-left: 0; list-style: none; }
.ce-uploads li { margin-bottom: 0.75rem; }
.ce-uploads .ce-uploads-fileName, .ce-uploads .ce-uploads-filesize { display: inline; }
.ce-uploads .ce-uploads-filesize::before { content: " ("; }
.ce-uploads .ce-uploads-filesize::after { content: ")"; }

/* 23. Rückmeldung 1 Runde 2 (Tommy, 9.11.): Ausführungen als Kacheln wie alt (products-Extension .product-models): graues Band,
   Kopfzeile auf dunklerem Grau in Türkis, vier Kacheln je Reihe mit weißen Trennlinien, Bezeichnung fett, „Bestellkürzel:“ mit
   Badge. Vorlage fileadmin/templates/ContentElements/Table.html (nur Seiten-Layout 1). */
body.layout-1 .frame-type-table { background: rgba(0,0,0,.2); padding: 0 0 15px; border-radius: 0; }
body.layout-1 .frame-type-table > header { margin: 0 0 15px; }
body.layout-1 .frame-type-table > header h2, body.layout-1 .frame-type-table > header .h2 {
  background: #bfbfbf; color: var(--autasi-tuerkis); font-size: 1.6rem; font-weight: 400; padding: 15px; margin: 0;
  border-bottom: 1px solid rgba(255,255,255,.6);
}
.ausfuehrungen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 15px; padding: 0 15px; }
/* Kachel als Flex-Spalte, Kürzel nach unten: je Reihe stehen alle „Bestellkürzel“ auf gleicher Höhe (Tommy, 9.11.) */
.ausfuehrung { position: relative; display: flex; flex-direction: column; padding: 0 15px 15px; border-right: 1px solid #fff; font-size: 0.9375rem; line-height: 1.4; }
.ausfuehrung:nth-child(4n) { border-right: 0; }
.ausfuehrung::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 1px; background: #fff; }
.ausfuehrung p { margin: 0; }
.ausfuehrung-kuerzel { font-weight: 600; margin-top: auto !important; padding-top: 15px; }
.ausfuehrung-kuerzel span { display: inline-block; background: rgb(179,179,179); padding: 1px 8px 2px; border-radius: 10px; border: 1px solid rgba(255,255,255,.7); margin-left: 2px; }
@media (max-width: 991.98px) {
  .ausfuehrungen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ausfuehrung:nth-child(4n) { border-right: 1px solid #fff; }
  .ausfuehrung:nth-child(2n) { border-right: 0; }
}
/* Handy: zwei Spalten wie alt (col-xs-6) */

/* 24. Rückmeldung 1 Runde 2: Produktseite wie alt: Kategoriepfad grau über dem Namen (Flex-Reihenfolge im Textblock),
   Bestell-Buttons mit den alten Icons (PDF, Formular) rechts daneben, Icons aus der alten products-Extension in fileadmin/autasi/icons */
body.layout-1 .frame-type-textmedia .ce-bodytext { display: flex; flex-direction: column; }
body.layout-1 .frame-type-textmedia .ce-bodytext > .produkt-pfad { order: 0; margin-bottom: 1.5rem; }
body.layout-1 .frame-type-textmedia .ce-bodytext > header { order: 1; }
body.layout-1 .frame-type-textmedia .ce-bodytext > :not(header):not(.produkt-pfad) { order: 2; }
body.layout-1 .frame-type-textmedia .ce-bodytext > .produkt-untertitel { margin-top: 0.25rem; }
.produkt-bestellen { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 4.5rem; }
.produkt-bestellen .btn { position: relative; margin: 0 !important; align-self: flex-start; }
.produkt-bestellen .btn::after {
  content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 12px; width: 40px; height: 48px;
  background: url(/fileadmin/autasi/icons/icon-pdf.svg) no-repeat center / contain;
}
.produkt-bestellen .btn:nth-of-type(2)::after { background-image: url(/fileadmin/autasi/icons/icon-formular.svg); }
