/* ============================================================
   StyleVision — Design-System
   Helles Glassmorphism: farbige Aurora-Flächen, darüber Glas.
   ============================================================ */

:root {
  color-scheme: light;

  --bg: #f2f3f9;

  /* Glas-Rezept: heller Verlauf + Blur + heller Rand + Innenlicht */
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.46));
  --glass-soft: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.32));
  --glass-line: rgba(255, 255, 255, 0.72);
  --glass-line-strong: rgba(255, 255, 255, 0.95);
  --glass-blur: blur(26px) saturate(180%);
  --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.9);

  --fill: rgba(255, 255, 255, 0.5);
  --fill-strong: rgba(255, 255, 255, 0.78);
  --line: rgba(23, 28, 48, 0.1);

  --text: #12151f;
  --muted: #525b73;
  --faint: #7d8598;

  --accent: #f4511e;
  --accent-ink: #c8380f;
  --accent-2: #ff9f45;
  --violet: #7c5cff;
  --brand-grad: linear-gradient(135deg, #7c5cff 0%, #f4511e 55%, #ff9f45 100%);
  --accent-soft: rgba(244, 81, 30, 0.11);
  --accent-glow: rgba(244, 81, 30, 0.34);

  --ok: #06754c;
  --err: #c4162c;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(23, 28, 48, 0.06);
  --shadow-md: 0 8px 24px -10px rgba(23, 28, 48, 0.2);
  --shadow-glass:
    0 8px 32px rgba(31, 38, 90, 0.1), 0 2px 8px rgba(31, 38, 90, 0.04);
  --ring: 0 0 0 3px var(--accent-soft);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Muss die display-Regeln der Komponenten schlagen, sonst wirkt [hidden] nicht. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.55 'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================ Aurora
   Ohne Farbe hinter dem Glas gibt es nichts zu brechen — diese Flächen
   sind die Grundlage des gesamten Effekts. */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.blob--1 {
  top: -14vh;
  left: -8vw;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(255, 128, 60, 0.5), transparent 66%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.blob--2 {
  top: -20vh;
  right: -12vw;
  width: 54vw;
  height: 54vw;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.42), transparent 66%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.blob--3 {
  bottom: -26vh;
  left: 24vw;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, rgba(64, 196, 208, 0.3), transparent 66%);
  animation: drift-c 38s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate3d(8vw, 6vh, 0) scale(1.12);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-7vw, 9vh, 0) scale(1.08);
  }
}
@keyframes drift-c {
  to {
    transform: translate3d(-10vw, -7vh, 0) scale(1.14);
  }
}

/* ============================================================ Topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 44px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.4));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: 0 1px 24px rgba(31, 38, 90, 0.06);
}

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

.brand-mark {
  display: block;
  border-radius: 12px;
  box-shadow:
    0 6px 18px -5px rgba(124, 92, 255, 0.45),
    0 2px 6px rgba(244, 81, 30, 0.2);
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Zweite Worthälfte im Markenverlauf */
.brand-name span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-claim {
  font-size: 12px;
  color: var(--muted);
}

.provider-picker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.provider-picker select {
  width: auto;
  min-width: 230px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.provider-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.provider-note {
  margin: 0;
  max-width: 340px;
  text-align: right;
  font-size: 11px;
  line-height: 1.45;
  color: var(--faint);
}

.provider-note:empty {
  display: none;
}

/* ============================================================ Layout */

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  padding: 26px clamp(16px, 4vw, 44px) 8px;
  max-width: 1560px;
  margin: 0 auto;
  align-items: stretch;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-glass), var(--glass-inner);
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.step {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  flex: none;
  box-shadow: 0 3px 10px -3px var(--accent-glow);
}

/* ============================================================ Dropzone */

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--fill);
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

/* Gestrichelter Rahmen als Pseudo-Element: sauber einfärbbar. */
.dropzone::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(23, 28, 48, 0.16);
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.25s var(--ease);
}

