@charset "UTF-8";
/* Angebotsseite (frontend/template/angebot.tpl, frontend/js/angebot/fs-angebot.js) */

/* Seitentitel der CMS-Seite ausblenden – die Seite bringt ihre eigene Überschrift mit */
.content-wrapper > h1, #content > h1, .custom-content > h1:first-child { display: none; }

.fsa {
    --fsa-marke: var(--brand-primary, #b81818);
    --fsa-marke-hover: var(--brand-primary-hover, #9a1414);
    --fsa-text: #1a1a1a;
    --fsa-text-2: #525252;
    --fsa-text-3: #737373;
    --fsa-rand: #e5e5e5;
    --fsa-fläche: #fafafa;
    --fsa-grün: #047857;
    max-width: 1280px;
    margin: 1.5rem auto 4rem;
    padding: 0 1rem;
    color: var(--fsa-text);
}
.fsa-hinweis { padding: 3rem 0; text-align: center; color: var(--fsa-text-2); }

/* Kopf */
.fsa-kopf { margin-bottom: 2rem; }
.fsa-eyebrow { display: flex; align-items: center; gap: .75rem; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fsa-marke); font-weight: 600; }
.fsa-eyebrow::before { content: ""; width: 2.5rem; height: 2px; background: currentColor; }
.fsa-kopf h1 { display: block !important; margin: .5rem 0 .75rem; font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15; }
.fsa-kopf p { max-width: 46rem; margin: 0 0 1rem; color: var(--fsa-text-2); font-size: 1.0625rem; line-height: 1.6; }
.fsa-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .875rem; color: var(--fsa-text-3); }
.fsa-meta i { margin-right: .3rem; }
.fsa-abgelaufen { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: .75rem; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Raster: Positionen links, Zusammenfassung rechts */
.fsa-raster { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 2rem; align-items: start; }
@media (max-width: 991.98px) { .fsa-raster { grid-template-columns: minmax(0, 1fr); } }

.fsa-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.fsa-links { min-width: 0; }
.fsa-liste-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .75rem; padding: .5rem 1rem; border-radius: .75rem; background: var(--fsa-fläche); border: 1px solid var(--fsa-rand); font-size: .9375rem; }
.fsa-auswahl-zahl { font-size: .8125rem; color: var(--fsa-text-3); }
.fsa-liste-rechts { display: flex; align-items: center; gap: 1rem; }
.fsa-steuer { display: inline-flex; padding: 2px; border: 1px solid var(--fsa-rand); border-radius: 999px; background: #fff; }
.fsa-steuer button { padding: .2rem .75rem; border: 0; border-radius: 999px; background: none; font-size: .8125rem; line-height: 1.4; color: var(--fsa-text-2); cursor: pointer; }
.fsa-steuer button[aria-pressed="true"] { background: var(--fsa-marke); color: #fff; font-weight: 600; }
.fsa-steuer button:focus-visible { outline: 2px solid var(--fsa-marke); outline-offset: 2px; }
@media (max-width: 575.98px) {
    .fsa-liste-kopf { flex-wrap: wrap; gap: .5rem 1rem; }
    .fsa-liste-rechts .fsa-auswahl-zahl { display: none; }
}
.fsa-check { display: inline-flex; align-items: center; gap: .5rem; margin: 0; cursor: pointer; font-weight: 600; }
.fsa-check input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--fsa-marke); cursor: pointer; }
.fsa-posnr .fsa-check { font-weight: inherit; }
.fsa-pos-aus { background: var(--fsa-fläche); box-shadow: none; }
.fsa-pos-aus .fsa-bild, .fsa-pos-aus .fsa-titel, .fsa-pos-aus .fsa-details, .fsa-pos-aus .fsa-staffel, .fsa-pos-aus .fsa-aktionen, .fsa-pos-aus .fsa-preis { opacity: .45; }
.fsa-pos-aus .fsa-preis .fsa-zeile { text-decoration: line-through; }
.fsa-pos { display: grid; grid-template-columns: 15rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1rem; background: #fff; border: 1px solid var(--fsa-rand); border-radius: 1rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
@media (max-width: 767.98px) {
    .fsa-pos { grid-template-columns: minmax(0, 1fr); gap: .875rem; }
}

.fsa-bild { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: .75rem; overflow: hidden; background: #eee; cursor: pointer; }
.fsa-bild img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.fsa-bild img.fsa-zeichnung-bild { object-fit: contain; padding: .75rem; background: #fff; }
.fsa-bild-fest { cursor: default; background: #fff; }
.fsa-bild-fest img { object-fit: contain; }
.fsa-bild-fest:hover img { transform: none; }
.fsa-bild:hover img { transform: scale(1.03); }
.fsa-bild:focus-visible { outline: 3px solid var(--fsa-marke); outline-offset: 2px; }
.fsa-bild-lädt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--fsa-text-3); font-size: .8125rem; background: linear-gradient(110deg, #eee 30%, #f6f6f6 50%, #eee 70%); background-size: 200% 100%; animation: fsa-schimmer 1.4s linear infinite; }
@keyframes fsa-schimmer { to { background-position: -200% 0; } }
.fsa-badge { position: absolute; left: .5rem; bottom: .5rem; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--fsa-text); font-size: .75rem; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }

.fsa-posnr { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fsa-text-3); }
.fsa-titel { margin: .2rem 0 .5rem; font-size: 1.125rem; line-height: 1.35; }
.fsa-titel a { color: inherit; }
.fsa-details { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .375rem; }
.fsa-details li { padding: .2rem .6rem; border-radius: 999px; background: var(--fsa-fläche); border: 1px solid var(--fsa-rand); font-size: .8125rem; color: var(--fsa-text-2); }
.fsa-aktionen { display: flex; flex-wrap: wrap; gap: .5rem; }
.fsa-link { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border: 1px solid var(--fsa-rand); border-radius: .5rem; background: #fff; color: var(--fsa-text); font-size: .875rem; cursor: pointer; }
.fsa-link:hover { border-color: var(--fsa-marke); color: var(--fsa-marke); }
.fsa-link[hidden] { display: none; }
.fsa-link-haupt { border-color: var(--fsa-marke); color: var(--fsa-marke); font-weight: 600; }
.fsa-link-leise { border-color: transparent; background: none; color: var(--fsa-text-3); }
.fsa-geändert { margin-left: .5rem; padding: .05rem .45rem; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .6875rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.fsa-geändert[hidden] { display: none; }
.fsa-pos-geändert { border-color: #fcd34d; }
.fsa-rechnet { opacity: .45; }
.fsa-preis-fehler { font-size: .8125rem; color: #b91c1c; white-space: normal; }
.fsa-hinweis-klein { display: flex; gap: .4rem; margin: .75rem 0 0; padding: .6rem .75rem; border-radius: .6rem; background: #fffbeb; color: #92400e; font-size: .8125rem; line-height: 1.45; }
.fsa-details[hidden] { display: none; }

/* Preisstaffel eines Katalogartikels: Spalten Einzelpreis + Stufen, Zeilen netto/brutto, die Stufe zur Menge grün.
   .fsa davor: das Theme setzt auf alle Tabellen width 100 %, margin 1,5rem und graue Streifen (table tr:nth-child td) */
.fsa-staffel-kopf { margin: 0 0 .25rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fsa-text-3); }
.fsa-staffel-rahmen { overflow-x: auto; }
.fsa .fsa-staffel-tabelle { width: auto; margin: 0; background: none; border-collapse: separate; border-spacing: 0; font-size: .8125rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.fsa .fsa-staffel-tabelle th, .fsa .fsa-staffel-tabelle td { padding: .3rem .5rem; border: 0; background: none; text-align: right; white-space: nowrap; }
.fsa .fsa-staffel-tabelle thead th { font-weight: 400; color: var(--fsa-text-3); }
.fsa .fsa-staffel-tabelle tbody th { padding-left: 0; text-align: left; font-weight: 400; color: var(--fsa-text-3); }
.fsa .fsa-staffel-tabelle tbody td { border-top: 1px solid var(--fsa-rand); color: var(--fsa-text-2); }
.fsa .fsa-staffel-tabelle .fsa-staffel-brutto td { color: var(--fsa-text); font-weight: 700; }
.fsa .fsa-staffel-tabelle .fsa-staffel-gilt { background: #ecfdf5; color: var(--fsa-grün); }
.fsa .fsa-staffel-tabelle thead .fsa-staffel-gilt { border-radius: .5rem .5rem 0 0; font-weight: 600; }
.fsa .fsa-staffel-tabelle tbody tr:last-child .fsa-staffel-gilt { border-radius: 0 0 .5rem .5rem; }
/* Block „inkl. x % Rabatt“: Zwischenzeile über die ganze Breite, die grüne Spalte beginnt darunter neu */
.fsa .fsa-staffel-tabelle .fsa-staffel-zwischen th { padding: .55rem 0 .2rem; color: var(--fsa-grün); font-size: .75rem; font-weight: 600; }
.fsa .fsa-staffel-tabelle .fsa-staffel-zwischen + tr .fsa-staffel-gilt { border-radius: .5rem .5rem 0 0; }
.fsa-staffel-du { margin: .3rem 0 0; color: var(--fsa-grün); font-size: .75rem; font-weight: 600; }
@media (max-width: 767.98px) {
    .fsa .fsa-staffel-tabelle { font-size: .75rem; }
    .fsa .fsa-staffel-tabelle th, .fsa .fsa-staffel-tabelle td { padding: .3rem .3rem; }
    .fsa-staffel-stk { display: none; }
}

.fsa-preis { text-align: right; white-space: nowrap; min-width: 8rem; }
.fsa-menge { font-size: .875rem; color: var(--fsa-text-3); }
.fsa-zeile { font-size: 1.25rem; font-weight: 700; margin: .15rem 0; }
.fsa-rabatt { font-size: .875rem; color: var(--fsa-grün); font-weight: 600; }
.fsa-durch { font-size: .875rem; color: var(--fsa-text-3); text-decoration: line-through; }
.fsa-ust { font-size: .8125rem; color: var(--fsa-text-3); }
.fsa-stück { margin-top: .35rem; font-size: .875rem; color: var(--fsa-text-2); font-variant-numeric: tabular-nums; }
.fsa-stück strong { color: var(--fsa-text); font-weight: 600; }
.fsa-stück s { color: var(--fsa-text-3); }
@media (max-width: 767.98px) {
    .fsa-preis { text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
    .fsa-stück { flex-basis: 100%; margin-top: 0; }
}

/* Zusammenfassung */
.fsa-summe { position: sticky; top: 6rem; padding: 1.5rem; background: #fff; border: 1px solid var(--fsa-rand); border-radius: 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
@media (max-width: 991.98px) { .fsa-summe { position: static; } }
.fsa-summe h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.fsa-summe dl { margin: 0; }
.fsa-summe dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid #f0f0f0; }
.fsa-summe dt { font-weight: 400; color: var(--fsa-text-2); }
.fsa-summe dd { margin: 0; font-variant-numeric: tabular-nums; }
.fsa-summe .fsa-minus dd, .fsa-summe .fsa-minus dt { color: var(--fsa-grün); font-weight: 600; }
.fsa-summe .fsa-gesamt { border-bottom: 0; padding-top: .75rem; }
.fsa-summe .fsa-gesamt dt { color: var(--fsa-text); font-weight: 700; }
.fsa-summe .fsa-gesamt dd { font-size: 1.5rem; font-weight: 700; }
.fsa-klein { margin: .25rem 0 0; font-size: .8125rem; color: var(--fsa-text-3); line-height: 1.5; }
.fsa-cta { display: flex; width: 100%; justify-content: center; align-items: center; gap: .5rem; margin: 1.25rem 0 .75rem; padding: .9rem 1.25rem; border-radius: .75rem; background: var(--fsa-marke); color: #fff !important; font-weight: 700; font-size: 1.0625rem; text-decoration: none !important; box-shadow: 0 6px 16px rgba(184, 24, 24, .25); transition: background .15s ease, transform .15s ease; }
.fsa-cta:hover { background: var(--fsa-marke-hover); transform: translateY(-1px); }
.fsa-cta:focus-visible { outline: 3px solid var(--fsa-marke); outline-offset: 3px; }
.fsa-cta[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.fsa-code { display: inline-block; padding: .05rem .4rem; border-radius: .3rem; background: var(--fsa-fläche); border: 1px dashed var(--fsa-rand); font-family: "Space Mono", monospace; font-size: .8125rem; color: var(--fsa-text); }
.fsa-kontakt { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f0f0f0; font-size: .875rem; color: var(--fsa-text-2); line-height: 1.5; }
.fsa-kontakt a { color: var(--fsa-marke); font-weight: 600; white-space: nowrap; }
.fsa-vorteile { list-style: none; margin: 1rem 0 0; padding: 0; font-size: .8125rem; color: var(--fsa-text-2); }
.fsa-vorteile li { display: flex; gap: .4rem; padding: .2rem 0; }
.fsa-vorteile i { color: var(--fsa-grün); }

/* 3D-Ansicht / Zeichnung im Dialog */
.fsa-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 15, 15, .55); }
.fsa-modal[hidden] { display: none; }
.fsa-modal-box { display: flex; flex-direction: column; width: min(1100px, 100%); height: min(760px, 100%); background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.fsa-modal-kopf { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--fsa-rand); }
.fsa-modal-kopf strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsa-tabs { display: inline-flex; padding: .2rem; border-radius: .6rem; background: #f3f3f3; }
.fsa-tabs button { border: 0; background: transparent; padding: .3rem .8rem; border-radius: .45rem; font-size: .875rem; cursor: pointer; color: var(--fsa-text-2); }
.fsa-tabs button[aria-selected="true"] { background: #fff; color: var(--fsa-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 600; }
.fsa-zu { border: 0; background: transparent; font-size: 1.75rem; line-height: 1; padding: 0 .25rem; cursor: pointer; color: var(--fsa-text-2); }
.fsa-modal-box.fsa-mit-wahl { width: min(1320px, 100%); height: min(820px, 100%); }
.fsa-modal-inhalt { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.fsa-mit-wahl .fsa-modal-inhalt { grid-template-columns: minmax(0, 1fr) 22rem; }
.fsa-modal-ansicht { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.fsa-modal-3d, .fsa-modal-zeichnung { position: relative; flex: 1; min-height: 0; }
.fsa-modal-3d canvas { display: block; }
/* Schalter „Bezug“ oben rechts in der 3D-Ansicht (links oben sitzt die Ansichtsleiste) */
.fsa-bezug-schalter { position: absolute; top: 8px; right: 8px; z-index: 5; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .75rem .35rem .45rem; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); font-size: .8125rem; font-weight: 600; color: var(--fsa-text); cursor: pointer; }
.fsa-bezug-schalter[hidden] { display: none; }
.fsa-bezug-schalter:focus-visible { outline: 2px solid var(--fsa-marke); outline-offset: 2px; }
.fsa-schalter { position: relative; width: 2.1rem; height: 1.2rem; border-radius: 999px; background: #cbd5e1; transition: background .15s ease; }
.fsa-schalter::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: .9rem; height: .9rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.fsa-bezug-schalter[aria-pressed="true"] .fsa-schalter { background: var(--fsa-marke); }
.fsa-bezug-schalter[aria-pressed="true"] .fsa-schalter::after { transform: translateX(.9rem); }
@media (max-width: 767.98px) {
    /* die Ansichtsleiste füllt oben die Breite → Schalter nach unten rechts */
    .fsa-bezug-schalter { top: auto; bottom: 8px; }
}
.fsa-modal-zeichnung { display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: #fff; }
.fsa-modal-zeichnung[hidden], .fsa-modal-3d[hidden] { display: none; }
.fsa-modal-zeichnung img { max-width: 100%; max-height: 100%; }
.fsa-modal-fuss { padding: .5rem 1rem; border-top: 1px solid var(--fsa-rand); font-size: .8125rem; color: var(--fsa-text-3); }
@media (max-width: 767.98px) {
    /* 3D bleibt oben stehen, die Stoffliste scrollt darunter – der Wechsel ist sofort zu sehen */
    .fsa-mit-wahl .fsa-modal-inhalt { display: block; overflow-y: auto; }
    .fsa-mit-wahl .fsa-modal-ansicht { position: sticky; top: 0; z-index: 4; height: 42vh; background: #eee; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
    .fsa-mit-wahl .fsa-modal-fuss { display: none; }
    .fsa-mit-wahl .fsa-wahl { border-left: 0; overflow: visible; }
    .fsa-mit-wahl .fsa-farben { max-height: none; }
}
@media (max-width: 575.98px) {
    .fsa-modal { padding: 0; }
    .fsa-modal-box, .fsa-modal-box.fsa-mit-wahl { border-radius: 0; height: 100%; }
}

/* Bezug/Vlies wählen (Seitenleiste im Dialog) */
.fsa-wahl { overflow-y: auto; padding: 1rem 1.25rem 1.25rem; border-left: 1px solid var(--fsa-rand); background: #fff; }
.fsa-wahl[hidden] { display: none; }
.fsa-wahl-block { margin-bottom: 1.25rem; }
.fsa-wahl-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.fsa-wahl-kopf h3 { margin: 0; font-size: 1rem; }
.fsa-wahl-kopf span { font-size: .8125rem; color: var(--fsa-text-2); text-align: right; }
.fsa-gruppen { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: .75rem; }
.fsa-chip { padding: .3rem .7rem; border: 1px solid var(--fsa-rand); border-radius: 999px; background: #fff; font-size: .8125rem; color: var(--fsa-text); cursor: pointer; }
.fsa-chip:hover { border-color: var(--fsa-text-3); }
.fsa-chip[aria-pressed="true"] { border-color: var(--fsa-marke); background: rgba(184, 24, 24, .06); color: var(--fsa-marke); font-weight: 600; }
.fsa-farben { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: .5rem; max-height: 21rem; overflow-y: auto; padding: 2px; }
.fsa-farbe { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .3rem; border: 1px solid transparent; border-radius: .6rem; background: none; cursor: pointer; }
.fsa-farbe:hover { background: var(--fsa-fläche); }
.fsa-farbe[aria-pressed="true"] { border-color: var(--fsa-marke); background: rgba(184, 24, 24, .05); }
.fsa-farbe:focus-visible, .fsa-chip:focus-visible { outline: 2px solid var(--fsa-marke); outline-offset: 2px; }
.fsa-farbe-bild { display: flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #e7e5e4 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); font-size: .75rem; font-weight: 700; color: #78716c; text-transform: uppercase; }
.fsa-farbe[aria-pressed="true"] .fsa-farbe-bild { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--fsa-marke); }
.fsa-farbe-name { font-size: .6875rem; line-height: 1.2; color: var(--fsa-text-2); text-align: center; word-break: break-word; }
.fsa-wahl-preis { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; margin: .5rem 0 .75rem; padding: .75rem 1rem; border-radius: .75rem; background: var(--fsa-fläche); border: 1px solid var(--fsa-rand); }
.fsa-wahl-preis strong { font-size: 1.25rem; }
.fsa-wahl-preis small { flex-basis: 100%; color: var(--fsa-text-3); }
body.fsa-modal-offen { overflow: hidden; }

/* Offscreen-Bühne für die Vorschaubilder (ein WebGL-Kontext für alle Positionen) */
.fsa-bühne { position: fixed; left: -10000px; top: 0; width: 800px; height: 600px; pointer-events: none; }
