/* ==========================================================================
   theme2026 – farbe-neckarfils.de (Maler- und Lackiererinnung Neckar-Fils)
   Eine einzige CSS-Datei, kein Bootstrap, kein jQuery, keine fremden Server.
   Die alten Bootstrap-Klassen in den Inhalten (col-lg-*, p4, top5, bg-1 ...)
   werden hier nachgebildet, damit kein Inhaltselement angefasst werden muss.
   Master: I:\coding\claude\kunden\farbe-neckarfils.de\theme2026\theme2026.css
   Server: files/theme2026/css/theme2026.css  (Cache-Buster ?v= im Layout-Kopf, aktuell v=20)
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO) ---------- */
@font-face { font-family: "Rubik"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/rubik-400.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/rubik-700.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/opensans-400.woff2") format("woff2"); }

/* ---------- Farben und Maße ---------- */
:root {
  --akzent: #cbd000;
  --akzent-dunkel: #a9ad00;
  --dunkel: #101822;
  --dunkel-2: #1b2530;
  --anthrazit: #363c43;                                    /* Aufklapp- und Handy-Menü (Nicole: heller als die Leiste) */
  --text: #333a40;
  --text-hell: #6b7278;
  --linie: rgba(0, 0, 0, .12);
  --hell: #f4f4ef;
  --weiss: #fff;
  --container: 1180px;
  --pad: max(22px, calc(50vw - (var(--container) / 2)));   /* bündig zur Inhaltskante */
  --g: 30px;                                               /* Spaltenabstand */
  --kopf: "Rubik", "Segoe UI", Arial, sans-serif;
  --text-font: "Open Sans", "Segoe UI", Arial, sans-serif;
  --header-h: 108px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; font-family: var(--text-font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--weiss); overflow-x: hidden; }
#wrapper { overflow-x: clip; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--dunkel); text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--akzent-dunkel); }
.invisible { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-empty { display: none !important; }

h1, h2, h3, h4, h5, h6 { font-family: var(--kopf); text-transform: uppercase; line-height: 1.15; margin: 0 0 .6em; color: var(--dunkel); overflow-wrap: anywhere; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: .01em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 400; }
h6 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
#main ul, #main ol { padding-left: 1.2em; }
#main li { margin-bottom: .3em; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 2rem 0; }
strong, b { font-weight: 700; }
table { border-collapse: collapse; width: 100%; }

/* Textausrichtungen aus dem alten Theme */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.small-text { max-width: 820px; margin-left: auto; margin-right: auto; }
.container { width: 100%; }

/* ---------- Buttons ---------- */
.btn, .btn1, p.more a, p.back a, .submit, button.submit {
  display: inline-block; padding: 10px 23px; margin-top: 1rem;
  font-family: var(--kopf); font-size: 14px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  color: var(--dunkel); background: transparent; border: 3px solid var(--akzent); border-radius: 0; cursor: pointer; line-height: 1.4;
  transition: background .2s, color .2s;
}
.btn:hover, .btn1:hover, p.more a:hover, p.back a:hover, .submit:hover { background: var(--akzent); color: var(--dunkel); }
.InsideOut-dark .btn, .InsideOut-nobg .btn, .darkbg .btn { color: var(--weiss); }
.InsideOut-dark .btn:hover, .InsideOut-nobg .btn:hover, .darkbg .btn:hover { color: var(--dunkel); }
p.more { margin-top: auto; }
p.more a { padding: 7px 16px; font-size: 13px; }

/* ---------- Kopfleiste (permanent fixiert, Platz reserviert das JS) ---------- */
#header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--anthrazit); transition: box-shadow .2s; }
body.stuck #header { box-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
#header .inside { display: flex; flex-direction: column; }

/* gelbe Service-Leiste */
.bangbkontakt { order: 1; }
.topbarkontakt { background: var(--akzent); }
.topbarkontakt .rte { padding: 5px var(--pad); }
.topbarkontakt p { margin: 0; text-align: right; font-family: var(--kopf); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dunkel); }
.topbarkontakt a { color: var(--dunkel); text-decoration: none; }
.topbarkontakt a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* dunkle Hauptleiste: Logo links, Menü rechts */
.bangb1 { order: 2; }
#header .topbar > .container > .row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px var(--pad); min-height: 76px; }
.topbar .logo { flex: 0 0 auto; }
.topbar .logo figure a { display: block; line-height: 0; }
.topbar .logo img { height: 52px; width: auto; }
.pull-right { float: none; }
#header .button-menu, #header .overlay-menu, #header .mobilenavi { display: none; }

/* Hauptmenü */
.mainnavi { margin-left: auto; }
.mainnavi ul { list-style: none; margin: 0; padding: 0; }
.mainnavi ul.level_1 { display: flex; align-items: center; }
.mainnavi ul.level_1 > li { position: relative; border-left: 1px solid rgba(255, 255, 255, .25); }
.mainnavi ul.level_1 > li:last-child { border-right: 1px solid rgba(255, 255, 255, .25); }
.mainnavi ul.level_1 > li > a, .mainnavi ul.level_1 > li > strong {
  display: block; padding: 8px 16px; font-family: var(--kopf); font-weight: 400; font-size: 14px; letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85); text-decoration: none; white-space: nowrap; transition: color .2s;
}
.mainnavi ul.level_1 > li > a:hover, .mainnavi ul.level_1 > li:hover > a, .mainnavi ul.level_1 > li > a.trail, .mainnavi ul.level_1 > li > strong { color: var(--akzent); }
.mainnavi ul.level_2 { position: absolute; top: 100%; left: 0; min-width: 260px; padding: 10px 0; background: #454b52; border-bottom: 3px solid var(--akzent); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 5; }
.mainnavi ul.level_1 > li:last-child > ul.level_2 { left: auto; right: 0; }
.mainnavi ul.level_1 > li:hover > ul.level_2, .mainnavi ul.level_1 > li:focus-within > ul.level_2 { opacity: 1; visibility: visible; transform: none; }
.mainnavi ul.level_2 li a, .mainnavi ul.level_2 li strong { display: block; padding: 7px 18px; font-family: var(--kopf); font-weight: 400; font-size: 14px; color: rgba(255, 255, 255, .85); text-decoration: none; white-space: nowrap; }
.mainnavi ul.level_2 li a:hover, .mainnavi ul.level_2 li strong { color: var(--akzent); }
.mainnavi ul.level_3 { display: none; }

/* Hamburger (das JS setzt ihn vor das Menü) */
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 42px; padding: 8px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; cursor: pointer; border-radius: 0; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--akzent); transition: transform .25s, opacity .25s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sprungmarken aus dem Alt-Theme (<p class="anker" id="vorstand">): unsichtbar, aber anspringbar */
.anker, [id].anker { display: block !important; height: 0; margin: 0; padding: 0; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 24px); }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Brotkrumen ---------- */
.mod_breadcrumb { padding: 12px var(--pad) 0; font-size: 13px; color: var(--text-hell); }
.mod_breadcrumb ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.mod_breadcrumb li:not(:last-child)::after { content: "›"; margin: 0 8px; color: var(--akzent-dunkel); }
.mod_breadcrumb a { color: var(--text-hell); text-decoration: none; }
.mod_breadcrumb a:hover { color: var(--dunkel); }
.mod_breadcrumb ul:has(> li:only-child) { display: none; }
.mod_breadcrumb:has(ul > li:only-child) { padding: 0; }

