/* Medienportal fuer Hersteller — eigenstaendiges Stylesheet, Farben aus der Shop-Palette */
:root {
	--tb-primary: #2f4876;
	--tb-primary-dark: #1f304d;
	--tb-primary-medium: #5672a7;
	--tb-accent: #e8a838;
	--tb-accent-light: #f5d590;
	--tb-bg: #ffffff;
	--tb-surface: #f8f9fc;
	--tb-surface-sunken: #f0f2f5;
	--tb-border: #d3d3d3;
	--tb-border-light: #e0e0e0;
	--tb-text: #333a45;
	--tb-text-mute: #6b7280;
	--tb-success: #28a745;
	--tb-error: #d11414;
	--st-frei: #2e9e5b;
	--st-frei-bg: #e6f6ec;
	--st-teil: #d9891b;
	--st-teil-bg: #fff3df;
	--st-belegt: #8a8f98;
	--st-belegt-bg: #e9eaee;
	--st-eigene: #2f4876;
	--st-eigene-bg: #e3e9f6;
	--st-auswahl: #e8a838;
	--radius: 10px;
	--schatten: 0 1px 3px rgba(20, 30, 50, .08), 0 4px 16px rgba(20, 30, 50, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45; color: var(--tb-text); background: var(--tb-surface); }
a { color: var(--tb-primary); }
h1 { font-size: 1.5rem; margin: 0 0 .75rem; color: var(--tb-primary-dark); }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; color: var(--tb-primary-dark); }
h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--tb-primary-dark); }
p { margin: 0 0 .7rem; }
.klein { font-size: .82rem; color: var(--tb-text-mute); }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.durch { text-decoration: line-through; margin-right: .4rem; }
.hinweis { color: var(--tb-text-mute); }
.hinweis-box { background: var(--tb-accent-light); border-left: 4px solid var(--tb-accent); padding: .5rem .7rem; border-radius: 6px; font-size: .9rem; }

