/* fourplex Transfer - CI nach Brandbook 2026 */
@font-face {
  font-family: 'Buvera';
  src: url('/fonts/Buvera-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Buvera';
  src: url('/fonts/Buvera-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Buvera';
  src: url('/fonts/Buvera-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --cyan: #009dc5;
  --cyan-dark: #0089ac;
  --cyan-10: #e6f5f9;
  --volcanite: #1f2425;
  --volcanite-70: #4a5254;
  --volcanite-40: #8e989b;
  --soft: #d1d6d9;
  --soft-50: #e8ebec;
  --white: #ffffff;
  --danger: #c5342a;
  --panel-width: 420px;
  --radius: 4px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .35);
  font-family: 'Buvera', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--volcanite);
  color: var(--white);
  font-family: 'Buvera', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* --- Hintergrund: Volcanite mit CI-Elementen, optional eigenes Motiv --- */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
/* Motiv liegt nur an, wenn public/img/bg.jpg (o. .png/.webp) existiert */
.stage__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--volcanite);
  background-image: var(--bg-image, none);
  background-size: cover;
  background-position: center right;
  filter: grayscale(1) contrast(1.05);
}
.stage__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--volcanite) 0%, rgba(31, 36, 37, .93) 38%, rgba(31, 36, 37, .5) 68%, rgba(31, 36, 37, .3) 100%);
}
/* Doppel-Chevron als CI-Element, rechts angeschnitten */
.stage__art {
  position: fixed;
  top: 50%;
  right: -90px;
  width: 52vh;
  height: 96vh;
  transform: translateY(-50%);
  z-index: 0;
  background: url('/img/chevron-outline.svg') no-repeat center / contain;
  opacity: var(--art-opacity, .55);
  pointer-events: none;
}
/* diagonale Streifen unten rechts */
.stage__stripes {
  position: fixed;
  right: -60px;
  bottom: -60px;
  width: 360px;
  height: 360px;
  z-index: 0;
  opacity: .3;
  background: repeating-linear-gradient(-45deg, var(--cyan) 0 2px, transparent 2px 15px);
  mask-image: linear-gradient(-45deg, #000 20%, transparent 75%);
  -webkit-mask-image: linear-gradient(-45deg, #000 20%, transparent 75%);
  pointer-events: none;
}

.stage__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 5vw, 64px) 20px;
  gap: 24px;
}

/* --- Kopf --- */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand__logo { display: block; height: 34px; width: auto; }
.brand__nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--soft);
}
.brand__nav a { color: inherit; text-decoration: none; opacity: .75; transition: opacity .2s, color .2s; }
.brand__nav a:hover { opacity: 1; color: var(--cyan); }

/* --- Hauptbereich --- */
.layout {
  flex: 1;
  display: grid;
  grid-template-columns: var(--panel-width) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: 12px 0 8px;
}

.claim { max-width: 700px; }
.claim__over {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.claim__over::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--cyan);
}
.claim__headline {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.claim__headline em { font-style: normal; color: var(--cyan); }
.claim__text {
  margin: 24px 0 0;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--soft);
}
.claim__facts {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
}
.claim__facts li { font-size: 14px; color: var(--soft); }
.claim__facts b { display: block; font-size: 22px; font-weight: 700; color: var(--white); }

/* --- Panel --- */
.panel {
  background: var(--white);
  color: var(--volcanite);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 24px;
  width: 100%;
  max-height: min(calc(100svh - 150px), 860px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.panel__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--volcanite-40);
}
.panel__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}
.panel__mark {
  flex: none;
  height: 40px;
  width: auto;
  display: block;
  margin-top: 2px;
}
.panel__note {
  margin: -8px 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--volcanite-70);
}

/* --- Dropzone --- */
.dropzone {
  border: 1.5px dashed var(--soft);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #fff;
}
.dropzone:hover, .dropzone.is-over {
  border-color: var(--cyan);
  background: var(--cyan-10);
}
.dropzone__plus {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.dropzone__label { margin: 0; font-size: 17px; font-weight: 500; }
.dropzone__hint { margin: 6px 0 0; font-size: 13px; color: var(--volcanite-70); }
.linkish {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--volcanite-70);
  text-decoration: underline;
  cursor: pointer;
}
.linkish:hover { color: var(--cyan); }