/* ---------- Artikel = Vollbreiten-Band, Inhalt in Containerbreite ---------- */
#main > .inside { width: 100%; }
#main .mod_article { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--g); padding: 48px var(--pad); }
#main .mod_article.is-empty { display: none; }
#main .mod_article > * { width: 100%; min-width: 0; }
#main .mod_article > .content-headline { margin-bottom: 0; }

/* Raster aus dem alten Bootstrap (nur ab 900px, darunter alles untereinander) */
@media (min-width: 900px) {
  #main .mod_article > .col, #footer .row > .col { flex: 1 1 0; width: auto; }
  #main .mod_article > .col-lg-6, #footer .row > .col-lg-6, #main .mod_article > .col-md-6 { width: calc(50% - var(--g) / 2); }
  #main .mod_article > .col-lg-4, #footer .row > .col-lg-4 { width: calc(33.3333% - var(--g) * 2 / 3); }
  #main .mod_article > .col-lg-3, #footer .row > .col-lg-3, #main .mod_article > .col-3 { width: calc(25% - var(--g) * 3 / 4); }
  #main .mod_article > .col-lg-2, #footer .row > .col-lg-2 { width: calc(16.6667% - var(--g) * 5 / 6); }
  #main .mod_article > .col-lg-12, #main .mod_article > .col-12, #main .mod_article > .w-100 { width: 100%; }
}

