/* ===========================
   RokoAI — corporate theme
   Dark header bands and footer, light content, red as a sparing accent.
   =========================== */

:root {
  --red:        #d71f2b;
  --red-dark:   #b3141f;
  --red-light:  #ff4a55;
  --red-tint:   #fdecee;

  --ink:        #0b0d12;   /* dark bands, headings on light */
  --ink-2:      #12151c;
  --ink-3:      #1b1f28;
  --ink-line:   #262b36;

  --text:       #1d2129;
  --muted:      #5b6270;
  --line:       #e4e7ec;
  --surface:    #ffffff;
  --surface-2:  #f6f7f9;

  --on-dark:        #ffffff;
  --on-dark-muted:  #a9afbb;
  --on-dark-subtle: #8e95a3;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius:    10px;
  --radius-lg: 14px;
  --shadow:    0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
  --shadow-lg: 0 12px 32px -8px rgba(16,24,40,0.14);
  --transition: 180ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; }

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

img { max-width: 100%; display: block; }

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

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,13,18,0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 26px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  position: relative;
  color: var(--on-dark-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--on-dark); }
.nav-links a.active { color: var(--on-dark); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}

.btn-nav {
  margin-left: 8px;
  background: var(--red) !important;
  color: var(--on-dark) !important;
  padding: 9px 18px !important;
  font-weight: 600 !important;
}
.btn-nav:hover { background: var(--red-dark) !important; }

.lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 10px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--on-dark-muted);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color var(--transition), background var(--transition);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.lang-menu summary:hover,
.lang-menu[open] summary { color: var(--on-dark); background: rgba(255,255,255,0.07); }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 120;
  list-style: none;
  padding: 8px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
  display: grid;
  grid-template-columns: repeat(2, minmax(124px, 1fr));
  gap: 2px;
}
.nav-links .lang-menu a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.nav-links .lang-menu a:hover { background: rgba(255,255,255,0.06); }
.nav-links .lang-menu a[aria-current="page"] { color: var(--on-dark); background: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--on-dark);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-primary-lg, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-primary, .btn-primary-lg { background: var(--red); color: var(--on-dark); }
.btn-primary::after, .btn-primary-lg::after { content: "→"; transition: transform var(--transition); }
.btn-primary:hover, .btn-primary-lg:hover { background: var(--red-dark); color: var(--on-dark); }
.btn-primary:hover::after, .btn-primary-lg:hover::after { transform: translateX(3px); }
.btn-primary-lg { padding: 16px 28px; font-size: 16px; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }


/* ===== DARK BANDS (hero, page hero) ===== */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}
.hero h1, .page-hero h1 { color: var(--on-dark); }
.hero .btn-outline, .page-hero .btn-outline { color: var(--on-dark); border-color: rgba(255,255,255,0.22); }
.hero .btn-outline:hover, .page-hero .btn-outline:hover { border-color: var(--on-dark); background: rgba(255,255,255,0.05); }

