/* Gemeinsame Grundlage der Demoseiten: Schriften, Reset, Demo-Hinweis.
   Jede Demo bringt ihr eigenes Design im <style> der Seite mit. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-400-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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/oswald-400-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: 'Oswald';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/oswald-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }

/* Hinweis, dass es sich um ein erfundenes Unternehmen handelt */
.demo-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: center;
  padding: 9px 16px;
  background: #17150f; color: #efe9dc;
  font: 500 13px/1.4 'Inter', system-ui, sans-serif; text-align: center;
}
.demo-bar strong { color: #e0b25f; font-weight: 600; letter-spacing: 0.04em; }
.demo-bar a { color: #efe9dc; text-underline-offset: 3px; }
.demo-bar a:hover { color: #fff; }

/* ============================================================
   Bausteine für die Interaktionen aus demo.js.
   Jede Demo setzt ihre Farben über diese Variablen im :root.
   ============================================================ */
:root {
  --d-surface: #fff;
  --d-text: #1a1a1a;
  --d-muted: #666;
  --d-line: rgba(0, 0, 0, 0.12);
  --d-accent: #1a1a1a;
  --d-on-accent: #fff;
  --d-radius: 14px;
  --d-head: 'Inter', system-ui, sans-serif;
  --d-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
[id] { scroll-margin-top: 56px; }

/* Lebendigere Grundelemente */
.btn { transition: transform 0.25s var(--d-ease), box-shadow 0.25s var(--d-ease), background-color 0.2s, color 0.2s; cursor: pointer; border: 0; font-family: inherit; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
:focus-visible { outline: 2px solid var(--d-accent); outline-offset: 3px; }
button { font: inherit; color: inherit; }

/* Einblenden beim Scrollen (nur mit JS und ohne reduzierte Bewegung) */
.d-js .d-rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--d-ease), transform 0.7s var(--d-ease); }
.d-js .d-rv.is-visible { opacity: 1; transform: none; }

/* Kopfbereich gleitet beim Laden herein */
.d-js .hero .wrap > * { animation: d-rise 0.9s var(--d-ease) both; }
.d-js .hero .wrap > *:nth-child(2) { animation-delay: 0.15s; }
.d-js .hero .wrap > *:nth-child(3) { animation-delay: 0.3s; }
@keyframes d-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Menü-Knopf für schmale Bildschirme — die Demos blenden ihn per Media Query ein */
.d-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.d-burger span, .d-burger span::before, .d-burger span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.d-burger span::before { position: absolute; top: -6px; }
.d-burger span::after { position: absolute; top: 6px; }

/* Dialoge: Fenster, Schublade rechts, Menü von oben */
dialog.d-modal, dialog.d-drawer, dialog.d-sheet {
  padding: 0; border: 0; background: transparent; color: var(--d-text);
  max-width: none; max-height: none; overflow: visible;
}
dialog.d-modal::backdrop, dialog.d-drawer::backdrop, dialog.d-sheet::backdrop {
  background: rgba(10, 10, 8, 0.5); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.3s ease;
}
dialog.is-in::backdrop { opacity: 1; }
.d-panel {
  background: var(--d-surface); color: var(--d-text);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
dialog.d-modal { width: min(560px, 100vw - 32px); margin: auto; }
dialog.d-modal .d-panel { border-radius: var(--d-radius); max-height: min(86vh, 760px); opacity: 0; transform: translateY(18px) scale(0.97); transition: opacity 0.3s ease, transform 0.35s var(--d-ease); }
dialog.d-modal.wide { width: min(860px, 100vw - 32px); }
dialog.d-modal.is-in .d-panel { opacity: 1; transform: none; }
dialog.d-drawer { margin: 0 0 0 auto; height: 100dvh; width: min(420px, 100vw); }
dialog.d-drawer .d-panel { height: 100%; transform: translateX(100%); transition: transform 0.38s var(--d-ease); }
dialog.d-drawer.is-in .d-panel { transform: none; }
dialog.d-sheet { margin: 0 0 auto; width: 100vw; }
dialog.d-sheet .d-panel { border-radius: 0 0 var(--d-radius) var(--d-radius); transform: translateY(-104%); transition: transform 0.38s var(--d-ease); }
dialog.d-sheet.is-in .d-panel { transform: none; }

.d-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--d-line); }
.d-panel-head h2 { font: 600 20px/1.2 var(--d-head); }
.d-panel-body { padding: 22px 24px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.d-panel-foot { padding: 18px 24px 22px; border-top: 1px solid var(--d-line); }
.d-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--d-line); cursor: pointer; font-size: 22px; line-height: 1; display: grid; place-items: center; transition: transform 0.25s var(--d-ease), background-color 0.2s; }
.d-x:hover { transform: rotate(90deg); }

.d-menu-links a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--d-line); text-decoration: none; font: 500 20px var(--d-head); }
.d-menu-links a:last-child { border-bottom: 0; }

