/* ============================================================
   caravan-dealer.net — Design-Tokens (abgeleitet aus Vorlage/logo.jpg)
   Geteilt von öffentlicher Seite und Admin.
   ============================================================ */

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-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;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-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;
}

:root {
  /* Flächen — warmes Fast-Schwarz, nie reines #000 */
  --bg-0: #070605;
  --bg-1: #0f0c09;
  --bg-2: #171209;
  --bg-3: #211a10;

  /* Gold (sparsam einsetzen) */
  --gold:        #c9963a;
  --gold-bright: #e8b45a;
  --gold-hi:     #f4d68c;
  --gold-deep:   #8f6620;

  /* Glut (nur dekorative Glows, nie Text) */
  --ember:      #e07b1f;
  --ember-soft: rgba(224, 123, 31, 0.08);

  /* Chrom/Silber (Headlines) */
  --chrome-hi:  #f5f4f1;
  --chrome-mid: #c2c4c6;
  --chrome-lo:  #82858a;

  /* Text — warmes Off-White */
  --text:       #ece7dd;
  --text-muted: #a89e8d;

  /* Linien */
  --line-gold: rgba(201, 150, 58, 0.28);
  --line-soft: rgba(236, 231, 221, 0.08);

  /* Funktional */
  --wa-green:    #25d366;
  --wa-green-dk: #0b3d22;
  --ok:          #2fbf71;
  --danger:      #d64f4f;

  /* Verläufe */
  --grad-gold:   linear-gradient(160deg, #f4d68c 0%, #c9963a 45%, #8f6620 100%);
  --grad-chrome: linear-gradient(180deg, #f5f4f1 0%, #c2c4c6 45%, #82858a 60%, #e9e9e7 100%);

  /* Schrift */
  --font-display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Form */
  --radius-card: 16px;
  --radius-btn: 12px;
  --glow-gold: 0 0 24px rgba(201, 150, 58, 0.14);
}

/* ---------- Basis ---------- */

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

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

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}

img, video { max-width: 100%; display: block; }

/* display:block oben darf das hidden-Attribut nicht aushebeln */
[hidden] { display: none !important; }

/* Nur für Suchmaschinen/Screenreader sichtbar (z. B. textliche H1 zum Bild-Header) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--gold-bright); }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Chrom-Text-Effekt (mit Fallback) */
.chrome-text {
  color: var(--chrome-hi);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .chrome-text {
    background: var(--grad-chrome);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* Gold-Text-Effekt (Preise) */
.gold-text {
  color: var(--gold-bright);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .gold-text {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-wa {
  background: var(--wa-green);
  color: var(--wa-green-dk);
}

.btn-gold {
  background: var(--grad-gold);
  color: #181008;
}

.btn-ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-danger-ghost {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.btn svg { flex: 0 0 auto; }

@media (hover: hover) {
  .btn-wa:hover { filter: brightness(1.08); }
  .btn-gold:hover { filter: brightness(1.06); }
  .btn-ghost:hover { background: rgba(201, 150, 58, 0.12); }
  .btn-danger-ghost:hover { background: rgba(214, 79, 79, 0.12); }
}

/* ---------- Status-Chips (Admin) ---------- */

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip-draft { border: 1px solid var(--line-soft); color: var(--text-muted); }
.chip-online { background: var(--ok); color: #06281a; }
.chip-sold { background: var(--grad-gold); color: #181008; }
.chip-order { background: transparent; border: 1px solid var(--gold); color: var(--gold-bright); }
.chip-missing { background: var(--danger); color: #fff; }
