/* ============================================================
   WRAFF FORCE — main.css
   Global styles, CSS variables, layout, nav, footer
   Version 1.0 — Based on approved prototype v2
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS VARIABLES ── */
:root {
  /* Backgrounds */
  --bg-0: #1A1E24;
  --bg-1: #20252D;
  --bg-2: #272D37;
  --bg-3: #2E3540;
  --bg-4: #353D4A;

  /* Borders */
  --border:    rgba(255, 255, 255, 0.08);
  --border-md: rgba(255, 255, 255, 0.14);
  --border-hi: rgba(255, 255, 255, 0.22);

  /* Text */
  --text-0: #EDF0F3;
  --text-1: #C8D2DC;
  --text-2: #96A2B0;
  --text-3: #6A7888;

  /* Accents */
  --silver:     #CCD8E4;
  --silver-dim: #8A9AAA;

  /* Status Colors */
  --red:        #E03434;
  --red-dim:    rgba(224, 52, 52, 0.12);
  --amber:      #D4850A;
  --amber-dim:  rgba(212, 133, 10, 0.12);
  --green:      #1A9E5C;
  --green-dim:  rgba(26, 158, 92, 0.12);
  --blue:       #4A8CC4;
  --blue-dim:   rgba(74, 140, 196, 0.12);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Misc */
  --radius:     3px;
  --nav-height: 56px;
  --max-width:  1240px;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ── LAYOUT ── */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

section {
  padding: 72px 0;
  position: relative;
  z-index: 1;
}

main {
  padding-top: var(--nav-height);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

@keyframes logoReveal {
  from { opacity: 0; transform: scale(0.88); filter: brightness(0); }
  to   { opacity: 0.82; transform: scale(1); filter: brightness(1); }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes treatFill {
  from { width: 0; }
  to   { width: var(--fill-width, 33%); }
}

/* Animation delay utility classes */
.a1 { animation: fadeUp 0.7s ease both; animation-delay: 0.6s; }
.a2 { animation: fadeUp 0.7s ease both; animation-delay: 0.75s; }
.a3 { animation: fadeUp 0.7s ease both; animation-delay: 0.9s; }
.a4 { animation: fadeUp 0.7s ease both; animation-delay: 1.05s; }
.a5 { animation: fadeUp 0.7s ease both; animation-delay: 1.2s; }
.a6 { animation: fadeUp 0.7s ease both; animation-delay: 1.35s; }
.a7 { animation: fadeUp 0.7s ease both; animation-delay: 1.5s; }

/* ── NAVIGATION ── */
.wf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  background: rgba(26, 30, 36, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.wf-nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wf-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.wf-nav__logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.9;
}

.wf-nav__logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--text-0);
}

.wf-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.wf-nav__links a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.wf-nav__links a:hover  { color: var(--text-0); background: var(--bg-3); }
.wf-nav__links a.active { color: var(--silver); }

/* ── NAV DROPDOWN ── */
.wf-nav__links li { position: relative; list-style: none; }

.wf-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px; /* bridges the gap between nav item and dropdown */
  background: transparent;
  z-index: 200;
}

.wf-nav__dropdown-inner {
  background: var(--bg-1);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 6px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.wf-nav__links li:hover .wf-nav__dropdown .wf-nav__dropdown-inner,
.wf-nav__links li:focus-within .wf-nav__dropdown .wf-nav__dropdown-inner {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.wf-nav__dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-2);
  background: transparent;
  border-radius: 0;
  white-space: nowrap;
}

.wf-nav__dropdown a:hover { color: var(--text-0); background: var(--bg-3); }

.wf-nav__has-dropdown > a::after {
  content: ' ›';
  opacity: 0.5;
  font-size: 10px;
}

.wf-nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wf-nav__classified {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  padding: 5px 12px;
  border: 1px solid rgba(224, 52, 52, 0.28);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.wf-nav__classified:hover { background: var(--red-dim); }

/* Pulse dot */
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  padding: 5px 10px;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn.active {
  background: var(--bg-4);
  color: var(--silver);
}

/* Hamburger */
.wf-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  background: none;
  margin-left: 4px;
}

