/* ==========================================================================
   suntex24 – Sitepackage ig_template
   Ideengeist web solutions
   ========================================================================== */

/* --------------------------------------------------------------------------
   Schriften (Raleway, SIL Open Font License – siehe Fonts/OFL.txt)
   -------------------------------------------------------------------------- */
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; font-display: swap; src: url('../Fonts/Raleway-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 500; font-display: swap; src: url('../Fonts/Raleway-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 600; font-display: swap; src: url('../Fonts/Raleway-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 700; font-display: swap; src: url('../Fonts/Raleway-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 800; font-display: swap; src: url('../Fonts/Raleway-ExtraBold.ttf') format('truetype'); }

/* --------------------------------------------------------------------------
   Design-Tokens
   Kontraste geprüft (WCAG AA): Text #1d1d1b auf Stoff-Grau ≥ 9:1,
   Orange #f1700a nur als Fläche mit dunkler Schrift (≈ 7:1) bzw. als Rahmen,
   Textlinks dunkel mit orangener Unterstreichung (auch auf Stoff-Grau ≥ 4,5:1),
   #a84a00 nur auf weißen Flächen (≈ 6:1).
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #f1700a;
    --color-primary-dark: #a84a00;
    --color-primary-text: #1d1d1b;
    --color-accent: #f5c400;
    --color-green: #3aa935;
    --color-text: #1d1d1b;
    --color-muted: #4a4a4a;
    --color-bg: #bfbfc1;
    --color-surface: #ffffff;
    --color-dark: #24201d;
    --color-step: #5e5e5e;
    --color-error: #b3001b;
    --color-focus: #1d1d1b;

    --font-base: 'Raleway', Arial, Helvetica, sans-serif;
    --radius: 12px;
    --radius-small: 6px;
    --shadow: 0 2px 10px rgba(0, 0, 0, .12);
    --gutter: 40px;

    /* alte Variable aus dem Basis-Template (Formulare) */
    --color-1: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-base);
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg) url('../Images/hintergrund.webp') center top / cover no-repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
@media (hover: hover) and (min-width: 901px) {
    body { background-attachment: fixed; }
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

table, tr, td, th { font-family: inherit; font-size: inherit; }

[hidden] { display: none !important; }

img, video { max-width: 100%; height: auto; border: 0; }

a { color: inherit; text-decoration: none; }
.main p a, .main li a, .ce-bodytext a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.main p a:hover, .main li a:hover { text-decoration-thickness: 4px; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

span.big { font-size: 1.6em; }
.small { font-size: .85em; }

.text-left, .align-left { text-align: left; }
.text-right, .align-right { text-align: right; }
.text-center, .align-center { text-align: center; }
.text-justify { text-align: justify; }
.clear { clear: both; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* Sichtbarer Tastaturfokus */
:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .85);
}

.skiplink {
    position: absolute;
    left: 16px; top: -100px;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--color-surface);
    color: var(--color-text);
    font-weight: 700;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow);
}
.skiplink:focus { top: 16px; }

a, button, .btn, img, li { transition: all 200ms ease-out; }

/* --------------------------------------------------------------------------
   Raster-Struktur (.all / .main / .cStage) – unverändert aus dem Basis-Template
   -------------------------------------------------------------------------- */
.all {
    width: 100%;
    min-width: 100%;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.all.content { scroll-margin-top: 90px; padding-top: 30px; padding-bottom: 30px; }

.main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    text-align: left;
}

.cStage { display: flex; margin: 0 -15px; flex-wrap: wrap; }
.cStage > div { padding: 0 15px; }
.cStage.f-10 { align-items: center; }
.cStage.f-11 { align-items: flex-end; }

.c16 { flex: 0 0 16.6666%; max-width: 16.6666%; }
.c20 { flex: 0 0 20%; max-width: 20%; }
.c25 { flex: 0 0 25%; max-width: 25%; }
.c30 { flex: 0 0 30%; max-width: 30%; }
.c33 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.c35 { flex: 0 0 35%; max-width: 35%; }
.c40 { flex: 0 0 40%; max-width: 40%; }
.c50 { flex: 0 0 50%; max-width: 50%; }
.c60 { flex: 0 0 60%; max-width: 60%; }
.c66 { flex: 0 0 66.6666%; max-width: 66.6666%; }
.c70 { flex: 0 0 70%; max-width: 70%; }
.c75 { flex: 0 0 75%; max-width: 75%; }
.c80 { flex: 0 0 80%; max-width: 80%; }

