:root {
  /* Werte aus studio-nordwerk/src/styles/editorial.css, Zeichen nach MARKE.md */
  --bg: #ffffff;
  --surface: #ffffff;
  --panel: #f3f4f1;
  --ink: #141513;
  --muted: #6d706a;
  --line: #e7e8e4;
  --accent: #2e5747;
  --accent-soft: #e1eee5;
  --mark-dot: #8fb59b;
  --warn: #7a5a1e;
  --warn-soft: #f5edd8;
  --bad: #a4261b;
  --bad-soft: #fbe9e7;
  --radius: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.5 Geist,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] {
  display: none !important;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}
/* Das Studio dreht sich (MARKE.md): Hover eine Vierteldrehung, einmal je Sitzung beim Laden */
.brand-mark {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--ink);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-mark::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mark-dot);
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: rotate(90deg);
}
.brand.is-intro .brand-mark {
  animation: an-seinen-platz 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
}
@keyframes an-seinen-platz {
  from {
    transform: rotate(-90deg);
  }
  to {
    transform: rotate(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .brand.is-intro .brand-mark {
    transition: none;
    animation: none;
  }
  .brand:hover .brand-mark,
  .brand:focus-visible .brand-mark {
    transform: none;
  }
}

.top {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 0;
}

main {
  padding-top: 40px;
  padding-bottom: 32px;
}
h1 {
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 12px;
  text-wrap: balance;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
}
.eyebrow {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 8px;
}
.lead {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.muted {
  color: var(--muted);
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  min-height: 46px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.wide {
  width: 100%;
}
.btn:focus-visible,
.drop:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wish {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 20px;
}
.wish ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.wish li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
}
.wish li .tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #8fb59b;
  margin-top: 1px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.wish li.done .tick {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.wish li.done .label {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: #8fb59b;
}
.wish .hint {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.drop {
  background: var(--surface);
  border: 1.5px dashed #b9bcb5;
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.drop.over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.drop-icon {
  width: 30px;
  height: 30px;
  color: var(--muted);
}
.drop-title {
  font-weight: 600;
  font-size: 18px;
  margin: 8px 0 16px;
}
.drop-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.drop-hint {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
}
.mobile-only {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: inline-block;
  }
  .drop {
    padding: 24px 16px;
  }
}

.progress {
  margin: 20px 0 0;
}
.progress-text {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.bar {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s;
}
.keep-open {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.files {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 2px;
}
.file {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f3f4f1 center/cover no-repeat;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.file-main {
  min-width: 0;
}
.file-name {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-state {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.file-state.ok {
  color: var(--accent);
}
.file-state.warn {
  color: var(--warn);
}
.file-state.bad {
  color: var(--bad);
}
.file .mini {
  height: 3px;
  margin-top: 6px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.file .mini > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s;
}
.remove {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 8px;
  border-radius: 999px;
}
.remove:hover {
  color: var(--ink);
  background: #f3f4f1;
}

.finish {
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.field em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  width: 100%;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  align-items: start;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.done-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 0 20px;
}
.receipt {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 14px;
}
.receipt li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.receipt li span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.receipt li span:last-child {
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.history {
  margin: 36px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.history summary {
  cursor: pointer;
}
.history ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.history li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.history li span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.foot {
  padding-top: 24px;
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--muted);
}
.foot a {
  color: inherit;
}
