/*
Theme Name: VS-DSL Neon
Description: Eigenständiges Childtheme für vs-dsl.de.
Template: tbs-affiliate-neon
Version: 1.0.2
Text Domain: vs-dsl-neon
*/

:root {
  --vs-navy: #05091a;
  --vs-panel: rgba(11, 20, 48, .82);
  --vs-cyan: #23e7ff;
  --vs-blue: #4b74ff;
  --vs-violet: #b74dff;
  --vs-lime: #70ffb1;
  --vs-text: #f5f8ff;
  --vs-muted: #b8c4df;
}

body {
  background: var(--vs-navy);
  color: var(--vs-text);
}

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(35,231,255,.45); background: rgba(4,9,25,.82); backdrop-filter: blur(18px); }
.site-header-content { width: min(1540px, calc(100% - 3rem)); min-height: 78px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-logo a { color: #fff; text-decoration: none; }
.site-name { font-size: 1.55rem; font-weight: 900; letter-spacing: -.04em; }
.site-name::first-letter { color: var(--vs-cyan); }
.site-tagline { display: block; color: var(--vs-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav ul { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: .7rem .9rem; border-radius: 999px; color: var(--vs-text); font-weight: 750; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav .current-menu-item > a { color: #03101c; background: linear-gradient(100deg, var(--vs-cyan), var(--vs-lime)); }
.site-nav .sub-menu { position: absolute; top: calc(100% + .55rem); left: 0; z-index: 120; min-width: 290px; display: none; padding: .6rem; border: 1px solid rgba(35,231,255,.28); border-radius: 18px; background: rgba(5,9,26,.98); box-shadow: 0 20px 45px #0009; }
.site-nav li.is-submenu-open > .sub-menu { display: block; }
.site-menu-toggle { display: none; border: 1px solid var(--vs-cyan); border-radius: 999px; padding: .65rem 1rem; color: var(--vs-text); background: transparent; font-weight: 800; }

.vs-home { overflow: hidden; }
.vs-wrap { width: min(1480px, calc(100% - 3rem)); margin-inline: auto; }

/* Parent-Theme-Unterseiten auf die breite VS-DSL-Bühne ziehen. */
body:not(.home) .site-main,
body:not(.home) #primary,
body:not(.home) .content-area,
body:not(.home) .container,
body:not(.home) .site-content {
  width: min(1540px, calc(100% - 3rem));
  max-width: 1540px;
  margin-inline: auto;
}

body:not(.home) .site-content {
  padding-block: clamp(2rem, 4vw, 4.5rem);
}

.single-product div.product,
.single-product .product.type-product {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.single-product div.product img,
.single-product .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
}

.single-product .summary,
.single-product .woocommerce-tabs,
.single-product .related {
  color: var(--vs-text);
}

.vs-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 75% 38%, rgba(75,116,255,.22), transparent 30%),
    radial-gradient(circle at 18% 20%, rgba(183,77,255,.18), transparent 28%),
    linear-gradient(145deg, #040714 0%, #08122d 55%, #05091a 100%);
}

.vs-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2; opacity: .28;
  background-image: linear-gradient(rgba(35,231,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(35,231,255,.18) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(550px) rotateX(63deg) scale(1.65) translateY(18%);
  transform-origin: bottom;
}

.vs-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: 6rem 0; }
.vs-kicker { color: var(--vs-cyan); text-transform: uppercase; letter-spacing: .18em; font-weight: 800; }
.vs-hero h1 { max-width: 780px; margin: .5rem 0 1.2rem; color: #fff; font-size: clamp(2.8rem, 6.5vw, 6.2rem); line-height: .94; text-wrap: balance; }
.vs-hero h1 span { color: transparent; background: linear-gradient(90deg, var(--vs-cyan), var(--vs-violet)); background-clip: text; -webkit-background-clip: text; }
.vs-lead { max-width: 680px; color: var(--vs-muted); font-size: clamp(1.08rem, 1.8vw, 1.35rem); line-height: 1.7; }
.vs-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.vs-button { display: inline-flex; justify-content: center; align-items: center; min-height: 54px; padding: .8rem 1.35rem; border: 1px solid var(--vs-cyan); border-radius: 999px; color: #03101c; background: linear-gradient(100deg, var(--vs-cyan), var(--vs-lime)); font-weight: 800; text-decoration: none; box-shadow: 0 0 30px rgba(35,231,255,.25); }
.vs-button--ghost { color: var(--vs-text); background: rgba(7,14,34,.65); }
.vs-button:hover, .vs-button:focus-visible { transform: translateY(-2px); box-shadow: 0 0 42px rgba(35,231,255,.48); }

.vs-network { position: relative; min-height: 430px; perspective: 900px; }
.vs-router { position: absolute; inset: 24% 11% auto; height: 210px; border: 1px solid rgba(35,231,255,.72); border-radius: 28px; background: linear-gradient(145deg, rgba(23,38,82,.92), rgba(3,8,26,.96)); box-shadow: 0 30px 75px #000b, inset 0 0 40px rgba(35,231,255,.12), 0 0 55px rgba(35,231,255,.2); transform: rotateX(10deg) rotateY(-13deg); }
.vs-router::before { content: "VS•DSL"; position: absolute; inset: 34% auto auto 10%; color: var(--vs-cyan); font-size: 2rem; font-weight: 900; letter-spacing: .12em; text-shadow: 0 0 20px var(--vs-cyan); }
.vs-router::after { content: "••••"; position: absolute; right: 10%; bottom: 16%; color: var(--vs-lime); letter-spacing: .5em; text-shadow: 0 0 12px var(--vs-lime); }
.vs-signal { position: absolute; border: 2px solid var(--vs-cyan); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(-45deg); opacity: 0; animation: vsSignal 2.4s infinite ease-out; }
.vs-signal:nth-child(1) { width: 90px; height: 90px; left: 43%; top: 9%; }
.vs-signal:nth-child(2) { width: 150px; height: 150px; left: 36%; top: 2%; animation-delay: .7s; }
.vs-signal:nth-child(3) { width: 220px; height: 220px; left: 27%; top: -7%; animation-delay: 1.4s; }
.vs-packet { position: absolute; width: 14px; height: 14px; border-radius: 4px; background: var(--vs-cyan); box-shadow: 0 0 18px var(--vs-cyan); animation: vsPacket 4.8s infinite ease-in-out; }
.vs-packet--a { left: 4%; top: 68%; }
.vs-packet--b { right: 2%; top: 18%; animation-delay: 1.4s; background: var(--vs-violet); box-shadow: 0 0 18px var(--vs-violet); }
.vs-packet--c { right: 8%; bottom: 2%; animation-delay: 2.7s; background: var(--vs-lime); }

@keyframes vsSignal { 0% { opacity: 0; scale: .65; } 30% { opacity: .8; } 100% { opacity: 0; scale: 1.18; } }
@keyframes vsPacket { 0%,100% { transform: translate3d(0,0,0) rotate(0); } 50% { transform: translate3d(190px,-130px,80px) rotate(180deg); } }

.vs-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.vs-section--glow { background: linear-gradient(180deg, rgba(13,24,56,.75), rgba(5,9,26,.3)); border-block: 1px solid rgba(35,231,255,.16); }
.vs-section h2 { margin: 0 0 1rem; color: var(--vs-text); font-size: clamp(2rem, 4vw, 3.5rem); }
.vs-intro { max-width: 820px; color: var(--vs-muted); font-size: 1.15rem; line-height: 1.8; }
.vs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.vs-card { padding: 1.6rem; border: 1px solid rgba(35,231,255,.3); border-radius: 24px; background: var(--vs-panel); box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.vs-card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #071126; background: linear-gradient(135deg, var(--vs-cyan), var(--vs-violet)); font-size: 1.6rem; }
.vs-card h3 { color: #fff; }
.vs-card h3 a { color: inherit; }
.vs-card p { color: var(--vs-muted); line-height: 1.65; }
.vs-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.vs-section--fiber { background: radial-gradient(circle at 80% 50%, rgba(35,231,255,.15), transparent 38%); }
.vs-fiber-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.vs-fiber-visual img { width: 100%; height: auto; border-radius: 28px; border: 1px solid rgba(35,231,255,.35); box-shadow: 0 25px 70px rgba(0,0,0,.45), 0 0 35px rgba(35,231,255,.12); }
.vs-product { padding: 1.1rem; border-radius: 20px; background: var(--vs-panel); border: 1px solid rgba(183,77,255,.3); }
.vs-product a { color: var(--vs-cyan); font-weight: 750; }
.vs-product .price { color: var(--vs-lime); }

.vs-page { min-height: 65vh; padding: clamp(3rem, 7vw, 6rem) 0; background: radial-gradient(circle at 85% 5%, rgba(75,116,255,.13), transparent 32%), var(--vs-navy); }
.vs-page-shell { padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid rgba(35,231,255,.25); border-radius: 28px; background: rgba(11,20,48,.78); box-shadow: 0 25px 70px rgba(0,0,0,.3); }
.vs-page h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4.4rem); }
.vs-page h2, .vs-page h3 { color: var(--vs-cyan); }
.vs-page p, .vs-page li { color: var(--vs-muted); line-height: 1.75; }
.vs-page a { color: var(--vs-cyan); }
.vs-calculator { overflow: hidden; margin: 2.2rem 0; border: 1px solid rgba(35,231,255,.42); border-radius: 24px; background: #f7faff; box-shadow: 0 25px 70px rgba(0,0,0,.38), 0 0 30px rgba(35,231,255,.12); }
.vs-calculator-bar { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem; color: #fff; background: linear-gradient(100deg, #101c46, #172b65); }
.vs-calculator-bar span { color: var(--vs-cyan); font-size: 1.5rem; }
.vs-calculator-bar small { margin-left: auto; color: #cbd6f0; }
.vs-calculator iframe, .vs-page iframe { display: block; width: 100%; min-height: 1050px; border: 0; background: #fff; }
.vs-calculator-note { margin: 0 !important; padding: .8rem 1.2rem; color: #46516b !important; background: #eef3fb; font-size: .86rem; }
.cATools-rahmen, [class*="cATools"] { max-width: 100% !important; }
.vs-page input, .vs-page select, .vs-page textarea { max-width: 100%; border: 1px solid #93a5cb; border-radius: 10px; padding: .72rem; }
.vs-page button, .vs-page input[type="submit"] { border: 0; border-radius: 999px; padding: .8rem 1.25rem; color: #04101d; background: linear-gradient(100deg, var(--vs-cyan), var(--vs-lime)); font-weight: 800; }

@media (max-width: 850px) {
  .site-header-content { flex-wrap: wrap; padding-block: .75rem; }
  .site-menu-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; }
  .site-nav .sub-menu { position: static; display: block; min-width: 0; margin-left: 1rem; border: 0; box-shadow: none; background: transparent; }
  .single-product div.product, .single-product .product.type-product { grid-template-columns: 1fr; }
  .vs-hero-grid { grid-template-columns: 1fr; }
  .vs-fiber-grid { grid-template-columns: 1fr; }
  .vs-network { min-height: 330px; }
  .vs-cards, .vs-products { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .vs-cards, .vs-products { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .vs-calculator-bar { align-items: flex-start; flex-wrap: wrap; } .vs-calculator-bar small { width: 100%; margin-left: 2.2rem; } .vs-calculator iframe, .vs-page iframe { min-height: 1250px; } }
@media (prefers-reduced-motion: reduce) { .vs-signal, .vs-packet { animation: none; opacity: .65; } .vs-button { transition: none; } }
