:root {
  --akz: #0877B9;
  --akz-deep: #075A8E;
  --akz-soft: #E8F5FC;
  --teal: #39AFC1;
  --ink: #172A36;
  --muted: #627582;
  --line: #D9E5EA;
  --panel: #FFFFFF;
  --page: #F3F7F9;
  --warn: #9A6700;
  --warn-bg: #FFF7DE;
  --ok: #27845D;
  --ok-bg: #E8F6EF;
  --shadow: 0 18px 45px rgba(20, 57, 74, 0.07), 0 2px 7px rgba(20, 57, 74, 0.04);
  --radius: 14px;
  --radius-small: 10px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 136, 203, 0.22);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 2px;
}

.topbar-status {
  color: var(--muted);
  font-size: 13px;
}

.app-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) 28px 52px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.stepper span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  font-size: 13px;
  font-weight: 650;
}

.stepper span i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-right: 9px;
  color: var(--muted);
  background: #EDF3F5;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
}

.stepper span i svg,
.name svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stepper span.done,
.stepper span.akt {
  color: var(--ink);
  border-color: rgba(0, 136, 203, 0.35);
}

.stepper span.akt {
  color: var(--akz-deep);
  background: linear-gradient(135deg, #fff 0%, var(--akz-soft) 100%);
  box-shadow: inset 0 -3px 0 var(--akz), 0 6px 14px rgba(8, 119, 185, 0.09);
}

.stepper span.done i,
.stepper span.akt i {
  color: #fff;
  background: var(--akz);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.work-main,
.side-panel,
.step,
.processing-card,
.anschreiben {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step {
  padding: clamp(22px, 3vw, 32px);
  animation: step-in 0.36s cubic-bezier(.2,.75,.2,1) both;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--akz);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  letter-spacing: -0.04em;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.02;
  font-weight: 780;
}

h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

h3 {
  margin: 24px 0 12px;
  font-size: 16px;
}

.section-head p,
.status,
.side-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.design {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 136px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.design:hover { transform: translateY(-2px); border-color: rgba(8, 119, 185, .5); box-shadow: var(--shadow); }

.design input {
  position: absolute;
  opacity: 0;
}

.design.selected {
  border-color: var(--akz);
  box-shadow: inset 0 0 0 2px rgba(0, 136, 203, 0.1);
}

.design-preview {
  min-height: 104px;
  padding: 10px;
  background: #F7FAFB;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.design-preview span,
.paper-line {
  display: block;
  height: 6px;
  margin-bottom: 7px;
  background: #C8D6DC;
  border-radius: 10px;
}

.design-preview .accent,
.paper-preview .strong {
  background: var(--akz);
}

.design-preview .short,
.paper-line.short {
  width: 45%;
}

.design-preview .medium,
.paper-line.medium {
  width: 70%;
}

.design-name {
  display: block;
  margin-bottom: 7px;
  font-size: 20px;
  font-weight: 760;
}

.design-meta {
  color: var(--muted);
  font-size: 13px;
}

.einwilligung {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #2A3A45;
  background: #F1F9FC;
  border: 1px solid rgba(0, 136, 203, 0.35);
  border-radius: var(--radius);
}

.einwilligung input {
  width: auto;
  flex: 0 0 auto;
  margin: 3px 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.upload-zone {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 26px;
  text-align: center;
  cursor: pointer;
  background: radial-gradient(circle at 50% 0%, #fff 0%, #F0F9FD 100%);
  border: 1.5px dashed rgba(8, 119, 185, 0.48);
  border-radius: var(--radius);
}

.upload-zone.drag {
  background: var(--akz-soft);
  border-color: var(--akz);
}

.upload-zone input {
  display: none;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--akz);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(8, 119, 185, .22);
}

.upload-icon svg {
  width: 24px;
  height: 24px;
}

.upload-title {
  display: block;
  font-size: 19px;
  font-weight: 760;
}

.upload-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.upload-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 39, 51, .42);
  backdrop-filter: blur(7px);
}

.upload-dialog {
  width: min(430px, 100%);
  padding: 32px;
  text-align: center;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 20px;
  box-shadow: 0 28px 75px rgba(8, 34, 47, .28);
  animation: upload-dialog-in .28s cubic-bezier(.2,.75,.2,1) both;
}

@keyframes upload-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.upload-dialog-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--akz), var(--teal));
  border-radius: 18px;
  box-shadow: 0 12px 25px rgba(8, 119, 185, .25);
}

