/* ==========================================================================
   JSC-IT GbR - Header Logo & High-Legibility Partner Wall
   Focus: Original JSC Logo with Pure White Text & High-Legibility Partner Wall
   ========================================================================== */

:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: #131b2e;
  --bg-card: #18233c;
  --bg-card-hover: #1e2c4a;
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #00e5ff;
  --accent-blue: #3b82f6;
  --accent-telegram: #24a1de;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-gold: #fbbf24;
  
  --border-color: rgba(255, 255, 255, 0.12);
  --border-active: var(--accent-cyan);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.2s ease-in-out;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body.high-contrast {
  --bg-primary: #000000;
  --bg-secondary: #0d0d0d;
  --bg-card: #1a1a1a;
  --text-main: #ffffff;
  --text-muted: #e2e8f0;
  --border-color: #ffffff;
  --accent-cyan: #00ffff;
}

body.dyslexia-font {
  font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 10px;
  background: var(--accent-cyan);
  color: #000;
  padding: 10px 20px;
  font-weight: 700;
  z-index: 10000;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 10px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Clean Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
  gap: 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Original JSC Logo with Pure White Text */
.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 229, 255, 0.25));
  transition: var(--transition);
}
.brand-logo-img:hover {
  transform: scale(1.02);
}

/* Centered Single-Row Navigation */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-link {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 38px;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.ihk-badge-nav {
  height: 42px;
  width: auto;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  padding: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #0a0f1d;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.3);
}
.btn-primary:hover {
  background: #33ebff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-cyan);
}

.btn-telegram {
  background: var(--accent-telegram);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(36, 161, 222, 0.3);
}
.btn-telegram:hover {
  background: #1d90c9;
  transform: translateY(-2px);
}

.btn-emergency {
  background: var(--accent-red);
  color: #fff;
}
.btn-emergency:hover { background: #dc2626; }

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-about-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--accent-cyan);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f1f5f9;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  position: relative;
}

.hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.ihk-overlay-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.ihk-overlay-badge img {
  height: 48px;
  width: auto;
}
.ihk-overlay-badge span {
  color: #0b1021;
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.2;
}

/* Security CheckUp Banner */
.security-checkup-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.15);
}
.security-badge {
  background: var(--accent-gold);
  color: #000;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Highly Readable Partner Wall */
.partner-section-box {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 3rem;
}
.partner-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.partner-card-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.partner-card-item:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}
.partner-icon {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.partner-info h4 {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 800;
}
.partner-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Promotions Grid */
.promotions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.promo-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}
.promo-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}
.promo-card-gold {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08) 0%, var(--bg-card) 100%);
}

.promo-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 1rem;
}
.badge-gold { background: var(--accent-gold); color: #000; }
.badge-cyan { background: var(--accent-cyan); color: #000; }

.reward-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}
.reward-tier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.reward-tier-item span { font-weight: 700; color: var(--accent-cyan); }

/* General Section */
.section { padding: 3.5rem 0; }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.section-tag {
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Reference Showcase Cards */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.ref-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}
.ref-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}
.ref-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.ref-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.ref-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.service-icon {
  font-size: 2.2rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}