/* Umflossene Bilder (Text & Bild, Bild links/rechts im Text) einschließen – ersetzt das frühere .main::after */
.ce-textpic { display: flow-root; }

.main * > *:first-child { margin-top: 0; }
.main * > *:last-child { margin-bottom: 0; }

/* Überschrift unter dem Bild (Templates ext/fsc/Image.html + Textpic.html) */
.ce-caption { margin-top: 16px; text-align: center; }
.ce-caption:not(:has(header)) { display: none; }
.ce-caption .hl-glow { margin-bottom: 0; }
.ce-caption .hl-glow__text::after { display: none; }
.ce-textpic .ce-caption + .ce-bodytext { margin-top: 6px; }

/* Abstand Überschriftenblock -> Inhalt (die Zeile darüber nullt sonst den letzten Abstand im <header>) */
.main .frame > header:not(:last-child) { margin-bottom: 1.5rem; }

/* Hintergrundoptionen 1er Raster (Feld "Layout") */
.all.l-10 > .main,
.all.l-11 > .main,
.all.l-12 > .main { padding: 40px; border-radius: var(--radius); }
.all.l-10 > .main { background: var(--color-surface); box-shadow: var(--shadow); }
.all.l-11 > .main { background: rgba(255, 255, 255, .82); }
.all.l-12 > .main { background: var(--color-dark); color: #fff; }
.all.l-12 a { color: #fff; }

.ce-gallery[data-ce-columns="2"] .ce-column { width: calc(50% - 15px); }
.ce-gallery[data-ce-columns="3"] .ce-column { width: calc(33.3333% - 15px); }

@media (max-width: 1100px) {
    .ce-textpic.ce-intext .ce-gallery { max-width: 50%; }
}

@media (max-width: 900px) {
    :root { --gutter: 20px; }
    .c16, .c20, .c25, .c30, .c33, .c35, .c40, .c50, .c60, .c66, .c70, .c75, .c80 { flex: 0 0 100%; max-width: 100%; }
    .cStage > div + div { margin-top: 30px; }
    .cStage.l-99 { flex-direction: column-reverse; }
    .cStage.l-99 > div + div { margin-top: 0; margin-bottom: 30px; }
    body { font-size: 17px; }
}

@media (max-width: 650px) {
    .content .ce-left .ce-gallery,
    .content .ce-right .ce-gallery { float: none; }
    .content .ce-intext.ce-right .ce-gallery { margin-left: 0; }
    .content .ce-intext.ce-left .ce-gallery { margin-right: 0; }
    .ce-textpic.ce-intext .ce-gallery { max-width: 100%; }
    h1 { font-size: 1.6rem; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 44px;
    padding: 8px 24px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius);
    background: var(--color-primary);
    color: var(--color-primary-text);
    font: 600 1.05rem/1.2 var(--font-base);
    text-decoration: none;
    cursor: pointer;
}
.main p a.btn, .main li a.btn { text-decoration: none; font-weight: 600; }
p:has(> .btn) { display: flex; flex-wrap: wrap; gap: 12px 16px; }
p.text-center:has(> .btn) { justify-content: center; }
.btn:hover, a.btn:hover { background: #ff8a2f; border-color: #ff8a2f; }
.btn--outline, a.btn--outline { background: var(--color-surface); color: var(--color-text); }
.btn--outline:hover, a.btn--outline:hover { background: #fff3ea; border-color: var(--color-primary); }
.btn--large { min-height: 52px; padding: 10px 40px; font-size: 1.2rem; }
.btn--small { min-height: 38px; padding: 6px 16px; font-size: .95rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

/* --------------------------------------------------------------------------
   Glanz-Headline (header_layout 11/12): Orange mit dunkler Kontur + Blitzer
   -------------------------------------------------------------------------- */
.hl-glow {
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.25;
    margin: 0 auto .4em;
}
h2.hl-glow { font-size: clamp(1.4rem, 3vw, 2.3rem); }
.hl-glow__text {
    position: relative;
    display: inline-block;
    color: var(--color-primary);
    -webkit-text-stroke: 1px #3b2410;
    text-shadow: 2px 2px 0 #3b2410, 3px 3px 6px rgba(0, 0, 0, .35);
}
.hl-glow__text::after {
    content: '';
    position: absolute;
    right: -1.4em;
    top: -1.1em;
    width: 2.6em;
    height: 2.4em;
    background: url('../Images/blitzer.png') center / contain no-repeat;
    pointer-events: none;
}
.hl-glow a { color: inherit; text-decoration: none; }
.hl-glow--center { display: block; }
.hl-sub { margin: -.2em auto 1.5em; text-align: center; font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* --------------------------------------------------------------------------
   Kopfzeile & Navigation
   -------------------------------------------------------------------------- */
.top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-surface);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}
.top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
}
.top__logo { display: block; padding: 14px 0; }
.top__logo img { display: block; width: 80px; height: auto; }

.nav__list {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav__item { position: relative; }
.top .nav__item > a {
    display: block;
    text-decoration: none;
    padding: 10px 12px;
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text);
    border-bottom: 3px solid transparent;
}
.top .nav__item > a:hover { border-bottom-color: var(--color-accent); }
.top .nav__item.act > a { font-weight: 700; border-bottom-color: var(--color-accent); }

.openSub { background: none; border: 0; padding: 6px; cursor: pointer; color: inherit; }
.nav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: var(--color-surface);
    box-shadow: var(--shadow);
    border-radius: var(--radius-small);
}
.nav__sub a { display: block; padding: 8px 16px; }

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 12px;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    content: '';
    position: relative;
    transition: transform 200ms ease-out;
}
.nav-toggle__bars::before { position: absolute; top: -8px; }
.nav-toggle__bars::after { position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

.minicart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 6px 8px 6px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
}
.minicart:hover { border-color: var(--color-primary); }
.minicart__count {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-text);
    font-weight: 700;
    font-size: .85rem;
}

