/* ==========================================================================
   Schriften (lokal gehostet – keine Verbindung zu Google, DSGVO-freundlich)
   ========================================================================== */
@font-face { font-family: "Fraunces"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 300; font-style: italic; font-display: swap; src: url("../fonts/fraunces-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ==========================================================================
   Gestaltungs-Token
   ========================================================================== */
:root {
  --accent: #8C6F4E;
  --accent-fg: #fff;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 35%, transparent);

  --bg: #F6F3EE;
  --surface: #FFFFFF;
  --surface-2: #FBF9F6;
  --ink: #1E1C1A;
  --ink-2: #5E5852;
  --ink-3: #958D85;
  --line: #E7E1D8;
  --line-strong: #D6CEC2;
  --success: #4F6F52;
  --success-soft: #E9EFE7;
  --danger: #A3483A;
  --danger-soft: #F6E7E3;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(30 28 26 / .04);
  --shadow: 0 1px 2px rgb(30 28 26 / .04), 0 18px 40px -20px rgb(30 28 26 / .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ==========================================================================
   Typografie
   ========================================================================== */
.display {
  font: 300 clamp(2.4rem, 4.6vw, 3.6rem)/1.04 var(--serif);
  letter-spacing: -.02em;
  margin: 0 0 1.5rem;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.display em { font-style: italic; color: var(--accent); }
.display--md { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.eyebrow {
  margin: 0 0 1rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lead { color: var(--ink-2); font-size: 1rem; max-width: 34rem; margin: 0 0 2rem; }
.section-title { font: 400 1.35rem/1.2 var(--serif); margin: 0; letter-spacing: -.01em; }
.subhead { font: 500 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 2rem 0 1rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.fineprint { font-size: .8rem; color: var(--ink-3); margin: .25rem 0 0; }
small { color: var(--ink-3); font-weight: 400; }

/* ==========================================================================
   Buttons & Formulare
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 44px; padding: 0 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: .9rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); color: var(--accent-fg); box-shadow: 0 10px 24px -10px var(--accent); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { height: 34px; padding: 0 1rem; font-size: .82rem; }
.btn--xl { height: 60px; padding: 0 2rem; font-size: 1rem; width: 100%; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

.iconbtn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.iconbtn:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.iconbtn--danger:hover { color: var(--danger); background: var(--danger-soft); border-color: transparent; }

.form { display: grid; gap: 1.1rem; }
.form--narrow { max-width: 360px; }
.field { display: grid; gap: .45rem; min-width: 0; }
.field > span:first-child { font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, .search {
  width: 100%; height: 46px; padding: 0 1rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 46px; padding: .7rem 1rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .search:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder, .search::placeholder { color: #BDB5AB; }
.input-suffix { position: relative; display: block; }
.input-suffix input { padding-right: 4.5rem; }
.input-suffix em { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .85rem; color: var(--ink-3); pointer-events: none; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.check { display: inline-flex; gap: .4rem; align-items: center; font-size: .82rem; color: var(--ink-2); cursor: pointer; }

.alert { margin: 0 0 1.5rem; padding: .85rem 1.1rem; border-radius: var(--r-sm); font-size: .9rem; }
.alert--error { background: var(--danger-soft); color: var(--danger); }
.alert--success { background: var(--success-soft); color: var(--success); }

/* ==========================================================================
   Öffentliche Seiten (Download, Login, Meldungen)
   ========================================================================== */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.hero { position: relative; overflow: hidden; background: #E7DED1; }
.hero__img, .hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img { animation: heroIn 1.6s var(--ease) both; }
.hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 18 16 / .45), transparent 40%); }
.hero__caption {
  position: absolute; left: 2.5rem; bottom: 2.25rem; right: 2.5rem; z-index: 1;
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgb(30 28 26 / .55);
}
.hero--image .hero__caption { color: rgb(255 255 255 / .85); }
@keyframes heroIn { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }

.panel { display: flex; flex-direction: column; padding: 2.5rem clamp(1.5rem, 6vw, 5.5rem); background: var(--bg); }
.panel__brand { min-height: 48px; }
.panel__body { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 460px; padding: 3rem 0; }

.brandmark { display: inline-flex; flex-direction: column; gap: .15rem; text-decoration: none; }
.brandmark__logo { max-height: 44px; max-width: 200px; width: auto; object-fit: contain; object-position: left center; }
.brandmark__name { font: 400 1.3rem/1.1 var(--serif); letter-spacing: -.01em; }
.brandmark__tagline { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

.note {
  margin: 0 0 2rem; padding: 0 0 0 1.25rem; border-left: 1px solid var(--accent-line);
  font: 300 italic 1.08rem/1.6 var(--serif); color: var(--ink-2);
}
.note cite { display: block; margin-top: .6rem; font: 400 normal .78rem var(--sans); letter-spacing: .04em; color: var(--ink-3); }

.filecard {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem; margin-bottom: 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.filecard__icon, .ficon {
  flex: none; position: relative; width: 44px; height: 54px;
  border-radius: 6px 14px 6px 6px; background: var(--accent-soft);
  display: grid; place-items: end center; padding-bottom: 8px;
  font-size: .58rem; font-weight: 600; letter-spacing: .08em; color: var(--accent);
}
.filecard__icon::before, .ficon::before {
  content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 14px;
  background: linear-gradient(225deg, var(--bg) 50%, var(--accent-line) 50%); border-radius: 0 0 0 4px;
}
.filecard__meta { display: grid; min-width: 0; }
.filecard__meta strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filecard__meta span { color: var(--ink-3); font-size: .85rem; }
.hint { margin: 1rem 0 0; text-align: center; font-size: .82rem; color: var(--ink-3); }
.hint--success { color: var(--success); }
.preview-flag { align-self: flex-start; margin: 0 0 1.5rem; padding: .35rem .8rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 500; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.pfooter { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-3); }
.pfooter div { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.pfooter a { text-decoration: none; transition: color .2s; }
.pfooter a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .hero { height: 34vh; min-height: 220px; }
  .hero__caption { left: 1.25rem; right: 1.25rem; bottom: 1rem; }
  .panel { padding: 1.75rem 1.25rem 1.5rem; }
  .panel__body { padding: 2rem 0 2.5rem; justify-content: flex-start; }
}

/* ==========================================================================
   Verwaltungsbereich
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 76px; padding: 0 clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar .brandmark__logo { max-height: 36px; }
.topnav { display: flex; align-items: center; gap: .25rem; }
.topnav a { padding: .5rem .9rem; border-radius: 999px; font-size: .88rem; text-decoration: none; color: var(--ink-2); transition: background .2s, color .2s; }
.topnav a:hover { color: var(--ink); }
.topnav a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.topnav form { margin: 0 0 0 .5rem; }
.topnav__logout { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: color .2s, border-color .2s; }
.topnav__logout:hover { color: var(--ink); border-color: var(--ink); }

.shell { max-width: 1120px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 6rem; }

.intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.intro .display { margin: 0; }
.intro--compact { margin-bottom: 2rem; }
.stats { display: flex; gap: 0; margin: 0; }
.stats div { padding: 0 1.75rem; border-left: 1px solid var(--line-strong); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .35rem; }
.stats dd { margin: 0; font: 300 2rem/1 var(--serif); font-variant-numeric: tabular-nums; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* Upload */
.upload { padding: .75rem; margin-bottom: 3.5rem; }
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  min-height: 250px; padding: 2rem; text-align: center; cursor: pointer;
  border-radius: calc(var(--r-lg) - 8px);
  background:
    radial-gradient(120% 140% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--surface-2);
  outline: 1px dashed var(--line-strong); outline-offset: -1px;
  transition: outline-color .25s, background-color .25s, transform .25s var(--ease);
}
.dropzone:hover, .dropzone.is-over { outline-color: var(--accent); }
.dropzone.is-over { transform: scale(.995); background-color: color-mix(in srgb, var(--accent) 6%, var(--surface-2)); }
.dropzone__icon {
  display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: .75rem;
  border-radius: 50%; background: var(--surface); color: var(--accent); box-shadow: var(--shadow);
  transition: transform .4s var(--ease);
}
.dropzone:hover .dropzone__icon, .dropzone.is-over .dropzone__icon { transform: translateY(-4px); }
.dropzone__title { font: 300 1.6rem/1.2 var(--serif); letter-spacing: -.01em; }
.dropzone__sub { color: var(--ink-2); }
.dropzone__sub u { text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.dropzone__meta { margin-top: .9rem; font-size: .76rem; color: var(--ink-3); }

.upload__options { display: grid; grid-template-columns: 1fr 180px; gap: 1rem 1.25rem; padding: 1.5rem 1.25rem 1.25rem; }
.field--wide { grid-column: 1 / -1; }

.queue { list-style: none; margin: 0; padding: 0 .5rem; }
.queue:not(:empty) { padding-bottom: .5rem; }
.qitem { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem .75rem; border-top: 1px solid var(--line); animation: rise .5s var(--ease) both; }
.qitem__main { min-width: 0; }
.qitem__name { display: flex; gap: .75rem; align-items: baseline; justify-content: space-between; }
.qitem__name strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qitem__name span { flex: none; font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.progress { position: relative; height: 3px; margin: .65rem 0 .45rem; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s linear; }
.qitem.is-done .progress__bar { background: var(--success); }
.qitem.is-error .progress__bar { background: var(--danger); }
.qitem.is-paused .progress__bar { opacity: .45; }
.qitem__status { font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.qitem.is-error .qitem__status { color: var(--danger); }
.qitem__actions { display: flex; gap: .25rem; }
.qitem__result { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.linkbox {
  flex: 1 1 260px; display: flex; align-items: center; gap: .5rem; min-width: 0;
  height: 44px; padding: 0 .4rem 0 1rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink);
}
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 .9rem var(--sans); }
.linkbox .btn { height: 34px; }

/* Liste der Übertragungen */
.transfers__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.transfers__tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: #EEE9E1; }
.segmented button { border: 0; background: transparent; padding: .45rem 1rem; border-radius: 999px; font-size: .82rem; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.segmented button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.search { height: 38px; width: 200px; border-radius: 999px; font-size: .88rem; }

.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.titem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .3s, border-color .3s; animation: rise .45s var(--ease) both; }
.titem:hover { box-shadow: var(--shadow); }
.titem.is-open { box-shadow: var(--shadow); border-color: var(--line-strong); }
.titem.is-expired { background: var(--surface-2); }
.titem.is-expired .ficon { filter: grayscale(1); opacity: .6; }
.titem__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 1.25rem; align-items: center; padding: 1rem 1.1rem; cursor: pointer; }
.titem__info { min-width: 0; }
.titem__name { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titem__meta { display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .8rem; color: var(--ink-3); }
.titem__count { text-align: right; min-width: 84px; }
.titem__count strong { display: block; font: 300 1.6rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.titem__count span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.titem__actions { display: flex; gap: .15rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 500; color: var(--success); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--soon { color: #A9782F; }
.badge--off { color: var(--ink-3); }
.chev { transition: transform .3s var(--ease); }
.titem.is-open .chev { transform: rotate(180deg); }

.titem__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.titem.is-open .titem__detail { grid-template-rows: 1fr; }
.titem__detail > div { overflow: hidden; }
.detail { padding: .25rem 1.1rem 1.25rem; display: grid; gap: 1.5rem; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.detail__label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .6rem; }
.days-editor { display: flex; gap: .5rem; align-items: center; }
.days-editor .input-suffix { width: 140px; }
.days-editor input { height: 40px; }
.detail .field input, .detail .field textarea { font-size: .9rem; }

.log { width: 100%; border-collapse: collapse; font-size: .85rem; }
.log th { text-align: left; font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 0 .75rem .6rem 0; }
.log td { padding: .7rem .75rem .7rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.log td:last-child, .log th:last-child { padding-right: 0; text-align: right; }
.log code { font: 500 .82rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.log .muted, .muted { color: var(--ink-3); }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .74rem; background: var(--success-soft); color: var(--success); white-space: nowrap; }
.pill--partial { background: #F4EEE3; color: #8A6A35; }

.empty { display: grid; place-items: center; gap: .5rem; padding: 3.5rem 1rem; color: var(--ink-3); text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.empty p { margin: 0; }

/* Einstellungen */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.settings-side { display: grid; gap: 1.5rem; }
.settings-card { padding: 1.75rem; display: grid; gap: 1.1rem; }
.settings-card header p { margin: .35rem 0 0; color: var(--ink-3); font-size: .88rem; }
.settings-card footer { padding-top: .5rem; }
.imgpick { display: grid; gap: .6rem; }
.imgpick__preview { display: grid; place-items: center; height: 110px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; color: var(--ink-3); font-size: .8rem; }
.imgpick__preview--logo img { max-height: 60px; max-width: 80%; object-fit: contain; }
.imgpick__preview--hero img { width: 100%; height: 100%; object-fit: cover; }
.imgpick__actions { display: flex; align-items: center; gap: 1rem; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); transition: transform .2s var(--ease); }
.swatch:hover { transform: scale(1.08); }
.swatch.is-active::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--ink); }
.swatch--custom { overflow: hidden; background: conic-gradient(#d4a373, #a3b18a, #588157, #457b9d, #6d597a, #b56576, #d4a373); }
.swatch--custom input { position: absolute; inset: -10px; width: 60px; height: 60px; opacity: 0; cursor: pointer; }
.swatches code { font: 500 .8rem ui-monospace, Menlo, monospace; color: var(--ink-3); margin-left: .25rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 50; transform: translate(-50%, 20px);
  padding: .8rem 1.25rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .88rem;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Bewegung */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .7s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .06s; }
.reveal:nth-child(3) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Responsiv */
.only-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .only-touch { display: inline; }
  .only-pointer { display: none; }
}
@media (max-width: 900px) {
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar { height: 64px; }
  .topbar .brandmark { min-width: 0; }
  .topbar .brandmark__name { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .brandmark__tagline { display: none; }
  .topbar .brandmark__logo { max-height: 28px; max-width: 120px; }
  .topnav { flex: none; gap: 0; }
  .topnav a { padding: .4rem .6rem; font-size: .8rem; }
  .topnav form { margin-left: .25rem; }
  .topnav__logout { width: 34px; height: 34px; }
  .stats { width: 100%; }
  .stats div { flex: 1; padding: 0 .9rem; }
  .stats dt { font-size: .6rem; letter-spacing: .1em; }
  .stats dd { font-size: 1.35rem; }
  .hero__caption { display: none; }
  .upload__options { grid-template-columns: 1fr; padding: 1.25rem .75rem 1rem; }
  .dropzone { min-height: 200px; }
  .titem__row { grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; }
  .titem__actions { grid-column: 1 / -1; justify-content: flex-end; margin-top: -.25rem; }
  .detail__grid { grid-template-columns: 1fr; }
  .log .hide-sm { display: none; }
  .search { width: 100%; }
  .transfers__tools { width: 100%; }
}