/* --- Dateiliste --- */
.filelist { list-style: none; margin: 16px 0 0; padding: 0; max-height: 190px; overflow-y: auto; }
.filelist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--soft-50);
  font-size: 14px;
}
.filelist__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist__size { color: var(--volcanite-40); font-size: 13px; white-space: nowrap; }
.filelist__remove {
  border: none;
  background: none;
  color: var(--volcanite-40);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.filelist__remove:hover { color: var(--danger); }
.filemeta {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 4px;
  font-size: 13px;
  color: var(--volcanite-70);
}

/* --- Modus-Umschalter --- */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 20px 0 16px;
  padding: 4px;
  background: var(--soft-50);
  border-radius: var(--radius);
}
.tabs button {
  border: none;
  background: none;
  padding: 9px 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--volcanite-70);
  border-radius: 2px;
  cursor: pointer;
}
.tabs button[aria-selected='true'] { background: var(--volcanite); color: #fff; }
.tabs button:disabled { opacity: .45; cursor: not-allowed; }

/* --- Formular --- */
.field { margin-bottom: 12px; }
.field > label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--volcanite-40);
}
input[type='text'], input[type='email'], input[type='password'], textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--volcanite);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 157, 197, .16);
}
textarea { min-height: 78px; resize: vertical; }
.options { margin: 4px 0 18px; }
.options > summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--volcanite-70);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.options > summary::-webkit-details-marker { display: none; }
.options > summary::before { content: '+'; color: var(--cyan); font-weight: 700; }
.options[open] > summary::before { content: '–'; }
.options__body { padding-top: 14px; }
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--volcanite-70);
}
.checkbox input { accent-color: var(--cyan); width: 16px; height: 16px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--cyan); color: #fff; }
#submit {
  position: sticky;
  bottom: -1px;
  box-shadow: 0 -14px 18px -8px rgba(255, 255, 255, .95);
}
.btn--primary:hover { background: var(--cyan-dark); }
.btn--primary:disabled { background: var(--soft); color: var(--volcanite-40); cursor: not-allowed; }
.btn--ghost { background: none; border: 1.5px solid var(--soft); color: var(--volcanite); }
.btn--ghost:hover { border-color: var(--volcanite); }
.btn--dark { background: var(--volcanite); color: #fff; }
.btn--dark:hover { background: #2c3334; }

/* --- Upload-Fortschritt --- */
.progress { text-align: center; padding: 10px 0 4px; }
.progress__ring { display: block; margin: 0 auto 18px; }
.progress__ring circle { fill: none; stroke-width: 6; }
.progress__ring .track { stroke: var(--soft-50); }
.progress__ring .bar {
  stroke: var(--cyan);
  stroke-linecap: butt;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset .25s linear;
}
.progress__percent {
  font-size: 30px;
  font-weight: 700;
}
.progress__label { margin: 8px 0 2px; font-size: 15px; font-weight: 500; }
.progress__detail { margin: 0 0 20px; font-size: 13px; color: var(--volcanite-70); }

/* --- Ergebnis --- */
.result__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: var(--cyan-10);
  color: var(--cyan);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
}
.linkbox {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px;
}
.linkbox input {
  flex: 1;
  font-size: 14px;
  background: var(--soft-50);
  border-color: var(--soft-50);
}
.linkbox button { width: auto; flex: none; padding: 11px 16px; font-size: 13px; }
.hint { font-size: 13px; color: var(--volcanite-70); line-height: 1.5; }
.alert {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-left: 3px solid var(--danger);
  background: #fdecea;
  color: #7d221b;
  font-size: 14px;
  line-height: 1.45;
}
.alert--info { border-color: var(--cyan); background: var(--cyan-10); color: var(--volcanite); }
.msgbox {
  margin: 0 0 18px;
  padding: 13px 15px;
  background: var(--cyan-10);
  border-left: 3px solid var(--cyan);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* --- Fuss --- */
.stage__foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--volcanite-40);
}
.stage__foot a { color: inherit; text-decoration: none; }
.stage__foot a:hover { color: var(--cyan); }

.hidden { display: none !important; }
.view[hidden] { display: none; }

/* --- Download-Seite --- */
.panel--download .panel__title { font-size: 20px; }
.panel--download #fromLine { text-transform: none; letter-spacing: .02em; font-size: 13px; }
.dl-files { list-style: none; margin: 0 0 18px; padding: 0; max-height: 240px; overflow-y: auto; }
.dl-files li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-50);
  font-size: 14px;
}
.dl-files a { color: var(--cyan); text-decoration: none; font-size: 13px; white-space: nowrap; }
.dl-files a:hover { text-decoration: underline; }

/* --- Admin --- */
.admin { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 40px 24px 60px; }
.admin h1 { font-size: 30px; text-transform: uppercase; margin: 0 0 6px; }
.admin p.sub { color: var(--soft); margin: 0 0 28px; font-size: 15px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; background: rgba(255,255,255,.04); }
.admin th, .admin td { padding: 11px 12px; text-align: left; border-bottom: 1px solid rgba(209,214,217,.16); }
.admin th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--volcanite-40); }
.admin td a { color: var(--cyan); text-decoration: none; }
.admin .tag { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 12px; background: rgba(0,157,197,.18); color: var(--cyan); }
.admin .tag--expired { background: rgba(197,52,42,.2); color: #ff8a80; }
.admin .tag--open { background: rgba(209,214,217,.16); color: var(--soft); }
.admin button.del { background: none; border: 1px solid rgba(209,214,217,.3); color: var(--soft); padding: 5px 10px; border-radius: 2px; cursor: pointer; font: inherit; font-size: 13px; }
.admin button.del:hover { border-color: var(--danger); color: #ff8a80; }

/* --- Mobil --- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; align-items: start; gap: 34px; padding-top: 4px; }
  .claim { order: -1; }
  .claim__headline { font-size: clamp(32px, 8vw, 48px); }
  .claim__text { font-size: 16px; }
  .panel { max-width: 520px; max-height: none; }
  .stage__bg { background-position: 70% center; }
}
@media (max-width: 600px) {
  .stage__inner { padding: 20px 16px 16px; }
  .stage__art { right: -40vw; opacity: .3; }
  .brand__nav { display: none; }
  .claim__facts { gap: 10px 24px; }
  .claim__facts b { font-size: 18px; }
  .stage__foot { flex-direction: column; gap: 6px; }
}