/* Die Personen-Dropzone füllt die Resthöhe, damit alle Spalten bündig enden. */
.card > .dropzone {
  flex: 1;
}

.dropzone--sm {
  min-height: 158px;
  flex: none;
}

.dropzone:hover,
.dropzone:focus-visible {
  background: var(--fill-strong);
  outline: none;
}

.dropzone:hover::after,
.dropzone:focus-visible::after {
  border-color: var(--accent);
}

.dropzone.is-over {
  background: var(--accent-soft);
  transform: scale(1.012);
}

.dropzone.is-over::after {
  border-color: var(--accent);
  border-style: solid;
}

.dz-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}

.dz-empty svg {
  padding: 12px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  margin-bottom: 4px;
  box-shadow: 0 8px 20px -8px var(--accent-glow);
  transition: transform 0.3s var(--ease);
}

.dropzone:hover .dz-empty svg {
  transform: translateY(-3px);
}

.dz-empty strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.dz-empty span {
  font-size: 12.5px;
  color: var(--faint);
}

.preview {
  max-width: 100%;
  max-height: 440px;
  border-radius: var(--r-md);
  display: block;
  box-shadow: var(--shadow-md);
}

.clear-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--glass-line-strong);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: 0.18s var(--ease);
}

.clear-btn:hover {
  color: #fff;
  background: var(--err);
  border-color: transparent;
  transform: rotate(90deg);
}

/* ============================================================ Tabs */

.tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: var(--fill);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
}

.tab {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap; /* sonst brechen die Labels in schmalen Spalten um */
  cursor: pointer;
  transition: 0.2s var(--ease);
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-weight: 620;
  box-shadow: var(--shadow-sm);
}

.tabpanel {
  display: none;
  flex-direction: column;
  gap: 9px;
  animation: fade-up 0.28s var(--ease);
}

.tabpanel.is-active {
  display: flex;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

/* ============================================================ Formular */

.input-row {
  display: flex;
  gap: 8px;
}

input[type='url'],
input[type='text'],
select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-sm);
  background: var(--fill);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  transition: 0.18s var(--ease);
}

select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23525b73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px;
  cursor: pointer;
}

input::placeholder {
  color: var(--faint);
}

input:hover,
select:hover {
  background: var(--fill-strong);
  border-color: var(--glass-line-strong);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
  background: rgba(255, 255, 255, 0.9);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.opt {
  color: var(--faint);
  font-weight: 400;
}

.hint {
  margin: 0;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.5;
}

.tips {
  font-size: 12.5px;
  color: var(--muted);
}

.tips summary,
.privacy summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-sm);
  background: var(--fill);
  transition: 0.18s var(--ease);
}

.tips summary::-webkit-details-marker,
.privacy summary::-webkit-details-marker {
  display: none;
}

.tips summary::before,
.privacy summary::before {
  content: '›';
  color: var(--accent);
  font-size: 17px;
  line-height: 1;
  transition: transform 0.22s var(--ease);
}

.tips[open] summary::before,
.privacy[open] summary::before {
  transform: rotate(90deg);
}

.tips summary:hover,
.privacy summary:hover {
  background: var(--fill-strong);
  color: var(--text);
}

.tips ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--faint);
}

.tips li {
  margin: 4px 0;
}

/* ============================================================ Buttons */

.btn {
  position: relative;
  padding: 10px 17px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-sm);
  background: var(--fill);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: 0.2s var(--ease);
}