.upload-dialog-icon svg { width: 26px; height: 26px; }
.upload-dialog-icon.fertig { background: linear-gradient(135deg, #27845D, #43A878); }
.upload-dialog-icon.fehler { background: linear-gradient(135deg, #AF650F, #D99229); }
.upload-dialog h2 { margin-bottom: 8px; font-size: 25px; }
.upload-file { min-height: 22px; margin: 0 0 18px; overflow-wrap: anywhere; color: var(--ink); font-weight: 720; }
.upload-progress { height: 7px; overflow: hidden; background: #E6EFF3; border-radius: 999px; }
.upload-progress span { display: block; width: 4%; height: 100%; background: linear-gradient(90deg, var(--akz), var(--teal), var(--akz)); background-size: 200% 100%; border-radius: inherit; transition: width .35s ease; animation: progress-glow 1.4s linear infinite; }
.upload-dialog-icon:not(.fertig):not(.fehler) { animation: upload-icon-pulse 1.5s ease-in-out infinite; }

@keyframes progress-glow {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@keyframes upload-icon-pulse {
  50% { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(8, 119, 185, .34); }
}
.upload-dialog-status { min-height: 21px; margin: 14px 0 0; color: var(--muted); line-height: 1.45; }
.upload-dialog .button { margin-top: 10px; }

.quick-actions {
  margin: 14px 0 4px;
}

.document-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.dok,
.exp,
.edu,
.spr {
  padding: 16px;
  background: #FBFDFE;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dok .kopf {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.dok { animation: document-in .3s cubic-bezier(.2,.75,.2,1) both; }

@keyframes document-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dok-methode {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  color: var(--muted);
  background: #EDF3F5;
  white-space: nowrap;
}

.dok-hinweis {
  margin: 0 0 10px;
  padding: 9px 11px;
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid rgba(154, 103, 0, 0.35);
  border-radius: var(--radius);
  font-size: 12.5px;
}

.dok .name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 760;
}

.dok textarea {
  min-height: 96px;
  font-family: "Consolas", "Roboto Mono", monospace;
  font-size: 13px;
}

.reihe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reihe .feld {
  min-width: 0;
}

.feld {
  margin-bottom: 13px;
}

.feld label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
  margin-bottom: 5px;
  color: #3C4850;
  font-size: 12px;
  font-weight: 760;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #CAD7DD;
  border-radius: 6px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

select {
  min-width: 150px;
}

.editor {
  display: grid;
  gap: 12px;
}

.editor-section {
  padding: 18px;
  background: #FBFDFE;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editor-section h3 {
  margin-top: 0;
}

/* Gitter- und Flex-Kinder duerfen schrumpfen, sonst sprengt langer Text die Karte. */
.editor,
.editor-section,
.exp,
.edu,
.spr,
.reihe > .feld {
  min-width: 0;
}

.editor-section {
  overflow: hidden;
}

.sek-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sek-kopf h3 {
  margin: 0;
  min-width: 0;
  font-size: 17px;
}

.sek-hinweis {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.editor-section.betont {
  background: var(--akz-soft);
  border-color: rgba(8, 119, 185, 0.28);
  box-shadow: inset 3px 0 0 var(--akz);
}

.karten-kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.karten-kopf::-webkit-details-marker {
  display: none;
}

details.exp[open] > .karten-kopf {
  margin-bottom: 12px;
}

.karten-kopf::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}

details.exp[open] > .karten-kopf::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.karten-kopf:hover .karten-titel {
  color: var(--akz-deep);
}

.karten-nr {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: var(--akz);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.karten-titel {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.karten-zeit {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.exp,
.edu,
.spr {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  min-height: 42px;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  font-weight: 750;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--akz) 0%, var(--akz-deep) 100%);
  border-color: var(--akz);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
}

.button.ghost {
  color: var(--akz);
  background: transparent;
  border-color: rgba(0, 136, 203, 0.28);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(20, 57, 74, .14);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button:disabled:hover {
  transform: none;
}

.bezahl-box {
  margin-top: 18px;
  padding: 18px;
  background: #F1F9FC;
  border: 1px solid rgba(0, 136, 203, 0.35);
  border-radius: var(--radius);
}

.bezahl-kopf {
  margin-bottom: 12px;
}

.angebote {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.angebot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.angebot input {
  position: absolute;
  opacity: 0;
}

.angebot.selected {
  border-color: var(--akz);
  box-shadow: inset 0 0 0 1px var(--akz);
}

.angebot-kopf {
  display: flex;
  align-items: center;
  gap: 8px;
}

.angebot-name {
  font-weight: 760;
}

.angebot-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  color: var(--ok);
  background: var(--ok-bg);
}

.angebot-preis {
  font-weight: 780;
  white-space: nowrap;
}

.deaktiviert {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.weitere-angaben {
  min-height: 96px;
}

.schliff-info {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #F1F9FC;
  border: 1px solid rgba(0, 136, 203, 0.35);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.5;
  color: #2A3A45;
}

.schliff-info-titel {
  margin: 0 0 6px;
  font-weight: 760;
  color: var(--ink);
}

.bezahl-aktionen {
  justify-content: flex-start;
}

.bezahl-email {
  margin-bottom: 12px;
}

.bezahl-hinweis {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

#bezahlStatus:not(:empty) {
  margin-bottom: 12px;
}

.hinweis {
  margin-bottom: 14px;
  padding: 13px 14px;
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid rgba(154, 103, 0, 0.35);
  border-radius: var(--radius);
}

.karte {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: var(--surface, #fff);
  border: 1px solid var(--rand, rgba(0, 0, 0, 0.12));
  border-radius: var(--radius);
}

.karte h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.karte .hint {
  margin: 0 0 10px;
  color: var(--dim, #667);
  font-size: 0.9rem;
}

.orig-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kurz-aktion {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.feld-hinweis {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--dim, #667);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.chip {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 0.85rem;
  color: var(--text, #222);
  background: var(--surface-2, #f1f1ee);
  border: 1px solid var(--rand, rgba(0, 0, 0, 0.12));
  border-radius: 999px;
}

.hausstil {
  margin-top: 10px;
  padding: 10px 12px;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 0.85rem;
  background: var(--surface-2, #f7f7f5);
  border: 1px solid var(--rand, rgba(0, 0, 0, 0.12));
  border-radius: var(--radius);
}

.feld.unbelegt input,
.feld.unbelegt textarea {
  background: #FFFDF5;
  border-color: rgba(154, 103, 0, 0.62);
}

.marke,
.quelle {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
}

.marke {
  color: var(--warn);
  background: var(--warn-bg);
}

.quelle {
  color: var(--ok);
  background: var(--ok-bg);
}

.vorschlag {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.foto-zeile {
  display: flex;
  gap: 14px;
  align-items: center;
}

.foto-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.foto-aktionen {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-panel {
  position: sticky;
  top: 94px;
  padding: 18px;
}

.cv-card {
  display: grid;
  gap: 16px;
}

.paper-preview {
  min-height: 286px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 26px rgba(28, 46, 56, 0.09);
}

.paper-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
}

.paper-identity b,
.paper-identity small { display: block; }
.paper-identity b { font-size: 13px; }
.paper-identity small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.paper-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--akz), var(--teal));
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.paper-preview[data-step="4"] .paper-avatar { box-shadow: 0 0 0 4px var(--akz-soft); }

.paper-rule {
  height: 2px;
  margin: 15px 0;
  background: var(--akz);
}

.paper-rule.small {
  width: 76%;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.metrics div {
  padding: 14px;
  background: #F7FAFB;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metrics span {
  display: block;
  font-size: 28px;
  font-weight: 800;
}

.metrics p {
  margin: 0;
  font-size: 12px;
}

.processing-step {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.processing-card {
  width: min(520px, 100%);
  padding: 34px;
  text-align: center;
  box-shadow: none;
}

.pulse {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  background: radial-gradient(circle, var(--akz) 0 34%, rgba(0, 136, 203, 0.16) 36% 100%);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.96);
  }

  50% {
    transform: scale(1.04);
  }
}

.vorlagen-head {
  margin-bottom: 12px;
}

.vorlagen-leiste {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.vorlage-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.vorlage-chip input {
  position: absolute;
  opacity: 0;
}

.vorlage-chip.selected {
  border-color: var(--akz);
  box-shadow: inset 0 0 0 1px var(--akz);
}

.vorlage-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.preview-frame {
  position: relative;
  padding: 18px;
  background: #EDF4F7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: opacity 0.2s ease;
}

.preview-frame.laedt {
  opacity: 0.5;
  pointer-events: none;
}

#vorschau {
  display: block;
  width: 100%;
  min-height: 280px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.anschreiben {
  margin-top: 22px;
  padding: 22px;
  box-shadow: none;
}

.letter-draft {
  margin-top: 18px;
}

#a_text {
  min-height: 220px;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    order: -1;
  }

  .stepper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 0 18px;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .app-shell {
    padding: 18px 14px 32px;
  }

  .step {
    padding: 20px;
  }

  h1 {
    font-size: 30px;
  }

  .design-grid,
  .reihe,
  .dok .kopf {
    grid-template-columns: 1fr;
  }

  .design {
    grid-template-columns: 76px 1fr;
  }

  .nav,
  .nav-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