/* Abstandsklassen aus dem alten Theme */
#main .mod_article.p4 { padding-top: 64px; padding-bottom: 64px; }
#main .mod_article.p5 { padding-top: 80px; padding-bottom: 80px; }
.p7 { padding: 10px 0; }
.top3 { margin-top: 24px; } .top4 { margin-top: 32px; } .top5 { margin-top: 40px; }
.bottom2 { margin-bottom: 16px; } .bottom4 { margin-bottom: 32px; } .bottom5 { margin-bottom: 40px; }
.mt-4 { margin-top: 1.5rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 2.5rem; }
#main .mod_article > .top5:first-child, #main .mod_article > .top4:first-child, #main .mod_article > .top3:first-child { margin-top: 0; }
.divider { width: 100%; height: 1px; background: var(--linie); }
.w-100 { width: 100%; }

/* Pfeil-Grafik über Überschriften (files/club/img/pfeil.png) */
h4 img[src*="pfeil"] { height: 28px; width: auto; }

/* ---------- Hero auf der Startseite ---------- */
#main .mod_article.hom-slider, #main .mod_article.home-slider {
  position: relative; min-height: max(540px, min(78vh, 700px)); padding: 80px var(--pad) 70px; display: flex; align-items: flex-end; justify-content: center; text-align: center;
  background: linear-gradient(180deg, rgba(16, 24, 34, .55), rgba(16, 24, 34, .35) 60%, rgba(16, 24, 34, .7)), var(--dunkel) url("/files/raster/farbwalze_1920x578.jpg") center / cover no-repeat;
}
/* Abdunklung liegt im Hintergrund selbst, nicht als Ebene über dem Text (sonst wird die Schrift grau) */
.hom-slider > *, .home-slider > * { position: relative; }
#main .hom-slider .ce_sliderStart, #main .hom-slider .content-slider, #main .hom-slider .slider-wrapper, #main .hom-slider .content-text { position: static !important; overflow: visible !important; background: none; }   /* Bezugsrahmen für den Button ist der Hero selbst */
#main .hom-slider .slider-wrapper > * { transform: none !important; left: 0 !important; }   /* swipe.js-Transform macht die Slide sonst zum Bezugsrahmen */
.hom-slider .slider-control { display: none; }
.hom-slider .rte { max-width: 900px; margin: 0 auto; }
.hom-slider h2 { color: var(--weiss); font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 400; letter-spacing: .25em; margin-bottom: .4em; }
.hom-slider h2::after { content: ""; display: block; width: 80px; height: 2px; margin: 18px auto 0; background: var(--akzent); }
.hom-slider h6, .hom-slider h1 { color: var(--weiss); font-size: clamp(2rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: .02em; line-height: 1.05; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); margin: 0; }
.hom-slider h6 strong { font-weight: 700; }
.hom-slider p { color: rgba(255, 255, 255, .9); font-size: 1.1rem; }
/* "Ganz einfach Mitglied werden": das Bild des Hero-Textelements (Element 1365, verlinkt) sitzt rechts */
#main .hom-slider .content-text > figure { position: absolute; right: calc(var(--pad) + 8%); top: 12%; width: clamp(170px, 21vw, 300px); margin: 0 !important; z-index: 2; transition: transform .3s; }
#main .hom-slider .content-text > figure img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
#main .hom-slider .content-text > figure:hover { transform: scale(1.05); }


/* ---------- Seitenbanner (ehemals Spalte "header", Textelement mit Bild + Klasse color-light) ---------- */
#main .mod_article:has(> .content-text.color-light:only-child) { padding: 0; gap: 0; }
#main .mod_article > .content-text.color-light { position: relative; width: 100%; min-height: 300px; display: flex; align-items: center; padding: 56px var(--pad); background: var(--dunkel); color: var(--weiss); overflow: hidden; }
.content-text.color-light > figure { position: absolute; inset: 0; margin: 0 !important; height: 100%; }
.content-text.color-light > figure img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: .5; display: block; }
.content-text.color-light > .rte { position: relative; width: 100%; }
.content-text.color-light h1, .content-text.color-light h2, .content-text.color-light h3 { color: var(--weiss); text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.content-text.color-light h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0; }
.content-text.color-light p { color: rgba(255, 255, 255, .9); }
.content-text.color-light .banner-bg, .content-text.color-light .overlayContent { background: none !important; padding: 0; }

