/* reflAktive – Stylesheet (v0.5) – Branding + Dark Mode */
/* DSGVO: ausschließlich lokale Ressourcen */

@font-face { font-family:'Lato'; font-style:normal; font-weight:300; font-display:swap; src:url('../Fonts/lato-v14-latin-300.woff2') format('woff2'); }
@font-face { font-family:'Lato'; font-style:normal; font-weight:700; font-display:swap; src:url('../Fonts/lato-v14-latin-700.woff2') format('woff2'); }
@font-face { font-family:'Montserrat'; font-style:normal; font-weight:500; font-display:swap; src:url('../Fonts/montserrat-v12-latin-500.woff2') format('woff2'); }

:root {
    --brand: #e9381a;
    --brand-dark: #c22c11;
    --yellow: #ffed00;
    --pink: #ff0080;
    --wrap: 1200px;
    --radius: 12px;
    --head: 'Montserrat', system-ui, sans-serif;
    --body: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Light (Default) */
    --bg: #ffffff;
    --ink: #1a1a1a;
    --muted: #5f6b73;
    --soft: #f6f7f8;
    --card: #ffffff;
    --line: #e6e8eb;
    --shadow: rgba(0,0,0,.08);
}

/* Dark Mode – per Umschalter (data-theme) und als System-Default */
:root[data-theme="dark"] {
    --bg: #15171a;
    --ink: #e8eaed;
    --muted: #9aa3ab;
    --soft: #1e2126;
    --card: #1c1f24;
    --line: #2b3037;
    --shadow: rgba(0,0,0,.45);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #15171a; --ink: #e8eaed; --muted: #9aa3ab; --soft: #1e2126; --card: #1c1f24; --line: #2b3037; --shadow: rgba(0,0,0,.45);
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-weight: 300; color: var(--ink); background: var(--bg); line-height: 1.7; overflow-x: clip; transition: background .2s, color .2s; }
strong, b { font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; letter-spacing: -.01em; }

/* ---- Header: IMMER dunkel (Logo hat schwarzen Hintergrund) ---- */
.site-header { position: sticky; top: 0; z-index: 20; background: #000; }
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--yellow), var(--brand), var(--pink)); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: block; width: 148px; height: 40px; background: url('../Images/logo.png') no-repeat left center; background-size: contain; overflow: hidden; text-indent: -9999px; flex: none; }

/* Hauptnavigation (auf schwarz) – kompakt, einzeilig */
.mainnav .nav { list-style: none; display: flex; flex-wrap: nowrap; gap: 1.05rem; margin: 0; padding: 0; }
.mainnav .nav > li { position: relative; }
.mainnav a { font-family: var(--head); font-size: .83rem; color: #fff; text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.mainnav a:hover, .mainnav .is-active > a { border-color: var(--yellow); color: var(--yellow); }
.nav-sub { list-style: none; margin: 0; padding: 0; }
.mainnav .nav-sub { position: absolute; left: -.75rem; top: 100%; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px var(--shadow); padding: .5rem; display: none; }
.mainnav .nav > li:hover .nav-sub { display: block; }
.mainnav .nav-sub a { display: block; padding: .45rem .7rem; border: 0; color: var(--ink); border-radius: 8px; font-size: .9rem; }
.mainnav .nav-sub a:hover { background: var(--soft); color: var(--brand); border: 0; }

/* Theme-Umschalter (dezent im Footer neben dem Copyright) */
.theme-toggle { flex: none; background: transparent; border: 1px solid #333; color: #8b939a; width: 32px; height: 32px; border-radius: 999px; cursor: pointer; font-size: .95rem; line-height: 1; margin-left: .8rem; vertical-align: middle; transition: border-color .2s, color .2s; }
.theme-toggle:hover { border-color: var(--yellow); color: var(--yellow); }
.site-footer .copy { display: inline-flex; align-items: center; }
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* ---- Inhalt ---- */
.site-main { padding: 3rem 0 4.5rem; }
.site-main h1, .hero-title { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.1; margin: 0 0 1.2rem; }
.site-main h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 3rem 0 1rem; }
.site-main h3 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
.hl { color: var(--brand); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hl {
        display: inline-block;
        background-image: linear-gradient(90deg, #ffed00 0, #e9381a 50%, #ff0080);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent; color: transparent;
    }
}
.lead { font-family: var(--head); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--muted); max-width: 62ch; line-height: 1.5; }
.ce { margin-bottom: 2.75rem; }
ul { padding-left: 1.2rem; }
ul li { margin: .2rem 0; }

.header-image { width: 100%; border-radius: var(--radius); margin-bottom: 1.75rem; object-fit: cover; max-height: 440px; box-shadow: 0 20px 50px var(--shadow); }
.product-image { max-width: 460px; border-radius: var(--radius); border: 1px solid var(--line); padding: 1rem; background: var(--card); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.gallery-img { border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--card); transition: transform .2s; }
.gallery-img:hover { transform: scale(1.03); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1.25rem; }
.member { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 6px 20px var(--shadow); }
.member-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; margin-bottom: .9rem; }
.member .pos { color: var(--muted); }

