/* ---------- Startseite (public/jinja2/index.html): alles unter .home, andere Seiten bleiben unberührt ---------- */
.home { position: relative; overflow-x: clip; }
.home .button { min-height: 44px; }
.home .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(16px, 5vh, 56px) 0 clamp(32px, 6vh, 64px);
}
.home .hero::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 70% 40%, rgba(216, 115, 216, 0.22), transparent 70%),
    radial-gradient(45% 55% at 25% 60%, rgba(139, 123, 255, 0.2), transparent 70%);
  animation: home-drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes home-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(3%, 3%, 0) scale(1.08); }
}
.hero-kicker { margin-bottom: 0.8em; color: var(--accent2); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.home .hero h1 { margin-bottom: 0.4em; }
.home .hero h1 .mark { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .button { margin: 0; min-height: 44px; }

/* Wischer: Technik links, Kunst rechts, der Regler liegt unsichtbar über dem Bild (Maus, Finger, Tastatur) */
.compare {
  --pos: 50%;
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--media-bg);
  box-shadow: var(--shadow-media), var(--glow);
  touch-action: pan-y;
  user-select: none;
}
.compare img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.compare-tech { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 14px rgba(216, 115, 216, 0.9); pointer-events: none; }
.compare-knob {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.compare-knob::before, .compare-knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.compare-knob::before { left: 6px; border-right-color: #5e4cff; border-left-width: 0; }
.compare-knob::after { right: 6px; border-left-color: #b84db8; border-right-width: 0; }
.compare-label {
  position: absolute; bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(12, 10, 29, 0.72); color: #ece9fb; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; pointer-events: none;
}
.compare-label-tech { left: 12px; }
.compare-label-art { right: 12px; }
.compare-range { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
html:not(.js) .compare-range { display: none; }
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

.home .area-grid { margin-bottom: clamp(40px, 8vh, 80px); }
.home .area-card { position: relative; background: linear-gradient(160deg, var(--surface-strong), var(--surface)); }
.home .area-card:hover { box-shadow: var(--glow); }

.home-section { margin-bottom: clamp(40px, 8vh, 80px); }
.home-section > h2 { margin-bottom: 0.2em; }
.home-section-lead { margin-bottom: 1.4em; color: var(--muted); font-size: 1.1rem; }
.home .product-card h3 { margin-bottom: 0.2em; font-size: 1.3rem; }
.home .product-card { transition: border-color 0.2s, transform 0.3s; }
.home .product-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.home .product-card-image { height: auto; }
.home .product-card-body > p { margin-bottom: 0.5em; }
.home .product-card-body > .price { margin-bottom: 0.3em; color: var(--text); font-size: 1.3rem; font-weight: 700; }
.home .price small { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.tile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 0.6rem; }
.tile-actions .button { margin: 0; min-height: 44px; }
.tile-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.video-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter);
  align-items: center;
  margin-bottom: clamp(40px, 8vh, 80px);
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.video-thumb { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--media-bg); aspect-ratio: 4 / 3; }
.video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.video-thumb:hover img { transform: scale(1.04); }
.video-play {
  position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: var(--glow);
}
.video-play::after { content: ""; position: absolute; top: 22px; left: 29px; border: 14px solid transparent; border-left: 22px solid #fff; border-right-width: 0; }
.video-text h2 { font-size: 1.5rem; }
.video-text .button { margin: 0; min-height: 44px; }
.video-note { margin: 0.8em 0 0; color: var(--muted); font-size: 0.85rem; }

.home .journal-block { max-width: none; margin-top: 0; }
.home .journal-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.home-all-posts { margin: 1.2rem 0 0; font-weight: 700; }

@media (min-width: 900px) {
  .home .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .video-teaser { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
@media (max-width: 899px) {
  .home .hero .intro-lead { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home .hero::before { animation: none; }
  .home .product-card, .video-thumb img { transition: none; }
  .home .product-card:hover { transform: none; }
  .video-thumb:hover img { transform: none; }
}