.service-title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Pricing Box */
.pricing-box {
  background: var(--bg-card);
  border: 2px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  max-width: 950px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
}
.price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.75rem;
}
.price-tag-big {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
}
.price-tag-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.price-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 1.15rem;
  border-radius: var(--radius-md);
}
.price-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: #fff;
}
.price-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.tax-note {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent-cyan);
  padding: 0.85rem 1.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Contact Grid & Crisp White Text */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.contact-white-link {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.contact-white-link:hover {
  color: var(--accent-cyan) !important;
  text-decoration: underline;
}

/* Inline Thank-You Success Screen */
.thank-you-screen {
  display: none;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(0, 229, 255, 0.1) 100%);
  border: 2px solid var(--accent-green);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.thank-you-screen.active { display: block; }

.thank-you-icon {
  font-size: 3.5rem;
  color: var(--accent-green);
  margin-bottom: 1rem;
}
.thank-you-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.thank-you-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* reCAPTCHA Widget Box */
.recaptcha-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.recaptcha-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}
.recaptcha-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}
.recaptcha-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Map Iframe Styling */
.map-wrapper {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.map-iframe {
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(80%) invert(90%) contrast(120%);
}

.form-group { margin-bottom: 1.15rem; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.form-control {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: #0a0f1d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
}
.form-control:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal.open { display: flex; }

.modal-content {
  background: var(--bg-secondary);
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}
.modal-close:hover { color: #fff; }

.footer {
  background: #060913;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================
   TABLET (max-width: 1024px)
   ============================ */
@media (max-width: 1024px) {
  .nav-menu-wrapper { display: none; }
  .nav-menu-wrapper.open {
    display: flex;
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background: #0d1426;
    border-bottom: 2px solid var(--accent-cyan);
    padding: 1.5rem;
    z-index: 999;
  }
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  .nav-link { width: 100%; justify-content: center; }
  .mobile-toggle { display: block; }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card { display: none; }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .security-checkup-card {
    flex-direction: column;
    text-align: center;
  }
  .promotions-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Fix inline grid sections in HTML */
  .smarthome-inner {
    grid-template-columns: 1fr !important;
  }
  .about-team-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================
   MOBILE (max-width: 768px)
   ============================ */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .container { padding: 0 1rem; }

  .section { padding: 2.5rem 0; }

  /* Top status bar hidden on mobile to save space */
  .top-status-bar { display: none; }

  /* Navbar: logo + toggle only */
  .nav-container { height: 68px; gap: 0.5rem; }
  .brand-logo-img { height: 40px; }

  .nav-actions .btn span { display: none; }  /* hide button text, icon only */
  .nav-actions .btn { padding: 0.5rem 0.7rem; font-size: 1rem; }
  .ihk-badge-nav { display: none; }

  .nav-menu-wrapper.open { top: 68px; }

  /* Hero */
  .hero { padding: 2rem 0 1.5rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-about-box { font-size: 0.95rem; padding: 1rem 1.1rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  /* Section headings */
  .section-title { font-size: 1.7rem; }

  /* Security card */
  .security-checkup-card { padding: 1.25rem; }
  .security-checkup-card .btn { width: 100%; }

  /* Partner grid */
  .partner-logos-grid { grid-template-columns: 1fr 1fr; }

  /* References */
  .references-grid { grid-template-columns: 1fr; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Pricing box */
  .pricing-box { padding: 1.5rem 1.1rem; }
  .price-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .price-tag-big { font-size: 2.2rem; }
  .price-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-card { padding: 1.25rem; }
  .contact-grid { gap: 1.25rem; }

  /* Form: phone + email side by side collapsing */
  .form-two-col { grid-template-columns: 1fr !important; }

  /* Thank you screen */
  .thank-you-screen { padding: 1.5rem 1rem; }
  .thank-you-title { font-size: 1.4rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Modals */
  .modal-content { padding: 1.5rem 1.1rem; }

  /* Über Uns corporate banner */
  .corporate-banner { flex-direction: column; align-items: flex-start !important; gap: 1.25rem; }
}

/* ============================
   SMALL PHONES (max-width: 480px)
   ============================ */
@media (max-width: 480px) {
  html { font-size: 14px; }

  .container { padding: 0 0.85rem; }

  .hero-title { font-size: 1.6rem; }

  .section-title { font-size: 1.5rem; }

  .partner-logos-grid { grid-template-columns: 1fr; }

  .promotions-grid { grid-template-columns: 1fr; }

  .nav-container { height: 62px; }
  .brand-logo-img { height: 34px; }
  .nav-menu-wrapper.open { top: 62px; }

  .btn { font-size: 0.9rem; padding: 0.6rem 1rem; }

  .pricing-box { padding: 1.1rem 0.85rem; }
  .price-tag-big { font-size: 1.9rem; }

  .contact-card { padding: 1rem; }

  .recaptcha-box { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  .reward-tier-item { flex-direction: column; align-items: flex-start; gap: 0.2rem; }

  .ihk-overlay-badge { padding: 6px 10px; }
  .ihk-overlay-badge img { height: 36px; }
}
