/* Gestaltung der einzelnen Module */

/* ---------- Dashboard: Hero mit Bildwelt ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl);
  min-height: clamp(220px, 30vw, 300px);
  background: var(--leeway-forest-deep) var(--brand-hero-image) 60% 62% / cover no-repeat;
  color: var(--leeway-natural);
  display: flex; align-items: flex-start;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(20, 36, 27, .88) 0%, rgba(20, 36, 27, .55) 42%, rgba(20, 36, 27, 0) 72%),
    linear-gradient(0deg, rgba(20, 36, 27, .55) 0%, rgba(20, 36, 27, 0) 45%);
}
.hero-content { padding: clamp(22px, 4vw, 36px); max-width: 640px; }
.hero h1 { color: var(--leeway-natural); font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(32px, 4.6vw, 48px); }
.eyebrow.on-image { color: var(--leeway-sand); }
.hero-date { color: rgba(238, 234, 224, .8); margin-top: 6px; font-size: 15.5px; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 18px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .15s var(--ease), border-color .15s;
}
.stat:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.stat-value { font-family: var(--font-display); font-weight: 300; font-size: 38px; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.stat-label { font-weight: 600; font-size: 14px; }
.stat-hint { color: var(--text-faint); font-size: 12.5px; }
.stat.tone-warn .stat-value { color: var(--warn); }
.stat.tone-danger .stat-value { color: var(--danger); }
.stat.tone-good .stat-value { color: var(--good); }

.dash-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
@media (min-width: 1000px) { .dash-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; } }
.dash-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.welcome { margin-bottom: 20px; position: relative; overflow: hidden; isolation: isolate; }
/* Höhenlinien + Pfad zum Ziel – Motive aus dem Keyvisual */
.welcome::before, .planned-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--brand-topo-image) 30% 40% / 520px auto no-repeat; opacity: .14;
}
.welcome::after {
  content: ""; position: absolute; right: 18px; top: 14px; width: 66px; height: 110px; z-index: -1;
  background: var(--brand-trail-image) center / contain no-repeat; opacity: .75;
}
:root[data-theme="light"] .welcome::before, :root[data-theme="light"] .planned-hero::before { opacity: .3; filter: brightness(.55); }

/* Markenkopf auf dem iPhone (dort gibt es keine Seitenleiste) */
.mobile-brand { display: flex; align-items: center; gap: 12px; margin: 2px 0 16px; }
.mobile-brand img { width: 52px; height: auto; }
.mobile-brand .on-light, :root[data-theme="light"] .mobile-brand .on-dark { display: none; }
:root[data-theme="light"] .mobile-brand .on-light { display: block; }
.mobile-brand .wordmark { color: var(--text); font-size: 14px; }
.mobile-brand small { display: block; font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 13px; margin-top: 3px; }
@media (min-width: 760px) { .mobile-brand { display: none; } }