/* Kopf / Fuss */
.kopf { background: var(--tb-primary-dark); color: #fff; }
.kopf-inner { max-width: 1760px; margin: 0 auto; padding: .6rem 16px; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.marke { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.marke-logo { display: block; height: 34px; width: auto; }
.marke-sub { font-size: .72rem; opacity: .8; letter-spacing: .03em; margin-top: .25rem; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; padding: .45rem .8rem; border-radius: 6px; opacity: .85; font-size: .93rem; }
.nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.nav a.aktiv { opacity: 1; background: rgba(255,255,255,.14); font-weight: 600; }
.benutzer { margin-left: auto; display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
.benutzer a { color: #fff; text-decoration: none; }
.benutzer .abmelden { opacity: .7; }
.inhalt { max-width: 1760px; margin: 0 auto; padding: 1.2rem 16px 3rem; }
.fuss { max-width: 1760px; margin: 0 auto; padding: 1rem 16px 2rem; display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .8rem; color: var(--tb-text-mute); border-top: 1px solid var(--tb-border-light); }

/* Bausteine */
.karte { background: var(--tb-bg); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.karten { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.karten.zwei { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.karten .karte { margin-bottom: 0; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th { text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tb-text-mute); padding: .45rem .5rem; border-bottom: 1px solid var(--tb-border-light); }
.tabelle td { padding: .55rem .5rem; border-bottom: 1px solid var(--tb-border-light); vertical-align: top; }
.tabelle tr.storniert td { opacity: .5; text-decoration: line-through; }
.tabelle.schmal { max-width: 520px; }
.tabelle input { width: 100%; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.dl dt { color: var(--tb-text-mute); font-size: .85rem; }
.dl dd { margin: 0; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .12rem .5rem; border-radius: 999px; background: var(--tb-surface-sunken); color: var(--tb-text); vertical-align: middle; }
.badge-admin { background: var(--tb-accent); color: #3b2a05; }
.badge-reserviert { background: var(--st-teil-bg); color: var(--st-teil); }
.badge-gebucht { background: var(--st-frei-bg); color: var(--st-frei); }
.badge-storniert { background: var(--st-belegt-bg); color: var(--st-belegt); }
.badge-gesperrt { background: var(--st-belegt-bg); color: var(--st-belegt); }
.meldung { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; background: var(--tb-surface-sunken); }
.meldung.ok { background: var(--st-frei-bg); color: #1d6b3c; }
.meldung.fehler { background: #fde8e8; color: var(--tb-error); }
.btn { display: inline-block; border: 1px solid var(--tb-primary); background: #fff; color: var(--tb-primary); padding: .5rem .9rem; border-radius: 7px; font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--tb-surface-sunken); }
.btn-primary { background: var(--tb-primary); color: #fff; }
.btn-primary:hover { background: var(--tb-primary-dark); }
.btn-leise { border-color: var(--tb-border); color: var(--tb-text); }
.btn-klein { padding: .3rem .6rem; font-size: .8rem; }
.btn.breit { width: 100%; text-align: center; padding: .7rem; font-size: 1rem; }
.btn[disabled] { opacity: .5; cursor: default; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], select, textarea { font: inherit; padding: .45rem .55rem; border: 1px solid var(--tb-border); border-radius: 6px; background: #fff; color: var(--tb-text); width: 100%; }
textarea { resize: vertical; }
.formular label { display: block; font-size: .85rem; color: var(--tb-text-mute); margin-bottom: .6rem; }
.formular label input, .formular label select, .formular label textarea { margin-top: .2rem; font-size: .95rem; color: var(--tb-text); }
.formular label.check { display: flex; align-items: center; gap: .5rem; padding-top: 1.4rem; }
.formular label.check input { width: auto; margin: 0; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.aktionen { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.form-meldung { font-size: .85rem; color: var(--tb-text-mute); }
.form-meldung.ok { color: var(--st-frei); }
.form-meldung.fehler { color: var(--tb-error); }
.treffer { position: relative; }
.treffer-liste { position: absolute; z-index: 5; left: 0; right: 0; background: #fff; border: 1px solid var(--tb-border); border-radius: 6px; box-shadow: var(--schatten); max-height: 220px; overflow: auto; }
.treffer-liste div { padding: .4rem .6rem; cursor: pointer; font-size: .9rem; color: var(--tb-text); }
.treffer-liste div:hover { background: var(--tb-surface-sunken); }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 2px solid var(--tb-border-light); margin-bottom: 1rem; }
.tabs a, .tabs button { font: inherit; background: none; border: 0; padding: .55rem .9rem; color: var(--tb-text-mute); cursor: pointer; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; font-size: .93rem; }
.tabs a.aktiv, .tabs button.aktiv { color: var(--tb-primary-dark); border-bottom-color: var(--tb-primary); font-weight: 600; }
.feldgruppe { border: 1px solid var(--tb-border-light); border-radius: 8px; padding: .6rem .8rem .2rem; margin: 0 0 .8rem; }
.feldgruppe legend { font-size: .8rem; color: var(--tb-text-mute); padding: 0 .3rem; }
tr.leistung td { background: var(--tb-surface); }
.leistung-kacheln { display: flex; gap: .8rem; flex-wrap: wrap; align-items: stretch; }
.leistung-kachel { background: #fff; border: 1px solid var(--tb-border-light); border-radius: 8px; padding: .5rem .8rem; min-width: 120px; }
.leistung-kachel strong { display: block; font-size: 1.15rem; color: var(--tb-primary-dark); }
.leistung-kachel span { font-size: .78rem; color: var(--tb-text-mute); }
.leistung-monate { font-size: .8rem; color: var(--tb-text-mute); margin-top: .4rem; }
.kat-combo { position: relative; align-self: center; margin: .2rem 0 .2rem .2rem; min-width: 260px; }
.kat-combo input { font-size: .9rem; padding: .35rem .55rem; }
.kat-combo .treffer-liste { max-height: 320px; min-width: 320px; }
.kat-combo .treffer-liste .tl-kopf { padding: .3rem .6rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tb-text-mute); background: var(--tb-surface); cursor: default; }
.kat-combo .treffer-liste .tl-kopf:hover { background: var(--tb-surface); }
.kat-combo .treffer-liste .tl-pfad { display: block; font-size: .75rem; color: var(--tb-text-mute); }
.kat-combo .treffer-liste .tl-gruppe { float: right; font-size: .72rem; color: var(--tb-text-mute); }
.kat-combo .treffer-liste div.aktiv-seite { background: var(--st-eigene-bg); }
.tabelle-scroll { overflow-x: auto; }
.tabelle.cockpit td, .tabelle.cockpit th { padding: .35rem .4rem; font-size: .82rem; white-space: nowrap; }
.tabelle.cockpit tr.summe td { border-top: 2px solid var(--tb-border); }
#saison-tabelle input { width: 4.2em; text-align: right; padding: .3rem .35rem; }
.slot .slot-min { display: block; font-size: .8em; font-weight: 600; opacity: .8; }
.az-saison { font-size: .78rem; color: var(--tb-text-mute); }
.tab-zaehler:not(:empty) { background: var(--st-auswahl); color: #3b2a05; border-radius: 999px; font-size: .7rem; padding: 0 .4rem; margin-left: .2rem; }
.filterzeile { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--tb-border); color: var(--tb-text); text-decoration: none; }
.chip.aktiv { background: var(--tb-primary); border-color: var(--tb-primary); color: #fff; }
.stufe-gross { font-size: 1.4rem; font-weight: 700; color: var(--tb-primary-dark); }
.stufe-gross span { font-size: .9rem; font-weight: 400; color: var(--tb-text-mute); }

/* Login */
.login-box { max-width: 420px; margin: 3rem auto; background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--schatten); }
.login-kopf { background: var(--tb-primary-dark); margin: -2rem -2rem 1.5rem; padding: 1.6rem 2rem 1.2rem; border-radius: var(--radius) var(--radius) 0 0; text-align: center; color: #fff; }
.login-kopf img { height: 46px; width: auto; max-width: 100%; display: block; margin: 0 auto .4rem; }
.login-kopf span { font-size: .8rem; opacity: .85; letter-spacing: .03em; }
.login-box label { display: block; margin-bottom: 1rem; font-size: .85rem; color: var(--tb-text-mute); }
.login-box input { margin-top: .25rem; font-size: 1rem; }
.login-box .btn { width: 100%; padding: .7rem; font-size: 1rem; }

/* Buchen: Layout */
.buchen { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
.vorschau { min-width: 0; }
.auswahl { position: sticky; top: 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.auswahl h2 { display: flex; align-items: center; gap: .5rem; }
.auswahl .feld { display: block; font-size: .8rem; color: var(--tb-text-mute); margin: .6rem 0; }
.auswahl .feld select, .auswahl .feld textarea { margin-top: .2rem; font-size: .9rem; }
.auswahl-liste .leer { font-size: .88rem; color: var(--tb-text-mute); }
.az { border: 1px solid var(--tb-border-light); border-radius: 8px; padding: .6rem .7rem; margin-bottom: .6rem; background: var(--tb-surface); }
.az-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.az-kopf strong { font-size: .93rem; }
.az-entfernen { background: none; border: 0; cursor: pointer; color: var(--tb-text-mute); font-size: 1rem; padding: 0 .2rem; }
.az-zeitraum { font-size: .82rem; color: var(--tb-text-mute); }
.az-menge { font-size: .82rem; margin-top: .3rem; display: flex; align-items: center; gap: .4rem; }
.az-menge input { width: 90px; padding: .25rem .4rem; }
.az-preis { font-size: .88rem; margin-top: .25rem; }
.az-motiv { display: flex; gap: .6rem; margin-top: .5rem; align-items: flex-start; }
.az-thumb { width: 84px; height: 30px; border-radius: 4px; background: var(--tb-surface-sunken) center/cover no-repeat; border: 1px dashed var(--tb-border); flex: 0 0 auto; display: inline-block; }
.az-thumb[style] { border-style: solid; }
.az-motiv-felder { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.az-motiv-felder input[type=url], .az-motiv-felder input[type=text] { padding: .3rem .45rem; font-size: .8rem; }
.kalkulation { border-top: 1px solid var(--tb-border-light); margin-top: .8rem; padding-top: .8rem; }
.kz { display: flex; justify-content: space-between; align-items: baseline; padding: .2rem 0; font-size: .92rem; }
.kz em { font-style: normal; font-weight: 600; color: var(--tb-primary); }
.kz.gesamt { font-size: 1.05rem; border-top: 1px solid var(--tb-border-light); margin-top: .3rem; padding-top: .5rem; }
.kalkulation .hinweis-box { margin: .6rem 0; }
.kalkulation .btn { margin-top: .5rem; }

/* Buchen: Werkzeuge */
.werkzeuge { display: flex; gap: 1.2rem; align-items: flex-end; flex-wrap: wrap; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: .8rem 1rem; margin-bottom: 1rem; }
.wz { font-size: .78rem; color: var(--tb-text-mute); display: flex; flex-direction: column; gap: .25rem; }
.wz select { width: auto; min-width: 170px; font-size: .92rem; }
.segment { display: inline-flex; border: 1px solid var(--tb-border); border-radius: 7px; overflow: hidden; }
.segment button { font: inherit; font-size: .88rem; background: #fff; border: 0; padding: .4rem .8rem; cursor: pointer; color: var(--tb-text); border-right: 1px solid var(--tb-border); }
.segment button:last-child { border-right: 0; }
.segment button.aktiv { background: var(--tb-primary); color: #fff; }
.legende { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .78rem; color: var(--tb-text-mute); margin-left: auto; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: .25rem; border: 1px solid transparent; }
.lg-frei { background: var(--st-frei-bg); border-color: var(--st-frei); }
.lg-teil { background: var(--st-teil-bg); border-color: var(--st-teil); }
.lg-belegt { background: var(--st-belegt-bg); border-color: var(--st-belegt); }
.lg-eigene { background: var(--st-eigene-bg); border-color: var(--st-eigene); }
.lg-auswahl { background: #fff; border: 2px solid var(--st-auswahl); }
.zeitraum-hinweis { font-size: .85rem; color: var(--tb-text-mute); margin: -.4rem 0 .6rem; }

/* Echte Shop-Seite im Iframe */
.mock-rahmen.frame { display: block; }
.frame-huelle { background: #fff; border-radius: 12px; box-shadow: var(--schatten); overflow: hidden; margin: 0 auto; position: relative; }
.shop-frame { display: block; border: 0; background: #fff; width: 1440px; transform-origin: 0 0; }
/* iPhone 17 Pro Max: 440 x 956 CSS-Pixel, der Inhalt scrollt im Geraet */
.mock-rahmen.frame.mobile .frame-huelle { width: 440px; max-width: calc(100vw - 32px); height: 956px; border: 10px solid #1b1f27; border-radius: 44px; box-sizing: border-box; }
.mock-rahmen.frame.mobile .shop-frame { width: 100%; height: 100%; transform: none !important; }
.frame-geraet { text-align: center; font-size: .78rem; color: var(--tb-text-mute); margin-top: .35rem; }
.frame-hinweis { text-align: center; margin-top: .5rem; }

/* Mock-Rahmen */
.mock-rahmen { display: flex; justify-content: center; }
.mock-rahmen[hidden] { display: none; }
.mock { background: #fff; border-radius: 12px; box-shadow: var(--schatten); overflow: hidden; width: 100%; max-width: 1000px; font-size: 11px; color: #555; transition: max-width .25s; }
.mock.mobile { max-width: 390px; font-size: 10px; border: 8px solid #1b1f27; border-radius: 28px; }
.m-kopf { background: var(--tb-primary-dark); color: #fff; }
.m-kopf-oben { display: flex; gap: 1em; padding: .35em 1em; font-size: .85em; background: #16233a; opacity: .9; }
.m-kopf-oben .m-rechts { margin-left: auto; }
.mobile .m-kopf-oben { display: none; }
.m-kopf-haupt { display: flex; align-items: center; gap: 1em; padding: .7em 1em; }
.m-logo { font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 1.6em; white-space: nowrap; }
.m-logo small { font-size: .45em; font-style: normal; opacity: .8; }
.m-suche { flex: 1; background: #fff; color: #999; border-radius: 3px; padding: .4em .7em; font-size: .95em; }
.mobile .m-suche { display: none; }
.m-icons { font-size: 1.3em; }
.m-chips { display: flex; gap: .4em; padding: .5em 1em .6em; overflow: hidden; white-space: nowrap; background: #fff; border-bottom: 1px solid var(--tb-border-light); }
.m-chips span { border: 1px solid var(--tb-primary-medium); color: var(--tb-primary); border-radius: 3px; padding: .15em .6em; font-size: .9em; }
.mobile .m-chips span:nth-child(n+5) { display: none; }
.m-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; padding: .8em 1em; }
.m-bento.zwei { grid-template-columns: repeat(2, 1fr); }
.m-bento.eins { grid-template-columns: 1fr; }
.m-bento.vier { grid-template-columns: repeat(4, 1fr); }
.mobile .m-bento, .mobile .m-bento.zwei, .mobile .m-bento.vier { grid-template-columns: 1fr; }
.m-abschnitt { padding: .4em 1em .8em; }
.m-h2 { font-size: 1.3em; font-weight: 700; color: var(--tb-primary-dark); margin: .3em 0 .5em; }
.m-welten { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6em; }
.mobile .m-welten { grid-template-columns: repeat(3, 1fr); }
.m-welt { text-align: center; font-size: .9em; }
.m-welt-bild { aspect-ratio: 4/3; background: var(--tb-surface-sunken) center/cover no-repeat; border-radius: 4px; margin-bottom: .3em; }
.m-tabs { display: flex; gap: 1em; border-bottom: 1px solid var(--tb-border-light); margin-bottom: .6em; }
.m-tabs span { padding: .3em 0; }
.m-tabs .an { border-bottom: 2px solid var(--tb-primary); color: var(--tb-primary-dark); font-weight: 600; }
.m-produkte { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; }
.mobile .m-produkte { grid-template-columns: repeat(2, 1fr); }
.mobile .m-produkte .m-produkt:nth-child(n+5) { display: none; }
.m-produkt { border: 1px solid var(--tb-border-light); border-radius: 4px; padding: .5em; }
.m-produkt-bild { aspect-ratio: 1; background: var(--tb-surface-sunken) center/contain no-repeat; border-radius: 3px; margin-bottom: .4em; }
.m-produkt.echt .m-produkt-bild { background-color: #fff; }
.m-name { font-size: .95em; line-height: 1.25; height: 2.5em; overflow: hidden; color: #333; }
.m-preis-text { font-weight: 700; color: var(--tb-primary-dark); margin-top: .3em; }
.m-zeile { height: .6em; background: #e6e8ee; border-radius: 3px; margin: .35em 0; }
.m-zeile.kurz { width: 60%; }
.m-preis { height: .8em; width: 40%; background: var(--tb-primary-medium); opacity: .5; border-radius: 3px; margin-top: .4em; }
.m-brot { padding: .5em 1em 0; font-size: .9em; color: #888; }
.m-intro { padding: .4em 1em; font-weight: 600; color: var(--tb-primary-dark); font-size: 1.1em; }
.m-subkats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6em; padding: .2em 1em .6em; }
.mobile .m-subkats { grid-template-columns: repeat(3, 1fr); }
.m-subkat { text-align: center; font-size: .85em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-subkat-bild { aspect-ratio: 4/3; background: var(--tb-surface-sunken) center/cover no-repeat; border-radius: 4px; margin-bottom: .2em; }
.m-text .m-zeile { width: 100%; }
.m-warenkorb { display: grid; grid-template-columns: 2fr 1fr; gap: 1em; padding: .4em 1em; }
.mobile .m-warenkorb { grid-template-columns: 1fr; }
.m-wk-zeile { display: grid; grid-template-columns: 4em 1fr 2em 4em; gap: .6em; align-items: center; border-bottom: 1px solid var(--tb-border-light); padding: .5em 0; }
.m-wk-zeile .m-produkt-bild { margin: 0; }
.m-wk-menge { border: 1px solid var(--tb-border); text-align: center; border-radius: 3px; }
.m-wk-preis { height: .8em; background: var(--tb-primary-medium); opacity: .5; border-radius: 3px; }
.m-wk-summe { border: 1px solid var(--tb-border-light); border-radius: 4px; padding: .8em; align-self: start; }
.m-btn { background: var(--tb-accent); color: #3b2a05; text-align: center; border-radius: 3px; padding: .5em; font-weight: 700; margin-top: .6em; }
.m-fuss { display: flex; justify-content: space-around; background: var(--tb-primary-dark); color: #fff; padding: .7em; font-size: .85em; margin-top: .5em; }
.desktop .m-fuss { justify-content: flex-start; gap: 2em; padding: 1.2em; }

/* Slots (Bannerplaetze) */
.slot { position: relative; aspect-ratio: 975/350; border-radius: 6px; border: 2px solid var(--st-frei); background: var(--st-frei-bg); cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: transform .12s, box-shadow .12s; outline: none; }
.slot:hover, .slot:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(20,30,50,.18); }
.slot-img { position: absolute; inset: 0; background: center/cover no-repeat; }
.slot-info { position: relative; text-align: center; color: var(--st-frei); font-weight: 700; line-height: 1.2; }
.slot-nr { display: block; font-size: 1.6em; }
.slot-preis { display: block; font-size: .95em; font-weight: 500; opacity: .85; }
.slot-status { position: absolute; top: .4em; right: .4em; font-size: .78em; font-weight: 600; padding: .15em .55em; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--st-frei); }
.slot-status:empty { display: none; }
.slot.st-teilweise { border-color: var(--st-teil); background: var(--st-teil-bg); }
.slot.st-teilweise .slot-info, .slot.st-teilweise .slot-status { color: var(--st-teil); }
.slot.st-belegt { border-color: var(--st-belegt); background: repeating-linear-gradient(135deg, var(--st-belegt-bg) 0 8px, #dfe1e6 8px 16px); cursor: not-allowed; }
.slot.st-belegt .slot-info, .slot.st-belegt .slot-status { color: var(--st-belegt); }
.slot.st-belegt:hover { transform: none; box-shadow: none; }
.slot.st-eigene, .slot.st-eigene_teil { border-color: var(--st-eigene); background: var(--st-eigene-bg); }
.slot.st-eigene .slot-info, .slot.st-eigene .slot-status, .slot.st-eigene_teil .slot-info, .slot.st-eigene_teil .slot-status { color: var(--st-eigene); }
.slot.hat-bild .slot-info { background: rgba(255,255,255,.85); padding: .3em .8em; border-radius: 4px; font-size: .8em; }
.slot.ausgewaehlt { border: 3px solid var(--st-auswahl); box-shadow: 0 0 0 3px rgba(232,168,56,.3); }
.slot.ausgewaehlt .slot-status { background: var(--st-auswahl); color: #3b2a05; }
.slot-karte h3 .slot-status { position: static; font-size: .72rem; margin-left: .4rem; background: var(--st-frei-bg); }

/* Weitere Platzierungen */
.mock-rahmen.weitere { display: block; }
.mock-rahmen.weitere .karten { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.nl-mock { background: #fff; border: 1px solid var(--tb-border-light); border-radius: 6px; padding: .8rem; max-width: 380px; font-size: 11px; }
.nl-kopf { background: var(--tb-primary-dark); color: #fff; font-family: Georgia, serif; font-style: italic; text-align: center; padding: .6em; border-radius: 4px; margin-bottom: .5em; font-size: 1.2em; }
.nl-slot { aspect-ratio: 2/1; margin: .5em 0; }
.a4-mock { display: flex; gap: 1rem; align-items: flex-start; font-size: 10px; }
.a4 { width: 130px; aspect-ratio: 210/297; border: 1px solid var(--tb-border); border-radius: 3px; background: #fff; padding: .8em; }
.a4-logo { font-family: Georgia, serif; font-style: italic; color: var(--tb-primary-dark); font-weight: 700; margin-bottom: .6em; }
.a4-tabelle { height: 45%; border: 1px solid var(--tb-border-light); margin-top: 1em; background: repeating-linear-gradient(0deg, #fff 0 8px, #f0f2f5 8px 9px); }
.slot.a4 { aspect-ratio: 210/297; padding: 0; }
.slot.a4 .slot-nr { font-size: 1.3em; }
.flyer-mock { display: flex; gap: 1rem; align-items: center; font-size: 10px; }
.paket { font-size: 3rem; }
.slot.flyer { width: 120px; aspect-ratio: 210/297; }
.slot.a5f { width: 90px; }
.slot.flyer .slot-nr { font-size: 1.3em; }
span[data-rest]:not(:empty) { font-weight: 600; color: var(--tb-primary); }

/* Auftraege */
.auftrag-kopf { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: .5rem; }
.auftrag-summe { text-align: right; font-size: 1.1rem; }
.auftrag-aktionen { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.auftrag.status-storniert { opacity: .7; }
.motiv-block { display: flex; gap: .5rem; align-items: flex-start; }
.motiv-felder { display: flex; flex-direction: column; gap: .3rem; min-width: 180px; }
.motiv-felder input[type=url], .motiv-felder input[type=text] { padding: .3rem .45rem; font-size: .8rem; }

@media (max-width: 1000px) {
	.buchen { grid-template-columns: 1fr; }
	.auswahl { position: static; max-height: none; }
	.legende { margin-left: 0; }
}
@media (max-width: 640px) {
	/* auf dem Handy wird auch das Desktop-Mock einspaltig, sonst ist nichts lesbar */
	#wz-geraet { display: none; }
	.mock.desktop { font-size: 10px; }
	.mock.desktop .m-kopf-oben, .mock.desktop .m-suche { display: none; }
	.mock.desktop .m-bento, .mock.desktop .m-bento.zwei { grid-template-columns: 1fr; }
	.mock.desktop .m-welten, .mock.desktop .m-subkats { grid-template-columns: repeat(3, 1fr); }
	.mock.desktop .m-produkte { grid-template-columns: repeat(2, 1fr); }
	.mock.desktop .m-produkte .m-produkt:nth-child(n+5) { display: none; }
	.mock.desktop .m-warenkorb { grid-template-columns: 1fr; }
	.mock.desktop .m-chips span:nth-child(n+5) { display: none; }
	.kopf-inner { gap: .6rem; }
	.benutzer { margin-left: 0; width: 100%; justify-content: space-between; }
	.zwei-spalten { grid-template-columns: 1fr; }
	.mock.mobile { border-width: 5px; }
	.tabelle { font-size: .82rem; }
	.tabelle th, .tabelle td { padding: .4rem .3rem; }
}

/* Auswahl-Status (28.09.2026): Auswahl ist erst nach dem Reservieren verbindlich */
.auswahl-status { font-size: .85rem; color: var(--tb-error); background: #fff4e5; border-left: 3px solid #e0a100; padding: .5rem .75rem; border-radius: 6px; margin: 0 0 .8rem; }
.tabelle tr.zeile-fehler td { background: #fff5f5; }
