/* ============================================================
   IcosaLED – Projekt-Webseite
   Dark + bunt, animiert, mobile-first
============================================================ */

/* ---- Reset & Basics ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:       #07070f;
  --c-bg2:      #0d0d1a;
  --c-surface:  #12121f;
  --c-card:     #1a1a2e;
  --c-border:   rgba(255,255,255,0.07);
  --c-text:     #e8e8f0;
  --c-muted:    #666688;
  --c-a1:       #e63946;   /* Rot */
  --c-a2:       #457b9d;   /* Blau */
  --c-a3:       #a8dadc;   /* Cyan */
  --c-a4:       #f4a261;   /* Orange */
  --c-a5:       #a855f7;   /* Lila */
  --grad:       linear-gradient(135deg, var(--c-a1), var(--c-a5), var(--c-a2));
  --grad2:      linear-gradient(135deg, var(--c-a4), var(--c-a1));
  --r:          14px;
  --nav-h:      60px;
  font-size:    16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
code { font-family: 'SF Mono', 'Fira Code', monospace; background: var(--c-surface); padding: 2px 7px; border-radius: 5px; font-size: .85em; color: var(--c-a3); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- Gradient Text ---- */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVIGATION
============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--c-border);
  transition: background .3s;
}
#nav.scrolled { background: rgba(7,7,15,0.97); }

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
}

.nav-links {
  display: flex; gap: 28px;
}
.nav-links a {
  font-size: .9rem; color: var(--c-muted);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform .25s;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--c-text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--c-text); border-radius: 2px;
  transition: .3s;
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(7,7,15,.97);
    padding: 20px 24px;
    border-bottom: 1px solid var(--c-border);
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
}

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
#heroCanvas { width: 100%; height: 100%; }

.hero-content {
  position: relative; z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: .85rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--c-a3); margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900; line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--c-muted); margin-bottom: 32px;
  line-height: 1.7;
}

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 40px;
}

.badge {
  padding: 6px 14px;
  border: 1px solid var(--c-border);
  border-radius: 100px;
  font-size: .8rem; color: var(--c-muted);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--grad);
  color: #fff; font-weight: 700;
  border-radius: 100px;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 30px rgba(230,57,70,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(230,57,70,.5);
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  font-size: 1.4rem; color: var(--c-muted); z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECTION SHARED
============================================================ */
section { padding: 100px 0; }
section:nth-child(odd) { background: var(--c-bg2); }

.section-header {
  text-align: center; margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: .75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--c-a3); margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem; color: var(--c-muted);
  max-width: 620px; margin: 0 auto; line-height: 1.75;
}

/* ============================================================
   IMAGE PLACEHOLDER
============================================================ */
.img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: var(--c-card);
  border: 2px dashed var(--c-border);
  border-radius: var(--r);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: var(--c-muted);
  font-size: .85rem; text-align: center; padding: 20px;
  transition: border-color .3s;
}
.img-placeholder:hover { border-color: var(--c-a2); }
.placeholder-icon { font-size: 2.5rem; }
.img-placeholder small { display: block; margin-top: 4px; color: var(--c-a2); font-size: .75rem; }

/* ============================================================
   ABOUT
============================================================ */
.about-image img {
  width: 100%;
  border-radius: var(--r);
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.fact-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 24px 20px;
  transition: transform .25s, border-color .25s;
}
.fact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,.4);
}
.fact-number {
  font-size: 2.6rem; font-weight: 900; line-height: 1;
  margin-bottom: 4px;
}
.fact-label {
  font-weight: 700; margin-bottom: 6px;
}
.fact-desc { font-size: .82rem; color: var(--c-muted); line-height: 1.5; }

/* ============================================================
   GALLERY
============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.gallery-item { position: relative; border-radius: var(--r); overflow: hidden; }
.gallery-item.large {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  min-height: 260px;
  transition: transform .4s ease;
}
.gallery-item.large img { min-height: 360px; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item .img-placeholder { aspect-ratio: unset; height: 100%; min-height: 260px; }
.gallery-item.large .img-placeholder { min-height: 360px; }

.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  font-size: .85rem; color: #fff;
  border-radius: 0 0 var(--r) var(--r);
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; }
}

/* ============================================================
   EFFECTS
============================================================ */
.effects-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px; justify-content: center;
}
.effect-tab {
  padding: 8px 22px; border-radius: 100px;
  border: 1px solid var(--c-border);
  background: transparent; color: var(--c-muted);
  cursor: pointer; font-size: .9rem;
  transition: .2s;
}
.effect-tab:hover { border-color: var(--c-a2); color: var(--c-text); }
.effect-tab.active {
  background: var(--grad); color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(230,57,70,.3);
}

.effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.effect-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 16px 16px 20px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.effect-preview { cursor: default; }
.effect-preview img { border-radius: 10px; }
.effect-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,.4);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.effect-icon {
  font-size: 1.6rem; margin-bottom: 12px;
}
.effect-card h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px; color: var(--c-text);
}
.effect-card p { font-size: .85rem; color: var(--c-muted); line-height: 1.55; }

/* ============================================================
   CONTROL
============================================================ */
.control-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
@media (max-width: 800px) {
  .control-split { grid-template-columns: 1fr; }
}

.control-text .section-tag { display: block; margin-bottom: 12px; }
.control-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; margin-bottom: 18px;
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.control-text p { color: var(--c-muted); margin-bottom: 24px; line-height: 1.75; }

.control-features { display: flex; flex-direction: column; gap: 12px; }
.control-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: .95rem; color: var(--c-muted);
}
.control-features li span { color: var(--c-text); }