.btn:hover:not(:disabled) {
  background: var(--fill-strong);
  border-color: var(--glass-line-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn--primary {
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
  padding: 13px 18px;
  font-size: 13.5px;
  font-weight: 640;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 26px -10px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:hover:not(:disabled) {
  background: var(--brand-grad);
  filter: brightness(1.06);
  box-shadow:
    0 14px 32px -10px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--block {
  width: 100%;
  margin-top: 3px;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.32);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.35);
}

/* Ein ausgegrauter Verlauf verschwindet auf dem hellen Glas fast vollständig –
   der deaktivierte CTA bekommt deshalb eine eigene, sichtbare Fläche. */
.btn--primary:disabled {
  opacity: 1;
  filter: none;
  background: rgba(23, 28, 48, 0.07);
  border-color: var(--glass-line);
  color: var(--faint);
  text-shadow: none;
}

/* ============================================================ Produkt */

.product {
  position: relative;
  display: flex;
  gap: 13px;
  padding: 11px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-md);
  background: var(--glass-soft);
  animation: fade-up 0.3s var(--ease);
}

.product img {
  width: 70px;
  height: 94px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: #fff;
  flex: none;
  box-shadow: var(--shadow-sm);
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-right: 24px;
  font-size: 12.5px;
  color: var(--muted);
}

.product-meta strong {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price {
  color: var(--accent-ink);
  font-weight: 660;
  font-size: 13px;
}

.product-meta a {
  color: var(--muted);
  font-size: 11.5px;
  margin-top: auto;
  text-decoration: none;
  transition: color 0.18s;
}

.product-meta a:hover {
  color: var(--accent-ink);
}

/* ============================================================ Galerie */

.gallery {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gallery-label {
  font-size: 12px;
  color: var(--muted);
}

.gallery-strip,
.history-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 28, 48, 0.2) transparent;
}

.gallery-strip::-webkit-scrollbar,
.history-strip::-webkit-scrollbar {
  height: 5px;
}

.gallery-strip::-webkit-scrollbar-thumb,
.history-strip::-webkit-scrollbar-thumb {
  background: rgba(23, 28, 48, 0.2);
  border-radius: 3px;
}

.gallery-strip img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid var(--glass-line);
  background: #fff;
  cursor: pointer;
  flex: none;
  transition: 0.2s var(--ease);
}

.gallery-strip img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gallery-strip img.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.gallery-strip img.is-loading {
  opacity: 0.35;
}

/* ============================================================ Ergebnis */

.card--result {
  min-height: 520px;
}

.result {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  background: var(--fill);
  overflow: hidden;
}

.result img {
  max-width: 100%;
  max-height: 580px;
  display: block;
  cursor: zoom-in;
  animation: reveal 0.5s var(--ease);
}

/* Schaltfläche über dem Bild — macht die Großansicht auffindbar. */
.result-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--glass-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 560;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(-4px);
  transition: 0.2s var(--ease);
}

/* Auf Touch-Geräten gibt es kein Hover — dort dauerhaft zeigen. */
.result:hover .result-zoom,
.result-zoom:focus-visible {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .result-zoom {
    opacity: 1;
    transform: none;
  }
}

.result-zoom:hover {
  background: #fff;
  color: var(--accent-ink);
}

/* ---------------------------------------------------- Großansicht */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(16, 18, 30, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  /* minmax(0, 1fr) statt auto: sonst richtet sich die Zeilenhöhe nach dem Bild
     und max-height:100% hätte keinen Bezugswert — das Bild liefe über. */
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 20px;
  overflow: auto;
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
  animation: reveal 0.35s var(--ease);
}

/* Herangezoomt: doppelte Originalgröße, der Bereich wird scrollbar.
   Die Breite setzt das Skript, weil sie von der Bildauflösung abhängt. */
.lightbox-stage.is-zoomed {
  place-items: start center;
}

.lightbox-stage.is-zoomed img {
  max-width: none;
  max-height: none;
  border-radius: 0;
  cursor: zoom-out;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.45));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-line);
}

.lightbox-hint {
  margin-right: auto;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .lightbox-hint {
    display: none;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: scale(0.97);
    filter: blur(8px);
  }
}

.result-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 13px;
}

.result-empty svg {
  padding: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-line);
}

.result-empty p {
  margin: 0;
}

.spinner-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--muted);
}

.spinner-wrap p {
  margin: 0;
}

