:root {
  --brand: #8c1627;
  --brand-dark: #6d101e;
  --brand-tint: #fdf3f4;
  --notice: #16794c;
  --notice-border: #cbe7d8;
  --notice-tint: #f2faf6;
  --notice-text: #3f5a4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f5f7;
  color: #1f2430;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

.app {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.brand {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
}

h1 {
  margin: 0 0 4px;
  font-size: 24px;
}

.lead {
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 14.5px;
  line-height: 1.65;
}

.section-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2430;
}

.steps,
.facts {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid #e5e7eb;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step-list li {
  display: flex;
  gap: 13px;
  margin-bottom: 16px;
}

.step-list li:last-child {
  margin-bottom: 0;
}

.step-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.step-body strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
  color: #1f2430;
}

.step-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #6b7280;
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  position: relative;
  padding-left: 17px;
  margin-bottom: 11px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #6b7280;
}

.fact-list li:last-child {
  margin-bottom: 0;
}

.fact-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.45;
}

.fact-list strong {
  color: #374151;
  font-weight: 600;
}

.dropzone {
  border: 2px dashed #c7cad1;
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone-title {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}

.dropzone.dragover .dropzone-title {
  color: inherit;
}

.dropzone-sub {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

.dropzone.dragover .dropzone-sub {
  color: inherit;
}

.dropzone-hint {
  margin: 9px 0 0;
  font-size: 12px;
  text-align: center;
  color: #9ca3af;
}

.list-hint {
  margin: 20px 0 -6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7280;
}

.field-hint {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
}

.dropzone:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.dropzone.dragover {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand);
}

.file-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fafafa;
  cursor: grab;
}

.file-list li.dragging {
  opacity: 0.4;
}

.file-list li .handle {
  color: #9ca3af;
  font-size: 14px;
}

.file-list li .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.file-list li .size {
  color: #9ca3af;
  font-size: 12px;
}

.file-list li .remove {
  border: none;
  background: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
}

.filename-row {
  margin-top: 24px;
}

.filename-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #374151;
}

.filename-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}

.filename-input-wrap input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.filename-input-wrap span {
  padding: 10px 12px;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 14px;
}

#mergeBtn {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

#mergeBtn:disabled {
  background: #c7cad1;
  cursor: not-allowed;
}

#mergeBtn:not(:disabled):hover {
  background: var(--brand-dark);
}

.status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}

.status.error {
  color: #ef4444;
}

.status.success {
  color: #16a34a;
}

.notice {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--notice-tint);
  border: 1px solid var(--notice-border);
  border-left: 4px solid var(--notice);
  border-radius: 10px;
}

.notice-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  color: var(--notice);
}

.notice-body {
  min-width: 0;
}

.notice-title {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--notice);
  letter-spacing: 0.01em;
}

.notice-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--notice-text);
}

.notice-list {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--notice-text);
}

.notice-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 3px;
}

.notice-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--notice);
  opacity: 0.55;
}

.notice-list li:last-child {
  margin-bottom: 0;
}

.app-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}

/* ================================================================
   Landingpage
   ================================================================ */

.page-landing,
.page-login,
.page-app {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f8 55%, #eaecef 100%);
  min-height: 100vh;
  align-items: flex-start;
}

.landing {
  width: 100%;
  max-width: 660px;
  background: transparent;
  padding: 8px 4px 40px;
  text-align: center;
}

.brand--center {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 26px;
}

