/* ═══════════════════════════════════════════
   Frameschmiede — Custom CSS
   Farben angepasst an Logo: Cyan → Lila Gradient
═══════════════════════════════════════════ */

/* ── Self-hosted Fonts (DSGVO-konform) ──── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/static/fonts/inter-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: 300 700;
  font-display: swap;
  src: url('/static/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/static/fonts/outfit-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: 'Outfit';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/static/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Grundlagen ──────────────────────────── */
* { box-sizing: border-box; }
body { background-color: #f5f7fa; color: #1a1a2e; }

/* ── Typography — Outfit für Headlines ──── */
h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

/* ── Gradient Utilities ──────────────────── */
.gradient-text {
  color: #22d3ee;
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.5), 0 0 60px rgba(34, 211, 238, 0.2);
}

.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Hero: fixiertes Hintergrundbild ─────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('/static/img/hardware-bg.webp');
  background-attachment: scroll;
  background-size: cover;
  background-position: center;
}

.service-header-section {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  background-image: url('/static/img/hardware-bg.webp');
  background-attachment: scroll;
  background-size: cover;
  background-position: center;
}

/* Shop-Header */
.shop-hero-section {
  position: relative;
  min-height: 35vh;
  display: flex;
  align-items: center;
  background-image: url('/static/img/hardware-bg.webp');
  background-attachment: scroll;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 20, 0.92) 0%,
    rgba(10, 10, 20, 0.85) 50%,
    rgba(10, 10, 20, 0.80) 100%
  );
}

/* Lesbarkeit auf dunklem Hintergrund */
.hero-section .hero-content,
.hw-bg-section .hw-content {
  text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ── Wiederverwendbare Hardware-BG Sektion ── */
.hw-bg-section {
  position: relative;
  background-image: url('/static/img/hardware-bg.webp');
  background-attachment: scroll;
  background-size: cover;
  background-position: center;
}
.hw-bg-section .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 20, 0.93) 0%,
    rgba(10, 10, 20, 0.88) 50%,
    rgba(10, 10, 20, 0.82) 100%
  );
}
.hw-content {
  position: relative;
  z-index: 10;
}

/* ── Navigation ───────────────────────────── */
.nav-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-link {
  color: #64748b;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover { color: #1a1a2e; }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-link:hover::after { transform: scaleX(1); }

/* ── Buttons ──────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.625rem 1.5rem;
  transition: all 0.2s;
  display: inline-block;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
  filter: brightness(1.1);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: #ffffff;
  color: #1a1a2e;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.625rem 1.5rem;
  border: 2px solid #cbd5e1;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.btn-ghost:hover {
  border-color: #06b6d4;
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.04);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

/* Hero-Buttons bleiben hell auf dunklem Hero */
.hero-content .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  box-shadow: none;
}
.hero-content .btn-ghost:hover {
  border-color: #06b6d4;
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.15);
  box-shadow: none;
}

/* ── Cards ────────────────────────────────── */
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.08);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06b6d4;
  margin-bottom: 1rem;
}

/* ── Service Item ─────────────────────────── */
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s;
}
.service-item:hover { border-color: rgba(6, 182, 212, 0.4); }

.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06b6d4;
  flex-shrink: 0;
}

/* ── Kontakt Card ─────────────────────────── */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: all 0.2s;
}
.contact-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ── Warenkorb Badge ──────────────────────── */
.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Form Inputs ──────────────────────────── */
.form-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  color: #1a1a2e;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}
.form-input::placeholder { color: #9ca3af; }

/* ── Shop Konfigurator Extras ─────────────── */
.shop-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.shop-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}
.shop-stat svg { color: #06b6d4; }

/* ── Scrollbar ────────────────────────────── */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.max-h-96::-webkit-scrollbar { width: 4px; }
.max-h-96::-webkit-scrollbar-track { background: #f1f5f9; }
.max-h-96::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
.max-h-96::-webkit-scrollbar-thumb:hover { background: #06b6d4; }

/* ── Prose für Legal Pages ────────────────── */
.prose-dark h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: #1a1a2e; }
.prose-dark h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #1a1a2e; }
.prose-dark p { margin-bottom: 0.75rem; line-height: 1.7; color: #4b5563; }
.prose-dark ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; color: #4b5563; }
.prose-dark li { margin-bottom: 0.25rem; }
.prose-dark a { color: #06b6d4; }
.prose-dark a:hover { text-decoration: underline; }

/* ── Scroll-Reveal Animationen ────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger-Delay für Karten */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero-Elemente Eingangs-Animation */
.hero-content > * {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.45s; }
.hero-content > *:nth-child(5) { animation-delay: 0.55s; }
.hero-content > *:nth-child(6) { animation-delay: 0.65s; }
.hero-content > *:nth-child(7) { animation-delay: 0.75s; }

/* ── Konfigurator Tab-Scroll-Indicator ───── */
.tab-scroll-container {
  position: relative;
}
.tab-scroll-container::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to right, transparent, #f5f7fa);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
}
.tab-scroll-container.scrolled-end::after {
  opacity: 0;
}

/* ── Headline Font ───────────────────────── */
h1, h2, h3, .font-display {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
}

/* ── Mobile Fallback ──────────────────────── */
@media (max-width: 768px) {
  .hero-section,
  .service-header-section,
  .shop-hero-section {
    background-attachment: scroll;
  }
}
