/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1e6fff;
  --blue2:   #0a4fd4;
  --accent:  #00d4ff;
  --gold:    #f5c842;
  --dark:    #080c14;
  --dark2:   #0d1220;
  --dark3:   #111827;
  --card:    #0f1929;
  --border:  rgba(30,111,255,.18);
  --text:    #e2e8f0;
  --muted:   #6b7280;
  --radius:  14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  /* Copy protection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

a { text-decoration: none; color: inherit; }
strong { color: #fff; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== COPY PROTECTION OVERLAY ===== */
.copy-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,12,20,.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeInOut 2s ease forwards;
}
.copy-msg {
  background: var(--card); border: 1px solid rgba(239,68,68,.4);
  border-radius: var(--radius); padding: 24px 40px;
  font-size: 1.1rem; font-weight: 700; color: #f87171;
  box-shadow: 0 0 40px rgba(239,68,68,.2);
}
@keyframes fadeInOut {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

/* ===== PARTICLES ===== */
.particles {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,111,255,.5), transparent 70%);
  animation: float linear infinite;
}
@keyframes float {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  background: rgba(8,12,20,.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all .3s;
}
.navbar.scrolled { background: rgba(8,12,20,.96); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem; font-weight: 900;
  color: var(--accent); letter-spacing: 2px;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.badge-icon { font-size: 1.2rem; }
.nav-links {
  display: flex; list-style: none; gap: 2px;
  margin-left: auto; flex-wrap: wrap;
}
.nav-links a {
  font-size: .75rem; font-weight: 500; padding: 6px 9px;
  border-radius: 8px; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(30,111,255,.15); }
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.4rem; cursor: pointer; margin-left: auto;
}
@media (max-width: 960px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(8,12,20,.97); padding: 16px 24px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transition: width .1s linear;
}

/* ===== HERO ===== */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center; justify-content: center;
  gap: 48px; padding: 80px 48px 40px;
  flex-wrap: wrap-reverse;
  overflow: hidden;
  isolation: isolate;
}

/* 4 screenshot strips as background */
.hero-bg-imgs {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(4,1fr);
  z-index: 0; pointer-events: none;
}
.hero-bg-img {
  background-size: cover; background-position: center;
  filter: saturate(0.4) brightness(0.18);
  transition: filter 6s ease;
}
/* subtle slow fade between images */
.hero-bg-img:nth-child(odd)  { animation: bgPulse 12s ease-in-out infinite alternate; }
.hero-bg-img:nth-child(even) { animation: bgPulse 12s ease-in-out 6s infinite alternate; }
@keyframes bgPulse {
  from { filter: saturate(0.4) brightness(0.16); }
  to   { filter: saturate(0.5) brightness(0.22); }
}

/* dark gradient overlay so text stays readable */
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 60% 50%, rgba(8,12,20,.55) 0%, transparent 70%),
    linear-gradient(to right, rgba(8,12,20,.92) 0%, rgba(8,12,20,.7) 40%, rgba(8,12,20,.7) 60%, rgba(8,12,20,.92) 100%),
    linear-gradient(to bottom, rgba(8,12,20,.9) 0%, rgba(8,12,20,.3) 30%, rgba(8,12,20,.3) 70%, rgba(8,12,20,.9) 100%);
}

/* vertical divider lines between strips */
.hero-bg-img:not(:last-child) {
  border-right: 1px solid rgba(30,111,255,.08);
}

.hero-content { max-width: 500px; flex: 1 1 300px; position: relative; z-index: 3; }
.hero-img-wrap { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; z-index: 3; }

.hero-eyebrow {
  font-size: .75rem; font-weight: 500; color: var(--muted);
  letter-spacing: .5px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--muted); flex-shrink: 0;
}
.hero-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 18px; color: #fff;
}
.hero-title .gradient-text {
  display: block; font-family: 'Orbitron', sans-serif; font-weight: 900;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  background: linear-gradient(135deg, #fff 0%, var(--accent) 55%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* OOC table */
.hero-ooc {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 18px;
}
.ooc-row {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 16px; border-bottom: 1px solid rgba(255,255,255,.04);
}
.ooc-row:last-child { border-bottom: none; }
.ooc-label { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; min-width: 76px; }
.ooc-val   { font-size: .85rem; font-weight: 600; color: #fff; }

.hero-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff; font-weight: 700; padding: 10px 20px;
  border-radius: 8px; font-size: .84rem;
  box-shadow: 0 0 24px rgba(30,111,255,.3);
  transition: transform .2s, box-shadow .2s;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(30,111,255,.5); }

/* Hero Image */
.hero-img-wrap {
  position: relative; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-img-glow {
  position: absolute; inset: -30px;
  background: radial-gradient(circle, rgba(30,111,255,.18), transparent 65%);
  animation: pulseGlow 3s ease-in-out infinite; pointer-events: none;
}
@keyframes pulseGlow {
  0%,100% { opacity: .5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.hero-img {
  width: 190px; height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(30,111,255,.4));
  position: relative; z-index: 1;
}

@media (max-width: 700px) {
  .hero { padding: 80px 24px 36px; gap: 28px; }
  .hero-img { width: 120px; height: 120px; }
}

/* ===== SECTIONS ===== */
.section { position: relative; z-index: 1; padding: 100px 0; }
.section-dark { background: var(--dark2); }

/* Screenshot background on sections */
.bg-screenshot {
  background-color: transparent;
}
.section-bg-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.6) brightness(0.35);
}
.section-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(8,12,20,.82) 0%,
    rgba(8,12,20,.55) 30%,
    rgba(8,12,20,.55) 70%,
    rgba(8,12,20,.82) 100%
  );
}
.bg-screenshot .container,
.bg-screenshot > *:not(.section-bg-img):not(.section-bg-overlay) {
  position: relative; z-index: 2;
}
/* section-dark with bg keeps the dark tint */
.section-dark.bg-screenshot .section-bg-overlay {
  background: linear-gradient(
    to bottom,
    rgba(13,18,32,.93) 0%,
    rgba(13,18,32,.78) 30%,
    rgba(13,18,32,.78) 70%,
    rgba(13,18,32,.93) 100%
  );
}
.section-header { margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: .72rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.2; }

