/* Fashion Kiosk — Fundament: Tokens, Reset, Typografie, Grundkomponenten.
   Siehe DESIGN.md. Alle Templates bauen auf diesen Klassen auf. */

/* ---------------------------------------------------------------- Fonts */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-Variable.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Variable.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* --------------------------------------------------------------- Tokens */
:root {
  --fk-paper: #fcfcfb;
  --fk-surface: #ffffff;
  --fk-sand: #f4f1ec;
  --fk-sand-deep: #ebe6de;
  --fk-ink: #141414;
  --fk-body: #3f3f3d;
  --fk-muted: #7a7975;
  --fk-line: rgba(20, 20, 20, 0.08);
  --fk-line-strong: rgba(20, 20, 20, 0.14);
  --fk-accent: #141414;
  --fk-success: #2f6b4f;
  --fk-sale: #8c4a3c;

  --fk-font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --fk-font-editorial: "Instrument Serif", Georgia, serif;
  --fk-font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --fk-size-hero: clamp(2.75rem, 7vw, 5.5rem);
  --fk-size-h2: clamp(1.875rem, 3.5vw, 3rem);
  --fk-size-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --fk-size-small: 0.8125rem;
  --fk-size-micro: 0.6875rem;

  --fk-shadow-soft: 0 1px 2px rgba(20, 20, 20, 0.03), 0 12px 32px -12px rgba(20, 20, 20, 0.08);
  --fk-shadow-lift: 0 2px 4px rgba(20, 20, 20, 0.04), 0 28px 60px -20px rgba(20, 20, 20, 0.14);

  --fk-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --fk-radius: 1.75rem;
  --fk-radius-inner: calc(1.75rem - 0.375rem);
  --fk-gutter: clamp(1.25rem, 4vw, 3.5rem);
  --fk-section: clamp(5rem, 9vw, 9rem);
}

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

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

body {
  margin: 0;
  background: var(--fk-paper);
  color: var(--fk-body);
  font-family: var(--fk-font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--fk-font-display);
  color: var(--fk-ink);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fk-size-hero); }
h2 { font-size: var(--fk-size-h2); }
h3 { font-size: var(--fk-size-h3); line-height: 1.2; }
p { margin: 0 0 1rem; }

:focus-visible {
  outline: 2px solid var(--fk-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.fk-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- Struktur */
.fk-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--fk-gutter);
}
.fk-container--wide { max-width: 1560px; }
.fk-section { padding-block: var(--fk-section); }
.fk-section--sand { background: var(--fk-sand); }
.fk-section--tight { padding-block: clamp(3rem, 5vw, 5rem); }

.fk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fk-size-micro);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--fk-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.035);
}
.fk-eyebrow--plain { background: none; padding-inline: 0; }

.fk-lede {
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--fk-muted);
  max-width: 46ch;
}

.fk-accent-serif {
  font-family: var(--fk-font-editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------- Doppelrand-Schale */
.fk-shell {
  background: rgba(244, 241, 236, 0.55);
  padding: 0.375rem;
  border-radius: var(--fk-radius);
  box-shadow: inset 0 0 0 1px var(--fk-line);
  transition: box-shadow 0.5s var(--fk-ease), transform 0.5s var(--fk-ease);
}
.fk-core {
  background: var(--fk-surface);
  border-radius: var(--fk-radius-inner);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), var(--fk-shadow-soft);
  overflow: hidden;
  height: 100%;
}
.fk-shell:hover { box-shadow: inset 0 0 0 1px var(--fk-line-strong); }

/* -------------------------------------------------------------- Buttons */
.fk-btn {
  --fk-btn-bg: var(--fk-ink);
  --fk-btn-fg: #ffffff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 0.5rem 0.95rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--fk-btn-bg);
  color: var(--fk-btn-fg);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.45s var(--fk-ease), background-color 0.45s var(--fk-ease),
    box-shadow 0.45s var(--fk-ease);
  box-shadow: var(--fk-shadow-soft);
}
.fk-btn:hover { background: #000; box-shadow: var(--fk-shadow-lift); }
.fk-btn:active { transform: scale(0.985); }
.fk-btn--plain { padding-right: 1.6rem; }

.fk-btn__icon {
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--fk-ease), background-color 0.45s var(--fk-ease);
}
.fk-btn:hover .fk-btn__icon {
  transform: translate(2px, -1px) scale(1.06);
  background: rgba(255, 255, 255, 0.22);
}
.fk-btn__icon svg { width: 0.875rem; height: 0.875rem; stroke: currentColor; fill: none; stroke-width: 1.25; }

.fk-btn--ghost {
  --fk-btn-bg: transparent;
  --fk-btn-fg: var(--fk-ink);
  box-shadow: inset 0 0 0 1px var(--fk-line-strong);
  padding-right: 1.6rem;
}
.fk-btn--ghost:hover { background: rgba(20, 20, 20, 0.035); box-shadow: inset 0 0 0 1px var(--fk-ink); }

.fk-btn--sand {
  --fk-btn-bg: var(--fk-sand-deep);
  --fk-btn-fg: var(--fk-ink);
}
.fk-btn--sand:hover { background: #e2dbd0; }
.fk-btn--sand .fk-btn__icon { background: rgba(20, 20, 20, 0.08); }

.fk-btn--block { width: 100%; justify-content: center; }

/* Textlink mit Unterstrich-Animation */
.fk-link {
  position: relative;
  font-weight: 500;
  color: var(--fk-ink);
  padding-bottom: 2px;
}
.fk-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--fk-ease);
}
.fk-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* --------------------------------------------------------- Scroll-Motion */
.fk-reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.8s var(--fk-ease), transform 0.8s var(--fk-ease);
  transition-delay: var(--fk-delay, 0ms);
  will-change: transform, opacity;
}
.fk-reveal--in { opacity: 1; transform: none; will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fk-reveal { opacity: 1; transform: none; }
}
