/* Ultra-Futuristic Swiss Premium Theme Styles */

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.3;
  }
}

@keyframes holographicFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes dataStream {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* Base resets & custom variables */
:root {
  --color-obsidian: #030303;
  --color-anthracite: #0D0D0D;
  --color-gold: #D4AF37;
  --color-gold-light: #E5A93B;
  --color-holo-blue: #00F2FE;
  --color-holo-indigo: #4FACFE;
}

body {
  background-color: var(--color-obsidian);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* Futuristic Glowing Background Grid & Orbs */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.ambient-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: pulseGlow 12s infinite ease-in-out;
}

.orb-1 {
  top: 5%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

.orb-2 {
  top: 35%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 75%);
  animation-delay: -3s;
}

.orb-3 {
  bottom: 10%;
  left: 20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.12) 0%, transparent 70%);
  animation-delay: -6s;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

/* Holographic Blue Highlights */
.glass-panel-blue {
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 242, 254, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-blue:hover {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.15);
}

/* 3D-Tilt & Neon-Glow Premium Service Cards */
.neon-glow-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.neon-glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 242, 254, 0.05), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.4s;
}

.neon-glow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px -5px rgba(212, 175, 55, 0.15), 
              0 0 20px -3px rgba(0, 242, 254, 0.1);
}

.neon-glow-card:hover::before {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.6), rgba(0, 242, 254, 0.5), transparent);
}

/* Static and dynamic flows inside IoT Circuit Core SVG */
.circuit-line {
  stroke-dasharray: 100;
  animation: dataStream 6s infinite linear;
}

.circuit-line-fast {
  stroke-dasharray: 60;
  animation: dataStream 3s infinite linear;
}

/* Shine effects on buttons & luxury UI elements */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-25deg);
  animation: shine 4s infinite linear;
}

/* Simulator Typing Indicator Bubble */
.typing-dots span {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #94a3b8;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% { 
    transform: scale(0);
  } 40% { 
    transform: scale(1.0);
  }
}

/* Smooth Slide In animations for interactive items */
.slide-in-msg {
  animation: slideInMsg 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInMsg {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==================================================================
   FAQ auf den generierten Seiten (native <details>, kein JavaScript)
   ================================================================== */

.faq-card summary {
  list-style: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-marker::before {
  content: "+";
  transition: color 0.2s;
}

.faq-card[open] .faq-marker::before {
  content: "−";
  color: var(--color-holo-blue);
}

/* ==================================================================
   Rechtsseiten: Impressum, Datenschutz, AGB
   Lange Fliesstexte im Site-Design – ruhig gesetzt, damit die
   Gliederung trägt und nicht die Dekoration.
   ================================================================== */

.legal-doc {
  counter-reset: legal-section;
  max-width: 68ch;
}

.legal-section {
  counter-increment: legal-section;
  padding-left: 1.75rem;
  border-left: 1px solid rgba(212, 175, 55, 0.14);
}

.legal-section + .legal-section {
  margin-top: 3.5rem;
}

.legal-section > h2 {
  position: relative;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

/* Nummerierung nur dort, wo die Reihenfolge inhaltlich zählt
   (Datenschutz, AGB) – im Impressum wäre sie reine Zierde. */
.legal-doc--numbered .legal-section > h2::before {
  content: counter(legal-section);
  position: absolute;
  left: -1.75rem;
  width: 1.75rem;
  padding-right: 0.6rem;
  text-align: right;
  color: var(--color-gold);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.85;
}

.legal-section > h3 {
  color: #e2e8f0;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}

.legal-section p,
.legal-section li {
  color: #cbd5e1;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.legal-section p + p,
.legal-section ul + p,
.legal-section dl + p {
  margin-top: 1rem;
}

.legal-section ul {
  margin-top: 1rem;
  list-style: none;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.25rem;
}

.legal-section ul li + li {
  margin-top: 0.625rem;
}

.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 1px;
  background: var(--color-gold);
}

.legal-section a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.legal-section a:hover {
  color: var(--color-gold-light);
  text-decoration-color: currentColor;
}

/* Datenblock im Impressum: Label links, Wert rechts */
.legal-data {
  display: grid;
  grid-template-columns: minmax(9rem, max-content) 1fr;
  gap: 0.75rem 2rem;
  margin-top: 1rem;
}

.legal-data dt {
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.9;
}

.legal-data dd {
  color: #f1f5f9;
  font-size: 0.9375rem;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .legal-data {
    grid-template-columns: 1fr;
    gap: 0.25rem 0;
  }

  .legal-data dd + dt {
    margin-top: 1rem;
  }

  .legal-section {
    padding-left: 1.5rem;
  }

  .legal-doc--numbered .legal-section > h2::before {
    left: -1.5rem;
    width: 1.5rem;
    padding-right: 0.45rem;
  }
}

/* Noch nicht juristisch geprüft – bewusst nicht zu übersehen */
.legal-draft-notice {
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.07);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

/* Barrierefreiheit: sichtbarer Tastaturfokus im Gold der Marke */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Wer im System reduzierte Bewegung eingestellt hat, bekommt die
   Ambient-Animationen nicht. Für alle anderen bleibt die Optik gleich. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Custom scrollbar for absolute elegance */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #030303;
}
::-webkit-scrollbar-thumb {
  background: #1C1C1C;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
}
