/* ==========================================================================
   Theme – Gestaltung nach Vorlage. Farben kommen ausschließlich aus den
   Farbrollen (--c-*), die in der Verwaltung eingestellt werden.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--c-page-bg);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body, "Segoe UI", "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-page-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.15; color: var(--c-heading); font-family: var(--font-display, inherit); }
p { margin: 0 0 1.2rem; }
a { color: var(--c-action); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(var(--c-flow-2-rgb), .9); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.wrap--wide { max-width: 1180px; }

/* ---------- Kopfbereich ---------- */
.hdr { background: var(--c-surface); position: relative; z-index: 20; }
.hdr-meta { border-bottom: 1px solid var(--line, #DADBE0); font-size: 1.2rem; }
.hdr-meta .wrap { display: flex; justify-content: space-between; align-items: stretch; min-height: 32px; }
.hdr-meta nav { display: flex; }
.hdr-meta a { display: flex; align-items: center; padding: 0 10px; color: #666; }
.hdr-meta a:hover { color: var(--c-primary); text-decoration: none; }
.hdr-meta .seg a.is-active { color: var(--c-primary); font-weight: 600; box-shadow: inset 0 -2px 0 var(--c-secondary); }
.hdr-meta .seg a:first-child { padding-left: 0; }

.hdr-main .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--c-primary); text-decoration: none !important; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-size: 2.6rem; font-weight: 400; letter-spacing: -.02em; text-transform: lowercase; color: var(--c-heading); font-family: var(--font-brand, inherit); }
.brand-seg { border-left: 1px solid #CCC; padding-left: 12px; font-size: 1.2rem; line-height: 1.3; color: #666; }
.brand-seg b { display: block; color: var(--c-primary); font-weight: 600; }
/* Langer Seitenname (Projektinformationsblatt): darf auf schmalen Bildschirmen zwischen „Projekt“ und „informationsblatt“ umbrechen */
.brand { min-width: 0; }
.brand-name { min-width: 0; }
.brand-name .bn-1, .brand-name .bn-2 { display: inline-block; }
@media (max-width: 560px) { .brand-name .bn-2 { display: block; font-size: .55em; } }
.hdr-tools { display: flex; gap: 10px; align-items: center; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--c-surface); color: var(--c-primary);
  border: 0; cursor: pointer; box-shadow: rgba(38, 38, 38, .2) 0 2px 8px; text-decoration: none !important;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { color: var(--c-secondary); }
.icon-btn .dot { position: absolute; }
.hdr-user { position: relative; }
.hdr-user.is-in::after {
  content: ""; position: absolute; top: 5px; right: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-action); box-shadow: 0 0 0 2px #fff;
}

.hdr-nav { border-top: 1px solid var(--line-soft, #EEF0F5); }
.hdr-nav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.hdr-nav .wrap::-webkit-scrollbar { display: none; }
.hdr-nav a { white-space: nowrap; padding: 11px 12px 12px; font-size: 1.5rem; color: var(--c-heading); }
.hdr-nav a:first-child { padding-left: 0; }
.hdr-nav a:hover { color: var(--c-secondary); text-decoration: none; }
.hdr-nav a.is-active { color: var(--c-secondary); }

.search-panel { display: none; border-top: 1px solid var(--line-soft, #EEF0F5); background: var(--c-surface); }
.search-panel.is-open { display: block; }
.search-panel form { display: flex; gap: 8px; padding: 12px 0; }
.search-panel input { flex: 1; }

.install-note { background: var(--c-highlight); color: #fff; font-size: 1.3rem; }
.install-note .wrap { padding-top: 8px; padding-bottom: 8px; }
.install-note a { color: #fff; text-decoration: underline; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 1.4rem; line-height: 1.4; font-weight: 400; text-align: center; white-space: nowrap;
  color: #fff !important; text-decoration: none !important;
  background: linear-gradient(color-mix(in srgb, var(--c-action) 82%, #fff), var(--c-action));
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { background: linear-gradient(var(--c-action), color-mix(in srgb, var(--c-action) 88%, #000)); }
.btn:active { transform: translateY(1px); }
.btn--navy { background: var(--c-primary); }
.btn--navy:hover { background: color-mix(in srgb, var(--c-primary) 85%, #000); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--line { background: var(--c-surface); color: var(--c-primary) !important; box-shadow: inset 0 0 0 1px var(--c-primary); }
.btn--line:hover { background: color-mix(in srgb, var(--c-surface) 92%, var(--c-primary)); }
.btn--danger { background: var(--c-highlight); }
.btn--danger:hover { background: color-mix(in srgb, var(--c-highlight) 85%, #000); }
.btn--sm { padding: 7px 14px; font-size: 1.3rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Flow-Bänder ---------- */
.flow { position: absolute; left: 0; right: 0; height: 180px; pointer-events: none; overflow: hidden; }
.flow svg { display: block; width: 100%; height: 100%; }
.flow--bottom { bottom: -1px; }
.flow--top { top: -1px; }
.flow--sm { height: 110px; }

/* ---------- Effekt-Ebene (Canvas) ---------- */
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fx canvas { display: block; width: 100%; height: 100%; }
.stage > .wrap, .pagehead > .wrap, .tarif-page > .wrap, .netband > .wrap, .promo > .wrap { position: relative; z-index: 2; }
html:not([data-effect="ribbons"]) .flow { display: none; }
html[data-effect="ribbons"] .fx { display: none; }
.stage-deco { display: none; }

/* ---------- Bühne (Hero) ---------- */
.stage {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(45deg, var(--c-hero-a), var(--c-hero-b));
  padding: 56px 0 190px;
}
.stage--biz { background: linear-gradient(90deg, var(--c-biz-b), var(--c-biz-a)); }
.stage--tarif { background: linear-gradient(-135deg, var(--c-tarif-a), var(--c-tarif-b)); }
.stage h1 { color: #fff; font-size: clamp(3.4rem, 6vw, 5.4rem); letter-spacing: -.01em; max-width: 13em; }
.stage .lead { font-size: 1.8rem; line-height: 1.45; max-width: 30em; margin: 16px 0 26px; color: rgba(255, 255, 255, .92); }
.stage-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.stage-tag { display: inline-block; font-size: 1.3rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.badge-price {
  justify-self: center; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c-highlight) 70%, #fff), var(--c-highlight) 62%);
  display: grid; place-content: center; text-align: center; color: #fff; transform: rotate(-8deg);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
}
.badge-price small { font-size: 1.4rem; display: block; }
.badge-price strong { font-size: 5.6rem; font-weight: 300; line-height: 1; letter-spacing: -.03em; }
.badge-price strong sup { font-size: 2.2rem; vertical-align: top; position: relative; top: 8px; }
.badge-price em { font-style: normal; font-size: 1.3rem; display: block; margin-top: 4px; }

/* ---------- Abschnitte ---------- */
.section { padding: 48px 0; }
.section--white { background: #fff; }
.section-title { font-size: clamp(2.6rem, 3.8vw, 3.4rem); margin-bottom: 26px; }
.section-title--center { text-align: center; }
.copy { max-width: 760px; font-size: 1.4rem; }
.copy h2 { font-size: 2rem; margin: 22px 0 8px; font-weight: 400; }
.copy a { text-decoration: underline; }

/* Teaser-Kacheln Startseite */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -120px; position: relative; z-index: 3; }
.tile {
  position: relative; overflow: hidden; min-height: 300px; padding: 22px 20px 20px; color: #fff;
  display: flex; flex-direction: column; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5);
}
.tile h3 { color: #fff; font-size: 2.2rem; font-weight: 600; text-transform: uppercase; line-height: 1.1; letter-spacing: .01em; }
.tile p { margin: 10px 0 18px; font-size: 1.4rem; color: rgba(255, 255, 255, .92); }
.tile .btn { align-self: flex-start; margin-top: auto; }
.tile-art { position: absolute; right: -20px; bottom: 54px; width: 150px; height: 150px; opacity: .95; }
.tile--a { background: linear-gradient(160deg, color-mix(in srgb, var(--c-flow-2) 75%, #fff), var(--c-primary)); }
.tile--b { background: linear-gradient(160deg, var(--c-secondary), color-mix(in srgb, var(--c-primary) 80%, var(--c-secondary))); }
.tile--c { background: linear-gradient(160deg, color-mix(in srgb, var(--c-flow-1) 55%, var(--c-flow-2)), color-mix(in srgb, var(--c-tarif-b) 85%, #000)); }

/* Service-Boxen */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--c-surface); padding: 22px 18px; text-align: center; border: 1px solid var(--line, #DADBE0); }
.service svg { width: 54px; height: 54px; color: var(--c-primary); margin-bottom: 8px; }
.service h3 { font-size: 1.6rem; font-weight: 600; color: var(--c-primary); margin-bottom: 6px; }
.service p { font-size: 1.3rem; margin: 0 0 10px; }
.service a { font-size: 1.3rem; text-decoration: underline; }

/* Auszeichnungs-Bereich */
.netband { position: relative; overflow: hidden; color: #fff; padding: 190px 0 64px; background: linear-gradient(110deg, var(--c-secondary), color-mix(in srgb, var(--c-primary) 75%, var(--c-hero-b))); }
.netband h2 { color: #fff; font-size: clamp(2.8rem, 4.4vw, 4rem); text-align: center; margin-bottom: 34px; }
.awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.award { border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 14px; font-size: 1.3rem; }
.award strong { display: block; font-size: 1.5rem; font-weight: 600; margin-bottom: 4px; }
.award .score { font-size: 3.2rem; font-weight: 300; display: block; margin: 6px 0 2px; }

.promo { position: relative; overflow: hidden; background: linear-gradient(100deg, color-mix(in srgb, var(--c-tarif-b) 70%, #000), var(--c-tarif-b) 45%, color-mix(in srgb, var(--c-action) 70%, var(--c-tarif-b))); color: #fff; padding: 46px 0; }
.promo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; z-index: 2; }
.promo h2 { color: #fff; font-size: clamp(2.6rem, 4vw, 3.6rem); text-transform: uppercase; font-weight: 400; }
.promo p { margin: 6px 0 0; color: rgba(255, 255, 255, .9); }

/* ---------- Tarifvergleich ---------- */
.tarif-page { position: relative; background: linear-gradient(-135deg, var(--c-tarif-a), var(--c-tarif-b)); color: #fff; padding: 40px 0 80px; min-height: 60vh; }
.tarif-page--kombi { background: linear-gradient(45deg, var(--c-hero-a), var(--c-hero-b)); }
.tarif-page--mobil { background: linear-gradient(-135deg, color-mix(in srgb, var(--c-tarif-a) 60%, var(--c-biz-a)), var(--c-biz-b)); }
.tarif-page h1 { color: #fff; text-align: center; font-size: clamp(3.4rem, 6vw, 5.2rem); }
.tarif-page .sub { text-align: center; font-size: 1.8rem; margin: 10px 0 34px; color: rgba(255, 255, 255, .9); }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.cmp { --cols: 3; display: grid; grid-template-columns: minmax(150px, 1.1fr) repeat(var(--cols), minmax(150px, 1fr)); min-width: 640px; }
.cmp-head { padding: 18px 12px 20px; text-align: center; background: rgba(255, 255, 255, .12); margin: 0 1px; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; }
.cmp-head.is-top { background: rgba(255, 255, 255, .2); }
.cmp-head .flag { position: absolute; top: -12px; background: var(--c-highlight); font-size: 1.1rem; padding: 3px 10px; border-radius: 3px; text-transform: uppercase; letter-spacing: .04em; }
.cmp-head .name { font-size: 2rem; font-weight: 300; line-height: 1.15; }
.cmp-head .price { font-size: 3.6rem; font-weight: 300; line-height: 1; }
.cmp-head .price small { font-size: 1.4rem; }
.cmp-head .note { font-size: 1.2rem; color: rgba(255, 255, 255, .8); }
.cmp-corner { background: transparent; }
.cmp-row { display: contents; }
.cmp-label, .cmp-cell { padding: 14px 12px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 1.3rem; }
.cmp-label { font-weight: 600; background: rgba(255, 255, 255, .06); }
.cmp-cell { text-align: center; background: rgba(255, 255, 255, .1); margin: 0 1px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cmp-group { grid-column: 1 / -1; padding: 22px 12px 10px; font-size: 1.8rem; font-weight: 300; border-top: 1px solid rgba(255, 255, 255, .25); }
.cmp-hotline { grid-column: 1 / -1; text-align: center; padding: 18px 12px; background: rgba(255, 255, 255, .16); margin-top: 14px; font-size: 1.4rem; }
.cmp-hotline strong { display: block; font-size: 1.7rem; }
.ico-check { width: 26px; height: 26px; color: #fff; }
.gauge { width: 58px; height: 34px; }
.pkg { width: 92px; height: 104px; }

/* ---------- Geschäftskunden ---------- */
.contactbar { background: var(--c-surface); position: relative; z-index: 3; margin-top: -70px; box-shadow: 0 8px 26px -14px rgba(0, 0, 0, .35); }
.contactbar-in { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px 26px; }
.contactbar svg { width: 54px; height: 54px; color: var(--c-primary); }
.contactbar h2 { font-size: 2rem; font-weight: 400; }
.contactbar p { margin: 2px 0 0; font-size: 1.3rem; }
.contactbar .num { font-size: 2.6rem; color: var(--c-primary); font-weight: 300; text-align: right; }
.contactbar .num .btn { margin-top: 6px; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bcard { background: var(--c-surface); display: flex; flex-direction: column; }
.bcard-art { position: relative; height: 170px; overflow: hidden; background: linear-gradient(135deg, var(--c-biz-a), var(--c-biz-b)); }
.bcard-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.bcard h3 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 400; margin-bottom: 10px; }
.bcard p { font-size: 1.3rem; }
.bcard .btn { align-self: flex-start; margin-top: auto; }
.bcard--accent { background: var(--c-secondary); color: rgba(255, 255, 255, .9); }
.bcard--accent h3 { color: #fff; }

.solutions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sol { color: #fff; padding: 26px 24px; position: relative; overflow: hidden; }
.sol h3 { color: #fff; font-size: 2.6rem; margin-bottom: 4px; }
.sol .sub { font-size: 1.4rem; color: rgba(255, 255, 255, .88); margin-bottom: 14px; }
.sol ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: 1.4rem; }
.sol li { display: flex; gap: 8px; align-items: flex-start; }
.sol li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.sol--big { grid-column: 1 / -1; background: linear-gradient(110deg, var(--c-biz-b), var(--c-biz-a)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; padding: 34px 30px; }
.sol--big ul { grid-template-columns: 1fr 1fr; }
.sol--teal { background: linear-gradient(135deg, var(--c-tarif-a), var(--c-tarif-b)); }
.sol--blue { background: linear-gradient(135deg, color-mix(in srgb, var(--c-biz-a) 70%, #fff), var(--c-biz-b)); }
.sol .btn--white { background: #fff; color: var(--c-primary) !important; }
.sol .btn--white:hover { background: #EEF2FB; }
.founder { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 26px; background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--c-flow-2) 25%, #fff)); border: 1px solid var(--line, #DADBE0); }
.founder strong { font-size: 2.6rem; font-weight: 300; color: var(--c-primary); text-transform: uppercase; }

/* ---------- Fußbereich ---------- */
.ftr { background: var(--c-surface); border-top: 1px solid var(--line, #DADBE0); font-size: 1.3rem; }
.ftr-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0 26px; }
.ftr h4 { font-size: 1.5rem; font-weight: 400; color: var(--c-primary); margin-bottom: 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr a { color: #666; }
.ftr a:hover { color: var(--c-primary); }
.ftr-bottom { border-top: 1px solid var(--line-soft, #EEF0F5); padding: 14px 0 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #999; font-size: 1.2rem; }

/* ---------- Interne Bereiche ---------- */
.pagehead { position: relative; overflow: hidden; color: #fff; background: linear-gradient(110deg, var(--c-primary), var(--c-secondary)); padding: 30px 0 120px; }
.pagehead h1 { color: #fff; font-size: clamp(2.8rem, 4.6vw, 4rem); }
.pagehead p { margin: 8px 0 0; color: rgba(255, 255, 255, .88); max-width: 46em; }
.app { display: grid; grid-template-columns: 230px 1fr; gap: 20px; margin-top: -70px; position: relative; z-index: 3; padding-bottom: 50px; }
.app--single { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
.side { background: var(--c-surface); align-self: start; box-shadow: 0 8px 26px -16px rgba(0, 0, 0, .35); }
.side .who { padding: 18px; border-bottom: 1px solid var(--line-soft, #EEF0F5); }
.side .who strong { display: block; color: var(--c-primary); font-size: 1.6rem; font-weight: 600; word-break: break-word; }
.side nav { display: flex; flex-direction: column; padding: 8px 0; }
.side nav a { padding: 10px 18px; color: var(--c-primary); border-left: 3px solid transparent; }
.side nav a:hover { background: #F5F7FD; text-decoration: none; }
.side nav a.is-active { border-left-color: var(--c-secondary); color: var(--c-secondary); background: #F7F3F9; }
.side nav .sep { height: 1px; background: var(--line-soft, #EEF0F5); margin: 6px 0; }

.panel { background: var(--c-surface); padding: 24px; box-shadow: 0 8px 26px -16px rgba(0, 0, 0, .35); margin-bottom: 20px; }
.panel h2 { font-size: 2.4rem; margin-bottom: 6px; }
.panel h3 { font-size: 1.8rem; font-weight: 400; margin: 20px 0 10px; }
.panel .hint { font-size: 1.3rem; color: #888; margin-bottom: 16px; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { padding: 16px; border: 1px solid var(--line, #DADBE0); }
.stat b { display: block; font-size: 3rem; font-weight: 300; color: var(--c-primary); line-height: 1.1; }

.role-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 1.2rem; font-weight: 600; color: #fff; background: var(--c-primary); }
.role-chip--admin { background: var(--c-highlight); }
.role-chip--superuser { background: var(--c-secondary); }
.role-chip--master { background: color-mix(in srgb, var(--c-flow-2) 80%, #000); }
.role-chip--slave { background: color-mix(in srgb, var(--c-action) 90%, #000); }
.role-chip--user { background: #8a8fa3; }

.alert { padding: 12px 16px; margin-bottom: 18px; border-left: 4px solid var(--c-action); background: color-mix(in srgb, var(--c-action) 9%, #fff); color: #2c3a22; font-size: 1.4rem; }
.alert--err { border-left-color: var(--c-highlight); background: color-mix(in srgb, var(--c-highlight) 8%, #fff); color: #5a0b20; }
.alert--info { border-left-color: var(--c-primary); background: #F1F4FB; color: var(--c-primary); }

/* Formulare */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 1.3rem; font-weight: 600; color: var(--c-primary); margin-bottom: 5px; }
.field .opt { font-weight: 400; color: #999; }
.input, .field input[type=text], .field input[type=password], .field input[type=email], .field input[type=tel], .field input[type=number], .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--c-text) 35%, transparent); border-radius: var(--radius-field, 4px); background: var(--c-surface); color: var(--c-heading);
}
.field textarea { min-height: 120px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-action); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-action) 22%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 1.4rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-action); flex: none; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Tabellen */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 1.35rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--c-primary); padding: 10px; border-bottom: 2px solid var(--line, #DADBE0); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-soft, #EEF0F5); vertical-align: top; }
.tbl .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tbl form { margin: 0; }
.tbl select { min-height: 34px; padding: 5px 8px; border: 1px solid #CCC; border-radius: 4px; }

/* Akkordeon */
.acc { border: 1px solid var(--line, #DADBE0); margin-top: 18px; }
.acc > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 10px; color: var(--c-primary); font-size: 1.6rem; background: #F5F7FD; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::before { content: ""; width: 0; height: 0; border-left: 7px solid var(--c-secondary); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .2s ease; }
.acc[open] > summary::before { transform: rotate(90deg); }
.acc-body { padding: 18px 16px; }

.drop { border: 2px dashed color-mix(in srgb, var(--c-secondary) 60%, #fff); background: color-mix(in srgb, var(--c-secondary) 5%, #fff); padding: 24px; text-align: center; }
.drop.is-over { background: color-mix(in srgb, var(--c-secondary) 12%, #fff); }
.drop input[type=file] { margin: 10px auto; display: block; max-width: 100%; }

/* Farbverwaltung */
.color-new { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.swatch-big { width: 96px; height: 96px; border-radius: 6px; border: 1px solid var(--line, #DADBE0); background: #fff; box-shadow: inset 0 0 0 4px #fff; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pal { border: 1px solid var(--line, #DADBE0); display: flex; flex-direction: column; }
.pal-sw { height: 58px; }
.pal-body { padding: 10px 12px 12px; display: grid; gap: 8px; font-size: 1.3rem; }
.pal-body strong { color: var(--c-primary); }
.pal-body code { font-size: 1.2rem; color: #666; }
.pal-used { font-size: 1.15rem; color: #888; }
.pal form { display: flex; flex-wrap: wrap; gap: 6px; }
.pal select { flex: 1 1 100%; width: 100%; min-height: 34px; border: 1px solid color-mix(in srgb, var(--c-text) 35%, transparent); border-radius: 4px; font-size: 1.25rem; background: var(--c-surface); color: var(--c-heading); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.slot { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line-soft, #EEF0F5); }
.slot i { width: 36px; height: 36px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .1); }
.slot b { display: block; color: var(--c-primary); font-weight: 600; font-size: 1.3rem; }
.slot span { font-size: 1.2rem; color: #888; }
.flow-preview { position: relative; height: 200px; overflow: hidden; background: linear-gradient(-135deg, var(--c-tarif-a), var(--c-tarif-b)); margin: 6px 0 16px; }

/* Protokoll-Reader */
.reader { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.doclist { display: flex; flex-direction: column; border: 1px solid var(--line-soft, #EEF0F5); }
.doclist a { padding: 10px 12px; border-bottom: 1px solid var(--line-soft, #EEF0F5); color: var(--c-primary); font-size: 1.35rem; }
.doclist a.is-active { background: #F7F3F9; color: var(--c-secondary); }
.doc-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.md { color: #333; font-size: 1.45rem; line-height: 1.6; max-width: 76ch; overflow-wrap: anywhere; }
.md h1 { font-size: 2.8rem; margin: 0 0 14px; }
.md h2 { font-size: 2.1rem; margin: 26px 0 10px; font-weight: 400; }
.md h3 { font-size: 1.7rem; margin: 20px 0 8px; font-weight: 600; }
.md ul, .md ol { padding-left: 22px; }
.md li { margin: 3px 0; }
.md li.md-task { list-style: none; margin-left: -20px; display: flex; gap: 8px; }
.md-check { width: 15px; height: 15px; border: 1.5px solid var(--c-primary); border-radius: 3px; flex: none; margin-top: 4px; }
.md-check.is-done { background: var(--c-action); border-color: var(--c-action); }
.md code { background: #F2F4F9; padding: 1px 5px; border-radius: 3px; font-size: .92em; }
.md pre { background: #0F1A33; color: #E8ECF7; padding: 14px; overflow-x: auto; border-radius: 4px; }
.md pre code { background: none; padding: 0; color: inherit; }
.md blockquote { margin: 12px 0; padding: 4px 14px; border-left: 4px solid var(--c-secondary); color: #555; background: #FAF7FB; }
.md hr { border: 0; border-top: 1px solid var(--line, #DADBE0); margin: 22px 0; }
.md-table { overflow-x: auto; }
.md table { border-collapse: collapse; margin: 12px 0; font-size: 1.35rem; }
.md th, .md td { border: 1px solid var(--line, #DADBE0); padding: 7px 10px; text-align: left; }
.md th { background: #F5F7FD; color: var(--c-primary); }

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .stage-grid { grid-template-columns: 1fr; }
  .badge-price { width: 160px; height: 160px; justify-self: start; }
  .badge-price strong { font-size: 4.2rem; }
  .tiles, .services, .cards3 { grid-template-columns: 1fr; }
  .tiles { margin-top: -110px; }
  .awards { grid-template-columns: 1fr 1fr; }
  .ftr-cols { grid-template-columns: 1fr 1fr; }
  .contactbar-in { grid-template-columns: 1fr; text-align: left; }
  .contactbar .num { text-align: left; }
  .solutions, .sol--big, .sol--big ul { grid-template-columns: 1fr; }
  .app, .reader { grid-template-columns: minmax(0, 1fr); }
  .app > *, .reader > * { min-width: 0; }
  .panel input[type=file] { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand-seg { display: none; }
  .brand-name { font-size: 2.2rem; }
  .hdr-meta .meta-links a:not(:last-child) { display: none; }
  .stage { padding: 36px 0 160px; }
  .awards { grid-template-columns: 1fr; }
  .color-new { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Design-Vorlagen in der Verwaltung */
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dcard { border: 1px solid var(--line, #DADBE0); display: flex; flex-direction: column; background: var(--c-surface); }
.dcard.is-active { outline: 3px solid var(--c-action); outline-offset: -3px; }
.dcard-sw { display: grid; grid-template-columns: repeat(10, 1fr); height: 64px; }
.dcard-sw i { display: block; }
.dcard-body { padding: 14px; display: grid; gap: 6px; font-size: 1.3rem; }
.dcard-body h3 { margin: 0; font-size: 1.8rem; font-weight: 400; }
.dcard-body p { margin: 0; }
.flow-preview .flow { height: 120px; }

/* Icons in Dateiablage und Buttons */
.drop svg { width: 40px; height: 40px; color: var(--c-secondary); }
.btn svg { width: 1.8rem; height: 1.8rem; flex: none; }

/* ---------- PDF-Generator ---------- */
.gen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.gen-head .section-title { margin: 0; }
.gen-head .hint { margin: 6px 0 0; color: var(--c-text); opacity: .8; font-size: 1.35rem; }
.gen-tools { display: flex; gap: 8px; }
.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pick {
  --pc: var(--c-action);
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--c-text);
  padding: 16px 18px; background: var(--c-surface); border: 2px solid var(--c-action); border-radius: var(--radius-card, 6px);
  box-shadow: 0 10px 26px -18px rgba(var(--c-primary-rgb), .7); transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease, border-color .2s ease;
}
.pick:hover { transform: translateY(-2px); }
.pick-num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: #fff; font-weight: 700; font-size: 1.6rem; font-family: var(--font-display, inherit); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.pick-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pick-txt b { color: var(--c-heading); font-size: 1.6rem; font-weight: 600; font-family: var(--font-display, inherit); line-height: 1.25; }
.pick-txt small { font-size: 1.3rem; opacity: .85; line-height: 1.4; }
.pick-check { flex: none; width: 28px; height: 28px; border-radius: 6px; border: 2px solid var(--line, #DADBE0); display: grid; place-items: center; }
.pick-check svg { width: 16px; height: 16px; opacity: 0; color: #fff; }
.pick[aria-checked="true"] .pick-check { background: var(--c-action); border-color: var(--c-action); }
.pick[aria-checked="true"] .pick-check svg { opacity: 1; }
.pick[aria-checked="false"] { border-color: var(--line, #DADBE0); box-shadow: none; opacity: .58; }
.pick[aria-checked="false"] .pick-num { background: var(--line, #DADBE0); color: var(--c-text); text-shadow: none; }
.pick[aria-checked="false"] .pick-txt b { text-decoration: line-through; text-decoration-color: rgba(var(--c-text-rgb), .5); }
.gen-always { margin-top: 14px; padding: 12px 16px; border-left: 4px solid var(--c-action); background: color-mix(in srgb, var(--c-surface) 85%, var(--c-action)); color: var(--c-heading); font-size: 1.35rem; }
.has-genbar { padding-bottom: 96px; }
.genbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--c-surface) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line, #DADBE0); }
.genbar .wrap { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.genbar-info { flex: 1; min-width: 0; }
.genbar-info b { color: var(--c-heading); font-size: 1.5rem; }
.genbar-info span { display: block; font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .8; }
.genbar-status { font-size: 1.25rem; }
.genbar-status.is-ok { color: var(--c-action); }
.genbar-status.is-err { color: var(--c-highlight); }
.steps .award { counter-increment: step; }

@media (max-width: 760px) { .picks { grid-template-columns: 1fr; } .genbar .wrap { flex-wrap: wrap; } }

/* ---------- Design-Umschalter im Kopfbereich ---------- */
.design-picker { position: relative; display: flex; align-items: stretch; }
.design-btn { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 1.2rem; color: #666; }
.design-btn:hover { color: var(--c-primary); }
.design-dots { display: inline-flex; }
.design-dots i { width: 9px; height: 9px; border-radius: 50%; margin-left: -2px; border: 1px solid rgba(255,255,255,.85); }
.design-dots i:first-child { margin-left: 0; }
.design-menu {
  position: absolute; left: 0; top: 100%; z-index: 60; width: 270px; max-height: min(70vh, 520px); overflow-y: auto; padding: 6px;
  background: var(--c-surface); color: var(--c-text); border: 1px solid var(--line, #DADBE0); box-shadow: 0 18px 44px -14px rgba(0,0,0,.45); border-radius: var(--radius-card, 6px);
}
.design-menu[hidden] { display: none; }
.design-menu-head { padding: 8px 10px 6px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.design-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 1.35rem; text-align: left; color: var(--c-heading); border-radius: 4px; }
.design-item:hover, .design-item:focus-visible { background: color-mix(in srgb, var(--c-surface) 86%, var(--c-primary)); outline: none; }
.design-item[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--c-action); }
.design-sw { display: inline-flex; border-radius: 4px; overflow: hidden; border: 1px solid rgba(0,0,0,.18); }
.design-sw i { width: 11px; height: 20px; }
.design-tag { font-size: 1.05rem; opacity: .65; }
@media (max-width: 560px) { .design-menu { position: fixed; left: 12px; right: 12px; top: 44px; width: auto; } .design-label { display: none; } }

/* ---------- Protokoll-PDF im Reader ---------- */
.pdf-panel { border: 1px solid var(--line, #DADBE0); padding: 16px 18px; margin: 0 0 18px; background: color-mix(in srgb, var(--c-surface) 92%, var(--c-primary)); }
.pdf-panel h3 { margin: 0 0 4px; font-size: 1.9rem; }
.pdf-panel p { margin: 0 0 12px; font-size: 1.3rem; }
.pdf-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.pdf-chip { display: grid; gap: 6px; padding: 8px; text-align: left; cursor: pointer; font: inherit; font-size: 1.25rem; color: var(--c-heading); background: var(--c-surface); border: 2px solid var(--line, #DADBE0); border-radius: var(--radius-card, 6px); }
.pdf-chip:hover { border-color: var(--c-primary); }
.pdf-chip[aria-checked="true"] { border-color: var(--c-action); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-action) 30%, transparent); }
.pdf-chip-sw { display: flex; height: 22px; border-radius: 3px; overflow: hidden; border: 1px solid rgba(0,0,0,.15); }
.pdf-chip-sw i { flex: 1; }
.pdf-status { font-size: 1.3rem; margin-left: 4px; }
.pdf-status.is-ok { color: var(--c-action); }
.pdf-status.is-err { color: var(--c-highlight); }

/* ---------- Anmeldung & Sicherheit ---------- */
.pk-status { font-size: 1.3rem; display: block; margin-top: 8px; }
.pk-status.is-ok { color: var(--c-action); } .pk-status.is-err { color: var(--c-highlight); }
.qr-box { width: 200px; height: 200px; background: #fff; padding: 6px; border: 1px solid var(--line, #DADBE0); flex: none; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.enroll { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.secret-key { font-family: Consolas, monospace; font-size: 1.5rem; letter-spacing: .08em; padding: 8px 10px; background: color-mix(in srgb, var(--c-surface) 88%, var(--c-primary)); border: 1px dashed var(--line, #DADBE0); word-break: break-all; }
.method-list { display: grid; gap: 10px; }
.method { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line, #DADBE0); cursor: pointer; }
.method input { margin-top: 4px; accent-color: var(--c-action); width: 18px; height: 18px; flex: none; }
.method b { display: block; color: var(--c-heading); font-size: 1.5rem; }
.method small { display: block; font-size: 1.25rem; opacity: .85; margin-top: 2px; }
.method:has(input:checked) { border-color: var(--c-action); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-action) 28%, transparent); }
.code-input { font-size: 2.6rem; letter-spacing: .5em; text-align: center; font-family: Consolas, monospace; }
.step-note { font-size: 1.3rem; opacity: .85; margin: 0 0 12px; }

/* Das HTML-Attribut hidden gilt immer (auch bei Elementen mit eigener display-Regel) */
[hidden] { display: none !important; }

/* ---------- Designpalette: optionale Haken ---------- */
.pick-opts { grid-column: 1 / -1; padding: 14px 18px; border: 2px dashed var(--c-action); border-radius: var(--radius-card, 6px); background: color-mix(in srgb, var(--c-surface) 92%, var(--c-primary)); display: grid; gap: 8px; transition: opacity .2s; }
.pick-opts-head { display: grid; gap: 2px; }
.pick-opts-head b { color: var(--c-heading); font-size: 1.6rem; font-family: var(--font-display, inherit); }
.pick-opts-head span { font-size: 1.25rem; opacity: .85; }
.pick-opt { display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; cursor: pointer; border-radius: 4px; }
.pick-opt:hover { background: color-mix(in srgb, var(--c-surface) 86%, var(--c-primary)); }
.pick-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-opt-box { flex: none; width: 24px; height: 24px; margin-top: 1px; border: 2px solid var(--line, #B8BCD0); border-radius: 6px; background: var(--c-surface); display: grid; place-items: center; }
.pick-opt input:checked + .pick-opt-box { background: var(--c-action); border-color: var(--c-action); }
.pick-opt input:checked + .pick-opt-box::after { content: ""; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.pick-opt input:focus-visible + .pick-opt-box { outline: 3px solid color-mix(in srgb, var(--c-action) 50%, transparent); outline-offset: 2px; }
.pick-opt input:disabled + .pick-opt-box { opacity: .5; }
.pick-opt-txt { display: grid; gap: 2px; }
.pick-opt-txt b { color: var(--c-heading); font-size: 1.5rem; }
.pick-opt-txt small { font-size: 1.25rem; opacity: .85; line-height: 1.4; }

/* Auswahl mit genau einer Wahl (Radio) */
.pick-opt-box--radio { border-radius: 50%; }
.pick-opt input[type=radio]:checked + .pick-opt-box--radio { background: var(--c-surface); border-color: var(--c-action); }
.pick-opt input[type=radio]:checked + .pick-opt-box--radio::after { content: ""; width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--c-action); transform: none; }

.pick-opts-sub { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line, #DADBE0); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.pick-opts-head + .pick-opts-sub { border-top: 0; margin-top: 0; padding-top: 4px; }

/* „Stark responsive“: verblasst, solange die Kachel nicht gewählt ist */
.pick-opts.is-off { opacity: .42; }
.pick-opts.is-off:hover, .pick-opts.is-off:focus-within { opacity: .85; }

/* Vorschau des PDFs */
.genbar-btns { display: flex; gap: 10px; flex: none; }
.pv-open { overflow: hidden; }
.pv { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: color-mix(in srgb, var(--c-page-bg) 92%, #000); }
.pv[hidden] { display: none; }
.pv-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: var(--c-surface); border-bottom: 1px solid var(--line, #DADBE0); box-shadow: 0 6px 24px -14px rgba(0,0,0,.5); }
.pv-title { color: var(--c-heading); font-size: 1.7rem; font-family: var(--font-display, inherit); }
.pv-meta { font-size: 1.25rem; opacity: .75; }
.pv-spacer { flex: 1; }
.pv-frame { flex: 1; width: 100%; border: 0; background: #525659; }
.pv-hint { margin: 0; padding: 6px 16px; font-size: 1.15rem; opacity: .7; background: var(--c-surface); }
@media (max-width: 760px) { .genbar-btns { width: 100%; } .genbar-btns .btn { flex: 1; } }

/* Format der Konfigurationsdatei: Kontrollkästchen in einem Raster */
.pick-opts--grid[hidden] { display: none; }
.pick-opts-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 14px; }
@media (max-width: 760px) { .pick-opts-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .pick-opts-list { grid-template-columns: 1fr; } }

/* Templates: Farbpaletten als Kacheln mit Vorschau */
.tpl-box[hidden] { display: none; }
.tpl-vals { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.tpl-card { display: grid; gap: 8px; padding: 10px; text-align: left; cursor: pointer; font: inherit; color: var(--c-text); background: var(--c-surface); border: 2px solid var(--line, #DADBE0); border-radius: var(--radius-card, 6px); transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease; }
.tpl-card:hover { transform: translateY(-2px); border-color: var(--c-primary); }
.tpl-card[aria-checked="true"] { border-color: var(--c-action); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-action) 28%, transparent); }
.tpl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tpl-name { color: var(--c-heading); font-size: 1.45rem; font-family: var(--font-display, inherit); line-height: 1.2; }
.tpl-check { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line, #B8BCD0); display: grid; place-items: center; }
.tpl-check svg { width: 13px; height: 13px; opacity: 0; color: #fff; }
.tpl-card[aria-checked="true"] .tpl-check { background: var(--c-action); border-color: var(--c-action); }
.tpl-card[aria-checked="true"] .tpl-check svg { opacity: 1; }
.tpl-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tpl-sw { display: grid; gap: 2px; min-width: 0; }
.tpl-sw i { display: block; height: 34px; border-radius: 5px; border: 1px solid rgba(128,128,128,.35); }
.tpl-sw em { display: none; font-style: normal; font-family: Consolas, Menlo, monospace; font-size: .98rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: clip; opacity: .85; }
.tpl-box.show-hex .tpl-hex, .tpl-box.show-rgb .tpl-rgb { display: block; }
@media (max-width: 900px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tpl-grid { grid-template-columns: 1fr; } }

.tpl-rgb span { display: block; }
.tpl-rgb span::before { content: attr(data-c) " "; opacity: .5; }

/* Feste Kachel „Cyber Security“: immer dabei */
.pick--locked { cursor: default; border: 2px dashed var(--c-action) !important; opacity: 1 !important; box-shadow: none; background: color-mix(in srgb, var(--c-surface) 92%, var(--c-primary)); }
.pick--locked:hover { transform: none; }
.pick-num--lock { background: var(--c-highlight, #E71D36) !important; color: #fff; }
.pick-num--lock svg { width: 20px; height: 20px; }
.pick-lock { flex: none; font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-action); border: 1.5px solid var(--c-action); border-radius: 999px; padding: 3px 9px; }

/* ===== Generator: drei Bereiche (Grundlagen, Design, Layout) mit Navigation ===== */
html .stage.stage--compact { min-height: 0 !important; height: auto !important; padding: 28px 0 34px !important; display: block !important; }
html .stage.stage--compact .stage-grid { min-height: 0 !important; text-align: left !important; justify-items: start !important; }
html .stage.stage--compact .stage-copy { text-align: left !important; margin: 0 !important; max-width: none !important; }
html .stage.stage--compact h1 { text-align: left !important; margin-left: 0 !important; }
html .stage.stage--compact .lead { text-align: left !important; margin-left: 0 !important; }
.stage--compact h1 { font-size: clamp(2.6rem, 4.4vw, 3.8rem); }
.stage--compact .lead { font-size: 1.5rem; margin: 10px 0 0; max-width: 40em; }
.stage--compact .stage-actions, .stage--compact .stage-deco { display: none !important; }
.stage--compact .stage-grid { grid-template-columns: 1fr auto; gap: 20px; }
.stage--compact .stage-visual > :not(.badge-price) { display: none !important; }
.stage--compact .badge-price { transform: scale(.74); transform-origin: right center; }
#abschnitte > .wrap { max-width: 1180px; }
.gen-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 28px; align-items: start; }
.gen-steps { position: sticky; top: 14px; display: grid; gap: 10px; }
.gen-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; font: inherit; color: var(--c-text); background: var(--c-surface); border: 2px solid var(--line, #DADBE0); border-radius: var(--radius-card, 8px); cursor: pointer; transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease; }
.gen-step:hover { border-color: var(--c-primary); }
.gen-step-num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c-text) 14%, transparent); color: var(--c-heading); font-weight: 700; font-size: 1.5rem; }
.gen-step.is-active { border-color: var(--c-action); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-action) 24%, transparent); }
.gen-step.is-active .gen-step-num { background: var(--c-action); color: #fff; }
.gen-step.is-done .gen-step-num { background: var(--c-primary); color: #fff; }
.gen-step-txt b { display: block; color: var(--c-heading); font-size: 1.6rem; line-height: 1.2; }
.gen-step-txt small { display: block; font-size: 1.2rem; opacity: .78; margin-top: 2px; }
.gen-step--locked { cursor: default; border-style: dashed; border-color: var(--c-highlight, #E71D36); background: color-mix(in srgb, var(--c-surface) 92%, var(--c-highlight, #E71D36)); }
.gen-step--locked:hover { border-color: var(--c-highlight, #E71D36); }
.gen-step-num--lock { background: var(--c-highlight, #E71D36) !important; color: #fff !important; }
.gen-step-num--lock svg { width: 18px; height: 18px; }
.gen-areahead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.gen-areahead .section-title { margin: 0; }
.gen-areahead .hint { margin: 6px 0 0; color: var(--c-text); opacity: .8; font-size: 1.35rem; max-width: 48em; }
.gen-area[hidden] { display: none; }
.gen-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.gen-pager-end { display: flex; gap: 10px; flex-wrap: wrap; }
.dsg-box .tpl-hex { display: block; }
.tpl-strip--dsg { grid-template-columns: repeat(6, 1fr); }
.dsg-card .dsg-line { display: block; font-size: 1.2rem; line-height: 1.4; opacity: .92; }
.dsg-card .dsg-line b { color: var(--c-heading); text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; margin-right: 4px; }
@media (max-width: 860px) {
  .gen-shell { grid-template-columns: 1fr; gap: 12px; }
  .gen-steps { position: sticky; top: 0; z-index: 25; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 0; background: var(--c-page-bg); }
  .gen-step { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 10px; }
  .gen-step-num { width: 26px; height: 26px; font-size: 1.3rem; }
  .gen-step-txt b { font-size: 1.4rem; }
  .gen-step-txt small { font-size: 1.05rem; }
  .gen-step--locked { grid-column: 1 / -1; flex-direction: row; align-items: center; padding: 6px 10px; }
  .gen-step--locked small { display: inline; margin-left: 6px; }
  .gen-step--locked .gen-step-txt b { display: inline; }
  .stage--compact .stage-grid { grid-template-columns: 1fr; }
  .stage--compact .badge-price { display: none; }
}

@media (max-width: 860px) { html .stage.stage--compact { padding: 20px 0 84px !important; } .stage--compact .lead { font-size: 1.35rem; } }

/* Kompakter Kopf: die Designs behalten Farben, Schrift und Effekt, die große Bühne entfällt */
html .stage.stage--compact .stage-visual, html .stage.stage--compact .flow { display: none !important; }
html .stage.stage--compact .stage-grid { grid-template-columns: 1fr !important; }
html .stage.stage--compact h1 { font-size: clamp(2.6rem, 4.2vw, 3.6rem) !important; line-height: 1.12 !important; max-width: none !important; }
html .stage.stage--compact .lead { max-width: 46em !important; }
@media (max-width: 860px) { html .stage.stage--compact { padding: 18px 0 22px !important; } }

html .stage.stage--compact::before, html .stage.stage--compact::after { display: none !important; }

html[data-design="pistazie"] .stage.stage--compact .fx { display: none !important; }

/* Feste Kachel „Rechtliches“ */
.gen-step--legal { border-color: var(--c-primary) !important; background: color-mix(in srgb, var(--c-surface) 92%, var(--c-primary)); }
.gen-step--legal .gen-step-num--lock, .pick--legal .pick-num--lock { background: var(--c-primary) !important; font-weight: 700; font-size: 1.6rem; }
.pick--legal { border-color: var(--c-primary) !important; }

/* Cyber Security: Inhalt der Stufen, per Klick zu öffnen */
.cy-box { border-color: var(--cyc, var(--c-primary)) !important; }
.cy-box.is-off { opacity: .55; }
.cy-box.is-off:hover, .cy-box.is-off:focus-within { opacity: .9; }
.cy-det > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.4rem; color: var(--c-heading); }
.cy-det > summary::-webkit-details-marker { display: none; }
.cy-det > summary::after { content: "▸"; margin-left: auto; transition: transform .15s ease; }
.cy-det[open] > summary::after { transform: rotate(90deg); }
.cy-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyc, var(--c-primary)); flex: none; }
.cy-sum { font-size: 1.2rem; opacity: .8; }
.cy-lead { margin: 10px 0 8px; font-size: 1.25rem; opacity: .85; }
.cy-all { margin-bottom: 6px; }
.cy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.cy-comp { min-width: 0; border-top: 1px solid var(--line, #DADBE0); padding: 4px 0; }
.cy-ro { cursor: default; }
.cy-items > summary { cursor: pointer; font-size: 1.1rem; opacity: .75; margin: 2px 0 0 34px; }
.cy-items ul { margin: 4px 0 6px 34px; padding-left: 14px; font-size: 1.15rem; line-height: 1.45; }
.cy-box--min .cy-items > summary, .cy-box--min .cy-items ul { margin-left: 0; }
@media (max-width: 700px) { .cy-list { grid-template-columns: 1fr; } }

/* 60-30-10 Templates: Karten mit Farbbeispiel, Filter und Vorschau */
.dos-tools { display: grid; gap: 8px; margin-bottom: 8px; }
.dos-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.dos-cat { font: inherit; font-size: 1.2rem; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--line, #DADBE0); background: var(--c-surface); color: var(--c-text); cursor: pointer; }
.dos-cat.is-on { border-color: var(--cyc); background: color-mix(in srgb, var(--cyc) 14%, var(--c-surface)); color: var(--c-heading); font-weight: 700; }
.dos-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dos-status { font-size: 1.15rem; opacity: .8; }
.dos-status.is-warn { color: var(--c-highlight, #D92D20); opacity: 1; font-weight: 600; }
.dos-status.is-ok { color: var(--c-action); opacity: 1; font-weight: 600; }
.dos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 72vh; overflow: auto; padding: 2px 4px 4px 2px; }
.dos-card { display: grid; gap: 7px; padding: 10px; border: 2px solid var(--line, #DADBE0); border-radius: var(--radius-card, 8px); background: var(--c-surface); min-width: 0; }
.dos-card[hidden] { display: none; }
.dos-card.is-sel { border-color: var(--cyc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyc) 22%, transparent); }
.dos-head { display: flex; align-items: flex-start; gap: 8px; }
.dos-pick { display: flex; gap: 8px; align-items: flex-start; flex: 1; min-width: 0; cursor: pointer; }
.dos-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dos-pick input:checked + .pick-opt-box { background: var(--c-action); border-color: var(--c-action); }
.dos-pick input:focus-visible + .pick-opt-box { outline: 3px solid var(--c-action); outline-offset: 2px; }
.dos-name { min-width: 0; }
.dos-name b { display: block; color: var(--c-heading); font-size: 1.35rem; line-height: 1.25; overflow-wrap: anywhere; }
.dos-name small { display: block; font-size: 1.05rem; opacity: .75; }
.dos-view { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1.5px solid var(--line, #DADBE0); background: var(--c-surface); color: var(--c-heading); cursor: pointer; }
.dos-view:hover { border-color: var(--cyc); color: var(--cyc); }
.dos-view svg { width: 18px; height: 18px; }
.dos-bar { display: flex; height: 16px; border-radius: 5px; overflow: hidden; border: 1px solid rgba(128,128,128,.35); }
.dos-bar i, .dos-col i { display: block; }
.dos-bar i.is-fx, .dos-col i.is-fx { background: repeating-linear-gradient(135deg, #fff 0 4px, #c9ccd6 4px 6px); }
.dos-cols { display: grid; gap: 3px; }
.dos-col { display: flex; align-items: center; gap: 7px; min-width: 0; }
.dos-col i { width: 16px; height: 16px; flex: none; border-radius: 4px; border: 1px solid rgba(128,128,128,.35); }
.dos-col span { min-width: 0; font-size: 1.1rem; line-height: 1.25; }
.dos-col b { display: block; color: var(--c-heading); font-size: 1.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dos-col em { font-style: normal; opacity: .75; font-family: Consolas, Menlo, monospace; font-size: 1.02rem; }
@media (max-width: 980px) { .dos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dos-grid { grid-template-columns: 1fr; max-height: 64vh; } }

/* Gruppenüberschriften und Farbpunkte in den Schritten */
.picks > .pick-grp { grid-column: 1 / -1; margin: 14px 0 -2px; padding: 0 2px 5px; font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; color: var(--c-heading); border-bottom: 2px solid var(--line, #DADBE0); }
.picks > .pick-grp:first-child { margin-top: 0; }
.pick-dots { display: flex; gap: 6px; margin-top: 4px; }
.pick-dots i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(128,128,128,.4); display: block; }

/* Verweis auf das Protokoll, Auswahl prüfen, Über diesen Generator */
.pick-ref { display: block; margin-top: 4px; font-size: 1.05rem; opacity: .55; letter-spacing: .01em; }
.rv-body { flex: 1; overflow: auto; padding: 16px 20px 40px; background: var(--c-page-bg); }
.rv-lead { margin: 0 0 8px; font-size: 1.45rem; color: var(--c-text); }
.rv-always { margin: 0 0 14px; padding: 10px 12px; font-size: 1.25rem; border-left: 4px solid var(--c-action); background: var(--c-surface); border-radius: 0 8px 8px 0; }
.rv-area { margin-bottom: 18px; }
.rv-area h3 { margin: 0 0 6px; font-size: 1.55rem; color: var(--c-heading); font-family: var(--font-display, inherit); border-bottom: 2px solid var(--line, #DADBE0); padding-bottom: 4px; }
.rv-area h3 small { font-size: 1.2rem; font-weight: 400; opacity: .7; margin-left: 6px; }
.rv-none { font-size: 1.15rem; font-weight: 700; color: var(--c-highlight, #D92D20); margin-left: 8px; }
.rv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
.rv-grp { grid-column: 1 / -1; margin: 8px 0 2px; font-size: 1.15rem; font-weight: 700; letter-spacing: .03em; opacity: .75; }
.rv-item { display: flex; align-items: flex-start; gap: 9px; padding: 5px 4px; cursor: pointer; border-radius: 6px; min-width: 0; }
.rv-item:hover { background: var(--c-surface); }
.rv-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-item input:checked + .pick-opt-box { background: var(--c-action); border-color: var(--c-action); }
.rv-item input:focus-visible + .pick-opt-box { outline: 3px solid var(--c-action); outline-offset: 2px; }
.rv-item:not(.is-on) .rv-txt b { font-weight: 400; opacity: .7; }
.rv-txt b { font-size: 1.3rem; color: var(--c-heading); line-height: 1.3; overflow-wrap: anywhere; }
@media (max-width: 700px) { .rv-list { grid-template-columns: 1fr; } }
.about { padding: 8px 0 36px; }
.about .wrap > h2 { margin-bottom: 6px; }
.about-lead { margin: 0 0 16px; max-width: 80ch; font-size: 1.5rem; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.about-card { padding: 16px 18px; border: 1px solid var(--line, #DADBE0); border-radius: var(--radius-card, 8px); background: var(--c-surface); }
.about-card h3 { margin: 0 0 6px; font-size: 1.6rem; color: var(--c-heading); font-family: var(--font-display, inherit); }
.about-card p { margin: 0 0 6px; font-size: 1.3rem; line-height: 1.5; }
.about-card table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.about-card th, .about-card td { text-align: left; vertical-align: top; padding: 4px 8px 4px 0; border-top: 1px solid var(--line, #DADBE0); }
.about-card th { white-space: nowrap; color: var(--c-heading); font-weight: 600; }
.rv-item input:checked + .pick-opt-box::after, .dos-pick input:checked + .pick-opt-box::after { content: ""; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.pass-len { border: 0; margin: 0; padding: 0; }
.pass-len legend { padding: 0 0 6px; font-size: 1.35rem; color: var(--c-heading); }
.cy-box.is-off.is-off { opacity: .55; }

/* Gruppenüberschrift mit „Alles auswählen“ */
.picks > .pick-grp { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grp-all { display: inline-flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 600; letter-spacing: 0; cursor: pointer; color: var(--c-text); }
.grp-all input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.grp-all .pick-opt-box { width: 20px; height: 20px; }
.grp-all input:checked + .pick-opt-box { background: var(--c-action); border-color: var(--c-action); }
.grp-all input:checked + .pick-opt-box::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.grp-all input:focus-visible + .pick-opt-box { outline: 3px solid var(--c-action); outline-offset: 2px; }

/* ===== Übersichtlicher nach den Layout-Regeln des Blatts =====
   Eine Signalfarbe für „gewählt“, Abschnittsfarbe nur als Streifen, Gruppieren mit Abstand statt Rahmen,
   Text lesbar statt durchgestrichen, eine Haupt-Aktion, „Kompakt“ blendet Details aus (nichts geht verloren). */
.pick { position: relative; border: 1.5px solid var(--line, #DADBE0); box-shadow: none; padding: 14px 16px 14px 18px; gap: 12px; }
.pick::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pc); }
.pick:hover { transform: none; border-color: color-mix(in srgb, var(--c-action) 45%, var(--line, #DADBE0)); }
.pick-num { width: 30px; height: 30px; font-size: 1.3rem; background: transparent; color: var(--c-text); border: 1.5px solid var(--line, #DADBE0); text-shadow: none; }
.pick[aria-checked="true"] { border-color: var(--c-action); background: color-mix(in srgb, var(--c-action) 5%, var(--c-surface)); box-shadow: none; }
.pick[aria-checked="true"] .pick-num { background: var(--c-action); border-color: var(--c-action); color: #fff; }
.pick[aria-checked="false"] { opacity: .82; }
.pick[aria-checked="false"] .pick-num { background: transparent; }
.pick[aria-checked="false"] .pick-txt b { text-decoration: none; color: var(--c-text); font-weight: 600; }
.pick--locked::before { display: none; }
.picks { gap: 10px; }
.pick-opts { border-style: solid; border-width: 1.5px; }
.gen-areahead .hint { max-width: 70ch; }
/* Ansicht: Kompakt / Ausführlich */
.gen-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gen-view { display: inline-flex; border: 1.5px solid var(--line, #DADBE0); border-radius: 999px; padding: 2px; margin-right: 4px; background: var(--c-surface); }
.gen-view-btn { font: inherit; font-size: 1.25rem; font-weight: 600; padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--c-text); cursor: pointer; }
.gen-view-btn[aria-pressed="true"] { background: var(--c-heading); color: var(--c-surface); }
.gen-view-btn:focus-visible { outline: 3px solid var(--c-action); outline-offset: 2px; }
.gen-shell--compact .pick .pick-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gen-shell--compact .pick .pick-ref { display: none; }
.gen-shell--compact .pick { padding-top: 12px; padding-bottom: 12px; }
/* Handy: Schritte als wischbare Leiste, eine volle Haupt-Aktion */
@media (max-width: 760px) {
  .gen-steps { position: sticky; top: 0; z-index: 25; display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 10px; margin: 0 -2px; background: var(--c-page-bg); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gen-steps::-webkit-scrollbar { display: none; }
  .gen-step { flex: 0 0 auto; padding: 7px 12px 7px 8px; gap: 8px; scroll-snap-align: start; border-width: 1.5px; }
  .gen-step small { font-size: 1.05rem; }
  .gen-areahead { gap: 10px; }
  .genbar .wrap { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .genbar-info { flex-basis: 100%; }
  .genbar-info span { display: none; }
  .genbar-btns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .genbar-btns [data-gen-pdf] { grid-column: 1 / -1; order: -1; }
  .genbar-btns .btn { width: 100%; justify-content: center; }
}
@media (max-width: 760px) {
  .gen-step { max-width: 180px; }
  .gen-step small { display: block; max-width: 132px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .genbar-btns .btn:not([data-gen-pdf]) { padding-top: 7px; padding-bottom: 7px; font-size: 1.35rem; }
}
/* Feste Kacheln behalten ihr farbiges Symbol; Kacheln mit eigenem Auswahlkasten nehmen die ganze Breite ein */
.pick--locked .pick-num.pick-num--lock { width: 40px; height: 40px; border: 0; color: #fff; }
.pick--locked { border: 1.5px solid color-mix(in srgb, var(--c-action) 55%, var(--line, #DADBE0)) !important; }
.gen-area[data-gen-area=cyber] .picks > .pick, .gen-area[data-gen-area=recht] .picks > .pick, .picks > .pick--locked { grid-column: 1 / -1; }

/* Design-Grundsatz: Komponenten in Gruppen */
.dg-grp { margin-top: 10px; }
.dg-grp-h { font-size: 1.2rem; font-weight: 700; letter-spacing: .03em; color: var(--c-heading); padding-bottom: 4px; border-bottom: 1px solid var(--line, #DADBE0); margin-bottom: 4px; }
.dg-grp-h span { font-weight: 400; opacity: .65; }
.dg-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 14px; }
.dg-opt .pick-opt-txt b { font-weight: 600; font-size: 1.3rem; }
.dg-opt .pick-opt-txt small { font-size: 1.08rem; }
@media (max-width: 980px) { .dg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dg-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   Stand 28.11.2026 – Anpassung an die eigenen Layout-Vorgaben des Blatts
   Colour Twister als fester Hintergrund · Kacheln so breit wie ihr Text, aufklappbar ·
   Upload im Kopfbereich · eigene PDF-Vorschau · Rückmeldung an Knöpfen · Tablet-Ansicht
   ========================================================================== */

/* ---------- Colour Twister: fester Bestandteil des Hintergrunds (Original-Grafik, Farben wechseln in den Farbübergängen) ---------- */
.twister--bg { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; height: clamp(104px, 14.0625vw, 240px); pointer-events: none; }
.twister--bg svg { display: block; width: 100%; height: 100%; }
.twister--bg .twister-mirage { display: none; }   /* Fata Morgana: nur in Designs, die sie zeigen (standard.css) */
.has-genbar .twister--bg { bottom: 34px; }
/* Dunkle Designs (Nightshift): die hellen Schleier der Grafik treten zurück, das Farbband bleibt */
[data-mode="dark"] .twister--bg [data-tw="veil"] { opacity: .12; }
.flow.twister svg, .flow > svg { display: block; width: 100%; height: 100%; }
main, .ftr, .install-note { position: relative; z-index: 1; }
@media print { .twister--bg { display: none; } }

/* ---------- Kopfbereich: Dossier-ZIP ganz oben hochladen ---------- */
.hdr-meta-end { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
.hdr-up { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hdr-up[hidden] { display: none; }
.hdr-up-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; font: inherit; font-weight: 600; color: var(--c-action); background: transparent; border: 0; border-left: 1px solid var(--line, #DADBE0); border-right: 1px solid var(--line, #DADBE0); cursor: pointer; white-space: nowrap; }
.hdr-up-btn svg { width: 16px; height: 16px; flex: none; }
.hdr-up-btn:hover { background: color-mix(in srgb, var(--c-action) 9%, transparent); }
.hdr-up .dos-status { font-size: 1.15rem; max-width: 34ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--c-text); opacity: .8; }
.hdr-up.is-ok .dos-status { color: var(--c-action); opacity: 1; font-weight: 600; }
.hdr-up.is-warn .dos-status { color: var(--c-highlight); opacity: 1; font-weight: 600; }
.hdr-up.is-drag .hdr-up-btn { background: var(--c-action); color: #fff; }
.dos-status--in { margin: 0 0 8px; font-size: 1.25rem; }
.dos-status--in.is-ok { color: var(--c-action); font-weight: 600; }
.dos-status--in.is-warn { color: var(--c-highlight); font-weight: 600; }

/* ---------- Kacheln: nicht viel größer als ihr Text; aufgeklappt folgen Auswahl und Erläuterung ---------- */
.picks { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.picks > .pick-grp { flex: 0 0 100%; margin: 12px 0 0; padding: 0 2px 2px; border-bottom: 0; }
.pick-item { --r: 10px; display: inline-flex; align-items: stretch; max-width: 100%; min-width: 0; }
.pick-item > .pick { width: auto; min-width: 0; min-height: 44px; padding: 6px 12px 6px 14px; gap: 9px; border-radius: var(--r) 0 0 var(--r); border-right-width: 0; }
.pick-item > .pick::before { top: 8px; bottom: 8px; width: 3px; }
.pick-item > .pick .pick-check { width: 22px; height: 22px; border-radius: 6px; }
.pick-item > .pick .pick-check svg { width: 13px; height: 13px; }
.pick-item > .pick .pick-txt { display: block; }
.pick-item > .pick .pick-txt b { font-size: 1.4rem; line-height: 1.25; overflow-wrap: anywhere; }
.pick-item > .pick .pick-num { display: none; }
.pick-item > .pick[aria-checked="false"] { opacity: 1; }
.pick-item > .pick[aria-checked="false"] .pick-txt b { color: var(--c-text); font-weight: 500; }
.pick-item > .pick--locked, .pick-item > .pick--plain { cursor: default; padding-left: 10px; }
.pick-item > .pick--locked::before, .pick-item > .pick--plain::before { display: none; }
.pick-item > .pick--plain { border: 1.5px solid var(--line, #DADBE0); border-right-width: 0; }
.pick-item > .pick--locked .pick-num.pick-num--lock { display: grid; width: 26px; height: 26px; }
.pick-item > .pick--locked .pick-num--lock svg { width: 14px; height: 14px; }
.pick-lock { font-size: 1rem; padding: 2px 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pick-more { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; justify-content: center; padding: 0 11px; font: inherit; font-size: 1.2rem; font-weight: 600; color: var(--c-heading); background: var(--c-surface); border: 1.5px solid var(--line, #DADBE0); border-radius: 0 var(--r) var(--r) 0; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.pick-more:hover { background: color-mix(in srgb, var(--c-action) 8%, var(--c-surface)); border-color: color-mix(in srgb, var(--c-action) 45%, var(--line, #DADBE0)); }
.pick-more svg { transition: transform .2s ease; flex: none; }
.pick-more-l:empty { display: none; }
.pick-item.is-open > .pick-more { background: var(--c-heading); border-color: var(--c-heading); color: var(--c-surface); }
.pick-item.is-open > .pick-more svg { transform: rotate(180deg); }
.pick[aria-checked="true"] + .pick-more { border-color: var(--c-action); }
.pick-item.is-open > .pick[aria-checked="true"] + .pick-more { border-color: var(--c-heading); }

/* Aufgeklappte Fläche. Verschachtelte Ecken: innerer Radius = äußerer Radius – Innenabstand (18 – 12 = 6) */
.pick-panel { --r-out: 18px; --pad: 12px; --r-in: calc(var(--r-out) - var(--pad)); flex: 0 0 100%; min-width: 0; padding: var(--pad); border-radius: var(--r-out); background: color-mix(in srgb, var(--c-surface) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1.5px solid var(--c-heading); box-shadow: 0 18px 40px -28px rgba(var(--c-primary-rgb), .65); }
.pick-panel[hidden] { display: none; }
.pick-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 2px 4px 10px; }
.pick-desc { margin: 0; font-size: 1.35rem; line-height: 1.45; max-width: 86ch; color: var(--c-text); }
.pick-panel .pick-ref { margin: 0; white-space: nowrap; opacity: .7; }
.pick-slot { display: grid; gap: 10px; margin-bottom: 12px; }
.pick-slot:empty { display: none; }
.pick-slot > .pick-opts { margin: 0; padding: 12px 14px; border: 0 !important; border-radius: var(--r-in); background: color-mix(in srgb, var(--c-heading) 5%, var(--c-surface)); }
.exp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 22px; padding: 4px; }
.exp[hidden] { display: none; }
.exp-col > summary { display: flex; align-items: center; gap: 8px; list-style: none; padding: 0 0 8px; color: var(--c-heading); font-family: var(--font-display, inherit); font-size: 1.45rem; font-weight: 600; line-height: 1.25; pointer-events: none; }
.exp-col > summary::-webkit-details-marker { display: none; }
.exp-col > summary > svg { display: none; margin-left: auto; flex: none; transition: transform .2s ease; }
.exp-n { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--c-heading); color: var(--c-surface); font-family: var(--font-body, inherit); font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.exp-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.exp-col li { position: relative; padding-left: 14px; font-size: 1.25rem; line-height: 1.5; color: var(--c-text); }
.exp-col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-action); }
@starting-style { .pick-panel { opacity: 0; translate: 0 -6px; } }
.pick-panel { transition: opacity .22s ease, translate .22s ease; }

/* ---------- Vorschau: Seiten als Bilder, mit Platzhaltern während des Ladens ---------- */
.pv-pages { flex: 1; min-height: 0; overflow: auto; padding: 16px 12px 28px; background: #525659; display: flex; flex-direction: column; align-items: center; gap: 14px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pv-pages[hidden] { display: none; }
.pvp { flex: none; width: calc(min(100%, 880px) * var(--pv-zoom, 1)); max-width: none; background: #fff; box-shadow: 0 6px 22px -8px rgba(0, 0, 0, .7); position: relative; overflow: hidden; }
.pv-pages.is-zoomed { align-items: flex-start; }
.pvp canvas { display: block; width: 100%; height: 100%; }
.pvp.is-loading { background: linear-gradient(100deg, #ECEEF2 40%, #F8F9FB 50%, #ECEEF2 60%) 0 0 / 220% 100%; animation: pvp-load 1.3s linear infinite; }
.pvp.is-loading::after { content: ""; position: absolute; left: 10%; right: 10%; top: 9%; height: 3.2%; border-radius: 4px; background: rgba(0, 0, 0, .08); box-shadow: 0 2.6em 0 rgba(0, 0, 0, .05), 0 5.2em 0 rgba(0, 0, 0, .05), 0 7.8em 0 rgba(0, 0, 0, .05); }
.pvp.is-failed { display: grid; place-items: center; padding: 20px; color: #7a1c1c; font-size: 1.3rem; text-align: center; }
@keyframes pvp-load { to { background-position: -220% 0; } }
.pv-frame[hidden] { display: none; }
.pv-zoom { display: inline-flex; align-items: center; gap: 4px; }
.pv-z { width: 36px; height: 36px; display: grid; place-items: center; font: inherit; font-size: 2rem; line-height: 1; color: var(--c-heading); background: transparent; border: 1.5px solid var(--line, #DADBE0); border-radius: 50%; cursor: pointer; }
.pv-z:hover { border-color: var(--c-action); }
.pv-page { min-width: 12ch; text-align: center; font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--c-text); }
.pv-fail { flex: 1; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 28px 20px; text-align: center; font-size: 1.4rem; background: var(--c-page-bg); }
.pv-fail[hidden] { display: none; }
.pv-fail b { color: var(--c-heading); font-size: 1.8rem; font-family: var(--font-display, inherit); }

/* ---------- Rückmeldung an Knöpfen: Ladezustand (Kreis im Knopf) und Erfolg (Häkchen) ---------- */
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: btn-spin .7s linear infinite; }
.btn--line.is-busy::after { border-color: color-mix(in srgb, var(--c-heading) 30%, transparent); border-top-color: var(--c-heading); }
.btn.is-done::before { content: "✓ "; font-weight: 700; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---------- Feinschliff nach den Regeln des Blatts ---------- */
.stage h1, .section-title, .netband h2, .about .wrap > h2 { text-wrap: balance; }
/* Maßstab: ein Wort riesig, der Zusatz klein (keine mittleren Größen) */
.h1-sub { display: block; margin-top: .4em; font-size: clamp(1.5rem, .3em, 2.2rem); line-height: 1.2; letter-spacing: .01em; font-weight: 400; opacity: .92; }
html .stage.stage--compact { padding: 22px 0 26px !important; }
html .stage.stage--compact .lead { font-size: 1.4rem !important; margin-top: 8px !important; }
[data-gen-count], [data-gen-total], [data-step-count], .cy-sum, .genbar-info b { font-variant-numeric: tabular-nums; }
.awards.steps { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.steps .award .score { font-size: 1.9rem; font-weight: 400; margin: 2px 0 6px; overflow-wrap: anywhere; }
.steps .award strong { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.netband { padding-bottom: 56px; }
.netband h2 { text-align: left; margin-bottom: 22px; }
.genbar { -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); background: color-mix(in srgb, var(--c-surface) 80%, transparent); }

/* ---------- Tablet-Ansicht (768 bis 1023 px): eigene Anordnung, zwei Spalten, Ziele für den Finger ---------- */
@media (min-width: 761px) and (max-width: 1023px) {
  .gen-shell { grid-template-columns: 1fr; gap: 14px; }
  .gen-steps { position: sticky; top: 0; z-index: 25; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px 0; background: color-mix(in srgb, var(--c-page-bg) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .gen-step { flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; min-height: 48px; }
  .gen-step-txt small { display: none; }
  .exp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  .awards.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pick-item > .pick, .pick-more { min-height: 48px; }
  .hdr-up .dos-status { max-width: 22ch; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .awards.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Mobile Website ---------- */
@media (max-width: 760px) {
  .exp { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .exp-col { border-top: 1px solid var(--line, #DADBE0); }
  .exp-col > summary { pointer-events: auto; cursor: pointer; padding: 12px 4px; min-height: 44px; }
  .exp-col > summary > svg { display: block; }
  .exp-col[open] > summary > svg { transform: rotate(180deg); }
  .exp-col ul { padding: 0 4px 14px; }
  .exp-col li { font-size: 1.35rem; }
  .pick-item { display: flex; width: 100%; }
  .pick-item > .pick { flex: 1; }
  .pick-item > .pick .pick-txt b { font-size: 1.45rem; }
  .pick-panel { --r-out: 16px; --pad: 10px; }
  .awards.steps { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hdr-meta .wrap { gap: 4px; }
  .hdr-up .dos-status { display: none; }
  .hdr-up.is-ok .dos-status, .hdr-up.is-warn .dos-status { display: block; max-width: 11ch; }
  .hdr-up-btn { min-height: 44px; padding: 0 10px; }
  .hdr-meta .seg a, .design-btn { min-height: 44px; }
  .pv-bar { padding: 8px 10px; gap: 8px; }
  .pv-meta { flex-basis: 100%; order: 5; font-size: 1.1rem; }
  .pv-pages { padding: 10px 6px 20px; gap: 10px; }
  .has-genbar .twister--bg { bottom: 96px; }
}
.hdr-up-btn i { font-style: normal; }
@media (max-width: 480px) { .hdr-up-btn i { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .hdr-up-btn { padding: 0 8px; gap: 5px; } }
@media (max-width: 760px) { #abschnitte { padding-top: 18px; } }

@media (prefers-reduced-motion: reduce) {
  .pvp.is-loading, .btn.is-busy::after { animation: none; }
  .pick-panel, .pick-more svg { transition: none; }
}
/* Design-Menü: Verfahren des Colour Twisters */
.design-tw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 2px 6px 8px; }
.design-tw-btn { min-height: 36px; padding: 4px 6px; font: inherit; font-size: 1.15rem; font-weight: 600; color: var(--c-heading); background: transparent; border: 1.5px solid var(--line, #DADBE0); border-radius: 8px; cursor: pointer; }
.design-tw-btn[aria-pressed="true"] { background: var(--c-heading); border-color: var(--c-heading); color: var(--c-surface); }
.design-menu { width: 300px; }
@media (max-width: 760px) { .design-tw-btn { min-height: 44px; } }

/* ===== Aus dem parallel weiterentwickelten Stand übernommen (Einträge 50–55): Leitfaden-Gestaltung (ohne Standard „Werkbank“, das eine eigene ruhige Gestaltung hat), Farben auswählen, Reiter SVG und PDF, Kopfzeile ===== */
.gen-area[data-gen-area=design] .picks > .pick[data-pick=design], .gen-area[data-gen-area=design] .picks > .pick[data-pick=tpl603010] { grid-column: 1 / -1; }

/* ===== Ruhige Gestaltung nach dem Leitfaden „Kacheln, die funktionieren“ und den Regeln gegen AI-Slop =====
   Keine Verläufe, kein Glas, keine Deko-Formen, keine Effekt-Ebenen; deckende Flächen, Text in Tinte,
   eine Aktionsfarbe, eine Überschriftenskala (h1, h2, h3, Versal-Zeile), Gruppieren mit Abstand statt Karten. */
html:not([data-design="standard"]) .stage { background: var(--c-surface) !important; color: var(--c-text) !important; border-bottom: 1px solid var(--line, #DADBE0); padding: 34px 0 30px !important; min-height: 0 !important; }
html:not([data-design="standard"]) .stage .fx, html:not([data-design="standard"]) .netband .fx, html:not([data-design="standard"]) .stage .flow, html:not([data-design="standard"]) .netband .flow, html:not([data-design="standard"]) .stage-visual, html:not([data-design="standard"]) .stage-deco { display: none !important; }
html:not([data-design="standard"]) .stage .stage-grid { grid-template-columns: 1fr !important; }
html:not([data-design="standard"]) .stage h1 { color: var(--c-heading) !important; font-size: clamp(3rem, 4.6vw, 4.4rem) !important; line-height: 1.08; letter-spacing: -.01em; }
html:not([data-design="standard"]) .stage .lead { color: var(--c-text) !important; font-size: 1.6rem !important; line-height: 1.55; max-width: 62ch !important; margin: 12px 0 0 !important; opacity: 1 !important; }
html:not([data-design="standard"]) .stage-tag { color: var(--c-heading) !important; opacity: 1 !important; font-size: 1.2rem !important; letter-spacing: .08em; }
html:not([data-design="standard"]) .stage-actions { display: none !important; }
html:not([data-design="standard"]) .btn { background: var(--c-action) !important; }
html:not([data-design="standard"]) .btn:hover { background: color-mix(in srgb, var(--c-action) 86%, #000) !important; }
html:not([data-design="standard"]) .btn--line, html:not([data-design="standard"]) .btn--ghost { background: transparent !important; }
html:not([data-design="standard"]) .btn--line:hover, html:not([data-design="standard"]) .btn--ghost:hover { background: color-mix(in srgb, var(--c-action) 8%, transparent) !important; }
html:not([data-design="standard"]) .genbar { background: var(--c-surface) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: 0 -1px 0 var(--line, #DADBE0) !important; }
/* So funktioniert’s: schlichte Liste auf der Seitenfläche */
html:not([data-design="standard"]) .netband { background: var(--c-page-bg) !important; color: var(--c-text) !important; padding: 48px 0 40px !important; border-top: 1px solid var(--line, #DADBE0); }
html:not([data-design="standard"]) .netband h2 { color: var(--c-heading) !important; text-align: left !important; font-size: clamp(2.4rem, 3vw, 2.8rem) !important; margin-bottom: 22px !important; }
html:not([data-design="standard"]) .awards { gap: 28px !important; }
html:not([data-design="standard"]) .award { border-top: 2px solid var(--c-heading) !important; padding-top: 12px !important; font-size: 1.4rem !important; line-height: 1.55; color: var(--c-text); }
html:not([data-design="standard"]) .award strong { font-size: 1.2rem !important; font-weight: 600 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--c-heading); margin-bottom: 6px !important; }
html:not([data-design="standard"]) .award .score { font-size: 1.9rem !important; font-weight: 600 !important; line-height: 1.25; color: var(--c-heading); margin: 0 0 6px !important; }
/* Über diesen Generator: Text und Herkunftsliste statt Karten */
html:not([data-design="standard"]) .about { padding: 40px 0 44px !important; border-top: 1px solid var(--line, #DADBE0); }
html:not([data-design="standard"]) .about .wrap > h2 { font-size: clamp(2.4rem, 3vw, 2.8rem); color: var(--c-heading); margin-bottom: 10px !important; }
html:not([data-design="standard"]) .about-lead { font-size: 1.6rem !important; line-height: 1.55; color: var(--c-text); max-width: 68ch !important; margin-bottom: 26px !important; }
.about-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 56px; align-items: start; }
.about-text h3, .about-src h3 { font-size: 1.7rem; line-height: 1.3; color: var(--c-heading); margin: 0 0 6px; font-family: var(--font-display, inherit); }
.about-text p { font-size: 1.45rem; line-height: 1.6; color: var(--c-text); margin: 0 0 20px; max-width: 66ch; }
.about-src dl { margin: 0; border-top: 2px solid var(--c-heading); }
.about-src dt { font-size: 1.3rem; font-weight: 600; color: var(--c-heading); padding-top: 10px; }
.about-src dd { margin: 2px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line, #DADBE0); font-size: 1.35rem; line-height: 1.5; color: var(--c-text); }
@media (max-width: 860px) { .about-cols { grid-template-columns: 1fr; } }
/* Text in Tinte statt Standardgrau */
html:not([data-design="standard"]) .hint, html:not([data-design="standard"]) .gen-areahead .hint, html:not([data-design="standard"]) .pick-txt small, html:not([data-design="standard"]) .ftr a, html:not([data-design="standard"]) .ftr-bottom, html:not([data-design="standard"]) .gen-always { color: var(--c-text) !important; }
html:not([data-design="standard"]) .pick-txt small, html:not([data-design="standard"]) .gen-always { opacity: .9; }
html:not([data-design="standard"]) .gen-always { font-size: 1.3rem; line-height: 1.55; }
html:not([data-design="standard"]) .ftr h4 { font-weight: 600 !important; color: var(--c-heading) !important; font-size: 1.3rem !important; letter-spacing: .06em; text-transform: uppercase; }

/* Farben auswählen */
.fb-chosen { margin: 6px 0 12px; }
.fb-none { font-size: 1.3rem; margin: 0; }
.fb-cards { font-size: 1.3rem; margin: 0 0 6px; }
.fb-picked { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border: 1px solid var(--line, #DADBE0); border-radius: 999px; font-size: 1.2rem; background: var(--c-surface); }
.fb-chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.fb-chip small { opacity: .75; }
.fb-chip button { border: 0; background: transparent; cursor: pointer; font-size: 1.5rem; line-height: 1; padding: 0 6px; color: var(--c-text); }
.fb-tools { display: grid; gap: 10px; margin: 8px 0 12px; }
.fb-fams { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-fam { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 1.25rem; padding: 5px 10px; border: 1.5px solid var(--line, #DADBE0); border-radius: 999px; background: var(--c-surface); color: var(--c-text); cursor: pointer; }
.fb-fam i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.fb-fam[aria-pressed="true"] { border-color: var(--c-heading); background: var(--c-heading); color: var(--c-surface); }
.fb-fam:focus-visible, .fb-sw:focus-visible { outline: 3px solid var(--c-action); outline-offset: 2px; }
.fb-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fb-q { flex: 1 1 220px; font: inherit; font-size: 1.35rem; padding: 7px 10px; border: 1.5px solid var(--line, #DADBE0); border-radius: 6px; background: var(--c-surface); color: var(--c-text); }
.fb-res { font-size: 1.3rem; margin: 0 0 8px; }
.fb-card { border-top: 1px solid var(--line, #DADBE0); padding: 8px 0; }
.fb-card > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.fb-card > summary::-webkit-details-marker { display: none; }
.fb-card-h { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.fb-card-h input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-card-h input:checked + .pick-opt-box { background: var(--c-action); border-color: var(--c-action); }
.fb-card-h input:checked + .pick-opt-box::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.fb-card-h input:focus-visible + .pick-opt-box { outline: 3px solid var(--c-action); outline-offset: 2px; }
.fb-card-h b { font-size: 1.4rem; color: var(--c-heading); }
.fb-card-h small { font-size: 1.2rem; opacity: .85; }
.fb-open { font-size: 1.2rem; text-decoration: underline; color: var(--c-heading); }
.fb-card[open] .fb-open { visibility: hidden; }
.fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 4px; margin-top: 8px; }
.fb-sw { position: relative; aspect-ratio: 1; border: 1px solid rgba(0,0,0,.14); border-radius: 4px; background: var(--sw); cursor: pointer; padding: 0; }
.fb-sw.is-on { outline: 2.5px solid var(--c-heading); outline-offset: 1.5px; }
.fb-sw.is-on::after { content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); filter: drop-shadow(0 0 1px rgba(0,0,0,.8)); }
.fb-more { margin-top: 10px; }
/* Upload-Fläche im Reiter SVG (Gestaltung wie die frühere Dossier-Fläche) */
.dos-up { grid-column: 1 / -1; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px 18px; flex-wrap: wrap; padding: 14px 18px 14px 20px; border: 1.5px dashed var(--line, #DADBE0); border-radius: var(--radius-card, 8px); background: var(--c-surface); transition: border-color .15s ease, background .15s ease; }
.dos-up::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: #FF7A1A; }
.dos-up-head { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 280px; }
.dos-up-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line, #DADBE0); color: var(--c-heading); }
.dos-up-txt b { display: block; color: var(--c-heading); font-size: 1.45rem; }
.dos-up-txt small { display: block; font-size: 1.2rem; opacity: .8; }
.dos-up-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1 1 280px; justify-content: flex-end; }
.dos-up-act .dos-status { flex: 1 1 200px; min-width: 0; text-align: left; }
.dos-up.is-drag { border-style: solid; border-color: var(--c-action); background: color-mix(in srgb, var(--c-action) 8%, var(--c-surface)); }
.dos-up.is-ok { border-style: solid; border-color: var(--c-action); }
.dos-up.is-warn { border-style: solid; border-color: var(--c-highlight, #D92D20); background: color-mix(in srgb, var(--c-highlight, #D92D20) 6%, var(--c-surface)); }
@media (max-width: 760px) { .dos-up-act { justify-content: stretch; } .dos-up-act .btn { width: 100%; justify-content: center; } }
/* Reiter SVG */
.svg-box { grid-column: 1 / -1; display: grid; gap: 14px; }
.svg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.svg-none { font-size: 1.35rem; margin: 0; }
.svg-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line, #DADBE0); border-radius: var(--radius-card, 8px); background: var(--c-surface); }
.svg-item.is-on { border-color: var(--c-action); }
.svg-pick { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.svg-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.svg-pick input:checked + .pick-opt-box { background: var(--c-action); border-color: var(--c-action); }
.svg-pick input:checked + .pick-opt-box::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.svg-pick input:focus-visible + .pick-opt-box { outline: 3px solid var(--c-action); outline-offset: 2px; }
.svg-prev { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line, #DADBE0); border-radius: 6px; background: #fff; }
.svg-prev img { max-width: 48px; max-height: 48px; }
.svg-meta { min-width: 0; }
.svg-meta b { display: block; font-size: 1.35rem; color: var(--c-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svg-meta small { font-size: 1.15rem; }
.dos-up-act .btn--line { background: transparent !important; }
/* Reiter PDF */
.pdf-box { grid-column: 1 / -1; display: grid; gap: 22px; }
.pdf-set h3 { font-size: 1.7rem; color: var(--c-heading); margin: 0 0 8px; }
.pdf-opts { display: grid; gap: 6px; }
.pdf-opts--row { grid-auto-flow: column; justify-content: start; gap: 18px; }
.pdf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pdf-radio { border-radius: 50% !important; }
.pdf-opt input:checked + .pdf-radio { border-color: var(--c-action); box-shadow: inset 0 0 0 4px var(--c-surface); background: var(--c-action); }
.pdf-opt input:focus-visible + .pdf-radio { outline: 3px solid var(--c-action); outline-offset: 2px; }
.pdf-field { display: grid; gap: 4px; max-width: 420px; margin-top: 10px; font-size: 1.3rem; color: var(--c-heading); font-weight: 600; }
.pdf-field--wide { max-width: 720px; }
.pdf-field input, .pdf-field select, .pdf-field textarea { font: inherit; font-weight: 400; font-size: 1.4rem; padding: 8px 10px; border: 1.5px solid var(--line, #DADBE0); border-radius: 6px; background: var(--c-surface); color: var(--c-text); }
.pdf-field textarea { resize: vertical; line-height: 1.5; }
.pdf-note { font-size: 1.3rem; margin: 6px 0 0; max-width: 72ch; }
.pdf-fname { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.25rem; margin: 4px 0 0; padding: 8px 10px; background: var(--c-surface); border: 1px solid var(--line, #DADBE0); border-radius: 6px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .pdf-opts--row { grid-auto-flow: row; } }
/* Kopfzeile: hochladen und Dateiname */
.hdr-meta .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hdr-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.hdr-btn { font: inherit; font-size: 1.2rem; font-weight: 600; padding: 4px 10px; border: 1.5px solid var(--line, #DADBE0); border-radius: 999px; background: var(--c-surface); color: var(--c-heading); cursor: pointer; }
.hdr-btn:hover { border-color: var(--c-action); }
.hdr-btn:focus-visible, .hdr-name input:focus-visible { outline: 3px solid var(--c-action); outline-offset: 2px; }
.hdr-name { display: inline-flex; align-items: center; gap: 6px; font-size: 1.2rem; font-weight: 600; color: var(--c-heading); }
.hdr-name input { font: inherit; font-weight: 400; font-size: 1.25rem; width: 220px; padding: 4px 8px; border: 1.5px solid var(--line, #DADBE0); border-radius: 6px; background: var(--c-surface); color: var(--c-text); }
@media (max-width: 760px) { .hdr-acts { margin-left: 0; width: 100%; } .hdr-name { flex: 1 1 100%; } .hdr-name input { flex: 1; width: auto; } }
.pdf-radio::after { display: none !important; }
.pdf-opt input:checked + .pdf-radio { background: var(--c-action) !important; box-shadow: inset 0 0 0 5px var(--c-surface) !important; }

/* Kopfzeile auf dem Handy: Dossier-ZIP und SVG nebeneinander, darunter Status und PDF-Name (alle Designs) */
@media (max-width: 760px) {
  .hdr-meta .wrap { flex-wrap: wrap; }
  .hdr-meta-end { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 2px 0 8px; }
  .hdr-up, .hdr-acts { display: contents; }
  .hdr-up[hidden], .hdr-up[hidden] ~ .hdr-acts { display: none; }
  .hdr-up-btn { grid-column: 1; grid-row: 1; justify-content: center; border: 1.5px solid var(--line, #DADBE0); border-radius: 8px; }
  .hdr-svg-btn { grid-column: 2; grid-row: 1; }
  .hdr-up .dos-status { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .hdr-name { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; gap: 8px; width: auto; }
  .hdr-name input { flex: 1; width: auto; min-height: 40px; }
  .meta-links { grid-column: 1 / -1; justify-content: flex-end; }
}