@media (max-width: 900px) {
    .top__inner { flex-wrap: wrap; min-height: 60px; }
    .top__logo { order: 1; padding: 10px 0; }
    .top__logo img { width: 64px; }
    .top__cart { order: 2; margin-left: auto; }
    .nav-toggle { display: block; order: 3; }
    .nav { order: 4; flex: 0 0 100%; display: none; }
    .nav.is-open { display: block; }
    .nav__list { flex-direction: column; padding-bottom: 12px; }
    .top .nav__item > a { padding: 12px 4px; border-bottom: 1px solid #eee; }
    .nav__sub { position: static; box-shadow: none; }
    .minicart__label { display: none; }
}

/* --------------------------------------------------------------------------
   Kopfbild
   -------------------------------------------------------------------------- */
.stage { position: relative; padding: 0; overflow: hidden; }
.stage__media { display: block; width: 100%; height: auto; object-fit: cover; }
.stage__overlay { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 var(--gutter); }
.stage__overlay .main { width: 100%; }
.stage__box { max-width: 900px; margin: 0 auto; text-align: center; }

/* --------------------------------------------------------------------------
   Bild-Button (Startseite)
   -------------------------------------------------------------------------- */
/* Bild-Button-Raster (Startseite): 3 Spalten, 2 Zeilen über alle Spalten (subgrid),
   zweite Zeile unten bündig, kleiner Button ("klein", Layout 20) liegt oben rechts auf dem Button davor */
@media (min-width: 901px) {
    .cStage:has(> .c33 .frame-type-imagebutton) {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 20px 30px;
        max-width: 1100px;
        margin: 0 auto;
    }
    .cStage:has(> .c33 .frame-type-imagebutton) > div {
        display: grid;
        grid-row: span 2;
        grid-template-rows: subgrid;
        max-width: none;
        padding: 0;
    }
    .cStage:has(> .c33 .frame-type-imagebutton) > div > .frame { grid-column: 1; align-self: end; margin: 0; }
    .cStage:has(> .c33 .frame-type-imagebutton) > div > .frame:first-child { grid-row: 1; }
    .cStage:has(> .c33 .frame-type-imagebutton) > div > .frame:nth-child(n+2) { grid-row: 2; }
    .cStage:has(> .c33 .frame-type-imagebutton) > div > .frame-layout-20 {
        align-self: start;
        justify-self: end;
        z-index: 1;
        margin: 10px 20px 0 0;
    }
    .cStage:has(> .c33 .frame-type-imagebutton) .frame-layout-20 .imgbtn { width: 140px; }
}

.imgbtn { display: block; max-width: 300px; margin: 0 auto; border-radius: 50%; }
.imgbtn--small { max-width: 140px; }
.imgbtn--large { max-width: 380px; }
.imgbtn__img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
a.imgbtn:hover .imgbtn__img,
a.imgbtn:focus-visible .imgbtn__img { transform: scale(1.04); }
.imgbtn__placeholder { position: relative; display: block; }
.imgbtn__placeholder svg { display: block; width: 100%; height: auto; }
.imgbtn__placeholder-text {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    padding: 20%;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-primary-text);
}