.mini-projects { display: flex; flex-direction: column; gap: 6px; }
.mini-project {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px; border-radius: var(--radius-m);
  background: var(--bg-elev); border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.mini-project:hover { border-color: var(--border-strong); }
.mini-project-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-cat { font-size: 12.5px; color: var(--text-faint); margin-top: -4px; }

.deadlines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.deadlines a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); padding: 6px 0; border-bottom: 1px solid var(--border); }
.deadlines li:last-child a { border-bottom: 0; }
.deadlines a span:first-child { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.workshop { margin-top: 0; }
.workshop-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.workshop-tile {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: var(--radius-m); background: var(--bg-elev);
  border: 1px dashed var(--border-strong);
  transition: border-color .15s;
}
.workshop-tile:hover { border-color: var(--gold); }
.workshop-tile > .icon { width: 26px; height: 26px; color: var(--gold); }
.workshop-tile span:not(.soon) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.workshop-tile strong { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.workshop-tile small { color: var(--text-faint); font-size: 12.5px; }
.workshop-tile .soon { color: var(--gold); border-color: var(--border-strong); }

/* ---------- Aufgaben-Zeilen ---------- */
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.task-row {
  display: flex; align-items: flex-start; gap: 4px;
  padding: 4px 12px 4px 2px; border-radius: var(--radius-m);
  background: var(--bg-elev); border: 1px solid transparent;
  transition: border-color .15s, background .15s, opacity .2s;
}
.view-tasks .task-row { background: var(--surface); border-color: var(--border); }
.task-row:hover { border-color: var(--border-strong); }
.check { flex: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; margin-top: 2px; }
.check-box {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  border: 1.8px solid var(--text-faint); color: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.check-box .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.check:hover .check-box { border-color: var(--gold); }
.task-row.is-done .check-box { background: var(--leeway-olive); border-color: var(--leeway-olive); color: var(--leeway-natural); }
.task-body { flex: 1; min-width: 0; padding: 9px 0 9px; display: flex; flex-direction: column; gap: 6px; }
.task-title { text-align: left; font-weight: 500; line-height: 1.35; min-height: 26px; overflow-wrap: anywhere; }
.task-title:hover { color: var(--gold); }
.task-row.is-done .task-title { color: var(--text-faint); text-decoration: line-through; text-decoration-color: var(--text-faint); }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.task-meta:empty { display: none; }
.task-row.is-done .task-meta { opacity: .6; }
.task-group + .task-group { margin-top: 22px; }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin: 0 0 10px 4px; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); font-size: 12px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.done-group { margin-top: 14px; }
.done-group summary { cursor: pointer; color: var(--text-muted); font-weight: 600; font-size: 14px; min-height: var(--tap); display: flex; align-items: center; list-style: none; }
.done-group summary::before { content: "›"; display: inline-block; margin-right: 8px; transition: transform .15s; font-size: 18px; }
.done-group[open] summary::before { transform: rotate(90deg); }
.done-group summary::-webkit-details-marker { display: none; }

/* ---------- Board ---------- */
.board {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 16px;
}
@media (min-width: 760px) { .board { margin: 0; padding-left: 0; padding-right: 0; } }
.board-col { scroll-snap-align: start; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.board-col header { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; }
.board-col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.status-col-doing h2 { color: var(--gold); }
.board-cards { display: flex; flex-direction: column; gap: 8px; }
.board-empty { color: var(--text-faint); text-align: center; padding: 20px 0; }
.board-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 12px 12px 6px 14px; display: flex; flex-direction: column; gap: 8px;
  border-left: 3px solid var(--surface-2);
}
.prio-edge-critical { border-left-color: var(--signal-rust); }
.prio-edge-high { border-left-color: var(--leeway-sand); }
.prio-edge-medium { border-left-color: var(--leeway-olive); }
.board-card-title { text-align: left; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; min-height: 26px; }
.board-card-move { display: flex; justify-content: space-between; margin: 0 -6px; }
.board-card-move .btn { padding: 0 8px; gap: 4px; font-size: 12.5px; }
.board-card-move .icon { width: 16px; height: 16px; }

/* ---------- Projekte ---------- */
.project-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.project-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 18px 16px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
}
.project-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cat, var(--leeway-olive)); opacity: .9; }
.project-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.project-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.project-card p { color: var(--text-muted); font-size: 14.5px; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-card-top .eyebrow { margin: 0; font-size: 10.5px; }
.project-card-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.cat-software { --cat: var(--leeway-sand); }
.cat-game { --cat: #B9915C; }
.cat-pedagogy { --cat: var(--leeway-olive); }
.cat-experience { --cat: #6F8B6B; }
.cat-product { --cat: #A7A27F; }
.cat-other { --cat: var(--text-faint); }

.detail-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); } }
.detail-badges { margin-bottom: 12px; }
.prose { white-space: pre-wrap; line-height: 1.6; max-width: 70ch; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.big-number { font-family: var(--font-display); font-weight: 300; font-size: 52px; line-height: 1; margin: 4px 0 14px; color: var(--gold); }
.big-number small { font-size: 24px; margin-left: 2px; color: var(--text-muted); }

/* ---------- Vorbereitete Module ---------- */
.planned-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .planned-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.planned-hero { position: relative; overflow: hidden; isolation: isolate; }
.planned-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--gold); margin-bottom: 14px; }
.planned-icon .icon { width: 28px; height: 28px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list .icon { color: var(--leeway-olive); margin-top: 2px; width: 18px; height: 18px; }
.planned-grid .panel p + p { margin-top: 10px; }

/* ---------- Daten ---------- */
.data-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .span-2 { grid-column: 1 / -1; } }
.count-list { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 16px; }
.count-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.count-list span { color: var(--text-muted); }
.import-preview { margin-top: 14px; padding: 14px; border-radius: var(--radius-m); background: var(--bg-elev); border: 1px solid var(--border); }
.import-choice { display: grid; gap: 6px; margin-top: 8px; }
.import-choice .btn { justify-self: start; }
.import-choice p { margin-bottom: 8px; }
.explain { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text-muted); }
.explain strong { color: var(--text); }