.page-hero::before, .hero-grid-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.page-hero::after, .hero-bg {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 85% -10%, rgba(215,31,43,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 110%, rgba(215,31,43,0.10) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== HERO ===== */
.hero {
  min-height: min(760px, 88vh);
  display: flex;
  align-items: center;
}


.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 96px;
  padding-bottom: 96px;
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  column-gap: 64px;
  align-items: center;
}
.hero-content > :not(.hero-card) { grid-column: 1; max-width: 720px; }
.hero-card { grid-column: 2; grid-row: 1 / span 4; }
.hero-badge { justify-self: start; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(215,31,43,0.2);
}

.hero-title {
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--on-dark-muted);
  margin-bottom: 40px;
  max-width: 620px !important;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero { padding: 96px 0 80px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .section-tag { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  max-width: 820px;
}
.page-hero p { color: var(--on-dark-muted); font-size: 18px; line-height: 1.7; max-width: 720px; }

/* ===== SECTIONS ===== */
.section-two-col, .section-why, .section-services, .section-team,
.section-services-full, .section-impressum { padding: 104px 0; }

.section-two-col { background: var(--surface); padding-bottom: 0; }
.section-why { background: var(--surface); }
.section-services { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-team { background: var(--surface); }

.section-header { margin-bottom: 48px; max-width: 760px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.page-hero .section-tag { color: var(--red-light); }
.section-header h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.section-cta { margin-top: 48px; }

/* ===== MISSION / VISION ===== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card-dark, .card-red {
  position: relative;
  padding: 40px 40px 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card-dark::before, .card-red::before {
  content: "";
  position: absolute;
  top: -1px; left: 40px;
  width: 48px; height: 3px;
  background: var(--red);
  border-radius: 0 0 3px 3px;
}
.card-dark h2, .card-red h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.card-dark p, .card-red p { color: var(--muted); line-height: 1.75; }

/* ===== WHY RED TEAMING ===== */
.section-why .container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 64px;
  align-items: start;
}
.section-why .section-header { margin-bottom: 56px; }
.why-body {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 56px;
  padding-top: 30px;
}
.threat-grid { grid-column: 1 / -1; }

.why-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 64px;
  padding: 0;
}
.why-panel h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -0.025em; }
.why-panel p  { color: var(--muted); font-size: 17px; line-height: 1.75; }

.threat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  counter-reset: threat;
}
.threat-card {
  padding: 32px 32px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  counter-increment: threat;
  transition: background var(--transition);
}
.threat-card:hover { background: var(--surface-2); }
.threat-dot { display: none; }
.threat-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.threat-card h4::before {
  content: counter(threat, decimal-leading-zero);
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.threat-card p { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-lg); border-color: #d5d9e0; transform: translateY(-2px); }

.service-icon, .service-row-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--red-tint);
  display: flex; align-items: center; justify-content: center;
}
.service-icon { margin-bottom: 24px; }
.service-icon::after, .service-row-icon::after {
  content: '';
  display: block;
  width: 22px; height: 22px;
  background: var(--red);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.icon-shield::after       { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.icon-lock::after         { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E"); }
.icon-search::after       { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E"); }
.icon-check-circle::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.icon-cpu::after          { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M1 9h3M1 15h3M20 9h3M20 15h3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M1 9h3M1 15h3M20 9h3M20 15h3'/%3E%3C/svg%3E"); }
.icon-users::after        { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E"); }

.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service-card p  { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* Services page: full list */
.section-services-full { padding-top: 0; }
.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.service-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.service-row:hover { box-shadow: var(--shadow-lg); border-color: #d5d9e0; }
.service-row-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.service-row-content p  { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.team-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "avatar name"
    "avatar role"
    "bio    bio";
  column-gap: 16px;
  align-items: center;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.team-avatar {
  grid-area: avatar;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(215,31,43,0.55);
}
.team-card h3   { grid-area: name; font-size: 17px; font-weight: 600; align-self: end; }
.team-role      { grid-area: role; align-self: start; color: var(--muted); font-size: 13px; font-weight: 500; }
.team-bio       { grid-area: bio; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.65; }


/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 56px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo { height: 38px; width: auto; align-self: flex-start; margin-bottom: 18px; }
.footer-brand p { color: var(--on-dark-subtle); font-size: 14px; }
.footer-legal-name { color: var(--on-dark) !important; font-weight: 600; font-size: 15px !important; }
.footer-links h4, .footer-contact h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-dark-subtle);
  margin-bottom: 18px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--on-dark-muted); font-size: 14px; }
.footer-links a:hover { color: var(--on-dark); }
.footer-email { color: var(--on-dark-muted); font-size: 14px; }
.footer-email:hover { color: var(--on-dark); }

.footer-impressum { border-top: 1px solid rgba(255,255,255,0.06); padding: 32px 0; }
.impressum-body {
  color: var(--on-dark-subtle);
  font-size: 13px;
  line-height: 1.8;
}
.impressum-body h4 {
  color: var(--on-dark-muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.impressum-body p { margin-bottom: 6px; }
.impressum-body a { color: var(--on-dark-muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); text-underline-offset: 3px; }
.impressum-body a:hover { color: var(--on-dark); }
.impressum-law { margin-top: 10px; font-size: 12px; color: var(--on-dark-subtle); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--on-dark-subtle);
}
.footer-legal-link { color: var(--on-dark-muted); font-size: 13px; }
.footer-legal-link:hover { color: var(--on-dark); }

/* ===== LEGAL PAGES (Datenschutz) ===== */
.section-impressum { background: var(--surface); }
.impressum-content { max-width: 760px; }
.impressum-block { margin-bottom: 44px; }
.impressum-block h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.impressum-block p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 10px;
}
.impressum-block a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ===== HERO REPORT CARD ===== */
.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hc-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--on-dark); }
.hc-title::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(215,31,43,0.2);
}
.hc-meta { font-size: 12px; color: var(--on-dark-subtle); white-space: nowrap; }
.hc-list { list-style: none; }
.hc-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hc-name { font-size: 14px; color: var(--on-dark-muted); }
.sev {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 100px;
}
.sev-high { color: #ff8a92; background: rgba(215,31,43,0.18); }
.sev-med  { color: #f6c26b; background: rgba(246,194,107,0.13); }
.sev-low  { color: #9fb3c8; background: rgba(159,179,200,0.13); }
.hc-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--on-dark-muted);
}
.hc-foot::before {
  content: "";
  width: 16px; height: 16px;
  flex-shrink: 0;
  background: #6fcf97;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===== HOW WE WORK ===== */
.section-process { padding: 104px 0 8px; background: var(--surface); }
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.process-step {
  position: relative;
  counter-increment: step;
  padding-top: 28px;
  border-top: 2px solid var(--line);
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -2px; left: 0;
  width: 40px;
  padding-top: 18px;
  border-top: 2px solid var(--red);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.process-step h3 { font-size: 20px; font-weight: 600; margin: 22px 0 10px; }
.process-step p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ===== CONTACT ===== */
.section-contact {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
  background: var(--ink);
  color: var(--on-dark);
  scroll-margin-top: 68px;
}
.section-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 80% at 100% 40%, rgba(215,31,43,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.section-contact .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: 72px;
  align-items: center;
}
.contact-intro h2 {
  color: var(--on-dark);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.contact-intro p { color: var(--on-dark-muted); font-size: 17px; max-width: 600px; margin-bottom: 36px; }
.section-contact .section-tag { color: var(--red-light); }
.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 8px 28px;
}
.contact-card > div { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.contact-card > div:last-child { border-bottom: none; }
.contact-card dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-subtle);
  margin-bottom: 6px;
}
.contact-card dd { font-size: 17px; color: var(--on-dark); }
.contact-card dd a { color: var(--on-dark); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 4px; }
.contact-card dd a:hover { text-decoration-color: var(--red); }

/* ===== FOCUS ===== */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero a:focus-visible, .page-hero a:focus-visible, .navbar a:focus-visible, .navbar button:focus-visible,
.navbar summary:focus-visible, .footer a:focus-visible, .section-contact a:focus-visible {
  outline-color: #ffffff;
}

/* ===== SCROLL REVEAL (CSS only; skipped when motion is reduced or unsupported) ===== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .card-dark, .card-red, .threat-card, .service-card, .service-row, .team-card, .process-step, .contact-card {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ===== 404 ===== */
.page-404 { min-height: 64vh; display: flex; align-items: center; }
.page-404 .container { width: 100%; }
.page-404 .hero-actions { margin-top: 36px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid, .team-grid, .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { grid-template-columns: 1fr; }
  .hero-card { grid-column: 1; grid-row: auto; margin-top: 56px; max-width: 480px; }
  .section-contact .container { grid-template-columns: 1fr; }
  .contact-card { margin-top: 48px; max-width: 560px; }
  .threat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-why .container, .why-panel { grid-template-columns: 1fr; }
  .why-body { padding-top: 0; margin-top: -24px; }
  .why-panel h2 { margin-bottom: 16px; }
}

@media (max-width: 768px) {
  .section-two-col, .section-why, .section-services, .section-team,
  .section-services-full, .section-impressum { padding: 72px 0; }
  .section-two-col { padding-bottom: 0; }
  .section-services-full { padding-top: 0; }
  .page-hero { padding: 72px 0 56px; }
  .hero-content { padding-top: 72px; padding-bottom: 72px; }

  .two-col-grid, .services-grid, .team-grid, .threat-grid, .services-list, .process-steps { grid-template-columns: 1fr; }
  .section-process, .section-contact { padding: 72px 0; }
  .section-process { padding-bottom: 0; }
  .card-dark, .card-red { padding: 32px 28px; }
  .card-dark::before, .card-red::before { left: 28px; }
  .service-row { padding: 28px 24px; gap: 18px; }


  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

  .nav-toggle { display: block; }
  .nav-links  {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--ink-2);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--ink-line);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: rgba(255,255,255,0.06); }
  .btn-nav { margin: 6px 0 0; text-align: center; }
  .lang-switcher  { margin: 10px 0 0; padding: 10px 0 0; border-left: none; border-top: 1px solid var(--ink-line); }
  .lang-menu      { width: 100%; }
  .lang-menu ul   { position: static; margin-top: 8px; box-shadow: none; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