/* Warenkorb */
.d-ship { font-size: 14px; color: var(--d-muted); margin-bottom: 16px; }
.d-ship b { color: var(--d-text); }
.d-ship-bar { height: 6px; border-radius: 6px; background: var(--d-line); margin-top: 8px; overflow: hidden; }
.d-ship-bar i { display: block; height: 100%; background: var(--d-accent); border-radius: inherit; transition: width 0.5s var(--d-ease); }
.d-cart-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--d-line); animation: d-in 0.35s var(--d-ease); }
.d-cart-thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--d-line); display: grid; place-items: center; overflow: hidden; }
.d-cart-thumb svg { width: 70%; height: 70%; }
.d-cart-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.d-cart-meta { font-size: 13px; color: var(--d-muted); }
.d-qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.d-qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--d-line); background: transparent; cursor: pointer; line-height: 1; }
.d-qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.d-cart-price { text-align: right; font-weight: 600; font-size: 15px; }
.d-cart-price button { display: block; margin: 6px 0 0 auto; border: 0; background: none; font-size: 12.5px; color: var(--d-muted); text-decoration: underline; cursor: pointer; }
.d-empty { text-align: center; color: var(--d-muted); padding: 40px 0; }
.d-sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 15px; }
.d-sum b { font-size: 20px; }
.d-sum + .d-sum { margin-top: -8px; }
.d-panel-foot .btn { width: 100%; justify-content: center; }
.d-panel-foot .btn[disabled] { opacity: 0.45; pointer-events: none; }
.d-note { font-size: 12.5px; color: var(--d-muted); margin-top: 10px; text-align: center; }

[data-cart-count] { transition: transform 0.3s var(--d-ease); }
[data-cart-count].bump { animation: d-bump 0.45s var(--d-ease); }
.is-added { pointer-events: none; }

/* Formulare */
.d-field { display: block; margin-bottom: 16px; }
.d-field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.d-field input, .d-field select, .d-field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--d-text);
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--d-line); background: transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.d-field select option { color: #1a1a1a; }
.d-field textarea { min-height: 96px; resize: vertical; }
.d-field input:focus, .d-field select:focus, .d-field textarea:focus { outline: none; border-color: var(--d-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-accent) 22%, transparent); }
.d-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.d-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; border: 0; padding: 0; }
.d-chips legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.d-chips label { position: relative; cursor: pointer; }
.d-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.d-chips label span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--d-line); font-size: 14.5px; transition: all 0.2s; }
.d-chips input:checked + span { background: var(--d-accent); border-color: var(--d-accent); color: var(--d-on-accent); }
.d-chips input:focus-visible + span { outline: 2px solid var(--d-accent); outline-offset: 2px; }
.d-success { text-align: center; padding: 26px 6px 10px; animation: d-in 0.45s var(--d-ease); }
.d-success .d-check { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--d-accent); color: var(--d-on-accent); display: grid; place-items: center; }
.d-success .d-check svg { width: 30px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: d-draw 0.5s 0.2s ease forwards; }
.d-success h3 { font: 600 22px/1.25 var(--d-head); margin-bottom: 8px; }
.d-success p { color: var(--d-muted); }
.d-success .btn { margin-top: 20px; }
.d-demo-hint { font-size: 12.5px; color: var(--d-muted); margin-top: 12px; }

/* Mehrstufige Formulare */
.d-steps-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.d-steps-dots i { flex: 1; height: 4px; border-radius: 4px; background: var(--d-line); transition: background-color 0.3s; }
.d-steps-dots i.on { background: var(--d-accent); }
[data-step] { border: 0; padding: 0; margin: 0; min-width: 0; }
[data-step].is-active { animation: d-in 0.35s var(--d-ease); }
.d-step-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; }
.d-step-nav .btn { flex: 1; justify-content: center; }
.d-link-btn { background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--d-muted); font-size: 14.5px; padding: 0 8px; }

/* Aufklappbare Fragen */
details.d-acc { border-bottom: 1px solid var(--d-line); }
details.d-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 17px; }
details.d-acc summary::-webkit-details-marker { display: none; }
details.d-acc summary::after { content: "+"; font-size: 24px; font-weight: 400; line-height: 1; transition: transform 0.3s var(--d-ease); }
details.d-acc[open] summary::after { transform: rotate(45deg); }
.d-acc-body { overflow: hidden; }
.d-acc-body p { padding: 0 0 18px; color: var(--d-muted); }

/* Hinweis unten */
.d-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: #17150f; color: #f4efe4; padding: 13px 20px; border-radius: 12px;
  font-size: 14.5px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.35s var(--d-ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.d-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* Filter */
[data-cat] { transition: opacity 0.3s ease, transform 0.35s var(--d-ease); }
[data-cat].is-out, .d-js [data-cat].d-rv.is-out { opacity: 0; transform: scale(0.96); transition-delay: 0s; }
[data-filter-empty] { grid-column: 1 / -1; text-align: center; padding: 40px 16px; animation: d-in 0.35s var(--d-ease); }

@keyframes d-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes d-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes d-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, *::backdrop { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (max-width: 560px) {
  .d-row { grid-template-columns: 1fr; }
  dialog.d-modal, dialog.d-modal.wide { width: 100vw; margin: auto 0 0; }
  dialog.d-modal .d-panel { border-radius: var(--d-radius) var(--d-radius) 0 0; max-height: 92dvh; transform: translateY(40px); }
}

/* Sehr schmale Handys: Kopfzeile entschlacken — derselbe Knopf steht direkt darunter im Kopfbereich */
@media (max-width: 380px) {
  header.site nav .btn { display: none; }
  header.site .wrap { gap: 8px; }
}
