/* Sammlung, Ideen-Wand der Kundensicht (sammlung-kunde.js). Nur Tokens, hell und dunkel. Nur der Hauptknopf ist gefüllt. */
body.sk-an #kopf, body.sk-an #huelle, body.sk-an #korb, body.sk-an #pruef, body.sk-an #schnell { display: none !important; }
body.sk-an .seite { height: auto; display: block; overflow: visible; }
.sk[hidden] { display: none; }
.sk { box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: 24px 32px 40px; }
.sk-kopf { display: grid; gap: 16px; margin-bottom: 18px; }
.sk-kopf-a { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sk-ueber { font-size: var(--t-h1, 40px); }
.sk-aktionen { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sk-linkfeld { display: flex; align-items: center; gap: 8px; width: 320px; max-width: 100%; height: 40px; padding: 0 14px; border: 1px solid var(--kontur); border-radius: 999px; background: var(--bg-s1); }
.sk-linkfeld input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-primary); font-size: var(--s-klein); }
.sk-linkfeld input::placeholder { color: var(--text-secondary); opacity: 1; }
.sk-linkfeld:focus-within { border-color: var(--text-primary); }
.sk-linkicon { display: inline-flex; color: var(--text-secondary); }
body.sb-app .sk-linkfeld input:focus { outline: 0 !important; border: 0 !important; }
.sk-filterzeile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sk-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.sk-filter .pille { min-height: 36px; }
.sk-meta { margin-left: auto; font-size: var(--s-klein); color: var(--text-secondary); }
.sk-tabs { display: none; }