.brand--center .brand-logo {
  margin: 0 auto;
  max-width: 280px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(38px, 8vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink, #1f2430);
}

.hero-accent {
  color: var(--brand);
}

.hero-sub {
  margin: 0 auto 34px;
  max-width: 470px;
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
}

.hero-art {
  margin: 0 0 38px;
}

.hero-art svg {
  width: 100%;
  height: auto;
  max-width: 560px;
}

.art-sheet rect:first-child {
  fill: #ffffff;
  stroke: #dde1e6;
  stroke-width: 2;
}

.art-sheet {
  filter: drop-shadow(0 4px 6px rgba(31, 36, 48, 0.10));
}

.art-tag {
  fill: var(--brand);
  opacity: 0.8;
}

.art-line {
  fill: #e3e6ea;
}

.art-badge {
  fill: var(--brand);
}

.art-badge-text {
  fill: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}

.art-arrow line {
  stroke: var(--brand);
}

.art-arrow path {
  fill: var(--brand);
}

.benefits {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.benefits li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.benefits li:last-child {
  margin-bottom: 0;
}

.benefit-check {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.benefit-check svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefits strong {
  display: block;
  font-size: 15.5px;
  color: #1f2430;
  margin-bottom: 2px;
}

.benefits span {
  font-size: 13.5px;
  color: #9ca3af;
}

.notice--compact {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  max-width: fit-content;
  padding-right: 30px;
}

.notice--compact .notice-text {
  margin-top: 2px;
}

.cta {
  display: inline-block;
  padding: 17px 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}

.cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cta--block {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-family: inherit;
}

.cta-sub {
  margin: 16px auto 0;
  max-width: 470px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #6b7280;
}

.landing .app-footer {
  margin-top: 34px;
}

/* ================================================================
   Anmeldung
   ================================================================ */

.page-login {
  align-items: center;
}

.login-card {
  width: 100%;
  max-width: 420px;
  margin: auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 34px 32px 28px;
  box-shadow: 0 4px 20px rgba(31, 36, 48, 0.09);
  text-align: center;
}

.login-title {
  margin: 0 0 5px;
  font-size: 24px;
}

.login-sub {
  margin: 0 0 24px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #6b7280;
}

.login-error {
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: 9px;
  background: var(--brand-tint);
  border: 1px solid #f0d6da;
  border-left: 4px solid var(--brand);
  color: #7c1524;
  font-size: 13.5px;
  text-align: left;
}

.login-form {
  text-align: left;
}

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.login-form input {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(140, 22, 39, 0.12);
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
}

.back-link:hover {
  color: var(--brand);
}

.login-card .app-footer {
  margin-top: 24px;
}

/* ================================================================
   Kopfzeile in der Anwendung
   ================================================================ */

.brand--bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logout-form {
  margin: 0;
  flex: 0 0 auto;
}

.logout-btn {
  padding: 8px 16px;
  border: 1px solid #d8dbe0;
  border-radius: 8px;
  background: #ffffff;
  color: #6b7280;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.logout-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.label-hint {
  font-weight: 400;
  color: #9ca3af;
}

.auth-switch {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: #6b7280;
}

.auth-switch a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ================================================================
   Kontingent und Preise
   ================================================================ */

.kontingent {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: #9ca3af;
}

.kontingent a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.kontingent a:hover {
  text-decoration: underline;
}

.kontingent-stand {
  margin: 0 0 22px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #f3f4f6;
  font-size: 13.5px;
  color: #374151;
  text-align: center;
}

.pakete {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 6px;
}

.paket {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 26px 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  text-align: center;
}

.paket--beliebt {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 4px 14px rgba(140, 22, 39, 0.12);
}

.paket-band {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paket-menge {
  font-size: 34px;
  font-weight: 700;
  color: #1f2430;
  line-height: 1.1;
}

.paket-einheit {
  font-size: 13px;
  color: #9ca3af;
}

.paket-preis {
  margin: 10px 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}

.paket .cta {
  padding: 11px 18px;
  font-size: 14px;
}

.cta-sub strong {
  color: #374151;
}

.cta-sub--kontakt {
  margin-top: 6px;
  font-size: 12.5px;
  color: #9ca3af;
}

.login-hinweis {
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: 9px;
  background: var(--notice-tint);
  border: 1px solid var(--notice-border);
  border-left: 4px solid var(--notice);
  color: var(--notice-text);
  font-size: 13.5px;
  text-align: left;
}

.login-error a {
  color: var(--brand);
  font-weight: 600;
}

/* ================================================================
   Impressum / Rechtstexte
   ================================================================ */

.legal h2 {
  margin: 24px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2430;
}

.legal h2:first-child {
  margin-top: 4px;
}

.legal p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #4b5563;
}

.legal a {
  color: var(--brand);
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ================================================================
   Widerrufs-Zustimmung vor dem Kauf
   ================================================================ */

.consent {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}

.consent-label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
}

.consent-label input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.consent-fehler {
  margin: 10px 0 0 28px;
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
}

.consent-label a,
.consent-agb a {
  color: var(--brand);
  font-weight: 600;
}

.consent-agb {
  margin: 10px 0 0 28px;
  font-size: 12px;
  color: #9ca3af;
}

.muster {
  padding: 14px 16px;
  border: 1px dashed #c7cad1;
  border-radius: 10px;
  background: #fafafa;
}

.product-logo {
  display: block;
  width: min(370px, 88%);
  height: auto;
  margin: 4px auto 30px;
}

/* ================================================================
   Anwendungsseite – Layout wie die Startseite
   ================================================================ */

.app-page {
  width: 100%;
  max-width: 660px;
  padding: 8px 4px 40px;
}

.app-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.app-head {
  text-align: center;
  margin-bottom: 26px;
}

.app-logo-link {
  display: block;
}

.app-head .product-logo {
  margin: 4px auto 20px;
}

.app-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #1f2430;
}

.app-lead {
  margin: 0 auto;
  max-width: 470px;
  font-size: 15px;
  line-height: 1.65;
  color: #4b5563;
}

/* Das eigentliche Werkzeug bleibt eine weiße Karte, damit der
   Arbeitsbereich klar vom Fließtext getrennt ist. */
.tool-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 26px 24px 24px;
  box-shadow: 0 3px 16px rgba(31, 36, 48, 0.09);
}

.app-page .steps,
.app-page .facts {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #dfe2e6;
}

.gesamt {
  margin: 10px 0 0;
  font-size: 12.5px;
  text-align: right;
  color: #9ca3af;
}

.gesamt--voll {
  color: var(--brand);
  font-weight: 600;
}
