/*
Theme Name: SL KRITIS
Theme URI: https://www.sl-kritis.de
Author: SL KRITIS UG
Description: NIS-2 & KRITIS IT-Sicherheit – Helles Design
Version: 3.0.0
Text Domain: sl-kritis
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN-SYSTEM – Helles Corporate-Design
   Primär:  #0059b3  (Navy-Blau)
   Akzent:  #0ea5e9  (Sky-Blau)
   Basis:   #ffffff / #f7f9fc
═══════════════════════════════════════════════════════════ */

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

:root {
  --blue:        #0059b3;
  --blue-dark:   #003d80;
  --blue-mid:    #0069c3;
  --blue-sky:    #0ea5e9;
  --blue-light:  #e8f4fd;
  --blue-xlight: #f0f7ff;

  --white:       #ffffff;
  --bg:          #f7f9fc;
  --bg-alt:      #eef2f8;
  --border:      #dde4ef;
  --border-mid:  #c8d3e8;

  --text:        #0f1e35;
  --text-mid:    #334766;
  --text-muted:  #607898;
  --text-light:  #94a8c0;

  --gold:        #b8860b;
  --gold-bg:     #fdf8ec;
  --gold-border: #e8d48a;
  --green:       #059669;
  --green-bg:    #ecfdf5;

  --shadow-xs:   0 1px 3px rgba(0,50,120,0.07);
  --shadow-sm:   0 2px 8px rgba(0,50,120,0.09);
  --shadow-md:   0 4px 20px rgba(0,50,120,0.11);
  --shadow-lg:   0 8px 40px rgba(0,50,120,0.13);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* Fallback-Hintergrund wenn kein Video */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -4;
  background: var(--bg);
  pointer-events: none;
}

/* ════════════════════ VIDEO-HINTERGRUND ════════════════ */
#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: -3;
  pointer-events: none;
}

/* Helles Overlay – Video sichtbar, aber dezent */
#bg-video-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(247,249,252,0.87) 0%,
    rgba(232,242,253,0.83) 50%,
    rgba(240,247,255,0.87) 100%
  );
}

/* Grid-Overlay entfernt */
#bg-video-grid { display: none; }

/* Radiales Glow oben links */
#bg-video-glow {
  position: fixed;
  top: -180px;
  left: -180px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0,89,179,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Auf Legal-Seiten: Video bleibt sichtbar */

/* ════════════════════ TYPOGRAFIE ══════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }

a { color: var(--blue-mid); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--blue); }

/* ════════════════════ HEADER ══════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
.site-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-shrink: 0;
}
.site-nav a {
  color: var(--text-mid);
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a[href*="terraxaler"] {
  text-transform: none;
  letter-spacing: 0.03em;
}
.site-nav a:hover {
  color: var(--blue);
  background: var(--blue-light);
}
.site-nav a.current-menu-item {
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid rgba(0,89,179,0.18);
}

/* ════════════════════ LAYOUT ══════════════════════════ */
main { position: relative; }
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ════════════════════ HERO ════════════════════════════ */
.hero-section {
  padding: 80px 0 64px;
  position: relative;
  background: transparent;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,89,179,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  right: 130px;
  top: 70px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(0,89,179,0.08);
  box-shadow: 0 0 0 36px rgba(0,89,179,0.025), 0 0 0 72px rgba(0,89,179,0.015);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--gold-border);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.76rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-gold 2.2s infinite;
}
@keyframes pulse-gold {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(184,134,11,0.5); }
  50%       { opacity: 0.6; box-shadow: 0 0 3px rgba(184,134,11,0.2); }
}
.hero-title { margin-bottom: 18px; color: var(--text); }
.hero-title span { color: var(--blue-mid) !important; }
.hero-sub {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 640px;
  margin-bottom: 28px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* ════════════════════ BUTTONS ═════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: all 0.22s;
  cursor: pointer;
  text-decoration: none;
  border: none;
  text-transform: uppercase;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff;
  box-shadow: 0 3px 14px rgba(0,89,179,0.32);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  box-shadow: 0 6px 22px rgba(0,89,179,0.42);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  background: #fff;
  color: var(--text-mid);
  border: 1.5px solid var(--border-mid);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  border-color: var(--blue-mid);
  color: var(--blue);
  background: var(--blue-xlight);
  transform: translateY(-1px);
}
.btn-cta {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue), var(--blue-mid));
  color: #fff;
  font-size: 1.05rem;
  padding: 15px 32px;
  box-shadow: 0 4px 20px rgba(0,89,179,0.3);
  width: 100%;
  justify-content: center;
  letter-spacing: 0.07em;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,89,179,0.4);
  color: #fff;
}

