/* =========================================================
   Tauschzylinder-Automat Holzminden — Stylesheet
   Modernes Design, Glassmorphismus & Dynamik
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Farben */
  --ink:        #0A0F14;   /* Tiefstes Schwarzblau (für Text) */
  --ink-soft:   #121A22;
  --steel:      #2A3642;
  --steel-line: rgba(0, 0, 0, 0.08); /* Angepasst für helles Theme */
  --paper:      #B9C1C9;   /* Deutlicheres, stärkeres Elefantengrau */
  --paper-2:    #FFFFFF;   /* Weiß */
  --card:       rgba(255, 255, 255, 0.7);
  --glass-dark: rgba(255, 255, 255, 0.85); /* Angepasst für helles Theme */
  --glass-light: rgba(255, 255, 255, 0.95);
  
  --silver:     #D8E0E5;
  --flame:      #007AFF;   /* Blaues Accent */
  --flame-dark: #005BB5;   /* Dunkelblaues Accent */
  --gas-blue:   #007AFF;   /* Blau */
  --ok-green:   #007AFF;   /* Alles Grüne auf Blau gesetzt */
  
  --text-main:  #0F172A;
  --text-mute:  #64748B;
  --text-onink: #F8FAFC;
  --text-onink-mute: #94A3B8;

  /* Typografie */
  --f-display: 'Outfit', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* Layout & Effekte */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 16px -6px rgba(0, 122, 255, 0.25);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  
  --maxw: 1180px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ margin:0; padding:0; }

body {
  font-family: var(--f-body);
  background: repeating-linear-gradient(180deg, var(--paper) 0vh, var(--paper) 80vh, var(--paper-2) 150vh, var(--paper-2) 170vh, var(--paper) 240vh);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font: inherit; cursor:pointer; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--flame);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}

h2 { font-size: clamp(32px, 4vw, 48px); color: var(--ink); }
h3 { font-size: 22px; color: var(--ink); }

.section { padding: 100px 0; position: relative; }
.section-head {
  max-width: 600px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p {
  color: var(--text-mute);
  font-size: 18px;
  margin: 16px 0 0;
}

/* ============ Glassmorphism Utility ============ */
.glass {
  background: var(--glass-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-dark {
  background: var(--glass-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--steel-line);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  border: none;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0px); }

.btn--flame {
  background: linear-gradient(135deg, var(--flame), var(--flame-dark));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--flame:hover { box-shadow: 0 10px 20px -5px rgba(0, 122, 255, 0.3); }

.btn--ghost {
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--ink);
}
.btn--ghost:hover { background: rgba(0, 0, 0, 0.1); border-color: var(--ink); }

.btn--sm { padding: 12px 24px; font-size: 14px; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--maxw);
  z-index: 100;
  border-radius: var(--radius-pill);
  transition: padding 0.3s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-mark { width: 32px; height: 32px; color: var(--flame); }
.brand-name {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}
.main-nav a:hover { color: var(--ink); background: rgba(0,0,0,0.05); }

/* ============ Hero ============ */
.hero {
  background-image: linear-gradient(to bottom, rgba(185,193,201,0) 60%, #B9C1C9 100%), url('hintergrund.png.jpeg');
  image-rendering: -webkit-optimize-contrast; /* Hilft oft bei der Schärfe im Browser */
  image-rendering: high-quality;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-main);
  padding: 160px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: floatOrb 8s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  color: var(--ink);
  margin-top: 16px;
  line-height: 1.1;
}

.hero-lead {
  color: var(--ink);
  font-size: 18px;
  margin: 24px 0 0;
  font-weight: 500;
}

.hero-facts { display: flex; gap: 16px; margin-top: 32px; }

.led {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: var(--radius);
}
.led-price {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--flame);
  text-shadow: 0 0 15px rgba(0, 122, 255, 0.25);
}
.led-copy strong { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.led-copy span { font-size: 13px; color: var(--text-mute); }

.hero-cta { display: flex; gap: 16px; margin-top: 40px; }

/* Visuals & Animations */
.hero-visual {
  display: flex;
  align-items: center;
  position: relative;
}
.machine-wrap {
  flex: 1;
  position: relative;
  animation: floaty 6s ease-in-out infinite; 
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ Stat bar ============ */
.statbar {
  background: #fff;
  padding: 40px 0;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
  margin-top: -30px;
  border-radius: var(--radius);
  max-width: calc(100% - 64px);
  margin-left: auto;
  margin-right: auto;
}
.statbar.glow-blue {
  box-shadow: 0 0 25px rgba(0, 168, 255, 0.5), 0 0 50px rgba(0, 168, 255, 0.3);
  border: 1px solid rgba(0, 168, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
}
.statbar .container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  padding: 0;
}
.stat {
  text-align: center;
  padding: 16px;
}
.stat-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-mute);
  font-weight: 500;
}

/* ============ Steps / Ablauf ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  padding: 40px 32px;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.4s var(--ease);
  position: relative;
  z-index: 1;
}
.step::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  z-index: -1;
  transition: opacity 0.4s;
}
.step:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--flame);
  color: #fff;
  border-radius: 50%;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-glow);
}
.step h3 { font-size: 20px; margin-bottom: 12px; }
.step p { color: var(--text-mute); font-size: 15px; margin: 0; }

/* ============ Preisvergleich ============ */
.price-section {
  background: transparent;
  color: var(--text-main);
}
.price-section .section-head h2 { color: var(--ink); }
.price-section .section-head p { color: var(--text-mute); }

.price-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  border-radius: var(--radius);
  padding: 4px;
  background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.01));
  height: 100%;
}

