/* AUFTRAG-WEBSTOREFRONT-CC.md A6/C2 - die Backoffice-Seite /storefronts.
   Global statt scoped (Scoped-CSS greift nicht auf Markup von
   Kindkomponenten wie MudExpansionPanels/MudColorPicker/iframe). */

.sf-code {
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin: 0;
}

/* Die Kachel-Vorschau spiegelt EXAKT den Token-Satz, den der Baustein selbst
   liest (Shared/Models/WebStorefront/WebStorefrontThemeTokens.cs) - keine
   eigene Farbpalette, damit Backoffice und echte Website nie auseinanderlaufen. */
.sf-swatch {
    border-radius: var(--tsf-radius, 8px);
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default);
}

.sf-swatch-panel {
    background: var(--tsf-grund, #141414);
    color: var(--tsf-text, #f5f1e8);
    font-family: var(--tsf-schrift, serif);
    padding: 20px;
}

.sf-swatch-title {
    font-family: var(--tsf-schrift-titel, serif);
    text-transform: var(--tsf-titel-versal, none);
    letter-spacing: var(--tsf-titel-sperrung, 0);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.sf-swatch-tiles {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.sf-swatch-tile {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tsf-flaeche, #1f1f1f);
    color: var(--tsf-text, #f5f1e8);
    border: 1px solid var(--tsf-linie, #3a342b);
    border-radius: var(--tsf-radius, 8px);
    font-family: var(--tsf-schrift, serif);
}

.sf-swatch-tile-active {
    background: var(--tsf-flaeche-aktiv, #2a2a2a);
    border-color: var(--tsf-akzent, #C9A227);
    color: var(--tsf-akzent, #C9A227);
}

.sf-swatch-button {
    display: inline-block;
    background: var(--tsf-akzent, #C9A227);
    color: var(--tsf-akzent-text, #000);
    border-radius: var(--tsf-radius-knopf, 999px);
    padding: 10px 22px;
    font-family: var(--tsf-schrift, serif);
    text-transform: var(--tsf-titel-versal, none);
    letter-spacing: var(--tsf-titel-sperrung, 0);
}

/* AUFTRAG-GASTTEXTE-ZUGANG-UND-VERANSTALTUNG-CC.md Paket A.4: die Vorschau des
   Hinweises. Sie zeigt die GEFILTERTE Fassung, die der Server zurueckgegeben
   hat - also genau das Markup, das im Baustein landet. Die Abstaende sind
   gedaempft, damit ein <p> in der Karteikarte nicht wie ein eigener Absatz der
   Backoffice-Seite aussieht. */
.sf-hinweis-vorschau {
    min-height: 96px;
    max-height: 260px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.45;
}

.sf-hinweis-vorschau > :first-child { margin-top: 0; }
.sf-hinweis-vorschau > :last-child { margin-bottom: 0; }

.sf-hinweis-vorschau p,
.sf-hinweis-vorschau ul,
.sf-hinweis-vorschau ol,
.sf-hinweis-vorschau blockquote {
    margin: 0 0 0.6em;
}

.sf-hinweis-vorschau h3,
.sf-hinweis-vorschau h4 {
    margin: 0.8em 0 0.3em;
    font-size: 1em;
    font-weight: 600;
}

.sf-hinweis-vorschau ul,
.sf-hinweis-vorschau ol { padding-inline-start: 1.4em; }

.sf-hinweis-vorschau blockquote {
    padding-inline-start: 0.8em;
    border-inline-start: 3px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-secondary);
}