/* Grünes Band mit dunkler Schrift (bg-3 + InsideOut-green) */
#main .mod_article.bg-3.InsideOut-green { background-image: linear-gradient(rgba(203, 208, 0, .88), rgba(203, 208, 0, .88)), url("/files/raster/gruen.jpg"); background-size: cover; background-position: center; color: var(--dunkel); }
.InsideOut-green h1 { color: var(--weiss); }
.InsideOut-green h2, .InsideOut-green h3, .InsideOut-green h4 { color: var(--dunkel); }
.InsideOut-green p, .InsideOut-green li { color: var(--dunkel); }
.InsideOut-green a { color: var(--dunkel); text-decoration-color: var(--weiss); }
.InsideOut-green .btn { border-color: var(--dunkel); color: var(--dunkel); }
.InsideOut-green .btn:hover { background: var(--dunkel); color: var(--akzent); }

/* ---------- Dunkle Bänder (bg-1 = Pinsel, bg-3 = Grün) ---------- */
#main .mod_article.InsideOut-dark { position: relative; color: var(--weiss); background-color: var(--dunkel); }
#main .mod_article.bg-1 { background-image: linear-gradient(rgba(16, 24, 34, .82), rgba(16, 24, 34, .82)), url("/files/raster/pinsel_250818042_unscharf.jpg"); background-size: cover; background-position: center; }
#main .mod_article.bg-3 { background-color: var(--akzent); background-image: url("/files/raster/gruen.jpg"); background-size: cover; background-position: center; }
.InsideOut-dark h1, .InsideOut-dark h2, .InsideOut-dark h3, .InsideOut-dark h4, .InsideOut-dark h5, .InsideOut-dark h6 { color: var(--weiss); }
.InsideOut-dark h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.InsideOut-dark p, .InsideOut-dark li, .InsideOut-dark td { color: rgba(255, 255, 255, .92); }
.InsideOut-dark a { color: var(--weiss); }
.InsideOut-dark a:hover { color: var(--akzent); }
.InsideOut-dark li { list-style: square; }