/* ===== ABOUT ===== */
.about-text-full { max-width: 860px; }
.about-text-full p { color: #94a3b8; font-size: 1.05rem; line-height: 1.85; }

/* ===== WHY ME ===== */
.why-text-full { max-width: 860px; }
.why-text-full p { color: #94a3b8; font-size: 1.05rem; line-height: 1.85; }

/* ===== PRINCIPLES ===== */
.principles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 700px) { .principles-grid { grid-template-columns: 1fr; } }
.principle-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px; text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.principle-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(30,111,255,.15); border-color: rgba(30,111,255,.4); }
.pc-icon {
  width: 52px; height: 52px; margin: 0 auto 20px;
  background: rgba(30,111,255,.1); border: 1px solid rgba(30,111,255,.25);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.pc-icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.principle-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.principle-card p { color: #94a3b8; font-size: .9rem; }

/* ===== WHY ME ===== */
.why-text p { color: #94a3b8; margin-bottom: 16px; font-size: 1rem; }

/* ===== REQUIREMENTS ===== */
.req-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 640px) { .req-grid { grid-template-columns: 1fr; } }
.req-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .3s, transform .3s;
}
.req-card:hover { border-color: rgba(30,111,255,.4); transform: translateY(-4px); }
.req-icon {
  width: 44px; height: 44px; margin-bottom: 16px;
  background: rgba(30,111,255,.08); border: 1px solid rgba(30,111,255,.2);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.req-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.req-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.req-card p { color: #94a3b8; font-size: .88rem; line-height: 1.6; }
.visa-section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.visa-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 20px; }
.visa-grid { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.visa-item {
  background: rgba(30,111,255,.1); border: 1px solid rgba(30,111,255,.3);
  border-radius: 10px; padding: 16px 24px; text-align: center; min-width: 140px;
}
.visa-level { display: block; font-size: 1rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.visa-desc { font-size: .8rem; color: #94a3b8; }
.requirements-list { display: flex; flex-wrap: wrap; gap: 10px; }
.req-pill {
  display: flex; align-items: center; gap: 7px;
  background: rgba(30,111,255,.08); border: 1px solid rgba(30,111,255,.25);
  border-radius: 8px; padding: 8px 16px; font-size: .82rem; color: #cbd5e1;
}
.req-pill svg { stroke: #4ade80; flex-shrink: 0; }

/* ===== RANKS ===== */
.ranks-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.rank-category { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rank-cat-header { padding: 14px 20px; font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.rank-cat-header.misc       { background: rgba(107,114,128,.15); color: #9ca3af; }
.rank-cat-header.officer    { background: rgba(30,111,255,.15); color: #60a5fa; }
.rank-cat-header.command    { background: rgba(34,197,94,.12); color: #4ade80; }
.rank-cat-header.highcommand{ background: rgba(168,85,247,.15); color: #c084fc; }
.rank-cat-header.leadership { background: linear-gradient(90deg, rgba(245,200,66,.18), rgba(245,200,66,.05)); color: var(--gold); }
.rank-list { padding: 8px 0; }
.rank-item {
  display: flex; align-items: center; gap: 14px; padding: 10px 20px;
  font-size: .87rem; color: #94a3b8;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .2s, color .2s;
  animation: rankSlide .4s ease both;
  animation-delay: calc(var(--i) * .04s);
}
.rank-item:hover { background: rgba(30,111,255,.07); color: #e2e8f0; }
.rank-item:last-child { border-bottom: none; }
@keyframes rankSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.rank-num { font-family: 'Orbitron', sans-serif; font-size: .68rem; font-weight: 700; color: var(--muted); min-width: 28px; }
.rank-item.gold { color: var(--gold); }
.rank-item.gold .rank-num { color: rgba(245,200,66,.55); }
.rank-item.gold.top { background: linear-gradient(90deg, rgba(245,200,66,.1), transparent); font-weight: 700; font-size: .95rem; }

/* ===== DEPARTMENTS ===== */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; margin-bottom: 40px; }
.dept-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.dept-card:hover { transform: translateY(-6px); border-color: rgba(30,111,255,.4); box-shadow: 0 16px 40px rgba(30,111,255,.1); }
.dept-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.dept-icon svg { width: 22px; height: 22px; }
.dept-icon.hr  { background: rgba(30,111,255,.15);  border: 1px solid rgba(30,111,255,.3); }
.dept-icon.hr svg { stroke: #60a5fa; }
.dept-icon.ia  { background: rgba(168,85,247,.15);  border: 1px solid rgba(168,85,247,.3); }
.dept-icon.ia svg { stroke: #c084fc; }
.dept-icon.tow { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.25); }
.dept-icon.tow svg { stroke: #fbbf24; }
.dept-icon.sg  { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.25); }
.dept-icon.sg svg { stroke: #f87171; }
.dept-icon.su  { background: rgba(20,184,166,.12); border: 1px solid rgba(20,184,166,.25); }
.dept-icon.su svg { stroke: #2dd4bf; }
.dept-icon.seu { background: rgba(236,72,153,.12); border: 1px solid rgba(236,72,153,.25); }
.dept-icon.seu svg { stroke: #f472b6; }
.dept-icon.td  { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.25); }
.dept-icon.td svg { stroke: #4ade80; }
.dept-icon.cif { background: rgba(0,212,255,.08);  border: 1px solid rgba(0,212,255,.25); }
.dept-icon.cif svg { stroke: var(--accent); }
.dept-card h3 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.dept-card p  { font-size: .84rem; color: #6b7280; line-height: 1.65; }

.trainings-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.trainings-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 20px; }
.training-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ttag {
  background: rgba(0,212,255,.07); border: 1px solid rgba(0,212,255,.2);
  border-radius: 6px; padding: 6px 14px; font-size: .78rem; font-weight: 500; color: #94a3b8;
  transition: background .2s, color .2s;
}
.ttag:hover { background: rgba(0,212,255,.15); color: var(--accent); }

/* ===== NEUE IDEEN ===== */
.ideas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.idea-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  border-top: 3px solid var(--accent);
  transition: transform .3s, box-shadow .3s;
}
.idea-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,212,255,.1); }
.idea-icon {
  width: 52px; height: 52px; margin-bottom: 20px;
  background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.2);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.idea-icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.idea-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.idea-card p  { color: #94a3b8; font-size: .9rem; line-height: 1.65; }

/* ===== COOPERATION ===== */
.coop-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 28px; }
@media (max-width: 700px) { .coop-grid { grid-template-columns: 1fr; } }
.coop-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: transform .3s, border-color .3s;
}
.coop-card:hover { transform: translateY(-6px); border-color: rgba(30,111,255,.4); }
.coop-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; margin-bottom: 16px;
}
.coop-badge svg { width: 26px; height: 26px; }
.coop-badge.ems { background: rgba(239,68,68,.12); border: 2px solid rgba(239,68,68,.3); }
.coop-badge.ems svg { stroke: #f87171; }
.coop-badge.gov { background: rgba(245,158,11,.1); border: 2px solid rgba(245,158,11,.22); }
.coop-badge.gov svg { stroke: #fbbf24; }
.coop-badge.ng  { background: rgba(34,197,94,.08); border: 2px solid rgba(34,197,94,.22); }
.coop-badge.ng svg { stroke: #4ade80; }
.coop-card h3 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.coop-card p  { font-size: .85rem; color: #6b7280; line-height: 1.6; }
.coop-statement {
  background: linear-gradient(135deg, rgba(30,111,255,.08), rgba(0,212,255,.05));
  border: 1px solid rgba(30,111,255,.25); border-radius: var(--radius); padding: 28px 32px; text-align: center;
}
.coop-statement p { color: #94a3b8; font-size: .96rem; line-height: 1.75; }

/* ===== CLOSING ===== */
.closing {
  position: relative; z-index: 1; padding: 100px 0; text-align: center;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(30,111,255,.08) 0%, transparent 70%);
}
.closing-content { max-width: 680px; margin: 0 auto; }
.closing-text { font-size: 1.1rem; color: #94a3b8; line-height: 1.85; margin-bottom: 48px; font-style: italic; }
.closing-sig { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sig-line { width: 120px; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); margin-bottom: 12px; }
.sig-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px; }
.sig-name { font-family: 'Orbitron', sans-serif; font-size: 1.4rem; font-weight: 900; color: #fff; }
.sig-title { font-size: .85rem; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; }
.sig-meta { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ===== FOOTER ===== */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); padding: 24px; text-align: center;
  font-size: .78rem; color: var(--muted);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal, .reveal-right {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right { transform: translateX(32px); }
.reveal.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }

/* ===== WATERMARK ===== */
body::after {
  content: 'Marc Engel · SAHP Bewerbung · 2026';
  position: fixed; bottom: 18px; right: 20px; z-index: 50;
  font-size: .65rem; color: rgba(30,111,255,.25);
  pointer-events: none; letter-spacing: 1px;
}