/* ---------- Einstellungen ---------- */
.settings-list { display: grid; gap: 16px; max-width: 760px; }
.settings-list .panel > p.small { margin-top: 10px; }
.sub-head { font-size: 14px; color: var(--text-muted); margin: 22px 0 10px; font-weight: 600; }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; flex-wrap: wrap; }
.kv li:last-child { border-bottom: 0; }
.kv span { color: var(--text-muted); }
.kv strong { font-weight: 600; text-align: right; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.danger-zone .btn { margin-top: 14px; }

/* ---------- Dashboard-Variante „Keyvisual“: vollständiges Bild ---------- */
.kv-hero { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; align-items: start; }
.kv-image {
  margin: 0; overflow: hidden; border-radius: var(--radius-xl);
  background: var(--leeway-forest-deep); box-shadow: var(--shadow-lift);
  aspect-ratio: 1080 / 1350; max-width: 100%;
}
.kv-image img { width: 100%; height: 100%; object-fit: cover; }
.kv-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.kv-greeting { position: relative; padding: 4px 2px 0; }
.kv-greeting h1 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(32px, 4.4vw, 50px); }
.kv-date { color: var(--text-muted); margin-top: 6px; font-size: 15.5px; }
.kv-side .stats { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv-side .welcome { margin: 0; }
@media (min-width: 760px) {
  .kv-hero { grid-template-columns: minmax(250px, 40%) minmax(0, 1fr); align-items: stretch; }
  .kv-side { justify-content: space-between; padding: 8px 0; }
}
@media (min-width: 1100px) { .kv-hero { grid-template-columns: 400px minmax(0, 1fr); gap: 28px; } }
@media (min-width: 1400px) { .kv-side .stats { gap: 14px; } }

/* =====================================================================
   Ideenwerkstatt
   ===================================================================== */
.capture {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  padding: 18px 18px 14px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.capture::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--brand-topo-image) 80% 30% / 560px auto no-repeat; opacity: .08;
}
.capture-field { display: flex; align-items: flex-start; gap: 10px; }
.capture-input {
  flex: 1; min-width: 0; resize: none; border: 0; background: transparent; color: var(--text);
  font: 400 20px/1.45 var(--font-ui); padding: 6px 2px; min-height: 64px;
}
.capture-input::placeholder { color: var(--text-faint); }
.capture-input:focus { outline: none; }
.capture-field.is-plain { background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 12px; padding: 6px 6px 6px 12px; }
.capture-field.is-plain:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-soft); }
.capture-field.is-plain textarea { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 400 16px/1.5 var(--font-ui); resize: none; padding: 7px 0; min-height: 40px; }
.capture-field.is-plain textarea:focus { outline: none; }
.capture-hint { display: flex; align-items: center; gap: 6px; color: var(--text-faint); font-size: 12.5px; margin-top: 6px; }
.capture-hint .icon { width: 14px; height: 14px; }
.capture-hint b { color: var(--text-muted); font-weight: 700; }
.capture-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.capture-count { color: var(--text-muted); font-size: 13.5px; }

