:root{
  --bg: #070B12;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --subtle: rgba(255,255,255,.52);
  --brand: #1D6FFF;      /* Kiel-RP Blau */
  --brand2:#00C2FF;
  --good: #2DD4BF;
  --warn: #FBBF24;
  --bad:  #FB7185;

  --shadow: 0 24px 70px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 28px;
  --max: 1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% 0%, rgba(29,111,255,.18), transparent 55%),
              radial-gradient(1000px 600px at 85% 10%, rgba(0,194,255,.14), transparent 50%),
              linear-gradient(180deg, #05070C 0%, #070B12 40%, #05070C 100%);
  min-height:100vh;
}

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

.container{ width:min(var(--max), calc(100% - 44px)); margin:0 auto; }

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:20px; top:14px; width:auto; height:auto;
  background:#000; padding:10px 12px; border-radius:10px; outline:2px solid var(--brand);
  z-index:9999;
}

header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,11,18,.85), rgba(7,11,18,.55));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.2px;
}
.brand svg, .brand img{ width:34px; height:34px; border-radius:12px; }
.brand span{ display:flex; flex-direction:column; line-height:1.05; }
.brand small{ font-weight:600; color:var(--muted); letter-spacing:.4px; }

.navlinks{
  display:flex; align-items:center; gap:14px;
}
.navlinks a{
  padding:10px 12px;
  color: var(--muted);
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}
.navlinks a[aria-current="page"]{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.navlinks a:hover{ color: var(--text); background: rgba(255,255,255,.05); }

.actions{ display:flex; align-items:center; gap:10px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  user-select:none;
}
.btn:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.btn:active{ transform: translateY(1px); }
.btn.primary{
  border-color: rgba(29,111,255,.45);
  background: linear-gradient(180deg, rgba(29,111,255,.22), rgba(29,111,255,.12));
  box-shadow: 0 18px 60px rgba(29,111,255,.14);
}
.btn.primary:hover{ border-color: rgba(29,111,255,.65); }
.btn svg{ width:18px; height:18px; opacity:.92; }

.hamburger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
}

.mobilemenu{
  display:none;
  padding: 10px 0 18px 0;
}
.mobilemenu a{
  display:block;
  padding: 12px 12px;
  margin: 8px 0;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.mobilemenu a[aria-current="page"]{ color: var(--text); border-color: rgba(29,111,255,.45); }

.hero{
  position:relative;
  padding: 62px 0 34px 0;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items:stretch;
}
.heroCard{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    radial-gradient(900px 500px at 20% 0%, rgba(29,111,255,.18), transparent 55%),
    radial-gradient(800px 450px at 85% 0%, rgba(0,194,255,.12), transparent 50%);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.heroMedia{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.65)),
    url('../img/hero.webp') center/cover no-repeat;
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: 370px;
  position:relative;
}
.heroMedia::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(600px 360px at 30% 30%, rgba(29,111,255,.25), transparent 60%),
    radial-gradient(420px 260px at 75% 20%, rgba(0,194,255,.15), transparent 60%);
  pointer-events:none;
}
.heroContent{
  padding: 34px 32px 26px 32px;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-weight: 650;
}
.dot{
  width:10px; height:10px; border-radius:50%;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 5px rgba(29,111,255,.12);
}
h1{
  margin: 16px 0 10px 0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -.7px;
}
.lead{
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
  max-width: 62ch;
}
.heroActions{ display:flex; flex-wrap:wrap; gap:12px; margin-top: 18px; }

.badges{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top: 18px;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--subtle);
  font-weight: 650;
  font-size: .92rem;
}
.badge svg{ width:16px; height:16px; opacity:.8; }

.section{
  padding: 26px 0;
}
.sectionHeader{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px;
  margin-bottom: 14px;
}
.sectionHeader h2{
  margin:0;
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -.2px;
}
.sectionHeader p{
  margin:0;
  color: var(--muted);
  max-width: 64ch;
  line-height:1.55;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  overflow:hidden;
}
.card h3{ margin: 0 0 8px 0; font-size: 1.05rem; letter-spacing:-.2px;}
.card p{ margin:0; color: var(--muted); line-height:1.55; }
.card .icon{
  width:40px; height:40px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(29,111,255,.16);
  border: 1px solid rgba(29,111,255,.22);
  margin-bottom: 10px;
}
.card .icon svg{ width:20px; height:20px; }

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.panel{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  padding: 18px;
}
.panel h3{ margin:0 0 8px 0; }
.panel p{ margin:0; color:var(--muted); line-height:1.55; }
.panel .meta{ margin-top: 12px; color: var(--subtle); font-weight:650; }