.phone-frame {
  aspect-ratio: 9/16 !important;
  border-radius: 24px !important;
  border: 3px solid var(--c-border) !important;
  max-width: 320px; margin: 0 auto;
}

.control-image img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--r);
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
}

/* ============================================================
   TECH
============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin-bottom: 60px;
}

.tech-block {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: border-color .25s, transform .25s;
}
.tech-block:hover {
  border-color: rgba(69,123,157,.5);
  transform: translateY(-3px);
}
.tech-icon { font-size: 1.8rem; margin-bottom: 14px; }
.tech-block h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 14px; color: var(--c-a3);
}
.tech-block li {
  font-size: .88rem; color: var(--c-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--c-border);
  line-height: 1.5;
}
.tech-block li:last-child { border-bottom: none; }

/* Display Mockup */
.display-showcase {
  margin-top: 56px;
  text-align: center;
}
.display-showcase h3 {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 10px;
}
.display-desc {
  color: var(--c-muted); font-size: .9rem;
  max-width: 560px; margin: 0 auto 40px;
  line-height: 1.7;
}
.display-mockups {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.display-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.display-label {
  font-size: .8rem;
  color: var(--c-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.display-svg {
  width: 200px;
  height: 300px;
  border-radius: 12px;
  border: 2px solid var(--c-border);
  box-shadow: 0 0 32px rgba(69,123,157,.15), 0 8px 32px rgba(0,0,0,.6);
  background: #080808;
  transition: box-shadow .3s, transform .3s;
}
.display-frame:hover .display-svg {
  box-shadow: 0 0 48px rgba(230,57,70,.25), 0 12px 40px rgba(0,0,0,.7);
  transform: translateY(-4px);
}

/* Architecture Diagram */
.arch-diagram {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 36px;
}
.arch-diagram h3 {
  text-align: center; margin-bottom: 32px;
  font-size: 1.1rem; color: var(--c-muted);
  letter-spacing: 1px; text-transform: uppercase; font-size: .85rem;
}

.arch-flow {
  display: flex;
  align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.arch-arrow { font-size: 1.5rem; color: var(--c-muted); }

.arch-col { display: flex; flex-direction: column; gap: 10px; }

.arch-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: .85rem; color: var(--c-muted);
  text-align: center; line-height: 1.4;
  min-width: 160px;
}
.arch-box small { display: block; font-size: .75rem; color: var(--c-a2); margin-top: 3px; }
.arch-box.highlight {
  border-color: var(--c-a1);
  color: var(--c-text);
  background: rgba(230,57,70,.1);
  font-size: 1rem;
  padding: 16px 24px;
  box-shadow: 0 0 20px rgba(230,57,70,.2);
}
.arch-box.highlight strong { display: block; font-size: 1.1rem; }

/* ============================================================
   CUSTOM LED STRIPS
============================================================ */
.ledstrip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 700px) {
  .ledstrip-grid { grid-template-columns: 1fr; }
}

.ledstrip-item {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  transition: border-color .3s, transform .3s;
}
.ledstrip-item:hover {
  border-color: rgba(168,85,247,.4);
  transform: translateY(-4px);
}
.ledstrip-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 400px;
  transition: transform .4s ease;
}
.ledstrip-item:hover img { transform: scale(1.02); }

.ledstrip-caption {
  padding: 14px 18px;
  font-size: .85rem;
  color: var(--c-muted);
  border-top: 1px solid var(--c-border);
}

/* ============================================================
   CONTACT
============================================================ */
#contact { text-align: center; }

.contact-links {
  display: flex; flex-wrap: wrap;
  gap: 16px; justify-content: center;
  margin-top: 40px;
}
.contact-btn {
  padding: 13px 30px;
  border: 1px solid var(--c-border);
  border-radius: 100px;
  background: var(--c-card);
  font-size: .95rem;
  transition: .25s;
}
.contact-btn:hover {
  border-color: var(--c-a2);
  background: var(--c-surface);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  padding: 36px 24px;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
}
footer .container {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 12px;
}
.footer-logo {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy { font-size: .8rem; color: var(--c-muted); }
.footer-impressum {
  font-size: .8rem; color: var(--c-muted);
  text-decoration: none; opacity: .6;
  transition: opacity .2s;
}
.footer-impressum:hover { opacity: 1; }

/* ============================================================
   IMPRESSUM
============================================================ */
#impressum {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.impressum-block {
  max-width: 600px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
}
.impressum-block p { color: var(--c-muted); line-height: 1.8; font-size: .95rem; }
.impressum-block strong { color: var(--c-text); }
.impressum-block a { color: var(--c-a2); text-decoration: none; }
.impressum-block a:hover { text-decoration: underline; }

/* ============================================================
   ANIMATIONS (Scroll-Reveal)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered delay für Karten-Grids */
.fact-card:nth-child(2)  { transition-delay: .08s; }
.fact-card:nth-child(3)  { transition-delay: .16s; }
.fact-card:nth-child(4)  { transition-delay: .24s; }
.effect-card:nth-child(2) { transition-delay: .06s; }
.effect-card:nth-child(3) { transition-delay: .12s; }
.effect-card:nth-child(4) { transition-delay: .18s; }
.tech-block:nth-child(2) { transition-delay: .08s; }
.tech-block:nth-child(3) { transition-delay: .16s; }
.tech-block:nth-child(4) { transition-delay: .08s; }
.tech-block:nth-child(5) { transition-delay: .16s; }
.tech-block:nth-child(6) { transition-delay: .24s; }

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-surface); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-muted); }