/* Zwei gegenläufige Bögen — ruhiger als ein einzelner Ring. */
.spinner {
  position: relative;
  width: 42px;
  height: 42px;
}

.spinner::before,
.spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid transparent;
}

.spinner::before {
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.spinner::after {
  inset: 7px;
  border-bottom-color: var(--violet);
  animation: spin 1.4s linear infinite reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.result-actions .btn {
  flex: 1;
  min-width: 112px;
}

/* ============================================================ Verlauf */

.history h3 {
  margin: 0 0 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.history-strip img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 11px;
  border: 1.5px solid var(--glass-line);
  cursor: pointer;
  flex: none;
  transition: 0.2s var(--ease);
}

.history-strip img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.history-strip img.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============================================================ Status */

.status {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  min-height: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Punkt an der ersten Zeile ausrichten, nicht an der Mitte des Umbruchs. */
.status:not(:empty)::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.status.is-error {
  color: var(--err);
}

.status.is-ok {
  color: var(--ok);
}

/* ============================================================ Footer */

.foot {
  position: relative;
  z-index: 1;
  max-width: 1560px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 44px) 40px;
}

.foot-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-xl);
  background: var(--glass-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-glass), var(--glass-inner);
}

.foot-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-head img {
  border-radius: 9px;
  flex: none;
}

.foot-head strong {
  display: block;
  font-size: 14px;
  font-weight: 660;
  letter-spacing: -0.01em;
}

.foot-head span {
  font-size: 12px;
  color: var(--muted);
}

/* ---- Tipps ---- */

.tips-box {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 82ch;
}

.tip-list li {
  display: flex;
  gap: 11px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.tip-key {
  flex: none;
  min-width: 108px;
  padding: 3px 10px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}

.tip-list strong {
  color: var(--text);
  font-weight: 620;
}

@media (max-width: 560px) {
  .tip-list li {
    flex-direction: column;
    gap: 4px;
  }

  .tip-key {
    align-self: flex-start;
    min-width: 0;
  }
}

/* ---- Unterstützte Seiten ---- */

.shops {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.shops-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-list li {
  padding: 5px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  font-weight: 560;
  color: var(--text);
}

.shops-any {
  margin: 0;
  max-width: 82ch;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.shops-any strong {
  color: var(--text);
  font-weight: 620;
}

.privacy {
  font-size: 12.5px;
  color: var(--muted);
}

.privacy summary {
  font-weight: 560;
  color: var(--text);
}

.privacy-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
  padding: 0 2px;
  max-width: 85ch;
  line-height: 1.6;
}

.privacy-body p {
  margin: 0;
}

.privacy-body strong {
  color: var(--text);
  font-weight: 620;
}

.privacy-body em {
  font-style: normal;
  color: var(--accent-ink);
  font-weight: 560;
}

.foot-note {
  margin: 0;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.6;
  max-width: 78ch;
}

.foot-legal {
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.foot-legal a {
  color: var(--accent-ink);
  font-weight: 560;
  text-decoration: none;
}

.foot-legal a:hover {
  text-decoration: underline;
}

/* ============================================================ Responsive */

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

  .brand-claim {
    display: none;
  }

  .provider-picker span {
    display: none;
  }

  .provider-picker select {
    min-width: 0;
  }

  .provider-box {
    align-items: stretch;
    flex: 1;
  }

  .provider-note {
    display: none;
  }

  .card,
  .foot-card {
    padding: 18px;
    border-radius: var(--r-lg);
  }

  .dropzone {
    min-height: 240px;
  }

  .card--result {
    min-height: auto;
  }

  .blob {
    filter: blur(70px);
  }
}

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

/* Ohne backdrop-filter (ältere Browser) würde das Glas als milchige Fläche
   ohne Kontrast erscheinen — dann lieber deckend. */
@supports not (backdrop-filter: blur(1px)) {
  .card,
  .foot-card,
  .topbar {
    background: rgba(255, 255, 255, 0.94);
  }
}