.price-content {
  background: #fff;
  border-radius: calc(var(--radius) - 4px);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.price-big {
  font-family: var(--f-display);
  font-size: 80px;
  font-weight: 800;
  color: var(--flame);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 122, 255, 0.15);
}
.price-info h3 { color: var(--ink); font-size: 28px; margin-bottom: 16px; }
.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 16px;
}
.price-features svg { color: var(--ok-green); width: 20px; height: 20px; }

/* ============ Marken Grid ============ */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.brand-card {
  padding: 24px 16px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s var(--ease);
}
.brand-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.brand-divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--silver);
  margin: 4px 0 0;
}
.brand-img { width: auto; height: 160px; object-fit: contain; }
.brand-card span { 
  font-weight: 600; 
  font-size: 15px; 
  text-align: center;
  line-height: 1.3;
}

/* ============ Standort & Betreiber ============ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-card {
  padding: 40px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.info-card h3 { margin-bottom: 24px; font-size: 24px; }
.info-list { display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item svg { width: 24px; height: 24px; color: var(--flame); flex-shrink: 0; }
.info-item strong { display: block; font-size: 16px; margin-bottom: 4px; }
.info-item span { color: var(--text-mute); font-size: 15px; }

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: none; filter: grayscale(0.2); }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: box-shadow 0.3s;
}
.faq-item:hover { box-shadow: var(--shadow-soft); }
.faq-item summary {
  padding: 24px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 24px; height: 24px;
  position: relative;
  transition: transform 0.3s;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--text-main);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 2px;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.3s, opacity 0.3s; }
details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
details[open] summary { color: var(--flame); }
details[open] .faq-icon::before { background: var(--flame); }

.faq-body { padding: 0 24px 24px; color: var(--text-mute); font-size: 16px; line-height: 1.7; }

/* ============ Animations ============ */
.reveal {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
}
html.js .reveal.is-visible { 
  opacity: 1; 
  transform: translateY(0); 
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  .hero { padding: 120px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-facts, .hero-cta { justify-content: center; }
  .hero-facts { flex-wrap: wrap; gap: 12px; }

  .statbar { max-width: calc(100% - 32px); padding: 28px 0; }
  .statbar .container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-num { font-size: 28px; }
  .stat { padding: 12px; }

  .steps { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .price-cards-grid { grid-template-columns: 1fr; }
  .price-content { flex-direction: column; text-align: center; gap: 32px; padding: 32px; }
  .price-features li { justify-content: center; }
  .price-big { font-size: 56px; }
}

@media (max-width: 760px) {
  body {
    background: repeating-linear-gradient(180deg, var(--paper) 0vh, var(--paper) 150vh, var(--paper-2) 220vh, var(--paper-2) 240vh, var(--paper) 320vh);
  }

  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 16px; }
  .eyebrow { font-size: 12px; }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
  }
  .site-header .container {
    justify-content: center;
    height: 52px;
    padding: 0 16px;
  }
  .brand-name { font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; }
  .main-nav { display: none; }

  .hero {
    padding: 100px 0 40px;
    background-image: linear-gradient(to bottom, rgba(185,193,201,0) 40%, #B9C1C9 95%), url('hintergrund.png.jpeg');
    background-position: top center;
  }
  .hero::before { width: 300px; height: 300px; }
  .hero-grid { gap: 24px; }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); }
  .hero-lead { font-size: 16px; margin-top: 16px; }
  .hero-facts { flex-wrap: wrap; gap: 12px; }
  .hero-cta { flex-wrap: wrap; gap: 12px; margin-top: 24px; }
  .led { padding: 12px 16px; }
  .led-price { font-size: 24px; white-space: normal; }
  .hero-visual { flex-direction: column; }

  .statbar { max-width: calc(100% - 16px); padding: 20px 0; }
  .statbar .container { grid-template-columns: 1fr; }
  .stat { padding: 8px; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 13px; }
  .stat-icon svg { width: 24px !important; height: 24px !important; }

  .steps { grid-template-columns: 1fr; }
  .step { padding: 24px 20px; }
  .step-num { margin-bottom: 16px; }
  .step h3 { font-size: 18px; }

  .price-content { padding: 24px 20px; }
  .price-big { font-size: 44px; }
  .price-info h3 { font-size: 22px; }
  .price-features li { font-size: 15px; }

  .brand-img { height: 100px; }
  .brand-card { padding: 16px 12px; }
  .brand-card span { font-size: 14px; }

  .split-section { gap: 24px; }
  .info-card { padding: 24px 20px; }
  .info-card h3 { font-size: 20px; }
  .map-wrapper { min-height: 280px; }

  .faq-item summary { padding: 16px 20px; font-size: 16px; }
  .faq-body { padding: 0 20px 20px; font-size: 15px; }

  .site-footer { padding: 40px 0 32px; }
  .footer-content { gap: 24px; }
}

/* ============ Footer ============ */
.site-footer {
  background: transparent;
  color: var(--text-mute);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.footer-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-credits {
  font-size: 14px;
}
.credit-link {
  color: var(--flame);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}
.credit-link:hover {
  color: var(--flame-dark);
}

/* ============ Bubbles Animation ============ */
.bubbles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.bubble {
  position: absolute;
  bottom: -50px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 168, 255, 0.8), rgba(0, 168, 255, 0.2) 60%);
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(0, 168, 255, 0.6), 0 0 5px rgba(0, 168, 255, 0.3);
  animation: rise 3s ease-in forwards;
}
@keyframes rise {
  0% { transform: translateY(0) scale(1) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-110vh) scale(1.2) translateX(var(--drift)); opacity: 0; }
}
