[hidden] { display: none !important; }
.topbar nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
/* Werkbank – Ergänzungen zu app.css (gleiche Farbvariablen, hell/dunkel) */
.topbar .logo span { white-space: nowrap; }
.topbar-logo { max-height: 28px; max-width: 140px; }
.farbpunkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.pill.grey { background: var(--soft2); color: var(--muted); }
.reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.reiter a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.reiter a.on { color: var(--ink); border-color: var(--brand); }
.textarea, .input, .select select { background: var(--card); color: var(--ink); border-color: var(--line); }
.label { color: var(--ink); }
.help { color: var(--muted); }

/* Markenprofil */
.profil-raster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.profil-vorschau { position: sticky; top: 72px; }
.farben { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; }
.logo-probe { height: 64px; display: flex; align-items: center; padding: 10px; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 6px; background: #fff; }
.logo-probe img { max-height: 44px; max-width: 100%; }
.schrift-probe { font-size: 1.35rem; margin-top: 8px; line-height: 1.2; }
.vorlage-wahl { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.vorlage-wahl input { margin-top: 5px; }

/* Vorschau: iframe in Originalgröße, per transform verkleinert */
.mini-vorschau, .vorschau { position: relative; overflow: hidden; border-radius: 8px; background: var(--soft2); }
.mini-vorschau iframe, .vorschau iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.mini-vorschau { margin-bottom: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Werkbank Start */
.wb { max-width: 980px; margin: 0 auto; }
.wb-kopf { margin-bottom: 14px; }
.wb-kopf .betrieb { color: var(--muted); font-weight: 600; font-size: .9rem; }
.wb-kopf h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.15; }
.satz-karte { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.satz-karte textarea { width: 100%; border: 0; resize: none; font: inherit; font-size: 1.2rem; line-height: 1.4; background: transparent; color: var(--ink); min-height: 84px; outline: none; }
.satz-karte textarea::placeholder { color: var(--muted); opacity: .8; }
.satz-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--soft); color: var(--text2); border-radius: 99px; padding: 5px 12px; font-size: .85rem; cursor: pointer; font-weight: 500; line-height: 1.3; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.satz-leiste .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.foto-chip { position: relative; overflow: hidden; }
.foto-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.foto-vorschau { display: none; align-items: center; gap: 8px; margin-top: 10px; }
.foto-vorschau.da { display: flex; }
.foto-vorschau img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; }
.beispiele { margin: 14px 0 26px; }
.beispiele .chip { background: transparent; }
.button.is-brand.is-gross { font-size: 1.05rem; padding: 0 22px; height: 44px; border-radius: 10px; }
.kontingent { font-size: .8rem; color: var(--muted); }
.arbeitet { position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(3px); display: none; place-items: center; z-index: 50; }
.arbeitet.an { display: grid; }
.arbeitet .box { text-align: center; padding: 24px; }
.arbeitet .rad { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: dreh 0.9s linear infinite; margin: 0 auto 16px; }
.arbeitet p { font-weight: 600; font-size: 1.05rem; }
.arbeitet small { color: var(--muted); }
@keyframes dreh { to { transform: rotate(360deg); } }
.abschnitt { font-size: 1.05rem; font-weight: 700; margin: 26px 0 12px; display: flex; justify-content: space-between; align-items: baseline; }
.abschnitt a { font-size: .85rem; font-weight: 500; }
.verlauf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.verlauf a { text-decoration: none; display: block; }
.verlauf .bild { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft2); display: grid; place-items: center; border: 1px solid var(--line); }
.verlauf .bild img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.verlauf .t { font-weight: 600; font-size: .9rem; margin-top: 7px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.verlauf .m { font-size: .78rem; color: var(--muted); }
.vorlagen-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.vorlagen-kacheln button { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.vorlagen-kacheln .t { font-weight: 600; font-size: .9rem; }
.leer { color: var(--muted); padding: 20px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }

/* Stück */
.st-raster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
.st-links { position: sticky; top: 72px; }
.st-links .vorschau { box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.formate { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.hinweis-box { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.hinweis-box button { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.panel *, .card-x * { box-sizing: border-box; }
.st-rechts { min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.panel h2 { font-size: .95rem; font-weight: 700; margin-bottom: 10px; }
.aendern textarea { width: 100%; font: inherit; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; resize: vertical; min-height: 60px; background: var(--soft); color: var(--ink); }
.aendern textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); background: var(--card); }
.laden { display: flex; flex-wrap: wrap; gap: 8px; }
.caption { white-space: pre-wrap; }
.feld { margin-bottom: 12px; }
.feld .zaehler { float: right; font-size: .75rem; color: var(--muted); font-weight: 500; }
.feld .zaehler.zu-lang { color: var(--red); }
.bildwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.bildwahl button { border: 2px solid transparent; border-radius: 7px; padding: 0; background: var(--soft2); cursor: pointer; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: .75rem; }
.bildwahl button img { width: 100%; height: 100%; object-fit: cover; }
.bildwahl button.on { border-color: var(--brand); }
.fassungen { list-style: none; font-size: .85rem; max-height: 260px; overflow: auto; }
.fassungen li { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.fassungen li:first-child { border-top: 0; }
.fassungen .satz { flex: 1; color: var(--text2); }
.fassungen button { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .8rem; white-space: nowrap; }
.speichert { font-size: .78rem; color: var(--muted); min-height: 1em; }
details.mehr > summary { cursor: pointer; font-weight: 700; font-size: .95rem; list-style: none; }
details.mehr > summary::after { content: ' ▾'; color: var(--muted); }
details.mehr[open] > summary { margin-bottom: 12px; }

/* Bilder */
.bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.bilder .karte { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bilder .karte img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--soft2); }
.bilder .karte .unten { padding: 8px; }
.bilder textarea { width: 100%; font: inherit; font-size: .82rem; border: 1px solid var(--line); border-radius: 6px; padding: 6px; resize: vertical; background: var(--soft); color: var(--ink); min-height: 52px; }
.hochladen { border: 2px dashed var(--line); border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 18px; background: var(--card); }

@media (max-width: 900px) {
  .profil-raster, .st-raster { grid-template-columns: 1fr; }
  .profil-vorschau, .st-links { position: static; }
  .topbar { gap: 12px; padding: 0 12px; }
  .topbar .who { display: none; }
  .topbar .theme-switch { display: none; }
  .topbar .logo span { display: none; }
  .wrap { padding: 18px 14px 60px; }
  .wb-kopf h1 { font-size: 1.5rem; }
  .satz-leiste .rechts { margin-left: 0; width: 100%; justify-content: space-between; }
  .verlauf { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