/* Wand */
.sk-wand { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
.sk-spalte { background: var(--bg-s2); border: 1px solid var(--line); border-radius: 20px; padding: 16px 10px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sk-spalte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 4px; }
.sk-spalte-kopf h2 { margin: 0; font-size: var(--s-text); font-weight: 600; line-height: 1.3; }
.sk-liste { display: flex; flex-direction: column; gap: 12px; }
.sk-leer, .sk-leer-gross { margin: 0; padding: 4px; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.45; }
.sk-leer-gross { grid-column: 1 / -1; text-align: center; padding: 48px 0; }
.sk-leer-gross h2 { margin: 0 0 8px; font-size: var(--s-text); font-weight: 600; color: var(--text-primary); }
.sk-leer-gross p { margin: 0 auto 16px; max-width: 460px; }
.sk-leer-gross .pille { min-height: 44px; }
.sk-wie { margin: -6px 0 14px; font-size: var(--s-klein); line-height: 1.4; color: var(--text-secondary); }
.sk-wie[hidden] { display: none; }
.sk-nav-hier { display: inline-flex; align-items: center; margin-left: 2px; padding: 3px 10px; border: 1px solid var(--sel-line, var(--kontur)); border-radius: 999px; background: var(--sel-bg, var(--bg-s2)); color: var(--sel-fg, var(--text-primary)); font-size: var(--s-klein); font-weight: 600; line-height: 1.2; }
.sk-kachel { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; padding: 11px 10px; text-align: left; color: inherit; border: 1px solid var(--line); border-radius: 14px; background: var(--card-bg, var(--bg-s1)); cursor: pointer; }
.sk-kachel:hover { border-color: var(--kontur); }
.sk-kachel.ist-aktiv { border-color: var(--text-primary); }
.sk-bild { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 9px; overflow: hidden; background: var(--bg-s2); border: 1px solid var(--line); }
.sk-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sk-platz { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); }
.sk-bild.hat-bild .sk-platz { display: none; }
.sk-kz { position: absolute; left: 4px; top: 4px; z-index: 1; height: 20px; padding: 0 5px; border-radius: 5px; display: inline-flex; align-items: center; background: var(--invers-bg, #0A0708); color: var(--invers-fg, #F4F4F4); font-size: var(--s-klein); font-weight: 700; line-height: 1; }
.sk-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 1px; }
.sk-titel { font-size: var(--s-text); font-weight: 600; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sk-sub { display: flex; align-items: flex-start; gap: 4px; font-size: var(--s-klein); line-height: 1.3; color: var(--text-secondary); }
.sk-sub .sb-icon { margin-top: 2px; width: 13px; height: 13px; }
.sk-pillen { display: flex; flex-wrap: wrap; gap: 4px; }
.sk-pille { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 2px 9px; border: 1px solid var(--kontur); border-radius: 999px; font-size: var(--s-klein); font-weight: 600; line-height: 1.2; color: var(--text-primary); background: transparent; }
.sk-pille.ok { background: var(--ok-weich); border-color: var(--ok); color: var(--ok); }
.sk-pille.offen { background: var(--offen-weich); border-color: var(--offen); color: var(--offen); }
.sk-pille.plan, .sk-pille.neutral { background: var(--bg-s2); border-color: var(--line); color: var(--text-secondary); }
.sk-pille .sb-icon { width: 14px; height: 14px; }
.sk-zaehler { display: flex; gap: 10px; flex-wrap: wrap; font-size: var(--s-klein); color: var(--text-secondary); }
.sk-z { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.sk-z.meine { color: var(--text-primary); font-weight: 700; }
.sk-fuss { margin: 18px 0 0; font-size: var(--s-klein); color: var(--text-secondary); text-align: center; }

/* Seitenblatt */
.sk-detail { position: fixed; z-index: 38; top: calc(var(--nav-h) + 12px); right: 24px; bottom: 16px; width: 400px; display: flex; flex-direction: column; background: var(--bg-s1); border: 1px solid var(--kontur); border-radius: 20px; overflow: hidden; }
.sk-detail[hidden] { display: none; }
.sk-detail.auf { animation: sb-auftritt var(--dur-slow) var(--ease-out) both; }
.sk-d-kopf { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.sk-d-et { font-size: var(--s-klein); font-weight: 600; color: var(--text-secondary); }
.sk-d-innen { flex: 1; min-height: 0; overflow-y: auto; scroll-padding: 16px 0; padding: 20px 20px 32px; display: flex; flex-direction: column; gap: 18px; }
.sk-embed[hidden] { display: none; }
.sk-rahmen { width: min(100%, 325px); height: 575px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-s2); }
.sk-rahmen.instagram { width: min(100%, 360px); height: 600px; }
.sk-rahmen iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--bg-s2); }
.sk-platzhalter { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px 16px; border: 1px dashed var(--kontur); border-radius: 14px; background: var(--bg-s2); }
.sk-platzhalter-kz { color: var(--text-tertiary); }
.sk-platzhalter .klein { margin: 0; max-width: 300px; }
.sk-d-pillen { margin-bottom: 8px; }
.sk-d-titel { margin: 0 0 6px; overflow-wrap: break-word; hyphens: auto; font-size: var(--t-h3, 22px); font-weight: 700; line-height: 1.3; }
.sk-d-satz { margin: 0 0 8px; font-size: var(--s-text); line-height: 1.45; }
.sk-d-quelle { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: var(--s-klein); color: var(--text-secondary); }
.sk-original { display: inline-flex; align-items: center; gap: 6px; font-size: var(--s-klein); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; color: var(--text-secondary); }
.sk-eigen { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sk-eigen-t { font-size: var(--s-klein); font-weight: 600; }
.sk-block { padding-top: 14px; border-top: 1px solid var(--line); }
.sk-block-t { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: var(--s-text); font-weight: 600; }
.sk-stimmen { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sk-stimme[aria-pressed="true"] { border-color: var(--text-primary); border-width: 2px; font-weight: 700; }
.sk-stimme-hinweis { margin: 0; }
.sk-komm-liste { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.sk-komm { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--s-klein); line-height: 1.4; }
.sk-komm p { margin: 2px 0 0; font-size: var(--s-text); overflow-wrap: anywhere; }
.sk-komm-kopf { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.sk-komm-zeit { color: var(--text-secondary); }
.sk-komm-vl { display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid var(--kontur); border-radius: 999px; font-size: var(--s-klein); font-weight: 600; line-height: 1.5; color: var(--text-secondary); }
.sk-sehen { margin: -4px 0 12px; color: var(--text-secondary); }
.sk-komm-weg { display: inline-flex; align-items: center; justify-content: flex-start; min-width: 0; min-height: 32px; margin: 2px 0 0 -8px; padding: 0 8px; color: var(--text-secondary); }
.sk-avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-s2); border: 1px solid var(--line); font-size: var(--s-klein); font-weight: 600; }
.sk-komm-leer { margin: 0 0 10px; }
.sk-komm-neu { display: grid; gap: 8px; justify-items: start; }
.sk-satz { height: auto; padding: 10px 14px; resize: vertical; font-family: inherit; line-height: 1.4; }
.sk-nur-screenreader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sk-plan-zeile { display: flex; align-items: flex-start; gap: 12px; }
.sk-plan-zeile > .haupt { margin-top: 22px; }
.sk-termin { flex: 1; min-width: 0; display: grid; gap: 4px; }
.sk-termin .klein { margin: 0; }
.sk-termin .feld { height: 44px; }
.sk-plan-zeile .pille { min-height: 44px; }
.sk-termin-de { margin: 4px 0 0; color: var(--text-secondary); }
.sk-hinweis { margin: 6px 0 0; color: var(--text-secondary); }
.sk-im-plan { margin: 0; font-size: var(--s-klein); line-height: 1.5; }
.sk-planlink { text-decoration: underline; text-underline-offset: 2px; }

/* Blatt Dazulegen */
.sk-blatt-wrap { z-index: 60; }
.sk-opt { margin-left: auto; font-weight: 400; color: var(--text-secondary); }
.sk-fehler { margin: 6px 0 0; font-size: var(--s-klein); color: var(--text-primary); font-weight: 600; }
.sk-b-fuss { gap: 8px; }
.sk-b-heute .klein { margin: 8px 0 0; }
.sk-blatt .blatt-feld:first-of-type { margin-top: 0; }

/* Mittlere Breite: zwei Spalten */
@media (max-width: 1099px) { .sk-wand { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { body.sk-detail-auf .sk { padding-right: 440px; } }

/* Handy: die vier Spalten werden Reiter, das Seitenblatt ist ein Vollbild-Dialog, alles zum Antippen mindestens 44 px */
@media (max-width: 719px) {
  .sk { padding: 16px 16px 24px; }
  .sk-plan-zeile > .haupt { margin-top: 0; }
  .sk-kopf-a { flex-direction: column; align-items: stretch; gap: 12px; }
  .sk-aktionen { flex-direction: column; align-items: stretch; }
  .sk-linkfeld { width: 100%; max-width: 100%; height: 44px; }
  .sk-aktionen .pille { justify-content: center; }
  /* Filter: eine Reihe, waagerecht wischbar, bis an den Rand; Chips brechen nie um und rasten ein, rechts blendet der Rand aus */
  .sk-filterzeile { flex-direction: column; align-items: stretch; gap: 8px; }
  .sk-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 0; max-width: 100%; min-width: 0; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .sk-filter::-webkit-scrollbar, .sk-tabs::-webkit-scrollbar { display: none; }
  .sk-filter .pille { flex: none; white-space: nowrap; min-height: 44px; scroll-snap-align: start; }
  .sk-meta { margin-left: 0; }
  .sk-tabs { display: flex; gap: 4px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
  .sk-tabs .sk-tab.pille { flex: 1 1 0; justify-content: center; min-height: 44px; padding: 0 6px; gap: 4px; white-space: nowrap; text-align: center; }
  .sk-wand { display: block; }
  .sk-spalte { display: none; padding: 12px 8px; }
  .sk-spalte.ist-tab { display: flex; }
  .sk-spalte-kopf { display: none; }
  .sk-detail { top: var(--nav-h); bottom: var(--mnav-h); left: 0; right: 0; width: auto; border: 0; border-radius: 0; z-index: 45; }
  .sk-d-kopf { padding: 8px 12px 8px 20px; }
  .sk-d-kopf .icon-knopf, .sk-blatt .icon-knopf { width: 44px; height: 44px; }
  .sk-rahmen, .sk-rahmen.instagram { height: 560px; }
  .sk-plan-zeile { flex-direction: column; align-items: stretch; }
  .sk-plan-zeile .pille { justify-content: center; }
  .sk-fuss { display: none; }
  #sk .pille, .sk-detail .pille, .sk-blatt .pille, .sk-blatt .schalter { min-height: 44px; }
  .sk-detail .pille.klein { min-height: 44px; }
  .sk-original { min-height: 44px; }
  .sk-stimme { min-width: 64px; justify-content: center; }
  .sk-komm-weg { min-height: 44px; }
  .sk-komm-neu .pille { min-height: 44px; }
  .sk-termin .feld { height: 44px; }
  .sk-eigen { gap: 8px; }
  .sk-blatt .blatt-fuss .pille { flex: 1; justify-content: center; }
}
@media (min-width: 720px) { .sk-wie { margin-top: -6px; } }
body.sb-app .sk-linkfeld input { background: transparent !important; border: 0 !important; height: auto; padding: 0; }
.sk-kopf { grid-template-columns: minmax(0, 1fr); }
.sk-kopf-a, .sk-filterzeile { min-width: 0; }

/* Design-Check: Hauptknopf gefüllt (Spezifität über sammlung-app.css .haupt) */
#sk .pille.haupt, .sk-detail .pille.haupt, .sk-blatt .pille.haupt { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: var(--btn-primary-line); }
#sk .pille.haupt:hover:not(:disabled), .sk-detail .pille.haupt:hover:not(:disabled), .sk-blatt .pille.haupt:hover:not(:disabled) { background: color-mix(in srgb, var(--btn-primary-bg) 86%, var(--bg-body)); color: var(--btn-primary-fg); border-color: var(--btn-primary-line); }
/* Leerzustand: nur ein Knopf */
body.sk-leer-an #sk-dazu { display: none; }
/* Kachel: Plattform für Screenreader, Pille im Plan bricht nie um */
.sk-pille.plan { max-width: 100%; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.sk-bild .sk-nur-screenreader { z-index: 0; }
/* Kopfzeile: nur ein Eintrag aktiv. Sammlung aktiv, Contentplan normal */
body.sk-nav-an .sbb-n1 > a[aria-current="page"] { color: var(--text-secondary); }
.sk-nav-hier { margin-left: 8px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--text-primary); font-size: inherit; font-weight: 600; line-height: inherit; }
/* Reiter am Handy: Segment-Schalter wie Kalender/Liste im Contentplan */
@media (max-width: 719px) {
  .sk-wie { display: none; }
  .sk-linkfeld { display: none; }
  .sk-kopf { margin-bottom: 10px; gap: 10px; }
  .sk-ueber { font-size: var(--t-h2, 28px); }
  .sk-tabs { gap: 0; padding: 4px; margin-bottom: 10px; border-radius: 999px; background: var(--bg-s2); border: 1px solid var(--line); overflow: hidden; }
  .sk-tabs .sk-tab.pille { border-color: transparent; background: transparent; min-height: 44px; border-radius: 999px; }
  .sk-tabs .sk-tab.pille:hover:not(:disabled) { background: transparent; }
  .sk-tabs .sk-tab.pille[aria-selected="true"] { background: var(--bg-s1); border-color: var(--line); color: var(--text-primary); }
  .sk-wand .sk-spalte.ist-tab { padding-top: 4px; }
  /* untere Navigation weg, solange ein Blatt offen ist */
  body.sk-detail-auf #vl-mobile-nav, body.sk-blatt-auf #vl-mobile-nav { display: none !important; }
  body.sk-detail-auf .sk-detail { bottom: 0; }
  .sk-blatt-wrap { bottom: 0; }
}
/* Enge Breite (Seitenblatt offen): Knopf bricht nie um, Linkfeld gibt nach, Pillen bleiben einzeilig */
.sk-aktionen .pille { flex: none; white-space: nowrap; }
.sk-linkfeld { flex: 1 1 200px; width: 320px; min-width: 0; }
.sk-pille { white-space: nowrap; max-width: 100%; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; }