/* "Nur ein Klick": zwei dunkle Kacheln mit Hintergrundbild */
#main .mod_article > .darkbg { position: relative; background: var(--dunkel); color: var(--weiss); overflow: hidden; }
.darkbg figure { position: absolute; inset: 0; }
.darkbg figure img { width: 100%; height: 100%; object-fit: cover; opacity: .38; transition: transform .6s, opacity .6s; }
.darkbg:hover figure img { transform: scale(1.04); opacity: .48; }
.darkbg .rte { position: relative; padding: 44px 40px; min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.darkbg h2, .darkbg h3 { color: var(--weiss); }
.darkbg p { color: rgba(255, 255, 255, .92); }
.InsideOut-nobg { position: relative; }

/* ---------- Slider (Contao-Standard, ohne jQuery) ---------- */
/* Slider-Grundlayout kommt aus Contaos swipe.css (Float + Breite per JS), hier nichts überschreiben */
.slider-wrapper > * { box-sizing: border-box; }
#main .slider-control { display: none; }   /* wie im Alt-Theme: keine Pfeile, Slider läuft automatisch */
.slider-wrapper > .event-slider { background: linear-gradient(90deg, #101822, #cbd000); padding: 32px 40px 40px; }
.event-slider .rte h3 { color: var(--weiss); font-weight: 700; text-transform: uppercase; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.4; max-width: 1000px; margin: 0 auto; }
.event-slider .rte h4 img { height: 28px; }

/* ---------- Willkommen: drei Spalten ---------- */
#main .mod_article > .col .rte p { font-size: 1rem; }

/* ---------- News ---------- */
.mod_newslist { display: flex; flex-wrap: wrap; gap: var(--g); container-type: inline-size; }
.mod_newslist > .layout_latest, .mod_newslist > .layout_simple, .mod_newslist > .layout_short { display: flex; flex-direction: column; width: 100%; background: var(--hell); }
/* Kachelbreite nach der Breite der Liste selbst (steht sie in einer Seitenspalte, bleibt sie einspaltig) */
@container (min-width: 620px) { .mod_newslist > .layout_latest { width: calc(50% - var(--g) / 2); } }
@container (min-width: 940px) { .mod_newslist > .layout_latest { width: calc(33.3333% - var(--g) * 2 / 3); } }

/* Seitenspalte "rightblock" (Download-Center u. a.): heller Kasten */
#main .mod_article > .rightblock { background: var(--hell); padding: 22px; }
.rightblock .content-headline, .rightblock h2 { font-size: 1.05rem; font-weight: 700; }
.rightblock .divider { background: rgba(0, 0, 0, .1); margin-bottom: 16px; }
.rightblock .mod_newslist { gap: 16px; }
.rightblock .mod_newslist > .layout_latest { background: var(--weiss); }
.rightblock .layout_latest h2 { font-size: 1rem; }
.rightblock .layout_latest > .content-text, .rightblock .layout_latest > .ce_text { font-size: .9rem; }
.layout_latest .image_container { order: -1; margin: 0; }
.layout_latest .image_container img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.layout_latest p.info, .layout_full p.info, .layout_simple p.info { font-size: 0; color: var(--text-hell); margin: 0; padding: 14px 20px 0; }   /* Autor unsichtbar, nur das Datum bleibt */
.layout_latest p.info time, .layout_full p.info time, .layout_simple p.info time { font-size: 13px; }
.layout_latest h2 { font-size: 1.15rem; font-weight: 700; padding: 8px 20px 0; margin-bottom: .4em; }
.layout_latest h2 a { text-decoration: none; }
.layout_latest h2 a:hover { color: var(--akzent-dunkel); }
.layout_latest > .content-text, .layout_latest > .ce_text { padding: 0 20px; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.layout_latest > .content-text p { margin: 0; }
.layout_latest p.more { padding: 16px 20px 22px; margin-top: auto; }
.layout_latest p.more a { margin-top: 0; }
.mod_newslist .pagination { width: 100%; }
.mod_newslist.col-lg-12 { width: 100%; }
#main .mod_article > .content-headline + .mod_newslist { margin-top: 0; }

/* Bei den Nachrichten keine Bildunterschriften (Nicole, 05.09.2026) */
.mod_newslist figcaption, .mod_newsreader figcaption { display: none; }

/* News-Detailseite */
.mod_newsreader .layout_full { max-width: 860px; margin: 0 auto; }
.layout_full .image_container { margin: 0 0 24px; }
.layout_full .image_container img { width: 100%; }
.layout_full p.info { padding: 0; margin-bottom: 1em; }
.layout_full h1 { margin-bottom: .4em; }
.layout_full p.back { margin-top: 2rem; }
.layout_full .ce_text figure.float_left { float: left; margin: 0 24px 12px 0; max-width: 45%; }
.layout_full .ce_text figure.float_right { float: right; margin: 0 0 12px 24px; max-width: 45%; }
.layout_full .ce_text::after { content: ""; display: table; clear: both; }

/* Bildunterschriften */
figure.image_container figcaption, figure figcaption { font-size: 13px; color: var(--text-hell); margin-top: 6px; }

/* ---------- Bildergalerie (Contao 5) ---------- */
.content-gallery ul, .ce_gallery ul { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .content-gallery--cols-3 ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } .content-gallery--cols-4 ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } .content-gallery--cols-5 ul { grid-template-columns: repeat(5, minmax(0, 1fr)); } .content-gallery--cols-6 ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.content-gallery li { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hell); }
.content-gallery li figure, .content-gallery li a { display: block; height: 100%; }
.content-gallery li img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.content-gallery li:hover img { transform: scale(1.05); }
.content-gallery li.is-hidden { display: none; }

/* Startseite "Eindrücke aus dem Innungsleben" (Artikel 182): graues Band wie im Alt-Theme (.InsideOut-bilder) */
#main #article-182 { background: #686a6d; color: var(--weiss); padding: 56px 40px 64px; }   /* volle Breite wie das alte no-row-Layout */
#article-182 h1, #article-182 h2, #article-182 h3, #article-182 p { color: var(--weiss); }
#article-182 .content-gallery ul { gap: 36px 32px; align-items: start; }
#article-182 .content-gallery li { aspect-ratio: auto; overflow: visible; background: none; }
#article-182 .content-gallery li figure, #article-182 .content-gallery li a { height: auto; display: block; }
#article-182 .content-gallery li img { display: block; width: 100%; height: auto; aspect-ratio: 43 / 33; object-fit: cover; }
#article-182 .content-gallery figcaption { color: var(--weiss); font-style: italic; font-size: .95rem; margin-top: 10px; line-height: 1.4; }
@media (max-width: 899px) { #main #article-182 { padding-left: 22px; padding-right: 22px; } #article-182 .content-gallery ul { gap: 24px 16px; } }

/* ---------- Mitgliederlisten (Catalog Manager) ---------- */
.mod_catalogUniversalView { width: 100%; }
.mod_catalogUniversalView p.ctlg_view_message { font-size: 13px; color: var(--text-hell); text-align: right; margin: 0 0 6px; }
.ctlg_table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ctlg_table table, .content-table table, .ce_table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
.ctlg_table th, .content-table th, .ce_table th { text-align: left; font-family: var(--kopf); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dunkel); padding: 10px 10px; border: 0 !important; white-space: nowrap; vertical-align: top; }
.ctlg_table td, .content-table td, .ce_table td { padding: 9px 10px; border: 0 !important; vertical-align: top; }
/* Tabellen in Texten (TinyMCE, oft mit border=1): keine Linien, alles oben bündig */
.rte table, .rte td, .rte th, .content-table table, .content-table td, .content-table th { border: 0 !important; vertical-align: top; }
.rte td, .rte th { padding: 6px 10px 6px 0; }
.rte table img { display: block; }
.ctlg_table tbody tr:nth-child(even), .content-table tbody tr:nth-child(even) { background: var(--hell); }
.ctlg_table tbody tr:hover { background: #eef0c0; }
.ctlg_table td a { text-decoration: none; }
.ctlg_table td a:hover { text-decoration: underline; }
.ctlg_table .azubi_postcode { white-space: nowrap; }
.ctlg_table .col_7, .ctlg_table .col_8, .ctlg_table .col_9 { text-align: center; white-space: nowrap; }
.ctlg_table .head_7, .ctlg_table .head_8, .ctlg_table .head_9 { text-align: center; }
.content-table { width: 100%; overflow-x: auto; }
.content-table caption { text-align: left; font-family: var(--kopf); font-weight: 700; padding: 8px 0; }

/* FontAwesome-Icons aus den Inhalten ohne FontAwesome (Inline-SVG) */
em.fa, i.fa { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; font-style: normal; background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
em.fa::before, i.fa::before { content: none; }
.fa-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.fa-envelope { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2v.5l8 5 8-5V7l-8 5z'/%3E%3C/svg%3E"); }
.fa-globe { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm7.9 9h-3a15 15 0 0 0-1.4-6A8 8 0 0 1 19.9 11zM12 4c1.2 1.4 2.2 4 2.4 7H9.6c.2-3 1.2-5.6 2.4-7zM4.1 13h3c.2 2.2.7 4.3 1.4 6A8 8 0 0 1 4.1 13zm3-2h-3a8 8 0 0 1 4.4-6 15 15 0 0 0-1.4 6zM12 20c-1.2-1.4-2.2-4-2.4-7h4.8c-.2 3-1.2 5.6-2.4 7zm3.5-1a15 15 0 0 0 1.4-6h3a8 8 0 0 1-4.4 6z'/%3E%3C/svg%3E"); }
.fa-map-marker { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.fa-times, .fa-times-circle { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.3 5.7 12 12l6.3 6.3-1.4 1.4L12 13.4l-6.3 6.3-1.4-1.4L10.6 12 4.3 5.7l1.4-1.4L12 10.6l6.3-6.3z'/%3E%3C/svg%3E"); }
.fa-navicon, .fa-bars { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v2H3zm0 6h18v2H3zm0 6h18v2H3z'/%3E%3C/svg%3E"); }
.fa-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.ctlg_table td .fa, .fa-2x { width: 1.6em; height: 1.6em; vertical-align: -.35em; }
.ctlg_table td .fa { color: var(--akzent-dunkel); margin-right: 4px; }
.ctlg_table td a .fa { color: var(--dunkel); }
.ctlg_table td a:hover .fa { color: var(--akzent-dunkel); }
.ctlg_table td img { max-height: 1.6em; width: auto; vertical-align: middle; }

/* Regionen-Navigation auf den Mitgliederseiten (Ersatz für den alten catalogTaxonomyTree) */
#main .mod_customnav.regionen ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; }
#main .mod_customnav.regionen li { margin: 0; }
#main .mod_customnav.regionen a, #main .mod_customnav.regionen strong { display: inline-block; padding: 8px 16px; background: var(--hell); font-family: var(--kopf); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--dunkel); }
#main .mod_customnav.regionen a:hover { background: #e4e6b8; }
#main .mod_customnav.regionen strong, #main .mod_customnav.regionen a.active { background: var(--akzent); font-weight: 400; }

/* Filterleiste des Catalog Managers */
.mod_catalogFilterForm, .ctlg_filter { width: 100%; }
.backbutton .rte p a, #main a.ctlg_back { display: inline-block; background: var(--hell); padding: 6px 12px; font-size: 14px; text-decoration: none; }

/* ---------- Downloads ---------- */
.content-downloads ul, .ce_downloads ul { list-style: none; padding: 0; margin: 0; }
.content-downloads li, .ce_downloads li { padding: 8px 0 8px 32px; border-bottom: 1px solid var(--linie); position: relative; }
.content-downloads li::before, .ce_downloads li::before, .content-download::before { content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; background: var(--akzent-dunkel);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 20h14v-2H5zm7-18v10.2l3.6-3.6 1.4 1.4-6 6-6-6 1.4-1.4 3.6 3.6V2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 20h14v-2H5zm7-18v10.2l3.6-3.6 1.4 1.4-6 6-6-6 1.4-1.4 3.6 3.6V2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.content-download { position: relative; padding-left: 32px; }
.content-download::before { top: 4px; }
.content-downloads li a, .content-download a { text-decoration: none; font-weight: 700; }
.content-downloads li a:hover, .content-download a:hover { text-decoration: underline; }
.content-downloads .size, .content-download .size { color: var(--text-hell); font-size: 13px; margin-left: 6px; }
.content-downloads li img, .content-download img { display: none; }

/* ---------- Akkordeon (Contao 5: details/summary) ---------- */
.content-accordion, .ce_accordion { width: 100%; margin-bottom: 8px; }
.content-accordion summary, .ce_accordion .toggler { cursor: pointer; padding: 12px 16px 12px 40px; background: var(--hell); border-left: 4px solid var(--akzent); font-family: var(--kopf); font-weight: 700; text-transform: uppercase; font-size: .95rem; position: relative; list-style: none; }
.content-accordion summary::-webkit-details-marker { display: none; }
.content-accordion summary::before { content: "+"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; line-height: 1; color: var(--akzent-dunkel); }
.content-accordion details[open] summary::before { content: "–"; }
.content-accordion details[open] summary, .ce_accordion .toggler.active { background: var(--akzent); color: var(--dunkel); }
.content-accordion .accordion, .ce_accordion .accordion { padding: 16px 18px; border: 1px solid var(--linie); border-top: 0; }

/* ---------- Text-Elemente mit Bild ---------- */
.content-text figure.float_left, .ce_text figure.float_left { float: left; margin: 0 24px 12px 0; max-width: 45%; }
.content-text figure.float_right, .ce_text figure.float_right { float: right; margin: 0 0 12px 24px; max-width: 45%; }
.content-text.media--above > figure, .ce_text figure.float_above { margin-bottom: 16px; }
.content-text::after, .ce_text::after { content: ""; display: table; clear: both; }
.content-image figure img { display: block; }
.content-youtube, .ce_youtube { width: 100%; }
.content-youtube iframe, .ce_youtube iframe, .video_container iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* ---------- Formulare, Suche ---------- */
.widget { margin-bottom: 16px; }
.widget label { display: block; font-family: var(--kopf); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
input.text, input.captcha, textarea, select, .form-control { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--linie); border-radius: 0; background: var(--weiss); }
input.text:focus, textarea:focus, select:focus { outline: 2px solid var(--akzent); outline-offset: 0; border-color: var(--akzent); }
.mod_search .formbody { display: flex; gap: 8px; flex-wrap: wrap; }
.mod_search .widget-text { flex: 1 1 200px; margin: 0; }
.mod_search .widget-submit { margin: 0; }
.mod_search .widget-submit .submit { margin-top: 0; }
.mod_search .header { font-size: 14px; color: var(--text-hell); margin: 16px 0; }
.mod_search .even, .mod_search .odd { padding: 14px 0; border-bottom: 1px solid var(--linie); }

/* ---------- Seitenumbruch (Pagination) ---------- */
.pagination { margin: 24px 0 0; font-size: 14px; }
.pagination p { color: var(--text-hell); }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 !important; margin: 8px 0 0; }
.pagination li a, .pagination li span, .pagination li strong { display: inline-block; min-width: 36px; padding: 6px 10px; text-align: center; text-decoration: none; border: 1px solid var(--linie); }
.pagination li a:hover { background: var(--akzent); border-color: var(--akzent); color: var(--dunkel); }
.pagination li .active, .pagination li strong { background: var(--dunkel); color: var(--weiss); border-color: var(--dunkel); }

/* ---------- Fehlerseiten und Einzelseiten ---------- */
.mod_article .content-text .rte > h1:first-child { margin-top: 0; }

/* ---------- Fußbereich ---------- */
#footer { background: var(--dunkel); color: rgba(255, 255, 255, .85); }
#footer .footercontainer { padding: 64px var(--pad) 28px; background-image: linear-gradient(rgba(16, 24, 34, .9), rgba(16, 24, 34, .9)), url("/files/raster/pinsel_gedreht_250818042.jpg"); background-size: cover; background-position: center; }
#footer .container { width: 100%; }
#footer .row { display: flex; flex-wrap: wrap; gap: var(--g); align-items: flex-start; }
#footer .row > * { width: 100%; min-width: 0; }
#footer h1, #footer h2, #footer h3, #footer h4 { color: var(--weiss); font-size: 1rem; letter-spacing: .06em; }
#footer p { font-size: .95rem; margin-bottom: .6em; }
#footer a { color: var(--weiss); text-decoration: none; }
#footer a:hover { color: var(--akzent); }
#footer .content-image img { max-width: 230px; }
#footer .divider { background: rgba(255, 255, 255, .18); margin: 8px 0 0; }
#footer .row > .content-text:last-of-type p { text-align: center !important; font-size: 13px; color: rgba(255, 255, 255, .6); }
#footer .row > .content-text:last-of-type a { color: rgba(255, 255, 255, .8); }
#footer .row > .content-text:last-of-type span { font-size: inherit !important; }

/* Nach-oben-Pfeil */
.scrolltop { width: 0; height: 0; }
.scrolltop a { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; background: var(--akzent); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s; text-decoration: none; }
.scrolltop a::after { content: ""; position: absolute; left: 50%; top: 55%; width: 12px; height: 12px; border-left: 3px solid var(--dunkel); border-top: 3px solid var(--dunkel); transform: translate(-50%, -50%) rotate(45deg); }
body.scrolled .scrolltop a { opacity: 1; visibility: visible; transform: none; }
.scrolltop a:hover { background: var(--weiss); }

/* ---------- Mobil ---------- */
@media (max-width: 899px) {
  body { font-size: 16px; }
  .topbarkontakt p { text-align: center; }
  .topbar > .container > .row { min-height: 66px; padding-top: 8px; padding-bottom: 8px; }
  .topbar .logo img { height: 42px; }
  .nav-toggle { display: block; }
  .mainnavi { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0; padding: 12px var(--pad) 40px; background: var(--anthrazit); overflow-y: auto; display: none; }
  body.nav-open .mainnavi { display: block; }
  body.nav-open { overflow: hidden; }
  .mainnavi ul.level_1 { display: block; }
  .mainnavi ul.level_1 > li, .mainnavi ul.level_1 > li:last-child { border: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .mainnavi ul.level_1 > li > a, .mainnavi ul.level_1 > li > strong { padding: 14px 0; font-size: 16px; white-space: normal; }
  .mainnavi ul.level_2 { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 10px 16px; border: 0; box-shadow: none; background: none; }
  .mainnavi ul.level_2 li a, .mainnavi ul.level_2 li strong { padding: 8px 0; font-size: 15px; white-space: normal; color: rgba(255, 255, 255, .7); }
  #main .mod_article { padding-top: 36px; padding-bottom: 36px; }
  #main .mod_article.p4, #main .mod_article.p5 { padding-top: 48px; padding-bottom: 48px; }
  #main .mod_article.hom-slider, #main .mod_article.home-slider { min-height: 60vh; padding-top: 50px; padding-bottom: 50px; align-items: center; background-attachment: scroll; }
  .darkbg .rte { padding: 32px 22px; min-height: 240px; }
  #main .hom-slider .content-text > figure { position: static; width: 160px; margin: 0 auto 18px !important; transform: none; }
  #main .hom-slider .content-text > figure:hover { transform: none; }
  .slider-wrapper > .event-slider { padding: 24px 18px 30px; }
  .content-text figure.float_left, .content-text figure.float_right, .ce_text figure.float_left, .ce_text figure.float_right { float: none; max-width: 100%; margin: 0 0 16px; }
  /* Tabellen aus dem Texteditor: auf dem Handy in sich scrollbar statt abgeschnitten */
  .rte table, .content-table table, .ce_table table { display: block; width: 100% !important; min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rte table tbody, .content-table table tbody, .content-table table thead { display: table; width: max-content; min-width: 100%; }
  #footer .footercontainer { padding-top: 40px; }
  #footer .row > .content-text p { text-align: left !important; }
  .scrolltop a { right: 14px; bottom: 14px; }
}
@media (max-width: 480px) {
  .topbarkontakt p { font-size: 11px; }
  .ctlg_table table, .content-table table { font-size: .85rem; }
}

/* Druck */
@media print {
  #header, .scrolltop, .nav-toggle { display: none !important; }
  body { padding-top: 0 !important; }
  #main .mod_article { padding: 12px 0; }
}