.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-family: var(--head); font-weight: 500; padding: .8rem 1.6rem; border-radius: 999px; transition: background .2s, transform .2s; }
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.seals { font-weight: 700; color: var(--ink); }

/* ---- Footer: immer dunkel ---- */
.site-footer { background: #000; color: #c7cdd2; font-size: .92rem; margin-top: 3rem; }
.site-footer::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--yellow), var(--brand), var(--pink)); }
.site-footer .footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2.5rem; padding: 3rem 1.5rem 2rem; }
.footer-badges__row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.footer-badges__row img { height: 64px; width: auto; background: #000; border: 1px solid #3a3a3a; padding: 8px 12px; border-radius: 8px; }
.footer-logo { font-family: var(--head); font-weight: 500; font-size: 1.35rem; color: #fff; display: inline-block; margin-bottom: .5rem; }
.footer-logo::first-letter { color: var(--brand); }
.footer-col h4 { font-family: var(--head); color: #fff; margin: 0 0 .8rem; font-size: .95rem; }
.footer-col p { margin: 0; line-height: 1.8; }
.footer-col a { color: #c7cdd2; text-decoration: none; }
.footer-col a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: .7rem; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #333; border-radius: 999px; color: #fff; transition: border-color .2s, color .2s; }
.footer-social a:hover { border-color: var(--yellow); color: var(--yellow); }
.site-footer .footer-bottom { border-top: 1px solid #222; padding: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
@media (max-width: 780px) { .site-footer .footer-top { grid-template-columns: 1fr; gap: 1.75rem; } }
/* Sprachumschalter */
.langnav { display: flex; align-items: center; gap: .5rem; }
.langnav a { font-family: var(--head); font-size: .82rem; color: #b8bcc0; text-decoration: none; }
.langnav a.is-active { color: #fff; }
.langnav a:hover { color: var(--yellow); }
.langnav a + a { padding-left: .5rem; border-left: 1px solid #444; }
.footernav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footernav a { font-family: var(--head); color: #fff; text-decoration: none; }
.footernav a:hover, .footernav a.is-active { color: var(--yellow); }
.site-footer .copy { color: #8b939a; }

/* ---- Mobiles Menü (Burger + Panel) ---- */
.nav-toggle { display: none; flex: none; width: 42px; height: 42px; border: 1px solid #444; border-radius: 10px; background: transparent; cursor: pointer; padding: 10px; transition: border-color .2s; }
.nav-toggle:hover { border-color: var(--yellow); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 5px; }
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel { background: #000; border-top: 1px solid #1e1e1e; max-height: calc(100vh - 71px); overflow: auto; }
.mobile-panel[hidden] { display: none; }
.mobilenav .nav { list-style: none; display: block; margin: 0; padding: .4rem 1.5rem .6rem; }
.mobilenav .nav > li { position: relative; border-bottom: 1px solid #1a1a1a; }
.mobilenav .nav > li:last-child { border-bottom: 0; }
.mobilenav a { display: block; padding: .85rem 0; color: #fff; text-decoration: none; font-family: var(--head); font-size: 1rem; }
.mobilenav a:hover, .mobilenav .is-active > a { color: var(--yellow); }
.mobilenav .nav > li > a { padding-right: 54px; }
.mobilenav .sub-toggle { position: absolute; top: .3rem; right: 0; width: 44px; height: 44px; background: none; border: 0; color: #888; font-size: 1.05rem; cursor: pointer; transition: transform .25s, color .2s; }
.mobilenav li.open > .sub-toggle { transform: rotate(180deg); color: var(--yellow); }
.mobilenav .nav-sub { display: none; margin: 0; padding: 0 0 .7rem 1.1rem; list-style: none; }
.mobilenav li.open > .nav-sub { display: block; animation: accOpen .25s ease; }
.mobilenav .nav-sub a { color: #c7cdd2; padding: .5rem 0; font-size: .95rem; }
.mobile-panel__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding: .9rem 1.5rem 1.1rem; border-top: 1px solid #1e1e1e; }
.mobile-panel__meta .header-phone span { display: inline; }

@media (max-width: 1100px) {
    .header-actions .mainnav, .header-actions .header-phone, .header-actions .langnav { display: none; }
    .nav-toggle { display: block; }
    .brand { width: 132px; height: 36px; }
}

/* ---- Katalog-Flipbook ---- */
.flipbook-wrap { max-width: 1400px; margin: 1rem auto; }
.katalog-head h1 { font-size: 1.5rem; }
#flipbook { margin: 0 auto; touch-action: pan-y; }
#flipbook .page img, #flipbook img { width: 100%; height: 100%; display: block; }
.flip-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 1.25rem; }

/* ---- Hero-Videos (DSGVO: Klick-zum-Laden) ---- */
.hero-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.yt-facade { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background-size: cover; background-position: center; box-shadow: 0 10px 30px var(--shadow); }
.yt-facade::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.15); transition: background .2s; }
.yt-facade:hover::after { background: rgba(0,0,0,.30); }
.yt-play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 66px; height: 66px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.5rem; padding-left: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .2s; }
.yt-facade:hover .yt-play { transform: translate(-50%,-50%) scale(1.08); }
.yt-facade.is-playing::after, .yt-facade.is-playing .yt-play { display: none; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- Katalog-Kopf + schlichte Blätter-Buttons ---- */
.katalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.katalog-head h1 { margin: 0; }
.katalog-back { font-family: var(--head); font-weight: 500; text-decoration: none; color: var(--muted); }
.katalog-back:hover { color: var(--brand); }
.flip-btn { background: transparent; border: 1px solid var(--line); color: var(--ink); width: 46px; height: 46px; border-radius: 999px; cursor: pointer; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; }
.flip-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Katalog-Aktionen (Download + Zurück) ---- */
.katalog-actions { display: flex; gap: 1.5rem; align-items: baseline; flex-wrap: wrap; }
.katalog-download { font-family: var(--head); font-weight: 500; text-decoration: none; color: var(--brand); }
.katalog-download:hover { color: var(--brand-dark); }

/* ---- Produktseite (zweispaltig) ---- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; margin-top: .5rem; }
.product-media { position: sticky; top: 100px; }
.product-main { display: block; width: 100%; height: clamp(280px, 38vw, 440px); border-radius: 6px; background: #fff; padding: 1.5rem; object-fit: contain; cursor: zoom-in; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04), 0 10px 28px rgba(0,0,0,.06); }
.product-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .6rem; margin-top: .8rem; }
.product-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #fff; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.08); transition: box-shadow .2s, transform .2s; }
.product-thumb:hover { box-shadow: 0 0 0 2px var(--brand); transform: translateY(-2px); }
.product-thumb.is-active { box-shadow: 0 0 0 2px var(--brand); }
.product-title { margin: 0 0 1rem; }
.product-desc { color: var(--muted); margin-bottom: 1.25rem; }
.product-badges { display: flex; gap: .6rem; margin: 1.25rem 0; }
.badge { font-family: var(--head); font-weight: 500; font-size: .78rem; letter-spacing: .06em; border: 2px solid var(--ink); color: var(--ink); border-radius: 6px; padding: .3rem .7rem; }
.product-info h3 { font-family: var(--head); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.5rem 0 .5rem; padding: 0; border: 0; }
/* Größen-Chips: einfache Liste mit Stilklasse "chips" (im RTE wählbar) */
ul.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
ul.chips li { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .95rem; font-size: .9rem; margin: 0; }
@media (max-width: 780px) { .product { grid-template-columns: 1fr; gap: 1.5rem; } .product-media { position: static; } }

/* ---- Lightbox (Produktbild vergrößern) ---- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 2rem; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; padding: 1rem; }

/* ---- Schnellzugriff: Bild-Element mit Rahmen "quicklinks" (Titel auf Bild) ---- */
.frame-quicklinks .ce-gallery { margin: 1rem 0; }
.frame-quicklinks .ce-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .5rem; }
.frame-quicklinks .ce-column { min-width: 0; }
.frame-quicklinks figure.image { position: relative; margin: 0; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--ink); cursor: pointer; }
.frame-quicklinks figure.image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.frame-quicklinks figure.image:hover img { transform: scale(1.06); }
.frame-quicklinks .image-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0; padding: 1.6rem .95rem .85rem; color: #fff; font-family: var(--head); font-weight: 500; font-size: 1.05rem; line-height: 1.15; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.15) 65%, transparent); }

/* ---- Hero-Video (ein großes Video mit Text-Overlay) ---- */
.hero-video { aspect-ratio: 21/9; min-height: 320px; width: 100%; border-radius: var(--radius); margin: 1.5rem 0 2.5rem; }
.hero-video .hero-video-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2.5rem 1.75rem 1.5rem; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); text-align: left; }
.hero-video .hero-video-text h2 { margin: 0; padding: 0; border: 0; color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.1; }

/* ---- News-Teaser (EXT:news Liste) ---- */
.news .news-list-view { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.25rem; }
.news .article { display: flex; flex-direction: column; gap: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 6px 20px var(--shadow); transition: transform .2s, box-shadow .2s; }
.news .article:hover { transform: translateY(-3px); box-shadow: 0 16px 40px var(--shadow); }
.news .news-img-wrap, .news .no-media-element { display: none; }
.news .article .header { margin: 0; }
.news .article h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.news .article h3 a { color: var(--ink); text-decoration: none; }
.news .article h3 a:hover { color: var(--brand); }
.news .teaser-text { color: var(--muted); margin: 0; font-size: .95rem; }
.news .teaser-text p { margin: 0; }
.news .article h3 a::after { content: " \2192"; color: var(--brand); opacity: 0; transition: opacity .2s; }
.news .article:hover h3 a::after { opacity: 1; }

/* ---- News-Cards (Original-Stil: Datum · Titel · Teaser · ansehen) ---- */
.news .news-list-view { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.25rem; }
.news-card { display: flex; flex-direction: column; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 6px 20px var(--shadow); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px var(--shadow); }
.news-card__date { font-family: var(--head); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.news-card__title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a:hover { color: var(--brand); }
.news-card__teaser { color: var(--muted); font-size: .95rem; flex: 1; }
.news-card__more { align-self: flex-start; margin-top: .4rem; font-family: var(--head); font-weight: 500; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); text-decoration: none; }
.news-card__more::after { content: " \2192"; }
.news-card__more:hover { color: var(--brand-dark); }

/* ---- Ghost-Button (Katalog-Download neben durchblättern) ---- */
.catalog-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: transparent; border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* ---- Hero auf Content-Seiten (großes Bild, Titel darauf) ---- */
.page-hero { position: relative; left: 50%; right: 50%; width: 100vw; margin-left: -50vw; margin-right: -50vw; margin-top: -3rem; margin-bottom: 2.5rem; overflow: hidden; min-height: 400px; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.12) 60%, transparent); }
.page-hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.5rem 2.25rem; color: #fff; }
.page-hero__inner h1 { margin: 0; color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero__claim { margin: .7rem 0 0; font-family: var(--head); font-weight: 500; font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 62ch; color: #f1f1f1; }
@media (max-width: 640px) { .page-hero { min-height: 280px; } .page-hero__inner { padding: 2rem 1.5rem 1.5rem; } }

/* ---- Akkordeon (Rahmen "accordion-item" / "accordion-cont", Gruppierung per JS) ---- */
.frame-accordion-item { border-bottom: 1px solid var(--line); }
.frame-accordion-item.acc-first { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.acc-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 1.1rem .25rem; font-family: var(--head); font-weight: 500; font-size: 1.15rem; text-align: left; }
.acc-toggle::after { content: "+"; color: var(--brand); font-size: 1.6rem; line-height: 1; transition: color .2s; }
.frame-accordion-item.is-open .acc-toggle::after { content: "\2212"; }
.acc-toggle:hover { color: var(--brand); }
.acc-panel { display: none; }
.frame-accordion-item.is-open .acc-panel { display: block; padding: .2rem .25rem 1.75rem; animation: accOpen .28s ease; }
.acc-panel > :first-child { margin-top: 0; }
@keyframes accOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .frame-accordion-item.is-open .acc-panel { animation: none; } }

/* ---- Bild neben Text (Standard-Element Text & Medien, "neben dem Text") ---- */
.ce-textpic.ce-intext.ce-nowrap { display: grid; grid-template-columns: 280px 1fr; gap: 1.75rem; align-items: start; margin: 1.25rem 0; }
.ce-textpic.ce-right.ce-intext.ce-nowrap { grid-template-columns: 1fr 280px; }
.ce-textpic.ce-right.ce-intext.ce-nowrap .ce-gallery { order: 2; }
.ce-textpic .ce-gallery figure { margin: 0; }
.ce-textpic .ce-gallery img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.ce-bodytext > :first-child { margin-top: 0; }
.acc-panel .ce-textpic.ce-intext.ce-nowrap + .ce-textpic.ce-intext.ce-nowrap { border-top: 1px dashed var(--line); padding-top: 1.5rem; }
@media (max-width: 700px) { .ce-textpic.ce-intext.ce-nowrap { grid-template-columns: 1fr !important; } .ce-textpic.ce-right.ce-intext.ce-nowrap .ce-gallery { order: 0; } }

/* ---- Video-Modal (Hero-Video öffnet im Overlay) ---- */
.video-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 2rem; animation: accOpen .2s ease; }
.video-modal__inner { position: relative; width: min(1040px, 92vw); aspect-ratio: 16/9; }
.video-modal__inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.video-modal__close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }
.video-modal__close:hover { color: var(--yellow); }

/* ---- DSGVO Consent-Banner ---- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: #000; color: #e8eaed; border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--yellow), var(--brand), var(--pink)) 1; animation: accOpen .3s ease; }
.consent__inner { max-width: var(--wrap); margin: 0 auto; padding: 1.1rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; justify-content: space-between; }
.consent__text { margin: 0; font-size: .9rem; line-height: 1.6; max-width: 70ch; }
.consent__text a { color: var(--yellow); }
.consent__actions { display: flex; gap: .6rem; flex: none; }
.consent__btn { font-family: var(--head); font-weight: 500; font-size: .85rem; border-radius: 999px; padding: .6rem 1.2rem; cursor: pointer; border: 1px solid #555; background: transparent; color: #fff; }
.consent__btn.consent__accept { background: var(--brand); border-color: var(--brand); }
.consent__btn.consent__accept:hover { background: var(--brand-dark); }
.consent__btn.consent__decline:hover { border-color: #fff; }

/* Consent-Hinweis im Video-Modal */
.video-consent { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 1rem; color: #fff; padding: 2rem; }
.video-consent p { margin: 0 auto; max-width: 40ch; }

/* ---- Produkt-Kacheln (Kategorieseiten, öffnen als Modal) ---- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.img-tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--soft); text-decoration: none; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.img-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.img-tile:hover .img-tile__img { transform: scale(1.06); }
.img-tile__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.66), rgba(0,0,0,0) 55%); }
.img-tile__name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.4rem 1rem .9rem; color: #fff; font-family: var(--head); font-weight: 500; font-size: 1.1rem; line-height: 1.2; }
.img-tile .tile-seals { position: absolute; right: .6rem; bottom: 3rem; z-index: 2; display: flex; gap: .35rem; }
.img-tile .tile-seals .seals__item { height: 34px; width: auto; background: #fff; border-radius: 6px; padding: 3px 5px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* ---- Produkt-Modal ---- */
.product-modal { position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 2rem 1rem; animation: accOpen .2s ease; }
.product-modal__inner { position: relative; background: var(--bg); color: var(--ink); border-radius: var(--radius); width: min(1100px, 96vw); max-height: 90vh; overflow: auto; padding: 2.5rem 2rem 2rem; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.product-modal__close { position: absolute; top: .6rem; right: 1rem; z-index: 3; background: none; border: 0; font-size: 2.2rem; line-height: 1; color: var(--muted); cursor: pointer; }
.product-modal__close:hover { color: var(--brand); }
.product-modal__loading { color: var(--muted); }
.product-modal .product-media { position: static; }

/* ---- Flipbook Vollbild ---- */
.flipbook-wrap:fullscreen { max-width: none; width: 100%; height: 100%; margin: 0; background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; }
.flipbook-wrap:fullscreen #flipbook { flex: 1; min-height: 0; }

/* ---- HTML-Sitemap (Standard-Element "Sitemap") ---- */
.frame-type-menu_sitemap ul { list-style: none; padding: 0; margin: 0; }
.frame-type-menu_sitemap > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem 2.5rem; margin-top: 1.25rem; }
.frame-type-menu_sitemap > ul > li > a { font-family: var(--head); font-weight: 500; font-size: 1.05rem; color: var(--ink); text-decoration: none; display: inline-block; margin-bottom: .35rem; }
.frame-type-menu_sitemap ul ul a { display: block; color: var(--muted); text-decoration: none; padding: .16rem 0; }
.frame-type-menu_sitemap ul ul ul { padding-left: 1rem; }
.frame-type-menu_sitemap a:hover { color: var(--brand); }

/* ---- Kontaktformular (EXT:form) ---- */
.site-main .form-element { margin-bottom: 1.15rem; }
.site-main .form-label { display: block; font-family: var(--head); font-weight: 500; margin-bottom: .4rem; }
.site-main .form-control { width: 100%; max-width: 620px; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; line-height: 1.4; }
.site-main textarea.form-control { min-height: 170px; resize: vertical; }
.site-main .form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(233,56,26,.15); }
.site-main .form-navigation .btn, .site-main .actions .btn { margin-top: .6rem; border: 0; cursor: pointer; }
.site-main .required .form-label::after { content: " *"; color: var(--brand); }

/* ---- Homepage-Hero mit Video-Preview ---- */
.home-hero { position: relative; left: 50%; right: 50%; width: 100vw; margin-left: -50vw; margin-right: -50vw; margin-top: -3rem; margin-bottom: 2.5rem; min-height: 470px; display: flex; align-items: center; background-size: cover; background-position: center; overflow: hidden; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.4) 55%, rgba(0,0,0,.15)); }
.home-hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.5rem; color: #fff; }
.home-hero__inner .hero-title { color: #fff; margin: 0 0 1rem; max-width: 22ch; }
.home-hero__inner .lead { color: #f1f1f1; margin: 0 0 1.6rem; }
/* Play-Button (ist .yt-facade -> Tile-Styles zurücksetzen, als Pille darstellen) */
.home-hero__play { position: static; width: auto; aspect-ratio: auto; display: inline-flex; align-items: center; gap: .6rem; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: .8rem 1.5rem; font-family: var(--head); font-weight: 500; font-size: 1rem; cursor: pointer; box-shadow: none; overflow: visible; }
.home-hero__play::after { content: none; }
.home-hero__play:hover { background: var(--brand-dark); }
.home-hero__play .yt-play { position: static; transform: none; width: 30px; height: 30px; font-size: .85rem; box-shadow: none; padding-left: 2px; }
.home-hero__play:hover .yt-play { transform: none; }
@media (max-width: 700px) { .home-hero { min-height: 380px; } }

/* ---- Hero-Störer (Unser Service) ---- */
.home-hero { }  /* Störer positioniert sich relativ zum Hero */
.hero-stoerer { position: absolute; bottom: 1.5rem; right: 1.75rem; z-index: 2; width: clamp(190px, 25vw, 320px); height: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
@media (max-width: 640px) { .hero-stoerer { width: 150px; bottom: 1rem; right: 1rem; } }

/* ---- Header-Telefon ---- */
.header-phone { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; font-family: var(--head); font-weight: 500; font-size: .85rem; white-space: nowrap; }
.header-phone svg { flex: none; }
.header-phone:hover { color: var(--yellow); }
@media (max-width: 1180px) { .header-phone span { display: none; } }

/* ---- Kontakt-Banner (Text-Element mit Rahmen "cta-banner") ---- */
.frame-cta-banner { position: relative; left: 50%; right: 50%; width: 100vw; margin-left: -50vw; margin-right: -50vw; margin-top: 3rem; background: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.42)), #16130f url('/fileadmin/reflaktive/banner-large.png') center/cover no-repeat; color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: 2.5rem calc(max(1.5rem, (100vw - var(--wrap)) / 2 + 1.5rem)); }
.frame-cta-banner::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--yellow), var(--brand) 55%, var(--pink)); }
.frame-cta-banner p { margin: 0; font-family: var(--head); font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 1.8rem); line-height: 1.2; }
.frame-cta-banner p:has(a.btn) { flex: none; }
.frame-cta-banner a.btn { font-size: 1rem; line-height: 1.4; }

/* ---- Produkt-Siegel (echte Grafiken) ---- */
.product-seals { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin: 1.25rem 0; }
.product-seals .seal { height: 56px; width: auto; }

/* ---- Katalog-Teaser (Text & Medien mit Rahmen "catalog-teaser", Video links) ---- */
.frame-catalog-teaser .ce-textpic.ce-intext.ce-nowrap { grid-template-columns: minmax(0, 340px) 1fr; gap: 2rem; align-items: center; margin-top: 1rem; }
.frame-catalog-teaser .ce-gallery figure { margin: 0; }
.frame-catalog-teaser video { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 14px 34px var(--shadow); background: var(--soft); display: block; border: 1px solid var(--line); }
.frame-catalog-teaser .ce-bodytext .catalog-actions { margin-top: 1.25rem; }
@media (max-width: 640px) { .frame-catalog-teaser video { max-width: 340px; } }
