/* 11 bricks Gamestore – Stylesheet
   Keine externen Schriften oder Dienste (DSGVO-freundlich). */

:root {
  --bin: #E6EAEE;        /* Seitenhintergrund, wie eine Sortierbox */
  --paper: #FFFFFF;
  --ink: #1E2B37;
  --ink-soft: #4A5866;
  --line: #C3CBD3;
  --orange: #EB6A0C;      /* Logofarbe */
  --orange-deep: #B34A06; /* für Text und Linien auf hellem Grund */
  --orange-soft: #FCE3D1;
  --red: #B3180A;
  --green: #1F6B3A;

  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-s: 6px;
  --radius-m: 12px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bin);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { padding: 1.1rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 3px 6px rgba(30, 43, 55, .18)); }
.brand-name { font: 800 1.2rem/1.1 var(--font-display); }
.brand-name span { font-weight: 600; color: var(--ink-soft); }

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { text-decoration: none; font-weight: 600; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.3rem;
  border-radius: var(--radius-s);
  font: 700 1rem/1.2 var(--font-display);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--ink);
}
.btn-primary {
  background: var(--orange);
  box-shadow: 0 4px 0 var(--ink);
  transform: translateY(0);
  transition: transform .12s, box-shadow .12s;
}
.btn-primary:hover { text-decoration: none; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--paper); text-decoration: none; }
.btn-disabled { border-style: dashed; border-color: var(--line); color: var(--ink-soft); cursor: default; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-btn {
  background: none; border: 0; padding: 0; margin-left: .35rem;
  font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.actions, .store-links { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; align-items: center; }
.text-link { font-weight: 600; color: var(--orange-deep); }

/* ---------- Hero ---------- */
.hero { padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-text h1 { max-width: 14ch; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.8rem; }

.hero-figure { margin: 0; }
.hero-figure figcaption { margin-top: .9rem; font-size: .95rem; color: var(--ink-soft); }

.tray { width: 100%; filter: drop-shadow(0 10px 18px rgba(30, 43, 55, .14)); }
.tray-label { font: 700 12px var(--font-display); fill: #7A8794; }
.tray .brick { transform-box: fill-box; transform-origin: center; }

/* Einmalige Sortier-Animation: Steine starten verstreut und rutschen in ihre Fächer */
.js .tray .brick {
  transform: translate(var(--sx), var(--sy)) rotate(var(--sr));
  transition: transform .9s cubic-bezier(.2, .9, .25, 1) calc(var(--i) * 70ms);
}
.js .tray.is-sorted .brick { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .tray .brick { transform: none; transition: none; }
  #shuffle { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; margin-bottom: 2rem; }

/* Shops */
.stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.store {
  background: var(--paper);
  border-radius: var(--radius-m);
  padding: 1.6rem;
  border-top: 6px solid var(--orange);
}
.store p { max-width: 46ch; }

/* Sourcing */
.section-sourcing { border-top: 2px solid var(--line); }
.section-sourcing .section-lead, .section-sourcing .note { max-width: none; }
.section-sourcing .note { margin: 1.4rem 0 2.4rem; }
.prices.prices-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prices-3 .price-value { font-size: clamp(2.4rem, 5vw, 3.4rem); }

/* Ankauf – Fläche wie eine Grundplatte */
.section-ankauf {
  background-color: var(--paper);
  background-image: radial-gradient(circle at 12px 12px, var(--bin) 5px, transparent 5.5px);
  background-size: 24px 24px;
}
.section-ankauf .wrap {
  background: var(--paper);
  border-radius: var(--radius-m);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 0 0 2px var(--bin);
}

.prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.price {
  border: 2px solid var(--ink);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.6rem 1.2rem;
}
.price-best { background: var(--orange); box-shadow: 0 6px 0 var(--ink); }
.price-value {
  font: 800 clamp(2.8rem, 7vw, 4.2rem)/1 var(--font-display);
  letter-spacing: -0.03em;
  margin-bottom: .6rem;
  font-variant-numeric: tabular-nums;
}
.price-value span { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
.price h3 { margin-bottom: .25em; }
.price p:last-child { margin: 0; }

/* Sortierhilfe im Ankauf */
.sortguide { margin-top: 2.2rem; padding-top: 2rem; border-top: 2px solid var(--line); }
.sortguide > p { max-width: 62ch; color: var(--ink-soft); }
.sort-types {
  list-style: none; margin: 1.2rem 0 1.4rem; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}
.sort-types li {
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--orange-soft);
  border-radius: var(--radius-m);
}
.sort-types svg { margin-bottom: .5rem; }
.sort-types strong { font-family: var(--font-display); font-size: 1.1rem; }
.sort-types span { font-size: .95rem; color: var(--ink-soft); line-height: 1.45; }
.sort-tip { max-width: 62ch; margin: 0; }

.note { margin: 1.8rem 0 2.4rem; max-width: 62ch; color: var(--ink-soft); }

.steps-title { margin-bottom: 1rem; }
.steps {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem;
  counter-reset: step;
}
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 2.8rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--orange); color: var(--ink);
  font: 800 1rem/1 var(--font-display);
}
.steps strong { display: block; font-family: var(--font-display); }

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-intro p { max-width: 42ch; }

.form { background: var(--paper); border-radius: var(--radius-m); padding: clamp(1.3rem, 3vw, 2rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: .7rem .8rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { resize: vertical; min-height: 8rem; }
.field input[type="file"] { padding: .55rem .6rem; background: var(--paper); cursor: pointer; }
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field .hint { margin: .35rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.field[hidden] { display: none; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; margin: .4rem 0 1.4rem; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.6em; }
.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { border-top: 6px solid var(--orange); background: var(--ink); color: #D8DEE4; padding: 2.5rem 0; font-size: .95rem; }
.footer-inner { display: grid; gap: 1rem; }
.footer-brand { margin: 0; font-family: var(--font-display); font-weight: 700; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: var(--orange); }
.disclaimer { margin: 0; font-size: .85rem; color: #A9B4BF; max-width: 80ch; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: clamp(1.5rem, 5vw, 3.5rem) 0 4rem; }
.legal .wrap { max-width: 760px; }
.legal article { background: var(--paper); border-radius: var(--radius-m); padding: clamp(1.4rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h2:first-of-type { margin-top: 1em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal mark { background: var(--orange-soft); padding: 0 .2em; }
.back { display: inline-block; margin-bottom: 1.2rem; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .sort-types, .steps-4, .prices.prices-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices-3 .price:last-child { grid-column: 1 / -1; }
  .hero-inner, .contact { grid-template-columns: 1fr; }
  .hero-figure { max-width: 520px; }
}
@media (max-width: 640px) {
  .stores, .prices, .prices.prices-3, .steps, .steps-4 { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; }
  .sort-types { gap: .7rem; }
  .sort-types li { padding: .9rem .8rem; }
}
