/*
Theme Name: NexCore Webhosting
Theme URI: https://nexcore.de
Author: NexCore GmbH
Description: Professionelles Webhosting-Theme in Rot und Schwarz für Hosting-Anbieter, Agenturen und Reseller.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexcore-web
Tags: dark, red, hosting, technology, one-page, custom-logo, custom-menu, footer-widgets
*/

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --red: #C0282A;
    --red-bright: #E63434;
    --red-glow: rgba(192,40,42,0.18);
    --bg: #0A0A0B;
    --surface: #111113;
    --surface2: #18181C;
    --border: rgba(255,255,255,0.07);
    --border-red: rgba(192,40,42,0.4);
    --text: #F0EDE8;
    --muted: #7A7874;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }

  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
  }
  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.03; pointer-events: none; z-index: 0;
  }
  a { color: var(--red-bright); text-decoration: none; }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%; height: 64px;
    background: rgba(10,10,11,0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .logo {
    font-family: var(--font-display);
    font-size: 24px; letter-spacing: 2px;
    color: var(--text); text-decoration: none;
    display: flex; align-items: center; gap: 10px;
  }
  .logo-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--red-bright);
    animation: pulse 2s ease-in-out infinite;
  }
  .nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
  .nav-links a { color: var(--muted); font-size: 13px; letter-spacing: 0.5px; transition: color 0.2s; text-decoration: none; }
  .nav-links a:hover { color: var(--text); }
  .nav-cta { background: var(--red); color: #fff !important; padding: 8px 20px; border-radius: 3px; font-weight: 500 !important; }
  .nav-cta:hover { background: var(--red-bright) !important; }

  /* HERO */
  .hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 5% 80px; overflow: hidden;
  }
  .hero-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(192,40,42,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(192,40,42,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 60% at 40% 40%, black 0%, transparent 70%);
  }
  .hero-glow {
    position: absolute; top: -150px; left: 30%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(192,40,42,0.13) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-content { position: relative; max-width: 820px; z-index: 1; }

  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--red-bright); letter-spacing: 2px; text-transform: uppercase;
    border: 1px solid var(--border-red); padding: 6px 14px; border-radius: 2px;
    margin-bottom: 32px; background: rgba(192,40,42,0.07);
  }
  .hero-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--red-bright); animation: pulse 1.5s infinite; flex-shrink: 0;
  }

  h1 {
    font-family: var(--font-display);
    font-size: clamp(62px, 9vw, 128px);
    line-height: 0.93; letter-spacing: 1px; margin-bottom: 28px;
  }
  h1 span { color: var(--red-bright); display: block; }

  .hero-sub {
    font-size: 18px; color: var(--muted); max-width: 540px;
    line-height: 1.75; margin-bottom: 44px; font-weight: 300;
  }
  .hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 0; }

  .btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--red); color: #fff; padding: 14px 32px;
    border-radius: 3px; font-size: 15px; font-weight: 500;
    text-decoration: none; letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.15s; border: none; cursor: pointer;
  }
  .btn-primary:hover { background: var(--red-bright); transform: translateY(-1px); color: #fff; }
  .btn-primary svg { width: 16px; height: 16px; }

  .btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--muted); font-size: 14px; text-decoration: none;
    transition: color 0.2s;
  }
  .btn-ghost:hover { color: var(--text); }

  /* Domain search */
  .domain-search {
    margin-top: 48px;
    display: flex; gap: 0;
    max-width: 560px;
    border: 1px solid var(--border-red); border-radius: 4px; overflow: hidden;
    background: var(--surface);
  }
  .domain-input {
    flex: 1; background: transparent; border: none; outline: none;
    padding: 14px 18px; color: var(--text);
    font-family: var(--font-mono); font-size: 14px;
  }
  .domain-input::placeholder { color: var(--muted); }
  .domain-btn {
    background: var(--red); color: #fff; border: none;
    padding: 14px 22px; cursor: pointer;
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: 1px; text-transform: uppercase;
    transition: background 0.2s; white-space: nowrap;
  }
  .domain-btn:hover { background: var(--red-bright); }
  .domain-tlds {
    margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap;
  }
  .tld-pill {
    font-family: var(--font-mono); font-size: 11px; color: var(--muted);
    border: 1px solid var(--border); padding: 4px 10px; border-radius: 2px;
  }
  .tld-pill strong { color: var(--text); font-weight: 400; }

  /* Stats */
  .stats-bar {
    display: flex; gap: 48px;
    border-top: 1px solid var(--border);
    padding-top: 48px; margin-top: 72px; flex-wrap: wrap;
    position: relative; z-index: 1;
  }
  .stat-num {
    font-family: var(--font-display); font-size: 42px;
    color: var(--text); line-height: 1; margin-bottom: 4px;
  }
  .stat-num em { color: var(--red-bright); font-style: normal; }
  .stat-label {
    font-size: 12px; color: var(--muted);
    letter-spacing: 1px; text-transform: uppercase;
    font-family: var(--font-mono);
  }

  /* SECTION BASE */
  section { position: relative; z-index: 1; }
  .section-inner { max-width: 1200px; margin: 0 auto; padding: 100px 5%; }
  .section-tag {
    display: block; font-family: var(--font-mono); font-size: 11px;
    color: var(--red-bright); letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 16px;
  }
  h2 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 70px); line-height: 0.95;
    letter-spacing: 1px; margin-bottom: 18px;
  }
  .section-desc { color: var(--muted); max-width: 520px; font-weight: 300; font-size: 17px; line-height: 1.7; }

  /* FEATURES GRID */
  .features-grid {
    margin-top: 64px;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
    border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  }
  @media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 580px) { .features-grid { grid-template-columns: 1fr; } }

  .feature-card {
    background: var(--surface); padding: 36px 30px;
    transition: background 0.2s; position: relative; overflow: hidden;
  }
  .feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
  }
  .feature-card:hover::before { transform: scaleX(1); }
  .feature-card:hover { background: var(--surface2); }
  .feature-icon {
    width: 40px; height: 40px; background: var(--red-glow);
    border: 1px solid var(--border-red); border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; color: var(--red-bright);
  }
  .feature-icon svg { width: 20px; height: 20px; }
  .feature-title { font-weight: 500; font-size: 15px; margin-bottom: 8px; color: var(--text); }
  .feature-desc { font-size: 13px; color: var(--muted); line-height: 1.65; font-weight: 300; }

  /* PRICING */
  .pricing-bg {
    background: var(--surface);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  }
  .pricing-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 52px; gap: 24px; flex-wrap: wrap;
  }

  /* Toggle switch */
  .billing-toggle {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: var(--muted); font-family: var(--font-mono);
  }
  .toggle-switch {
    position: relative; width: 44px; height: 24px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 12px; cursor: pointer; transition: background 0.2s;
    flex-shrink: 0;
  }
  .toggle-switch.active { background: var(--red); border-color: var(--red); }
  .toggle-knob {
    position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; transition: left 0.2s;
  }
  .toggle-switch.active .toggle-knob { left: 23px; }
  .toggle-save {
    background: var(--red-glow); border: 1px solid var(--border-red);
    color: var(--red-bright); font-size: 10px; padding: 2px 8px; border-radius: 2px;
  }

  .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 580px) { .pricing-grid { grid-template-columns: 1fr; } }

  .plan {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 4px; padding: 32px; position: relative; transition: border-color 0.2s;
  }
  .plan:hover { border-color: rgba(192,40,42,0.3); }
  .plan.featured {
    border-color: var(--red);
    background: linear-gradient(160deg, rgba(192,40,42,0.08) 0%, var(--bg) 60%);
  }
  .plan-badge {
    position: absolute; top: -12px; left: 24px;
    background: var(--red); color: #fff; font-size: 10px;
    font-family: var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase;
    padding: 4px 12px; border-radius: 2px;
  }
  .plan-name { font-family: var(--font-display); font-size: 28px; letter-spacing: 1px; margin-bottom: 4px; line-height: 1.1; }
  .plan-sub { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-bottom: 22px; }
  .plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
  .price-curr { font-size: 18px; color: var(--muted); font-weight: 300; }
  .price-num { font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--text); }
  .price-period { font-size: 13px; color: var(--muted); font-weight: 300; }
  .price-old { font-size: 13px; color: #3A3A3C; font-family: var(--font-mono); text-decoration: line-through; margin-bottom: 20px; }
  .plan-sep { height: 1px; background: var(--border); margin: 22px 0; }

  .plan-features { margin-bottom: 28px; }
  .plan-features li {
    font-size: 13px; color: var(--muted); padding: 7px 0;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--border); font-weight: 300;
  }
  .plan-features li:last-child { border-bottom: none; }
  .plan-features li.disabled { opacity: 0.35; }
  .plan-features li::before {
    content: '';
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--red-glow); border: 1px solid var(--border-red);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%23E63434' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 12px; background-repeat: no-repeat; background-position: center;
  }
  .plan-features li.disabled::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%237A7874' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-color: transparent; border-color: var(--border);
  }

  .plan-btn {
    display: block; text-align: center; padding: 12px; border-radius: 3px;
    font-size: 14px; font-weight: 500; text-decoration: none; letter-spacing: 0.3px;
    transition: all 0.2s; cursor: pointer;
  }
  .plan-btn-ghost { border: 1px solid var(--border); color: var(--muted); }
  .plan-btn-ghost:hover { border-color: var(--red); color: var(--text); }
  .plan-btn-solid { background: var(--red); color: #fff; border: 1px solid var(--red); }
  .plan-btn-solid:hover { background: var(--red-bright); color: #fff; }

  /* INCLUDED SECTION */
  .included-grid {
    margin-top: 56px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  }
  @media (max-width: 900px) { .included-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 580px) { .included-grid { grid-template-columns: 1fr; } }

  .included-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
    padding: 24px 20px; text-align: center;
  }
  .included-icon {
    font-size: 28px; margin-bottom: 12px; display: block;
    filter: grayscale(1) brightness(0.6);
  }
  .included-title { font-weight: 500; font-size: 14px; margin-bottom: 4px; color: var(--text); }
  .included-sub { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

  /* TECH STACK */
  .tech-bg { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

  .tech-grid {
    margin-top: 56px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  }
  @media (max-width: 700px) { .tech-grid { grid-template-columns: 1fr; } }

  .tech-row {
    background: var(--bg); padding: 22px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    transition: background 0.2s;
  }
  .tech-row:hover { background: var(--surface2); }
  .tech-name { font-weight: 500; font-size: 14px; color: var(--text); }
  .tech-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .tech-badge {
    font-family: var(--font-mono); font-size: 11px; color: var(--red-bright);
    background: var(--red-glow); border: 1px solid var(--border-red);
    padding: 3px 10px; border-radius: 2px; white-space: nowrap; flex-shrink: 0;
  }

  /* COMPARE TABLE */
  .compare-wrap {
    margin-top: 60px; border: 1px solid var(--border); border-radius: 4px; overflow-x: auto;
  }
  .compare-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 600px; }
  .compare-table th {
    background: var(--surface2); text-align: left; padding: 14px 20px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 400;
  }
  .compare-table th:first-child { color: var(--text); }
  .compare-table td {
    padding: 13px 20px; border-bottom: 1px solid var(--border); color: var(--muted);
    font-family: var(--font-mono); font-size: 12px;
  }
  .compare-table tr:last-child td { border-bottom: none; }
  .compare-table tr:hover td { background: rgba(255,255,255,0.02); }
  .compare-table td:first-child { color: var(--text); font-family: var(--font-body); font-size: 13px; }
  .check { color: #5C9E5C; }
  .cross { color: #444; }
  .compare-table th.hl, .compare-table td.hl { background: rgba(192,40,42,0.05); }

  /* TRUST LOGOS */
  .trust-bar {
    border-top: 1px solid var(--border); margin-top: 80px; padding-top: 48px;
    display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
  }
  .trust-label { font-family: var(--font-mono); font-size: 10px; color: #3A3A3C; letter-spacing: 2px; text-transform: uppercase; }
  .trust-logos { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
  .trust-logo {
    font-family: var(--font-display); font-size: 18px; color: #2A2A2E;
    letter-spacing: 2px; user-select: none;
  }

  /* CTA */
  .cta-section {
    text-align: center; padding: 120px 5%;
    position: relative; overflow: hidden;
  }
  .cta-section::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(192,40,42,0.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .cta-section h2 { font-size: clamp(50px, 8vw, 96px); max-width: 700px; margin: 0 auto 16px; }
  .cta-section h2 span { color: var(--red-bright); }
  .cta-section p { color: var(--muted); font-size: 17px; max-width: 440px; margin: 0 auto 36px; font-weight: 300; }

  /* FOOTER */
  footer {
    border-top: 1px solid var(--border); padding: 0 5%;
    position: relative; z-index: 1;
  }
  .footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--border);
  }
  @media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }

  .footer-brand { }
  .footer-logo { font-family: var(--font-display); font-size: 22px; letter-spacing: 2px; color: var(--text); margin-bottom: 12px; }
  .footer-tagline { font-size: 13px; color: var(--muted); font-weight: 300; max-width: 240px; line-height: 1.6; }

  .footer-col h4 {
    font-family: var(--font-mono); font-size: 10px; color: var(--muted);
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
    font-weight: 400;
  }
  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 10px; }
  .footer-col ul li a { font-size: 13px; color: #4A4A4E; text-decoration: none; transition: color 0.2s; }
  .footer-col ul li a:hover { color: var(--red-bright); }

  .footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; flex-wrap: wrap; gap: 16px;
  }
  .footer-copy { font-size: 11px; color: #2E2E32; font-family: var(--font-mono); }
  .footer-bottom-links { display: flex; gap: 20px; }
  .footer-bottom-links a { font-size: 11px; color: #2E2E32; font-family: var(--font-mono); text-decoration: none; }
  .footer-bottom-links a:hover { color: var(--muted); }

  /* ANIMATIONS */
  @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.7)} }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