/* Mikrofon mit Aufnahme-Puls */
.mic {
  position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent-ink); background: var(--accent);
  transition: transform .15s, background .2s;
}
.mic .icon { width: 22px; height: 22px; position: relative; z-index: 1; }
.mic:active { transform: scale(.94); }
.mic-pulse { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.mic.is-listening { background: var(--signal-rust); color: #fff; }
.mic.is-listening .mic-pulse { animation: mic-pulse 1.4s ease-out infinite; box-shadow: 0 0 0 0 rgba(201, 119, 79, .55); }
@keyframes mic-pulse { to { box-shadow: 0 0 0 18px rgba(201, 119, 79, 0); } }
.capture-field.is-plain .mic { width: 40px; height: 40px; }

/* Filter */
.tag-chips { margin-top: 8px; }
.chip-tag { min-height: 34px; font-size: 13px; font-weight: 700; }
.chip-star .icon { width: 17px; height: 17px; }
.chip-star[aria-pressed="true"] .icon { fill: currentColor; }

/* Karten */
.idea-day + .idea-day { margin-top: 24px; }
.idea-grid { columns: 300px; column-gap: 14px; }
.idea-card {
  break-inside: avoid; margin: 0 0 14px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  border-top: 3px solid var(--stage-color, var(--border-strong));
  transition: border-color .15s, transform .15s var(--ease);
  animation: idea-in .35s var(--ease);
}
@keyframes idea-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.idea-card:hover { transform: translateY(-1px); }
.idea-card.stage-spark { --stage-color: var(--leeway-lightgold); }
.idea-card.stage-sketch { --stage-color: var(--leeway-sand); }
.idea-card.stage-concept { --stage-color: var(--leeway-olive); }
.idea-card.stage-done, .idea-card.stage-archived { --stage-color: var(--border-strong); opacity: .78; }
:root[data-theme="light"] .idea-card.stage-spark { --stage-color: #D8BF86; }
.idea-open { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 8px; }
.idea-stage { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.idea-stage .icon { width: 14px; height: 14px; }
.idea-text { font-size: 16.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.hashtag { color: var(--gold); font-weight: 700; }
.idea-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 0 6px 6px 16px; color: var(--text-faint); font-size: 12.5px; }
.idea-foot .spacer { flex: 1; }
.idea-meta { display: inline-flex; align-items: center; gap: 4px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idea-meta .icon { width: 13px; height: 13px; flex: none; }
.idea-meta.is-done { color: var(--good); }
.star { width: var(--tap); height: var(--tap); display: grid; place-items: center; color: var(--text-faint); border-radius: 12px; }
.star .icon { width: 20px; height: 20px; }
.star:hover { color: var(--gold); }
.star.is-on { color: var(--gold); }
.star.is-on .icon, .is-fav .icon { fill: currentColor; color: var(--gold); }

/* Detail */
.idea-head h1 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 3.6vw, 36px); overflow-wrap: anywhere; }
.idea-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.idea-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .idea-layout { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); align-items: start; } }
.idea-main, .idea-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.idea-edit { font-size: 17px !important; }
.stage-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stage-step {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 12px; border-radius: var(--radius-m); background: var(--bg-elev); border: 1px solid var(--border); min-height: 96px;
}
.stage-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--text-muted); }
.stage-step.is-reached .stage-dot { background: var(--accent); color: var(--accent-ink); }
.stage-step[aria-checked="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-soft); }
.stage-name { font-weight: 700; }
.stage-hint { font-size: 12px; color: var(--text-faint); line-height: 1.35; }
@media (max-width: 520px) { .stage-hint { display: none; } .stage-step { min-height: 0; } }
.stage-final { display: flex; align-items: center; gap: 8px; color: var(--good); font-weight: 700; }
.thought-add { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.thought-add .capture-field { flex: 1 1 240px; }
.thoughts { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border-strong); display: flex; flex-direction: column; gap: 12px; }
.thoughts li { position: relative; padding-right: 40px; }
.thoughts li::before { content: ""; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.thoughts p { white-space: pre-wrap; overflow-wrap: anywhere; }
.thought-meta { font-size: 12px; color: var(--text-faint); }
.thoughts .btn-tiny { position: absolute; right: 0; top: -6px; }
.concept { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.concept textarea { min-height: 52px !important; }
.convert-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.conv-links { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.conv-links li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.conv-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 700; color: var(--gold); }

/* Schnellerfassung (Dialog) */
.sheet-idea .capture-field { background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 16px; padding: 10px 10px 10px 14px; }
.sheet-idea .capture-field:focus-within { border-color: var(--gold); }
.sheet-idea .capture-input { min-height: 88px; }
.quick-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.quick-count { color: var(--good); font-weight: 700; font-size: 14px; }

/* Dashboard: Ideen */
.mini-ideas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mini-ideas a { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 8px 12px; border-radius: var(--radius-m); background: var(--bg-elev); }
.mini-ideas a:hover { background: var(--surface-hover); }
.mini-stage { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); min-width: 58px; }
.mini-idea-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Schwebender Knopf „Idee“ – überall außer in der Ideenwerkstatt */
.fab {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(env(safe-area-inset-bottom) + 84px);
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 20px 0 16px; border-radius: 26px;
  background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 15px; letter-spacing: .02em;
  box-shadow: var(--shadow-lift); transition: transform .15s;
}
.fab .icon { width: 22px; height: 22px; }
.fab:active { transform: scale(.95); }
@media (min-width: 760px) { .fab { bottom: calc(env(safe-area-inset-bottom) + 24px); right: max(24px, env(safe-area-inset-right)); } }
body[data-module="ideas"] .fab { display: none; }

/* ---------- Impressum & Datenschutz ---------- */
.legal { display: grid; gap: 16px; max-width: 760px; }
.legal-text { line-height: 1.6; overflow-wrap: anywhere; }
.legal-text > h2 { margin: 28px 0 10px; font-size: 19px; }
.legal-text > h2:first-child { margin-top: 0; }
.legal-text h3 { margin: 20px 0 6px; font-size: 15px; font-weight: 700; color: var(--text-muted); }
.legal-text p + p { margin-top: 10px; }
.legal-text ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-text a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal-notice { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.legal-notice p { line-height: 1.55; }
.legal-placeholder { background: color-mix(in srgb, var(--gold) 28%, transparent); color: inherit; padding: 0 4px; border-radius: 4px; }
.legal-cross { margin: 0; }

/* Linkzeile „Impressum · Datenschutz“ (Seitenleiste, „Mehr“-Blatt) */
.legal-links { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 13px; }
.legal-links a { display: inline-flex; align-items: center; min-height: var(--tap, 44px); padding: 0 8px; color: var(--text-muted); }
.legal-links span { color: var(--text-faint); }
.more-legal { justify-content: center; margin-top: 4px; }

/* ---------- Übergabe von App-Ideen an Claude ---------- */
.dev-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin: 0 0 18px; padding: 14px 16px; border-radius: var(--radius-m);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.dev-bar-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dev-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-panel .btn-row { margin-top: 12px; }
.dev-panel .btn-row + p { margin-top: 10px; }
.dev-status { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
.dev-status .icon { width: 18px; height: 18px; color: var(--text-faint); flex: none; }
.dev-status.is-handed .icon { color: var(--gold); }
.dev-status.is-done { color: var(--good); }
.dev-status.is-done .icon { color: var(--good); }
.idea-meta.is-handed { color: var(--gold); }


/* ---------- Termine (Dashboard und Kalender) ---------- */
.dash-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.agenda { display: flex; flex-direction: column; gap: 14px; }
.agenda-date { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 6px; }
.agenda-date span { font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: 4px; }
.agenda-day.is-today .agenda-date { color: var(--gold); }
.agenda-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.agenda-item {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: var(--tap);
  padding: 8px 12px; border-radius: var(--radius-m); background: var(--bg-elev);
  border: 0; border-left: 3px solid var(--gold); color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.agenda-item:hover { background: var(--surface-hover); }
.agenda-item.is-allday { border-left-color: var(--border-strong); }
.agenda-item.is-past { opacity: .55; }
.agenda-time { flex: 0 0 auto; min-width: 92px; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.agenda-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; max-width: 100%; }
.agenda-title { font-weight: 600; overflow-wrap: anywhere; }
.agenda-meta { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-more { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); margin-top: 6px; color: var(--gold); font-weight: 600; }
.agenda-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 480px) {
  .agenda-item { flex-direction: column; align-items: stretch; gap: 2px; }
  .agenda-time { min-width: 0; }
  .dash-events .panel-head { flex-wrap: wrap; }
}

.calendar-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .calendar-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.calendar-layout .panel-head { flex-wrap: wrap; }
.calendar-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.calendar-sources { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; }
.calendar-sources li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.calendar-sources li:last-child { border-bottom: 0; }
.cal-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cal-name > .icon { color: var(--gold); flex: 0 0 auto; }
.cal-name span { display: flex; flex-direction: column; min-width: 0; }
.cal-name strong { overflow-wrap: anywhere; }
.cal-name small { color: var(--text-faint); font-size: 12.5px; }
.help-list { margin: 10px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.page-actions .file-btn, .agenda-empty .file-btn { margin-top: 0; }

/* ---------- Erinnerungen ---------- */
.agenda-bell { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: var(--gold); }
.agenda-bell .icon { width: 15px; height: 15px; }
.reminders {
  margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-l, 18px);
  background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.reminders-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.reminders-head .icon { color: var(--gold); width: 22px; height: 22px; }
.reminders-head h2 { font-size: 17px; margin: 0; }
.reminders ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.reminders li { display: flex; align-items: center; gap: 12px; padding: 4px 0; border-top: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); }
.reminders li:first-child { border-top: 0; }
.reminder-main {
  flex: 1 1 auto; min-width: 0; min-height: var(--tap); display: flex; flex-direction: column; justify-content: center;
  background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.reminder-main strong { overflow-wrap: anywhere; }
.reminder-main span { font-size: 13.5px; color: var(--text-muted); }
.reminders .btn { flex: 0 0 auto; }

/* ---------- Spiele ---------- */
.finder { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.finder .panel-head { margin-bottom: 0; }
.finder-row { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.finder-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.finder-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.finder-label .icon { width: 16px; height: 16px; color: var(--gold); }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0; }
.chip-more { border-style: dashed; }
.stepper { display: flex; flex-direction: column; gap: 6px; }
.stepper-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.stepper-ctl { display: flex; align-items: center; gap: 8px; }
.stepper-ctl .btn { font-size: 22px; font-weight: 400; }
.stepper-value { min-width: 64px; text-align: center; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper-value.is-any { color: var(--text-faint); font-weight: 600; font-size: 16px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: var(--tap); }
.results-head h2 { font-size: 20px; }
.results-head .btn-small { min-height: var(--tap); }

.game-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); margin-bottom: 20px; }
@media (min-width: 760px) { .game-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; } }
.game-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  color: inherit; transition: transform .15s var(--ease), border-color .15s;
}
.game-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.game-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.game-title { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.game-facts { font-size: 13px; color: var(--text-muted); }
.game-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.game-badges .badge { white-space: normal; min-height: 26px; line-height: 1.25; padding-top: 3px; padding-bottom: 3px; }
.badge.is-hit { background: var(--accent-soft); color: var(--gold); }
.badge-open { background: var(--olive-soft); color: var(--text); }
.badge-tag { background: transparent; border: 1px dashed var(--border-strong); }
.cat-kinder { background: rgba(179, 184, 143, .22); color: var(--good); }
.cat-familie { background: var(--accent-soft); color: var(--gold); }
.cat-kenner { background: rgba(201, 119, 79, .16); color: var(--danger); }
.cat-experte { background: var(--leeway-graphite); color: var(--leeway-lightgold); }

.cover {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--leeway-forest) 0%, var(--leeway-forest-deep) 70%);
}
.cover::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--brand-topo-image) 40% 40% / 300px auto no-repeat; opacity: .16;
}
.cover-initials { font-family: var(--font-serif); font-style: italic; font-size: 44px; color: var(--leeway-lightgold); opacity: .8; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.cover.has-image img { opacity: 1; }
.cover.has-image .cover-initials { visibility: hidden; }
.cover-large { border-radius: var(--radius-l); box-shadow: var(--shadow); }
.cover-thumb { width: 64px; flex: none; border-radius: 10px; }
.cover-thumb .cover-initials { font-size: 20px; }

.game-detail { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .game-detail { grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); align-items: start; } .game-cover-col { position: sticky; top: 20px; } }
.game-cover-col .cover-large { max-width: 420px; }
.game-cover-col .file-btn { margin-top: 0; }
.game-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.game-main .page-head { margin-bottom: 0; }
.game-facts-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.game-fact { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--border); }
.game-fact .icon { color: var(--gold); width: 18px; height: 18px; }
.game-fact strong { font-size: 17px; }
.game-text { line-height: 1.6; max-width: 70ch; white-space: pre-line; }
.game-main .panel .finder-label { margin: 14px 0 8px; }
.recog-hint p { display: flex; gap: 10px; align-items: flex-start; }
.recog-hint .icon { color: var(--gold); flex: none; margin-top: 2px; }
.recog-hint .btn-row { margin-top: 12px; }
.recog-again { margin-top: -4px; }
.recog-again .btn-small { min-height: var(--tap); }
.kartei-panel { margin-top: 8px; }