/* ════════════════════ FEATURE CARDS ═══════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-sky));
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover {
  border-color: rgba(0,89,179,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }
.feature-card h3 { color: var(--blue); margin-bottom: 12px; font-size: 1.05rem; }
.feature-card ul { list-style: none; padding: 0; }
.feature-card ul li {
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 0.91rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.feature-card ul li::before {
  content: "\25B8";
  color: var(--blue-sky);
  font-size: 0.72rem;
  margin-top: 5px;
  flex-shrink: 0;
}
.feature-card p { color: var(--text-muted); font-size: 0.93rem; }

/* ════════════════════ SECTION LABELS ══════════════════ */
.section-header { margin-bottom: 36px; }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--blue-mid);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-title { color: var(--text); }
.section-sub { color: var(--text-muted); margin-top: 10px; max-width: 600px; font-size: 1.02rem; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

/* ════════════════════ NIS-2 FORMULAR ══════════════════ */
.nis2-check-wrapper { max-width: 760px; margin: 0 auto; }
.check-intro {
  background: var(--blue-xlight);
  border: 1px solid rgba(0,89,179,0.18);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.check-intro p { color: var(--text-mid); font-size: 0.93rem; margin: 0; }
.nis2-form-block, .contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.question-item {
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.question-item:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.question-label {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  font-size: 0.96rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.q-num {
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid rgba(0,89,179,0.2);
  border-radius: 50%;
  width: 26px; height: 26px; min-width: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; margin-top: 1px;
}
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-option input[type="radio"] { display: none; }
.radio-option label {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer; font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.18s; user-select: none;
}
.radio-option label:hover {
  border-color: var(--blue-mid);
  color: var(--text-mid);
  background: var(--blue-xlight);
}
.radio-option input[type="radio"]:checked + label {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(0,89,179,0.1);
}
.contact-block h3 { color: var(--text); margin-bottom: 6px; font-size: 1.08rem; }
.contact-block .sub { color: var(--text-muted); font-size: 0.87rem; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.single { grid-template-columns: 1fr; }
.form-field label {
  display: block; font-size: 0.81rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.09em; margin-bottom: 7px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 15px; color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: all 0.18s; outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue-mid);
  background: var(--blue-xlight);
  box-shadow: 0 0 0 3px rgba(0,89,179,0.1);
}
.form-field select option { background: #fff; color: var(--text); }
.form-field textarea { resize: vertical; min-height: 88px; }
.consent-block { margin: 18px 0; }
.consent-check {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; font-size: 0.87rem;
  color: var(--text-muted); line-height: 1.55;
}
.consent-check input[type="checkbox"] { display: none; }
.checkmark {
  width: 20px; min-width: 20px; height: 20px;
  border: 2px solid var(--border-mid);
  border-radius: 4px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s; margin-top: 2px;
}
.consent-check a { color: var(--blue-mid); }

/* Score Result */
.score-result {
  display: none; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 30px; margin-bottom: 24px;
  text-align: center; box-shadow: var(--shadow-md);
}
.score-result.visible { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; font-family: var(--font-head); font-size: 1.5rem;
  font-weight: 700; padding: 14px 30px; border-radius: var(--radius);
  margin-bottom: 14px; letter-spacing: 0.04em;
}
.score-badge.green  { background: var(--green-bg); color: var(--green); border: 1px solid rgba(5,150,105,0.25); }
.score-badge.yellow { background: #fffbeb;          color: #b45309;      border: 1px solid rgba(180,83,9,0.25); }
.score-badge.red    { background: #fef2f2;          color: #dc2626;      border: 1px solid rgba(220,38,38,0.25); }
.score-text { color: var(--text-muted); font-size: 0.95rem; }
.privacy-note { font-size: 0.79rem; color: var(--text-light); text-align: center; margin-top: 10px; }
.form-success {
  display: none; background: var(--green-bg);
  border: 1px solid rgba(5,150,105,0.25); border-radius: var(--radius);
  padding: 22px; text-align: center; color: var(--green); font-weight: 700;
}
.form-success.visible { display: block; }

/* ════════════════════ WHITEPAPER ═══════════════════════ */
.download-list { list-style: none; padding: 0; }
.download-list li {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  margin-bottom: 14px; display: flex;
  align-items: center; justify-content: space-between;
  gap: 20px; transition: all 0.2s; box-shadow: var(--shadow-xs);
}
.download-list li:hover {
  border-color: var(--blue-mid); box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.dl-info h4 { color: var(--text); font-size: 1rem; margin-bottom: 4px; }
.dl-info p  { color: var(--text-muted); font-size: 0.84rem; margin: 0; }

/* ════════════════════ LEGAL ════════════════════════════ */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 {
  color: var(--blue); margin: 30px 0 10px; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: 0.09em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content ul { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; }
.legal-content ul li { margin-bottom: 5px; }
.legal-content a { color: var(--blue-mid); }
.legal-content strong { color: var(--text); }

/* ════════════════════ FOOTER ════════════════════════════ */
.site-footer {
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.84rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.84rem; }
.footer-links a:hover { color: rgba(255,255,255,0.85); }

/* ════════════════════ BREADCRUMB ════════════════════════ */
.breadcrumb-nav { padding: 12px 0; }
.breadcrumb-nav ol {
  list-style: none; padding: 0;
  display: flex; gap: 8px;
  font-size: 0.81rem; color: var(--text-muted);
}
.breadcrumb-nav li a { color: var(--text-muted); }
.breadcrumb-nav li a:hover { color: var(--blue); }

/* ════════════════════ LEGAL-SEITEN ══════════════════════ */
body.page-legal { background: var(--bg); }
body.page-legal::before, body.page-legal::after { display: none; }
body:not(.page-legal)::before, body:not(.page-legal)::after { display: none; }

/* ════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }
  .radio-option label { width: 100%; }
  .download-list li { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
  .site-nav a { font-size: 0.73rem; padding: 6px 10px; }
  .hero-section::after { display: none; }
  .hero-section::before { width: 280px; height: 280px; }
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 2px; }
  .hero-section { padding: 52px 0 44px; }
}
