/* ============================================================
   Handyshop-Demo · Design-System
   Palette: cremiges Weiß + Espresso + Terrakotta (warm/einladend)
   Type: Fraunces (Display-Serif) + Inter (Text)
   ============================================================ */
:root {
  --cream:      #F4EFE7;
  --cream-2:    #EDE5D8;
  --paper:      #FFFFFF;
  --ink:        #2A2520;
  --ink-soft:   #6F665B;
  --terra:      #E0795B;
  --terra-deep: #C85C3C;
  --espresso:   #34291F;
  --navy:       #1F3A5F;
  --steel:      #8A93A0;
  --line:       #E6DCCD;
  --gold:       #C9A227;

  --radius:     20px;
  --radius-sm:  14px;
  --shadow-sm:  0 2px 8px rgba(52,41,31,.06);
  --shadow:     0 18px 40px -18px rgba(52,41,31,.28);
  --shadow-lg:  0 30px 70px -30px rgba(52,41,31,.40);
  --maxw:       1200px;

  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terra-deep); font-weight: 600;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.6); backdrop-filter: blur(6px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-text); font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 10px 24px -10px var(--terra-deep); }
.btn-primary:hover { background: var(--terra-deep); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Top announcement ---------- */
.topbar {
  background: var(--espresso); color: #efe7da;
  font-size: 12.5px; letter-spacing: .04em; text-align: center; padding: 9px 16px;
}
.topbar b { color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,231,.78); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.logo b { color: var(--terra); }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: 14px; color: var(--ink);
}
.cart-btn .count { color: var(--terra-deep); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; z-index: 0; display: block; cursor: crosshair; }
.hero::after { /* soft cream vignette to seat text */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 40%, transparent 40%, rgba(244,239,231,.55) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 60px 0; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); margin: 22px 0 0; }
.hero h1 .accent { color: var(--terra); font-style: italic; }
.hero .sub { font-size: clamp(16px, 2vw, 20px); color: var(--ink-soft); max-width: 560px; margin-top: 22px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* 3 pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; max-width: 820px; }
.pillar {
  position: relative; background: rgba(255,255,255,.72); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--terra); }
.pillar .ico { font-size: 26px; }
.pillar h3 { font-size: 21px; margin: 12px 0 4px; }
.pillar p { font-size: 13.5px; color: var(--ink-soft); }
.pillar .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--terra-deep); font-weight: 600; font-size: 14px; }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 6px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,6px);} }

/* ---------- Section base ---------- */
.section { padding: 86px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* ---------- Kategorie-Filter ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 30px; }
.filterbar .chip-f {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  border-radius: 999px; padding: 8px 18px; font-family: var(--font-text); font-weight: 600;
  font-size: 14px; cursor: pointer; transition: all .2s ease;
}
.filterbar .chip-f:hover { border-color: var(--terra); color: var(--ink); }
.filterbar .chip-f.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.product.is-hidden { display: none; }

/* ---------- Shop grid ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product .thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--cream-2); }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover .thumb img { transform: scale(1.06); }
.product .tag { position: absolute; top: 12px; left: 12px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.9); color: var(--ink); padding: 5px 10px; border-radius: 999px; font-weight: 600; }
.product .add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; transform: translateY(140%);
  background: var(--ink); color: #fff; border: 0; border-radius: 12px; padding: 12px; cursor: pointer;
  font-family: var(--font-text); font-weight: 600; font-size: 14px; transition: transform .35s ease, background .2s;
}
.product:hover .add { transform: translateY(0); }
.product .add:hover { background: var(--terra-deep); }
.product .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.product .name { font-family: var(--font-display); font-size: 19px; }
.product .rate { font-size: 13px; color: var(--ink-soft); }
.product .rate .stars { color: var(--gold); letter-spacing: 1px; }
.product .priceline { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.product .price { font-weight: 700; font-size: 18px; }
.product .swatches { display: flex; gap: 5px; }
.product .swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

/* ---------- Trust strip ---------- */
.trust { background: var(--espresso); color: #f0e8db; }
.trust .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 44px 24px; }
.trust .item { text-align: center; }
.trust .item .big { font-family: var(--font-display); font-size: 30px; color: #fff; }
.trust .item .lbl { font-size: 13px; color: #cdbfae; letter-spacing: .04em; }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: #cdbfae; padding: 56px 0 30px; border-top: 1px solid rgba(255,255,255,.06); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer .logo { color: #fff; }
.footer h4 { font-family: var(--font-text); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer a { display: block; color: #cdbfae; font-size: 14px; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .tagline { font-size: 14px; margin-top: 10px; max-width: 280px; }
.footer .copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; opacity: .7; }

/* ---------- Split layouts (Reparatur / Ankauf) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ankauf-card { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  background: var(--espresso); color: #f0e8db; border-radius: var(--radius); padding: 48px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .ankauf-card { grid-template-columns: 1fr; gap: 22px; padding: 34px; }
  .ankauf-card .btn { justify-self: start; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; max-width: 420px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-products { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: 1fr; gap: 18px; }
  .hero { min-height: 86vh; }
}

/* ---------- Marken-Laufband (Marquee) ---------- */
.marquee { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 58px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .brand { font-family: var(--font-display); font-size: 26px; color: var(--ink-soft); opacity: .65; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Smartphones (Geräte) ---------- */
.grid-devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.device { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.device:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.device .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); }
.device .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.device:hover .thumb img { transform: scale(1.05); }
.device .body { padding: 18px 20px 22px; }
.device .name { font-family: var(--font-display); font-size: 20px; }
.device .chips { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.device .chip { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--ink-soft); }
.device .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.device .price { font-weight: 700; font-size: 18px; }
.device .price small { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.device .reserve { background: transparent; border: 1px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 13px; cursor: pointer; transition: .2s; font-family: var(--font-text); }
.device .reserve:hover { background: var(--ink); color: #fff; }

/* ---------- Bewertungs-Karten (Aufklappbar) ---------- */
.testi-row { display: flex; gap: 18px; overflow-x: auto; padding: 12px 4px 22px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.testi-row::-webkit-scrollbar { display: none; }
.testi { scroll-snap-align: start; flex: 0 0 320px; background: linear-gradient(180deg, #f7f1e8, #fffdf7); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease; }
.testi:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow); }
.testi .stars { color: var(--gold); letter-spacing: 1px; }
.testi .quote { font-family: var(--font-display); font-size: 18px; line-height: 1.4; margin: 12px 0; color: var(--ink); }
.testi .who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.testi .av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testi .nm { font-weight: 600; font-size: 14px; }
.testi .rl { font-size: 12px; color: var(--ink-soft); }
.testi .more { font-size: 12px; color: var(--terra-deep); font-weight: 600; margin-top: 10px; display: inline-block; }

/* Modal für aufgeklappte Bewertung */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(42,37,32,.5); backdrop-filter: blur(6px); }
.modal-card { position: relative; z-index: 1; max-width: 560px; width: 100%; background: linear-gradient(180deg, #f7f1e8, #fffdf7); border-radius: 24px; padding: 44px; box-shadow: var(--shadow-lg); }
.modal-card .stars { color: var(--gold); font-size: 18px; }
.modal-card .quote { font-family: var(--font-display); font-size: 25px; line-height: 1.45; margin: 16px 0; }
.modal-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.modal-card .av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 18px; line-height: 1; }

@media (max-width: 980px) { .grid-devices { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Reduced motion: kill canvas animation ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}