/* --------------------------------------------------------------------------
   Trust-Zeile & Footer
   -------------------------------------------------------------------------- */
.site-footer { flex-shrink: 0; margin-top: 40px; }
.trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--color-surface);
}
.trust__item {
    padding: 14px 20px;
    text-align: center;
    font-weight: 700;
    font-size: .95rem;
}
.trust__item + .trust__item { border-left: 1px solid #ddd; }

.bottom { background: var(--color-dark); color: #fff; padding-top: 18px; padding-bottom: 18px; font-size: .9rem; }
.bottom__inner { max-width: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px; }
.bottom__copy { margin: 0; }
.bottom__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.bottom .bottom__nav a { color: #fff; font-weight: inherit; text-decoration: none; }
.bottom .bottom__nav a:hover, .bottom .bottom__nav a[aria-current="page"] { text-decoration: underline; }

@media (max-width: 650px) {
    .trust { grid-template-columns: 1fr; }
    .trust__item + .trust__item { border-left: 0; border-top: 1px solid #ddd; }
}

/* --------------------------------------------------------------------------
   Formulare (EXT:form)
   -------------------------------------------------------------------------- */
.frame-type-form_formframework p { font-size: 90%; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    margin-bottom: 6px;
    padding: 10px 15px;
    font: inherit;
    color: var(--color-text);
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius);
}
.form-group label, .control-label { display: block; margin-bottom: 4px; font-weight: 500; }

form .row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
form .row .col-1 { --cols: calc(100% / 12 * 1); }
form .row .col-2 { --cols: calc(100% / 12 * 2); }
form .row .col-3 { --cols: calc(100% / 12 * 3); }
form .row .col-4 { --cols: calc(100% / 12 * 4); }
form .row .col-5 { --cols: calc(100% / 12 * 5); }
form .row .col-6 { --cols: calc(100% / 12 * 6); }
form .row .col-7 { --cols: calc(100% / 12 * 7); }
form .row .col-8 { --cols: calc(100% / 12 * 8); }
form .row .col-9 { --cols: calc(100% / 12 * 9); }
form .row .col-10 { --cols: calc(100% / 12 * 10); }
form .row .col-11 { --cols: calc(100% / 12 * 11); }
form .row .col-12 { --cols: calc(100% / 12 * 12); }
form .row > div { flex: 0 0 var(--cols); max-width: var(--cols); padding: 0 10px; }
@media (max-width: 1000px) {
    form .row > div { flex: 0 0 100%; max-width: 100%; }
}

.form-check-label { display: block; position: relative; padding-left: 38px; margin-bottom: 12px; cursor: pointer; }
.form-check-label input { position: absolute; opacity: 0; width: 26px; height: 26px; left: 0; top: 0; margin: 0; cursor: pointer; }
.form-check-label span { position: absolute; top: 0; left: 0; width: 26px; height: 26px; border: 2px solid var(--color-primary); border-radius: 4px; background: var(--color-surface); }
.form-check-label span.required { position: relative; width: auto; height: auto; border: 0; background: none; }
.form-check-label input:checked ~ span { background: var(--color-primary); }
.form-check-label span::after { content: ''; position: absolute; display: none; left: 7px; top: 2px; width: 7px; height: 13px; border: solid var(--color-primary-text); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.form-check-label input:checked ~ span::after { display: block; }
.form-check-label input:focus-visible ~ span { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Gemeinsame Formular-Bausteine (Konfigurator & Kasse)
   -------------------------------------------------------------------------- */
.igc-input,
.ff__input {
    width: 100%;
    min-height: 46px;
    padding: 8px 14px;
    font: inherit;
    color: var(--color-text);
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius);
}
.igc-input[aria-invalid="true"],
.ff__input[aria-invalid="true"] { border-color: var(--color-error); box-shadow: 0 0 0 2px var(--color-error); }

.igc-error,
.ff__error {
    margin: 6px 0 0;
    color: var(--color-error);
    font-weight: 600;
    font-size: .95rem;
    background: rgba(255, 255, 255, .9);
    border-radius: var(--radius-small);
}
.igc-error:not(:empty), .ff__error:not(:empty) { padding: 4px 10px; }
.ff__error:empty { display: none; }

/* Radio/Checkbox im Stil der Mockups: orangener Ring, Eingabe bleibt fokussierbar */
.igc-radio,
.igc-check,
.choice__input {
    position: absolute;
    opacity: 0;
    width: 30px;
    height: 30px;
    margin: 0;
}
.igc-radio + label,
.igc-check + label,
.choice__input + .choice__label {
    position: relative;
    display: block;
    padding-left: 46px;
    min-height: 30px;
    cursor: pointer;
}
.igc-radio + label::before,
.igc-check + label::before,
.choice__input + .choice__label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    background: var(--color-surface);
}
.igc-check + label::before,
.choice__input[type="checkbox"] + .choice__label::before { border-radius: 8px; }
.igc-radio:checked + label::before { background: radial-gradient(circle, var(--color-primary) 0 7px, var(--color-surface) 8px); }
.igc-check:checked + label::before,
.choice__input:checked + .choice__label::before { background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231d1d1b' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 20px no-repeat; }
.igc-radio:focus-visible + label::before,
.igc-check:focus-visible + label::before,
.choice__input:focus-visible + .choice__label::before { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.igc-radio[aria-invalid="true"] + label::before,
.choice__input[aria-invalid="true"] + .choice__label::before { border-color: var(--color-error); }

/* --------------------------------------------------------------------------
   Plissee-Konfigurator
   -------------------------------------------------------------------------- */
.igc { max-width: 900px; margin: 0 auto; }

.igc-steps {
    display: flex;
    justify-content: space-between;
    max-width: 680px;
    margin: 0 auto 30px;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.igc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: 0;
    padding: 4px;
    font: inherit;
    color: var(--color-text);
    cursor: pointer;
}
.igc-step[disabled] { cursor: default; }
.igc-step__num {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-step);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.igc-step__label { font-size: .9rem; font-weight: 600; }
.igc-step.is-current .igc-step__num { background: var(--color-primary); color: var(--color-primary-text); }
.igc-step.is-done .igc-step__num { background: #3d3d3d; }
.igc:not(.is-enhanced) .igc-steps { display: none; }

.igc-panel { margin-bottom: 40px; }
.igc-panel__title { font-size: 1.25rem; font-weight: 500; margin-bottom: 20px; }
.igc-panel__title:focus { outline: none; }
.igc-intro { margin-top: -10px; }
.igc-link-strong { font-weight: 800; text-transform: uppercase; color: var(--color-text) !important; text-decoration-color: var(--color-primary) !important; }
.igc-muted { color: var(--color-muted); font-size: .95em; }
.igc-legend { display: block; font-weight: 500; font-size: 1.1rem; margin-bottom: 12px; padding: 0; }
.igc-attention { color: var(--color-error); font-weight: 800; text-transform: uppercase; }

.igc fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }

.igc-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
}
.igc-nav > :only-child { margin-left: auto; }

/* Schritt 1: Filter, Kategorien, Stoffe */
.igc-filter { display: flex; justify-content: center; gap: 24px; margin-bottom: 30px; }
.igc-filter__btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 6px 10px;
    background: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font: 500 .85rem var(--font-base);
    color: var(--color-text);
    cursor: pointer;
}
.igc-filter__btn img { width: 44px; height: 44px; }
.igc-count { font-weight: 400; font-size: .8em; }
.igc-cat.is-empty, .igf-cat.is-empty { opacity: .35; filter: grayscale(1); }
.igc-cat.is-empty { cursor: default; }
.igf-cat.is-empty .igf-cat__link { cursor: default; pointer-events: none; }
.igf-filter .igc-filter { flex-wrap: wrap; }
.igc-filter__btn[aria-pressed="true"] { border-color: var(--color-primary); background: rgba(255, 255, 255, .7); }

.igc-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 20px; margin-bottom: 30px; }
.igc-cat,
.igf-cat__link {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: none; border: 0; padding: 0;
    font: 500 clamp(1.1rem, 2.4vw, 1.8rem) var(--font-base);
    text-transform: uppercase;
    color: var(--color-text);
    cursor: pointer;
}
.igc-cat__img,
.igf-cat__img {
    display: block;
    width: min(100%, 240px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 16px solid var(--color-green);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), 0 6px 14px rgba(0, 0, 0, .25);
    background: #eee;
}
/* Stoffübersicht + Konfigurator: Rand ist bereits Teil der Grafik */
.igc-cat__img, .igf-cat__img { border: 0; box-shadow: none; background: none; }
.igc-cat__img img, .igf-cat__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.igc-cat:hover .igc-cat__img, .igf-cat__link:hover .igf-cat__img { transform: scale(1.03); }
.igc-cat[aria-pressed="true"] .igc-cat__img { outline: 5px solid var(--color-primary); outline-offset: 4px; }

.igc-fabrics__legend { font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.igc.is-enhanced .igc-fabrics__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.igc-fabric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.igc-fabric { position: relative; }
.igc-fabric__label { padding-left: 0 !important; }
.igc-fabric__label::before { top: 4px !important; left: 4px !important; z-index: 1; }
.igc-fabric__img { display: block; aspect-ratio: 1; background: #f3f3f3; border-radius: var(--radius-small); overflow: hidden; box-shadow: var(--shadow); }
.igc-fabric__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.igc-radio:checked + .igc-fabric__label .igc-fabric__img { outline: 4px solid var(--color-primary); outline-offset: 2px; }
.igc-fabric__meta { display: flex; flex-direction: column; margin-top: 8px; font-size: .95rem; line-height: 1.35; }
.igc-fabric__transparency { color: var(--color-muted); font-size: .85rem; }
.igc-fabric__zoom {
    position: absolute; top: 6px; right: 6px;
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--color-text);
    box-shadow: var(--shadow);
}
.igc-fabric__zoom:hover { background: var(--color-primary); }
.igc-empty { padding: 16px; background: rgba(255, 255, 255, .8); border-radius: var(--radius); }

/* Schritt 2: Technik */
.igc-locked { padding: 14px 18px; background: rgba(255, 255, 255, .85); border-radius: var(--radius); }
.igc-choice-list > .igc-choice + .igc-choice { margin-top: 18px; }
.igc-choice { position: relative; }
.igc-choice--image > label { display: grid !important; grid-template-columns: minmax(0, 420px) auto; gap: 10px 30px; align-items: center; }
.igc-choice--image .igc-choice__text { grid-column: 1 / -1; }
.igc-choice__img img { display: block; width: 100%; height: auto; background: #fff; border-radius: var(--radius-small); box-shadow: var(--shadow); }
.igc-choice__sketch img { display: block; width: 220px; height: auto; }
.igc-radio:checked + label .igc-choice__img img { outline: 4px solid var(--color-primary); outline-offset: 2px; }
.igc-choice-list--inline .igc-choice { margin-top: 10px; }
.igc-sides { margin-top: 30px !important; }

/* Schritt 3: Maße */
.igc-fields { display: grid; gap: 14px; margin-bottom: 28px; }
.igc-field--measure { display: grid; grid-template-columns: 220px 1fr; gap: 4px 20px; align-items: center; }
.igc-field--measure .igc-input { grid-column: 1; grid-row: 1; }
.igc-field--measure label { grid-column: 2; grid-row: 1; }
.igc-field--measure .igc-hint { grid-column: 2; grid-row: 2; margin: 0; font-size: .85rem; color: var(--color-muted); }
.igc-field--measure .igc-error { grid-column: 1 / -1; }
.igc-field--name label { display: block; margin-bottom: 10px; }
.igc-field--name .igc-input { max-width: 320px; }

.igc-edge__body { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.igc-edge__body img { width: 120px; height: auto; }

.igc-colors__body { display: flex; gap: 30px; align-items: flex-start; }
.igc-colors__img { width: 220px; height: auto; border-radius: var(--radius-small); }
.igc-colors .igc-choice-list .igc-choice { padding: 14px 0; }

/* Schritt 4: Zusammenfassung */
.igc-summary__box { padding: 24px 28px; background: rgba(255, 255, 255, .92); border-radius: var(--radius); box-shadow: var(--shadow); }
.igc-summary__list, .igc-summary__prices { margin: 0 0 20px; }
.igc-summary__list > div, .igc-summary__prices > div { display: grid; grid-template-columns: 160px 1fr; gap: 10px; padding: 4px 0; }
.igc-summary__list dt, .igc-summary__prices dt { font-weight: 600; }
.igc-summary__list dd, .igc-summary__prices dd { margin: 0; }
.igc-summary__title { font-size: 1.1rem; margin: 10px 0; }
.igc-summary__unit { font-size: 1.2rem; font-weight: 800; border-top: 1px solid #ddd; margin-top: 6px; padding-top: 8px !important; }
.igc-qty { margin-top: 24px; }

.igc-qty__stepper,
.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    background: var(--color-surface);
    border-radius: var(--radius-small);
    padding: 6px;
    gap: 6px;
}
.igc-qty__btn,
.qty-stepper__btn {
    width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 4px;
    background: #ececec;
    font: 700 1.3rem var(--font-base);
    cursor: pointer;
}
.igc-qty__btn:hover, .qty-stepper__btn:hover { background: #ddd; }
.igc-qty__input,
.qty-stepper__input {
    width: 80px;
    min-height: 44px;
    text-align: center;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font: inherit;
    -moz-appearance: textfield;
}
.igc-qty__input::-webkit-inner-spin-button,
.qty-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.igc-live { min-height: 0; }

@media (max-width: 900px) {
    .igc-fabric-grid { grid-template-columns: repeat(3, 1fr); }
    .igc-choice--image > label { grid-template-columns: 1fr; }
    .igc-choice__sketch img { width: 160px; }
}
@media (max-width: 650px) {
    .igc-cats { grid-template-columns: repeat(2, 1fr); }
    .igc-fabric-grid { grid-template-columns: repeat(2, 1fr); }
    .igc-field--measure { grid-template-columns: 1fr; }
    .igc-field--measure label { grid-column: 1; grid-row: 1; }
    .igc-field--measure .igc-input { grid-row: 2; }
    .igc-field--measure .igc-hint { grid-column: 1; grid-row: 3; }
    .igc-colors__body { flex-direction: column; }
    .igc-step__label { font-size: .8rem; }
    .igc-summary__list > div, .igc-summary__prices > div { grid-template-columns: 1fr; gap: 0; }
    .igc-nav { flex-direction: column-reverse; }
    .igc-nav .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Stoffübersicht
   -------------------------------------------------------------------------- */
.igf-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 20px; margin: 0; padding: 0; list-style: none; }
.igf-catnav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.igf-catnav a { display: block; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-weight: 600; }
.igf-catnav a[aria-current="page"] { background: var(--color-primary); color: var(--color-primary-text); }
.igf-title { text-align: center; }
.igf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 24px; margin: 0; padding: 0; list-style: none; }
.igf-item__zoom { display: block; border-radius: var(--radius-small); overflow: hidden; box-shadow: var(--shadow); }
.igf-item__zoom img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.igf-item__zoom:hover img { transform: scale(1.04); }
.igf-item__meta { display: flex; flex-direction: column; margin: 10px 0 6px; font-size: .95rem; }
.igf-item__cta { font-weight: 700; color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 650px) {
    .igf-cats { grid-template-columns: repeat(2, 1fr); }
    .igf-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
}

/* --------------------------------------------------------------------------
   Lightbox (dialog)
   -------------------------------------------------------------------------- */
.lightbox-dialog {
    max-width: min(92vw, 1000px);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    overflow: auto;
}
.lightbox-dialog::backdrop { background: rgba(20, 18, 16, .78); }
.lightbox-dialog__figure { margin: 0; }
.lightbox-dialog__img { display: block; max-width: 100%; max-height: 74vh; margin: 0 auto; height: auto; }
.lightbox-dialog__caption { padding: 14px 20px 0; font-weight: 600; }
.lightbox-dialog__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px 20px; }
.lightbox-dialog__nav { display: flex; gap: 8px; }
.lightbox-dialog__close {
    position: absolute; top: 10px; right: 10px;
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    font-size: 1.6rem; line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Warenkorb & Kasse (EXT:cart)
   -------------------------------------------------------------------------- */
.tx-cart { max-width: 900px; margin: 0 auto; }
.cart-box { background: var(--color-surface); border-radius: var(--radius-small); box-shadow: var(--shadow); padding: 24px 28px; }
.cart-items { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 20px; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: 'summary qty' 'summary prices'; gap: 20px 40px; }
.cart-item--warning { box-shadow: 0 0 0 3px var(--color-error); }
.cart-item__summary { grid-area: summary; }
.cart-item__qty { grid-area: qty; }
.cart-item__prices { grid-area: prices; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; align-self: end; }
.cart-item__prices dt, .cart-item__label { font-weight: 700; font-size: 1.1rem; display: block; margin-bottom: 8px; }
.cart-item__prices dd { margin: 0; font-size: 1.15rem; }
.cart-item__title { font-size: 1.25rem; margin-bottom: 12px; }
.cart-item__name { display: block; font-weight: 500; font-size: 1rem; color: var(--color-muted); }
.cart-item__edit { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--color-primary-dark); text-decoration: underline; }
.cart-item__remove { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--color-muted); font-size: .95rem; text-decoration: underline; }
.cart-item__remove:hover { color: var(--color-error); }
.cart-item .qty-stepper { background: #f5f5f5; }

.config-list { margin: 0; font-size: 1rem; }
.config-list__row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 2px 0; }
.config-list dt { font-weight: 600; }
.config-list dd { margin: 0; }

.cart-totals { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 30px; }
.cart-totals__list { margin: 0; font-size: 1.2rem; font-weight: 700; }
.cart-totals__list > div { display: flex; gap: 20px; }
.cart-totals__list dd { margin: 0; }
.cart-totals__hint { margin: 0; }
.cart-totals__hint a { color: var(--color-primary-dark); text-decoration: underline; }
.cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 30px; }
.cart-empty { text-align: center; }

.flash-messages { display: grid; gap: 10px; margin-bottom: 20px; }
.flash { padding: 12px 18px; border-radius: var(--radius-small); background: var(--color-surface); border-left: 6px solid var(--color-step); }
.flash--success { border-left-color: var(--color-green); }
.flash--danger, .flash--error { border-left-color: var(--color-error); }
.flash--warning { border-left-color: var(--color-primary); }

.checkout { display: grid; gap: 34px; }
.checkout__required-hint { margin: 0; font-size: .95rem; }
.checkout__section { border: 0; padding: 0; margin: 0; min-width: 0; }
.checkout__subsection { border: 0; padding: 20px 0 0; margin: 0; min-width: 0; }
.checkout__title { display: block; font-size: 1.25rem; font-weight: 700; margin: 0 0 14px; padding: 0; }
.checkout__note { margin: 12px 0 0; font-size: .95rem; }
.checkout__back { display: inline-block; margin-top: 10px; color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.checkout__submit { display: flex; justify-content: flex-end; }

.ff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.ff--wide { grid-column: 1 / -1; }
.ff__label { display: block; margin-bottom: 6px; font-weight: 500; }
.ff__req { color: var(--color-error); margin-left: 2px; }
.ff__opt { font-weight: 400; color: var(--color-muted); font-size: .9em; }
textarea.ff__input { min-height: 100px; }

.checkout-items { margin: 0 0 16px; padding: 0; list-style: none; }
.checkout-item { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #e3e3e3; }
.checkout-item .config-list { margin-top: 6px; font-size: .95rem; }
.checkout-item__price { white-space: nowrap; font-weight: 600; }

.summary__list { margin: 0; }
.summary__list > div { display: flex; justify-content: space-between; gap: 20px; padding: 4px 0; }
.summary__list dd { margin: 0; white-space: nowrap; }
.summary__total { font-weight: 800; font-size: 1.2rem; text-transform: uppercase; border-top: 2px solid var(--color-text); margin-top: 6px; padding-top: 10px !important; }
.summary__tax { font-size: .9rem; color: var(--color-muted); }

.method-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.method {
    position: relative;
    display: flex; align-items: center; gap: 16px;
    padding: 4px 0;
    color: var(--color-text);
    text-decoration: none !important;
}
.method > * { pointer-events: none; }
.method__radio { flex: 0 0 30px; width: 30px; height: 30px; border: 3px solid var(--color-primary); border-radius: 50%; background: var(--color-surface); }
.method--selected .method__radio { background: radial-gradient(circle, var(--color-primary) 0 7px, var(--color-surface) 8px); }
.method--selected { font-weight: 700; }
.method__price { margin-left: auto; white-space: nowrap; }
a.method:hover .method__radio { box-shadow: 0 0 0 4px rgba(241, 112, 10, .25); }

.choice { position: relative; }
.choice--legal .choice__label { line-height: 1.5; }
.choice--legal a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }

@media (max-width: 650px) {
    .cart-box { padding: 18px; }
    .cart-item { grid-template-columns: 1fr; grid-template-areas: 'summary' 'qty' 'prices'; }
    .config-list__row { grid-template-columns: 1fr; gap: 0; padding: 4px 0; }
    .ff-grid { grid-template-columns: 1fr; }
    .cart-actions .btn, .checkout__submit .btn { width: 100%; }
}