.mediaPanel{
  position:relative;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.65)),
    url('../img/hero.webp') center/cover no-repeat;
  min-height: 250px;
  overflow:hidden;
}
.mediaPanel::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(540px 320px at 25% 30%, rgba(29,111,255,.20), transparent 60%),
    radial-gradient(420px 260px at 75% 20%, rgba(0,194,255,.14), transparent 60%);
  pointer-events:none;
}

.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align:left;
}
.table th{
  color: var(--subtle);
  font-size:.92rem;
  font-weight:800;
  background: rgba(255,255,255,.04);
}
.table td{ color: var(--muted); }
.table tr:last-child td{ border-bottom:none; }

.notice{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 14px 14px;
  color: var(--muted);
  line-height:1.55;
}
.notice strong{ color: var(--text); }

.footer{
  padding: 34px 0 40px 0;
  color: var(--subtle);
}
.footerGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items:start;
}
.footer a{ color: var(--muted); text-decoration:underline; text-underline-offset:3px; }
.footer small{ display:block; margin-top:10px; color: var(--subtle); }

.pageTitle{
  padding: 34px 0 10px 0;
}
.pageTitle h1{ font-size: clamp(28px, 3.4vw, 40px); margin:0; }
.pageTitle p{ margin:10px 0 0 0; color: var(--muted); line-height:1.55; max-width:70ch; }

.pdfWrap{
  position:relative;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
  background: rgba(0,0,0,.25);
  box-shadow: var(--shadow);
}
.pdfWrap iframe{
  width:100%;
  height: 78vh;
  min-height: 560px;
  border:0;
  display:block;
  background:#0b1020;
}
.pdfHint{
  position:absolute; left: 14px; bottom: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  color: var(--subtle);
  max-width: 64ch;
}

.statusGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight:750;
}
.pill .s{
  width:10px; height:10px; border-radius:50%;
  background: rgba(255,255,255,.25);
}
.pill.good .s{ background: var(--good); box-shadow:0 0 0 5px rgba(45,212,191,.10); }
.pill.warn .s{ background: var(--warn); box-shadow:0 0 0 5px rgba(251,191,36,.10); }
.pill.bad .s{ background: var(--bad);  box-shadow:0 0 0 5px rgba(251,113,133,.10); }

.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .92rem;
  padding:.12rem .36rem;
  border-radius:.5rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
}

@media (max-width: 920px){
  .heroGrid{ grid-template-columns: 1fr; }
  .heroMedia{ min-height: 260px; }
  .grid3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .footerGrid{ grid-template-columns: 1fr; }
  .statusGrid{ grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .navlinks{ display:none; }
  .hamburger{ display:inline-flex; }
  .mobilemenu.show{ display:block; }
  .container{ width: min(var(--max), calc(100% - 30px)); }
}
/* Accessibility: visible focus */
a:focus-visible, button:focus-visible, .btn:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
a:focus-visible{ border-radius: 12px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gItem{
  display:block;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}
.gItem img{
  width:100%;
  height: 220px;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
  transition: transform .25s ease;
}
.gItem:hover img{ transform: scale(1.04); }

@media (max-width: 920px){
  .gallery{ grid-template-columns: 1fr 1fr; }
  .gItem img{ height: 200px; }
}
@media (max-width: 520px){
  .gallery{ grid-template-columns: 1fr; }
  .gItem img{ height: 210px; }
}

/* Lightbox */
.lightbox{
  position:fixed; inset:0;
  background: rgba(0,0,0,.72);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 1000;
}
.lightbox.show{ display:flex; }
.lbCard{
  width:min(980px, 100%);
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,12,20,.95);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.lbCard img{ width:100%; height:auto; display:block; background:#000; }
.lbClose{
  position:absolute; right: 10px; top: 10px;
  width:42px; height:42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  font-size: 22px;
  line-height: 0;
}
.cap{
  padding: 12px 14px 16px 14px;
  color: var(--muted);
  font-weight: 700;
}

/* Toast */
.toast{
  position:fixed;
  left:50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-weight: 750;
  opacity: 0;
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1100;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* FAQ Accordion */
.acc{ display:flex; flex-direction:column; gap:10px; }
.accItem{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
.accBtn{
  width:100%;
  text-align:left;
  padding: 14px 14px;
  border:0;
  background: transparent;
  color: var(--text);
  font-weight: 850;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.accBtn .chev{ transform: rotate(90deg); opacity:.7; transition: transform .2s ease; }
.accBody{
  padding: 0 14px 14px 14px;
  color: var(--muted);
  line-height: 1.6;
  display:none;
}
.accItem.open .accBody{ display:block; }
.accItem.open .accBtn .chev{ transform: rotate(-90deg); }

/* Back to top */
.toTop{
  position:fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  display:none;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  z-index: 900;
}
.toTop.show{ display:inline-flex; align-items:center; justify-content:center; }