/* Zuschneiden */
.sheet-crop { width: min(560px, calc(100vw - 24px)); }
.crop-stage {
  position: relative; overflow: hidden; width: 100%; max-height: 58vh; margin: 0 auto;
  border-radius: var(--radius-m); background: var(--leeway-graphite); touch-action: none; cursor: grab;
  outline: 2px solid var(--accent); outline-offset: -2px;
}
.crop-stage:active { cursor: grabbing; }
.crop-img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-select: none; pointer-events: none; }
.crop-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.crop-zoom { display: flex; align-items: center; gap: 8px; flex: 1 1 160px; min-height: var(--tap); color: var(--text-muted); }
.crop-zoom input { flex: 1; accent-color: var(--accent); min-height: var(--tap); }
.crop-foot { margin: 14px -22px -18px; }
.sheet-crop .hint { margin-top: 8px; }

/* Bearbeiten */
.form-section { font-size: 15px; margin: 22px 0 10px; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-muted); font-weight: 600; font-size: 14px;
}
.check-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.sheet-game form .sheet-foot { margin: 20px -22px -18px; }

/* Erkennen */
.sheet-recognize { width: min(620px, calc(100vw - 24px)); }
.recog-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 18px; padding: 0; margin: 0; }
.recog-steps > li { counter-increment: step; padding-left: 40px; position: relative; }
.recog-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 14px;
}
.recog-steps h3 { font-size: 16px; margin: 3px 0 10px; }
.recog-steps .btn-row { margin-top: 10px; }
.recog-steps .file-btn { margin-top: 0; }
.recog-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.recog-prompt { margin-top: 18px; }
.recog-prompt summary { min-height: var(--tap); display: flex; align-items: center; cursor: pointer; color: var(--text-muted); font-weight: 600; }
.recog-prompt pre { white-space: pre-wrap; font-size: 12.5px; line-height: 1.5; background: var(--surface-2); padding: 12px; border-radius: var(--radius-s); max-height: 260px; overflow: auto; }
.recog-bar { margin-bottom: 20px; }
.empty-actions .file-btn { margin-top: 0; }

/* Spiele: automatische Erkennung */
.spinner {
  display: inline-block; width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.badge-busy { background: var(--accent-soft); color: var(--gold); }
.recog-bar.is-busy strong { display: flex; align-items: center; gap: 8px; }
.recog-bar + .recog-bar { margin-top: -8px; }
.recog-hint .spinner { color: var(--gold); margin-top: 3px; }
.api-panel { margin-top: 20px; }
.api-block + .api-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.api-block h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 6px 0 8px; }
.api-block a { overflow-wrap: anywhere; }
.api-state { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; overflow-wrap: anywhere; }
.api-state .icon { color: var(--good); flex: none; }
.api-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.api-form input {
  flex: 1 1 240px; min-height: var(--tap); padding: 0 14px; border-radius: 12px; font-size: 16px;
  background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text);
}
.api-form input:focus { outline: none; border-color: var(--gold); }
.source-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.source-list a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.source-list a:hover { color: var(--gold); }
.source-list .icon { width: 17px; height: 17px; color: var(--gold); flex: none; }