.wf-nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-0);
  transition: all 0.2s;
}

/* Mobile overlay menu */
/* ── MOBILE OVERLAY MENU ── */
.wf-mob-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 400;
  background: #0E1117;
  display: flex; flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.wf-mob-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.wf-mob-overlay__inner {
  display: flex; flex-direction: column;
  height: 100vh; width: 100%;
  padding: 0; overflow: hidden;
}

.wf-mob-overlay__header {
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.wf-mob-overlay__brand {
  font-family: var(--font-display);
  font-size: 17px; letter-spacing: 3px;
  color: var(--silver); flex: 1;
}
.wf-mob-overlay__close {
  font-size: 20px; color: var(--text-2);
  background: none; border: none;
  cursor: pointer; padding: 8px;
  line-height: 1; transition: color 0.15s;
}
.wf-mob-overlay__close:hover { color: var(--text-0); }

.wf-mob-overlay__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  display: flex; flex-direction: column;
  min-height: 0;
}
.wf-mob-overlay__nav > a {
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: 3px;
  color: var(--text-0); text-decoration: none;
  padding: 12px 28px;
  transition: color 0.15s;
  display: block;
}
.wf-mob-overlay__nav > a:hover { color: var(--silver); }
.wf-mob-overlay__nav > a.active { color: var(--silver); }

.wf-mob-overlay__group {
  margin: 0;
}
.wf-mob-overlay__section {
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-0);
  padding: 12px 28px;
  display: block; cursor: default; user-select: none;
}
.wf-mob-overlay__group a {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-2); text-decoration: none;
  padding: 9px 28px 9px 44px;
  border-top: 1px solid var(--border);
  display: block; transition: color 0.15s;
}
.wf-mob-overlay__group a:hover { color: var(--text-0); }

.wf-mob-overlay__footer {
  padding: 20px 28px 0;
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.wf-mob-overlay__classified {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--red);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(224,52,52,0.28);
  border-radius: var(--radius);
  transition: background 0.15s;
}
.wf-mob-overlay__classified:hover { background: var(--red-dim); }
.wf-mob-overlay__meta {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 1.5px;
  color: var(--text-3);
}

/* ── FOOTER ── */
.wf-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.wf-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wf-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wf-footer__logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.35;
  filter: grayscale(1);
}

.wf-footer__logo-text {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--text-3);
}

.wf-footer__tagline {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--text-3);
  text-transform: uppercase;
  text-align: center;
}

.wf-footer__note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-3);
  text-align: right;
}

/* ── SECTION HEADERS ── */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sec-code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
}

.sec-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--text-0);
}

/* ── DIVIDERS ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 56px 0;
  position: relative;
}

.divider[data-label]::before {
  content: attr(data-label);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-0);
  padding-right: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── TYPOGRAPHY UTILITIES ── */
.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }

.text-0 { color: var(--text-0); }
.text-1 { color: var(--text-1); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }

  section { padding: 56px 0; }

  .wf-nav__inner         { padding: 0 12px; gap: 0; justify-content: space-between; width: 100%; max-width: 100%; box-sizing: border-box; }
  .wf-nav__links         { display: none; }
  .wf-nav__right         { display: flex; align-items: center; gap: 4px; flex-shrink: 0; min-width: 0; }
  .wf-nav__hamburger     { display: flex; flex-shrink: 0; }
  .wf-nav__classified    { display: none; }
  .wf-nav__logo          { min-width: 0; overflow: hidden; }
  .lang-toggle           { display: flex; flex-shrink: 0; }

  .wf-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .wf-footer__tagline { order: -1; }
  .wf-footer__note    { text-align: center; }
}

@media (max-width: 500px) {
  .wrap { padding: 0 16px; }
}

@media (max-width: 900px) {
  /* Tabellen scrollbar machen */
  table { display: block; overflow-x: auto; max-width: 100%; }
  /* Überschriften nicht aus dem Rand laufen */
  h1, h2, .page-hero__title, .sec-title {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
  /* Alle Container auf max 100% begrenzen */
  .wrap > * { max-width: 100%; }
}
