/* Florafilt Storno-Landingpage — Branding analog client/src/styles.css,
   aber bewusst standalone (kein Tailwind, kein Angular). */

/* DM Sans selbst gehostet (DSGVO — kein Google-CDN). Variable Font 400–700. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary-400: #8ec63f;
  --primary-500: #7ab532;
  --primary-600: #639128;
  --primary-50: #f4fbe8;
  --secondary-600: #5B6480;
  --secondary-900: #272D3E;
  --secondary-50: #F0F2F7;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --surface: #ffffff;
  --shell: #f5f6f8;
  --text-heading: #1f2937;
  --text-body: #374151;
  --text-muted: #6b7280;
  --divider: #e5e7eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--shell);
  color: var(--text-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

header img { height: 36px; }
header .subtitle { color: var(--text-muted); font-size: 14px; }

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

h1 { font-size: 24px; color: var(--text-heading); margin-bottom: 8px; }
h2 { font-size: 18px; color: var(--text-heading); margin-bottom: 12px; }
p.lead { color: var(--text-muted); margin-bottom: 24px; }

.card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  padding: 24px;
  margin-bottom: 16px;
}

label { display: block; font-size: 14px; font-weight: 500; color: var(--text-heading); margin-bottom: 6px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--divider);
  border-radius: 12px;
  font: inherit;
  color: var(--text-body);
  background: var(--surface);
  margin-bottom: 16px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: 2px solid var(--primary-400);
  outline-offset: 1px;
  border-color: var(--primary-400);
}
.form-textarea { resize: vertical; min-height: 80px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 24px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary-400); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-500); }
.btn-outline { background: transparent; border-color: var(--secondary-600); color: var(--secondary-600); }
.btn-outline:hover:not(:disabled) { background: var(--secondary-50); }
.btn-block { width: 100%; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-row .btn { flex: 1; min-width: 140px; }

.choice-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 2px solid var(--divider);
  border-radius: 16px;
  padding: 16px;
  font: inherit;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.choice-btn:hover:not(:disabled) { border-color: var(--primary-400); background: var(--primary-50); }
.choice-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.choice-btn strong { display: block; color: var(--text-heading); margin-bottom: 4px; }
.choice-btn span { font-size: 14px; color: var(--text-muted); }

.banner {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}
.banner-error { background: var(--danger-bg); color: var(--danger); }
.banner-info { background: var(--secondary-50); color: var(--secondary-600); }
.banner-success { background: var(--primary-50); color: var(--primary-600); }

.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}
.item-row:last-child { border-bottom: none; }
.item-row input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--primary-400); }
.item-row .item-name { flex: 1; color: var(--text-heading); }
.item-row .item-qty { color: var(--text-muted); font-size: 14px; }
.item-row select { padding: 6px 10px; border: 1px solid var(--divider); border-radius: 8px; font: inherit; }
.item-row .pill {
  font-size: 12px;
  background: var(--secondary-50);
  color: var(--secondary-600);
  border-radius: 999px;
  padding: 2px 10px;
}

.summary-list { list-style: none; margin-bottom: 16px; }
.summary-list li { padding: 6px 0; border-bottom: 1px solid var(--divider); }
.summary-list li:last-child { border-bottom: none; }
.summary-list .label { color: var(--text-muted); font-size: 13px; display: block; }

.back-link {
  background: none;
  border: none;
  color: var(--secondary-600);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  text-decoration: underline;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--primary-50);
  border-top-color: var(--primary-400);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-500);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.status-pill {
  display: inline-block;
  font-size: 13px;
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--secondary-50);
  color: var(--secondary-600);
  margin-bottom: 16px;
}

footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--divider);
  background: var(--surface);
}
footer a { color: var(--secondary-600); }

@media (max-width: 480px) {
  main { padding: 20px 12px 48px; }
  .card { padding: 18px; border-radius: 16px; }
  h1 { font-size: 20px; }
}
