/* =========================================================
   Kopernik Secure Web – Dark Hybrid Theme (Clean + Emotional)
   ========================================================= */

:root{
  --bg: #070b10;
  --text: rgba(230,241,255,0.92);
  --muted: rgba(230,241,255,0.72);
  --accent: #00ffff;

  --panel: rgba(11,16,24,0.72);
  --panelSoft: rgba(11,16,24,0.60);
  --border: rgba(0,255,255,0.14);

  --shadow: 0 14px 35px rgba(0,0,0,0.35);
  --shadowStrong: 0 18px 50px rgba(0,0,0,0.55);
  
  --c-text: var(--text);
  --c-muted: var(--muted);
}

/* ================= Base ================= */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;

  background-color: var(--bg);
  color: var(--text);
}

main{
  flex: 1;
  padding-bottom: 76px; /* Platz für sticky footer */
}

a{ color: inherit; }

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ================= Page Backgrounds ================= */
body.page-home{
  background:
    linear-gradient(rgba(5,10,15,0.72), rgba(5,10,15,0.92)),
    url("../img/security-bg.webp") center / cover fixed no-repeat;
}

body.page-about{
  background:
    linear-gradient(rgba(5,6,10,.85), rgba(5,6,10,.85)),
    url("../img/about-bg.webp") center / cover fixed no-repeat;
}

/* FIX: Pfade korrekt relativ zu assets/css/ */
body.page-skills{
  background:
    linear-gradient(rgba(5,10,15,0.82), rgba(5,10,15,0.92)),
    url("../img/skills-bg.svg") center / cover fixed no-repeat;
}

body.page-services{
  background:
    linear-gradient(rgba(5,10,15,0.82), rgba(5,10,15,0.92)),
    url("../img/services-bg.svg") center / cover fixed no-repeat;
}

body.page-contact{
  background:
    linear-gradient(rgba(5,10,15,0.82), rgba(5,10,15,0.92)),
    url("../img/security-bg.webp") center / cover fixed no-repeat;
}

@media (max-width: 767px){
  body.page-home,
  body.page-about,
  body.page-skills,
  body.page-services{
    background-attachment: scroll;
  }
  body.page-contact{ background-attachment: scroll; }
}

/* ================= Header / Navigation (sticky) ================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;

  backdrop-filter: blur(12px);
  background: rgba(7,11,16,0.82);
  border-bottom: 1px solid rgba(0,255,255,0.12);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
}

.brand{
  text-decoration:none;
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand-name{
  color: var(--accent);
  font-weight: 850;
  letter-spacing: 0.03em;
}

.brand-slogan{
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .08em;
}

.nav-links{
  list-style:none;
  display:flex;
  gap: 4px;
  margin:0;
  padding:0;
}

.nav-links a{
  text-decoration:none;
  display:inline-block;
  padding: 9px 10px;
  border-radius: 12px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.nav-links a:hover{
  color: var(--accent);
  background: rgba(0,255,255,0.06);
  transform: translateY(-1px);
}

.nav-links a.active{
  color: var(--accent);
  background: rgba(0,255,255,0.10);
  border: 1px solid rgba(0,255,255,0.18);
}

.nav-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.nav-chip{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,255,255,0.16);
  background: rgba(0,255,255,0.06);
  color: rgba(230,241,255,0.86);
  font-size: .85rem;
  letter-spacing: .06em;
}

.lang-btn{
  border: 1px solid rgba(0,255,255,0.16);
  background: rgba(0,255,255,0.06);
  color: rgba(230,241,255,0.90);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: .9rem;
  text-decoration:none;
}

.lang-btn:hover{ border-color: rgba(0,255,255,0.28); }

@media (max-width: 900px){
  .brand-slogan{ display:none; }
}

@media (max-width: 767px){
  .nav-right{ display:none; }
  .nav-links a{ padding: 9px 8px; }
}

/* ================= HOME HERO (struktur) ================= */
.hero{
  min-height: calc(70vh - 62px);
  display:flex;
  align-items:flex-start;
  padding: 6px 0 4px;
}

.hero-stack{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

/* Box 1: Titel */
.title-box{
  padding: 30px 16px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align:center;
}

.title-main{
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: .04em;
  text-shadow: 0 0 24px rgba(0,255,255,0.25);
  margin-top: 20px;
}

.title-sub{
  margin-top: 4px;
  font-size: 1.05rem;
  color: rgba(230,241,255,0.86);
  letter-spacing: .08em;
}

/* Box 2: Split */
.hero-split{
  display:flex;
  gap: 14px;
  align-items:flex-start;
}

.hero-left{
  flex: 1 1 auto;
  min-width: 0;
}

.hero-right{
  flex: 0 0 420px;
  display:flex;
  justify-content:flex-end;
}

.hero-lead{
  margin: 0 0 12px 0;
  color: rgba(230,241,255,0.86);
  max-width: 70ch;
  font-size: 1.05rem;
}

.hero-cta{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin: 10px 0 12px;
}

.hero-tags{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.tag{
  border: 1px solid rgba(0,255,255,0.16);
  background: rgba(0,255,255,0.06);
  color: rgba(230,241,255,0.86);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: .9rem;
  letter-spacing: .04em;
}

/* Profil rechts */
.profile-card{
  width: 100%;
  max-width: 420px;
  padding: 14px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadowStrong);
  display:flex;
  flex-direction:column;
  gap: 12px;
  align-items:center;
}

.avatar{
  width: min(240px, 70vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(0,255,255,0.18);
  box-shadow: var(--shadowStrong);
}

.profile-meta{ text-align:center; }
.profile-title{
  color: var(--accent);
  font-weight: 850;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.profile-text{
  color: rgba(230,241,255,0.82);
  font-size: .98rem;
}

@media (max-width: 980px){
  .hero-split{ flex-direction:column; }
  .hero-right{ flex: 1 1 auto; justify-content:center; }
}
@media (max-width: 767px){
  .hero{ min-height:auto; padding: 14px 0 12px; }
}

/* Home Panel näher an Hero */
.page-home .hero + .panel{ margin-top: -10px; }
.page-home .panel{ padding-top: 0; }

/* ================= HOME PANEL / TILES ================= */
.panel{ padding: 0 0 14px; }

.landing-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 980px){
  .landing-grid{ grid-template-columns: 1fr; }
}

.tile{
  padding: 16px;
  border-radius: 18px;
  background: var(--panelSoft);
  border: 1px solid rgba(0,255,255,0.12);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}

.tile:hover{
  transform: translateY(-3px);
  border-color: rgba(0,255,255,0.22);
}

.tile h2{
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: .04em;
}

.tile p{
  margin: 0;
  color: rgba(230,241,255,0.82);
}

/* ================= CTA Row (Home) ================= */
.cta-row{
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--panelSoft);
  border: 1px solid rgba(0,255,255,0.12);
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

@media (max-width: 980px){
  .cta-row{ flex-direction:column; align-items:flex-start; }
}

.cta-text h3{
  margin: 0 0 6px 0;
  color: rgba(230,241,255,0.95);
  font-size: 1.15rem;
}

.cta-text p{
  margin: 0;
  color: rgba(230,241,255,0.78);
}

.cta-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

/* ================= Buttons (kompatibel) ================= */
.btn{
  display:inline-block;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration:none;
  border: 1px solid rgba(0,255,255,0.20);
  background: rgba(0,255,255,0.06);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}

.btn:hover{ transform: translateY(-1px); border-color: rgba(0,255,255,0.30); }

.btn.primary,
.btn--primary{
  background: var(--accent);
  color: #001014 !important;
  font-weight: 850;
  border-color: rgba(0,255,255,0.35);
}

.btn.ghost,
.btn--ghost{
  background: rgba(0,255,255,0.06);
}

/* ================= Sticky Footer (wie Nav) ================= */
.footer{
  position: sticky;
  bottom: 0;
  z-index: 999;

  padding: 12px 0;
  backdrop-filter: blur(12px);
  background: rgba(7,11,16,0.84);
  border-top: 1px solid rgba(0,255,255,0.10);
}

.footer, .footer *{
  color: rgba(230,241,255,0.86) !important;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.footer-brand{ font-weight: 700; }
.footer-small{ color: rgba(230,241,255,0.62) !important; font-size: .9rem; }
.footer-links{ display:flex; gap: 12px; }

.link{
  color: rgba(0,255,255,0.92) !important;
  text-decoration:none;
}
.link:hover{ text-decoration: underline; }

/* ================= Cookie Banner ================= */
.cookie-banner{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 76px;
  z-index: 2000;

  width: min(1100px, 96%);
  display: none;
  gap: 14px;
  align-items: center;
  justify-content: space-between;

  padding: 12px 14px;
  border-radius: 16px;

  background: rgba(11,16,24,0.92);
  border: 1px solid rgba(0,255,255,0.18);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.cookie-banner.is-visible{ display:flex; }

.cookie-text{ font-size: .92rem; color: rgba(230,241,255,0.86); }
.cookie-text strong{ color: var(--accent); font-weight: 750; }

@media (max-width: 767px){
  .cookie-banner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    bottom: 90px;
  }
}

/* ================= Sections Renderer (Skills/Services) – HYBRID ================= */
.page-hero,
.grid.cards,
.cta{
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
  padding-left:18px;
  padding-right:18px;
}

.page-hero{
  margin-top: 14px;
  margin-bottom: 12px;
  padding: 18px 18px;

  border-radius: 18px;
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(0,255,255,0.07), transparent 60%),
    var(--panel);
  border: 1px solid rgba(0,255,255,0.16);
  box-shadow: var(--shadow);
}

.page-hero h2{
  margin: 0 0 10px 0;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  color: rgba(230,241,255,0.96);
}

.page-hero .lead{
  margin: 0;
  max-width: 80ch;
  color: rgba(230,241,255,0.84);
  font-size: 1.03rem;
}

.grid.cards{
  margin-top: 14px;
  margin-bottom: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card{
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(700px 260px at 25% 0%, rgba(0,255,255,0.06), transparent 60%),
    var(--panelSoft);
  border: 1px solid rgba(0,255,255,0.12);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,255,255,0.22);
}

.card h3{
  display:flex;
  align-items:center;
  gap: 8px;
  margin: 0 0 10px 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.list{ margin: 10px 0 0; padding-left: 18px; }
.note{ margin-top: 10px; color: rgba(230,241,255,0.80); }
.muted{ opacity: .75; }

.callout{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,255,255,0.06);
  border: 1px solid rgba(0,255,255,0.16);
  color: rgba(230,241,255,0.88);
}
.callout strong{ color: var(--accent); }

.skill{ margin: 14px 0 0; }
.skill__top{ display:flex; justify-content:space-between; gap: 10px; }
.bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  margin-top: 6px;
}
.bar > span{
  display:block;
  height: 100%;
  border-radius: 999px;
  background: rgba(0,255,255,.55);
}

.cta{
  margin-top: 16px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(0,255,255,0.06), transparent 60%),
    var(--panelSoft);
  border: 1px solid rgba(0,255,255,0.14);
  box-shadow: var(--shadow);
}

.cta h3{ margin: 0 0 8px 0; color: rgba(230,241,255,0.95); font-size: 1.15rem; }
.cta p{ margin: 0; color: rgba(230,241,255,0.78); }

.cta__row{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Tooltip */
.info{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  margin-left:8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.04);
  font-size:12px;
  cursor:help;
  position:relative;
  user-select:none;
}

.info::after{
  content: attr(data-tip);
  position:absolute;
  left:50%;
  bottom:140%;
  transform: translateX(-50%);
  width:min(320px,70vw);
  padding:10px 12px;
  border-radius:12px;
  background: rgba(10,12,16,.96);
  border: 1px solid rgba(0,255,255,0.18);
  box-shadow: 0 14px 38px rgba(0,0,0,.55);
  color: rgba(230,241,255,0.92);
  font-size:13px;
  line-height:1.35;
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease;
  z-index:999;
}

.info:hover::after,
.info:focus::after{ opacity:1; }

@media (max-width: 767px){
  .grid.cards{ grid-template-columns: 1fr; }
}

/* Motion Reduction */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

/* ===== Card Header mit optionalem Icon ===== */
.card__head{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 0 0 10px 0;
}

.card__head h3{
  margin: 0;
  display:flex;
  align-items:center;
  gap: 8px;
}

.card__icon{
  width: 20px;
  height: 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 20px;
  opacity: .95;
}

.card__icon svg{
  width: 20px;
  height: 20px;
  fill: rgba(0,255,255,0.85);
  filter: drop-shadow(0 0 10px rgba(0,255,255,0.12));
}

/* ===== CTA: Secondary Buttons ===== */
.btn.btn--ghost{
  background: rgba(0,255,255,0.06);
}

/* ###### BEGIN universal page-frame (contact-like) ###### */
.page-frame{
  max-width:1100px;
  margin: 14px auto 18px;
  border-radius: 18px;

  background:
    radial-gradient(900px 300px at 20% 0%, rgba(0,255,255,0.06), transparent 60%),
    rgba(11,16,24,0.62);

  border: 1px solid rgba(0,255,255,0.14);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.page-frame__inner{
  padding: 24px 28px; /* vorher 16px 18px */
}

@media (max-width: 767px){
  .page-frame__inner{ padding: 18px 16px; }
}
/* ###### END universal page-frame (contact-like) ###### */


/* ###### BEGIN page-frame: make sections match About spacing ###### */
.page-frame .page-hero,
.page-frame .grid.cards,
.page-frame .cta{
  max-width: none;
  padding-left: 18px;
  padding-right: 18px;
  margin-left: 0;
  margin-right: 0;
}

.page-frame .page-hero{
  margin-top: 0;
}

.page-frame .cta{
  padding-left: 14px;
    padding-right: 14px;
}
/* ###### END page-frame: make sections match About spacing ###### */


/* ###### BEGIN Legal Modal Premium Fix ###### */

body.is-modalOpen { overflow: hidden; }

/* Backdrop */
.legal-modal-backdrop{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(2px);
}
.legal-modal-backdrop.is-open{ display:block; }

/* Modal: stabil mittig + sauberer Rahmen */
.legal-modal{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: min(1040px, calc(100vw - 44px));
  height: min(84vh, 980px);
  border-radius: 18px;
  border: 1px solid rgba(0,255,255,0.14);
  background: rgba(7,11,16,0.92);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  overflow: hidden;
}
/* Header: Luft + Button wie bei dir */
.legal-modal .legal-modal__top{
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom: 1px solid rgba(0,255,255,0.10);
}

.legal-modal .legal-modal__title{
  font-weight: 900;
  letter-spacing: .2px;
  opacity: .95;
}

/* Close Button: wie deine nav/menu buttons */
.legal-modal .legal-modal__close{
  border: 1px solid rgba(0,255,255,0.16) !important;
  background: rgba(0,255,255,0.06) !important;
  color: rgba(230,241,255,0.92) !important;
  padding: 10px 14px !important;
  border-radius: 16px !important;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.legal-modal .legal-modal__close:hover{
  border-color: rgba(0,255,255,0.26) !important;
  background: rgba(0,255,255,0.10) !important;
  transform: translateY(-1px);
}

/* Bar bleibt */
.legal-modal .legal-modal__bar{
  height: 6px;
  background: rgba(0,255,255,0.06);
  border-bottom: 1px solid rgba(0,255,255,0.10);
  overflow:hidden;
}

/* Body: das ist der Scroll-Fix (wichtig!) */
.legal-modal .legal-modal__body{
  height: calc(100% - 56px - 6px); /* top + bar */
  overflow: auto;
  padding: 18px 18px 20px;
}

/* Innenlayout: 2 Spalten */
.legal-modal__layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items:start;
}

@media (max-width: 980px){
  .legal-modal__layout{ grid-template-columns: 1fr; }
}

/* Content: NICHT am Rand kleben, schöner Frame */
.legal-modal__main{
  border-radius: 18px;
  background: rgba(11,16,24,0.58);
  border: 1px solid rgba(0,255,255,0.12);
  box-shadow: var(--shadow);
  padding: 18px 18px;
}
@media (max-width: 767px){
  .legal-modal__main{ padding: 16px 14px; }
}

/* Typography: ruhiger, lesbar */
.legal-modal__main h1,
.legal-modal__main h2,
.legal-modal__main h3{
  margin: 0 0 10px;
  letter-spacing: .2px;
}
.legal-modal__main p{ margin: 0 0 12px; line-height: 1.6; }
.legal-modal__main hr{
  border:0;
  height:1px;
  background: rgba(0,255,255,0.12);
  margin: 18px 0;
}

/* Aside Visual Card (rechts) */
.legal-modal__aside{
  border-radius: 18px;
  background: rgba(11,16,24,0.52);
  border: 1px solid rgba(0,255,255,0.12);
  box-shadow: var(--shadow);
  padding: 12px 12px 10px;
  position: sticky;
  top: 10px;
}
.legal-visual__title{
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .06em;
  font-size: .95rem;
}
.legal-visual__sub{
  margin-top: 4px;
  color: rgba(230,241,255,0.72);
  font-size: .88rem;
}
.legal-visual__svg{
  width:100%;
  height:auto;
  display:block;
  margin-top: 10px;
}

/* Subtle animation */
@keyframes legalPulse{
  0%{ transform: scale(0.98); opacity: .55; }
  50%{ transform: scale(1.03); opacity: .95; }
  100%{ transform: scale(0.98); opacity: .55; }
}
.legal-visual__pulse{ animation: legalPulse 2.8s ease-in-out infinite; transform-origin: center; }

@media (prefers-reduced-motion: reduce){
  .legal-visual__pulse{ animation: none; }
}

/* Scrollbar nicer */
.legal-modal .legal-modal__body::-webkit-scrollbar{ width: 12px; }
.legal-modal .legal-modal__body::-webkit-scrollbar-track{ background: rgba(0,0,0,0.18); }
.legal-modal .legal-modal__body::-webkit-scrollbar-thumb{
  background: rgba(0,255,255,0.18);
  border-radius: 999px;
  border: 3px solid rgba(0,0,0,0.22);
}
.legal-modal .legal-modal__body::-webkit-scrollbar-thumb:hover{ background: rgba(0,255,255,0.26); }

/* ###### END Legal Modal UX upgrade ###### */
2) JS Update (legal-modal.js) – Layout + SVG je nach Seite

In assets/js/legal-modal.js musst du nur die Stelle ändern, wo du body.innerHTML = html setzt.
Wir packen es in:

<div class="legal-modal__layo


/* ###### BEGIN sections spacing polish (skills/services) ###### */

/* CTA: mehr Innenabstand + Text nicht bis an den Rand */
.cta{
  padding: 20px 22px;
}

.cta p{
  max-width: 78ch;
  margin-top: 6px;
}

/* Hero: Lead auch begrenzen + etwas mehr Luft */
.page-hero{
  padding: 22px 22px;
}
.page-hero .lead{
  max-width: 78ch;
}

/* Buttons nicht am Rand kleben */
.cta__row{
  margin-top: 14px;
}

/* Mobile: wieder etwas kompakter */
@media (max-width: 767px){
  .cta{ padding: 16px 14px; }
  .page-hero{ padding: 16px 14px; }
}

/* ###### END sections spacing polish (skills/services) ###### */

/* ###### BEGIN Home: wrap into page-frame look ###### */

/* Home: Hauptbereich bekommt den gleichen Rahmen-Look */
.page-home main{
  position: relative;
}

/* Frame-Wrapper für Hero + Panel */
.page-home .hero,
.page-home .panel{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Der eigentliche Rahmen (gleicher Look wie .page-frame) */
.page-home .hero{
  margin-top: 14px;
  border-radius: 18px;
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(0,255,255,0.06), transparent 60%),
    rgba(11,16,24,0.62);
  border: 1px solid rgba(0,255,255,0.14);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  padding: 18px 20px;
}

/* Panel direkt darunter optisch als Teil des Frames */
.page-home .panel{
  margin-top: 12px;
  border-radius: 18px;
  background:
    radial-gradient(900px 260px at 20% 0%, rgba(0,255,255,0.05), transparent 60%),
    rgba(11,16,24,0.50);
  border: 1px solid rgba(0,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
  padding: 14px 20px 18px;
}

/* Innenabstände auf Mobile */
@media (max-width: 767px){
  .page-home .hero{ padding: 14px 14px; }
  .page-home .panel{ padding: 12px 14px 14px; }
}

/* ###### END Home: wrap into page-frame look ###### */

/* ###### BEGIN home final statement ###### */
.page-home .home-final{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(0,255,255,0.06);
  border: 1px solid rgba(0,255,255,0.14);
}

.page-home .home-final h3{
  margin: 0 0 8px 0;
  color: rgba(230,241,255,0.95);
  font-size: 1.1rem;
}

.page-home .home-final p{
  margin: 0;
  color: rgba(230,241,255,0.82);
  max-width: 85ch;
}
/* ###### END home final statement ###### */

/* ###### BEGIN Home: frame like other pages ###### */
.page-home main{
  position: relative;
}

/* Home: Hero + Panel bekommen die gleiche Frame-Anmutung */
.page-home .hero{
  max-width: 1100px;
  margin: 14px auto 0;
  border-radius: 18px;

  background:
    radial-gradient(900px 300px at 20% 0%, rgba(0,255,255,0.06), transparent 60%),
    rgba(11,16,24,0.62);

  border: 1px solid rgba(0,255,255,0.14);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  padding: 18px 20px;
}

/* Panel darunter passend & ruhig */
.page-home .panel{
  max-width: 1100px;
  margin: 12px auto 18px;
  border-radius: 18px;

  background:
    radial-gradient(900px 260px at 20% 0%, rgba(0,255,255,0.05), transparent 60%),
    rgba(11,16,24,0.50);

  border: 1px solid rgba(0,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
  padding: 14px 20px 18px;
}

@media (max-width: 767px){
  .page-home .hero{ padding: 14px 14px; }
  .page-home .panel{ padding: 12px 14px 14px; }
}
/* ###### END Home: frame like other pages ###### */

/* ###### BEGIN Home overlap fix (text vs tiles) ###### */

/* Sicherstellen, dass Panel nicht in Hero reinrutscht (alte Home-Regel killen) */
.page-home .hero + .panel{
  margin-top: 14px !important;   /* überschreibt evtl. -10px von früher */
}

/* Extra Luft vor dem Kachel-Grid */
.page-home .landing-grid{
  margin-top: 16px;
}

/* Falls es trotzdem eng ist: Textblock bekommt Bottom-Padding */
.page-home .panel{
  padding-bottom: 22px;
}

/* ###### END Home overlap fix ###### */

/* ###### BEGIN legal modal loading bar ###### */
.legal-modal__bar{
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(0,255,255,0.08);
  overflow: hidden;
}

.legal-modal__barFill{
  display:block;
  height: 100%;
  width: 38%;
  background: rgba(0,255,255,0.65);
  transform: translateX(-120%);
  opacity: 0;
}

.legal-modal-backdrop.is-loading .legal-modal__barFill{
  opacity: 1;
  animation: legalbar 1.0s ease-in-out infinite;
}

@keyframes legalbar{
  0%   { transform: translateX(-120%); }
  50%  { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}
/* ###### END legal modal loading bar ###### */

/* ###### BEGIN CSP: remove inline style attrs ###### */
.lang-btn--spaced{ margin-left: 8px; }
/* ###### END CSP ###### */
/* ###### BEGIN Radar Animation ###### */
@keyframes radarSweep {
  0%   { transform: translate(110px,40px) rotate(0deg); }
  100% { transform: translate(110px,40px) rotate(360deg); }
}

/* Wir animieren direkt das <g> im SVG */
.skill-radar .radar-sweep{
  transform-origin: 150px 150px; /* innerhalb des beamWedge viewBox */
  animation: radarSweep 6.5s linear infinite;
  opacity: 0.95;
}

/* Respektiere "Reduce motion" */
@media (prefers-reduced-motion: reduce){
  .skill-radar .radar-sweep{ animation: none; }
}
/* ###### END Radar Animation ###### */

/* ###### BEGIN Skill Radar Center Big ###### */

/* Nur für Cards mit Radar (damit andere Cards nicht betroffen sind) */
.skill-radar-center{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  /* damit es “mittig groß” wirkt */
  min-height: 220px;              /* anpassen wenn du willst */
  padding: 10px 6px 6px;
}

/* Bild groß skalieren, aber Card nicht sprengen */
.skill-radar--big{
  width: min(100%, 360px);        /* <- Größe in der Card */
  height: auto;
  opacity: .98;
  filter: drop-shadow(0 0 14px rgba(0,241,234,.14));
}

/* Optional: Wenn die Skill-Scan Card noch mehr Platz haben soll */
.card:has(.skill-radar-center){
  min-height: 280px;
}

/* Fallback falls :has() nicht greift (optional) */
/* Du kannst alternativ der Skill-Scan-Card eine extra class geben,
   wenn du’s 100% browser-safe willst. */

/* ###### END Skill Radar Center Big ###### */

/* ###### BEGIN Big Visual Cards ###### */
.skill-radar-center{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height: 260px;
  padding: 10px 8px 6px;
}

.skill-radar--big{
  width: min(100%, 460px); /* größer als vorher */
  height: auto;
  opacity: .98;
  filter: drop-shadow(0 0 16px rgba(0,241,234,.14));
}
/* ###### END Big Visual Cards ###### */

/* ###### BEGIN Home Radar Visual (Hero Right) ###### */

.home-radar{
  width: 100%;
  max-width: 420px;        /* passt zu deiner hero-right Breite */
  border-radius: 22px;
  background: rgba(11,16,24,0.62);
  border: 1px solid rgba(0,255,255,0.14);
  box-shadow: var(--shadowStrong);
  padding: 12px 12px 10px;
  position: relative;
  overflow: hidden;
}

.home-radar__svg{
  width: 100%;
  height: auto;
  display: block;
}

.home-radar__grid circle,
.home-radar__grid line{
  fill: none;
  stroke: rgba(0,255,255,0.10);
  stroke-width: 1;
}

.home-radar__frame{
  fill: none;
  stroke: rgba(0,255,255,0.20);
  stroke-width: 1.2;
}

.home-radar__targets circle{
  fill: rgba(0,255,255,0.88);
  filter: drop-shadow(0 0 10px rgba(0,255,255,0.18));
}

.home-radar__targets text{
  fill: rgba(230,241,255,0.78);
  font-size: 12px;
  letter-spacing: .06em;
}

.home-radar__pulse{
  fill: none;
  stroke: rgba(0,255,255,0.20);
  stroke-width: 1.2;
  opacity: 0.0;
}

.home-radar__caption{
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,255,255,0.10);
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.home-radar__capTitle{
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .06em;
  font-size: .95rem;
}

.home-radar__capText{
  color: rgba(230,241,255,0.76);
  font-size: .88rem;
  letter-spacing: .04em;
}

/* Positionierung/Atmung rechts */
.hero-right{
  justify-content: flex-end;
  align-items: flex-start;
}

/* Animation: Sweep */
@keyframes homeRadarSweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.home-radar__sweep{
  transform-origin: 160px 160px;
  animation: homeRadarSweep 6.8s linear infinite;
}

/* Puls der Targets – zeitversetzt */
@keyframes homeRadarPulse {
  0%   { transform: scale(0.65); opacity: 0; }
  30%  { opacity: .55; }
  60%  { opacity: .18; }
  100% { transform: scale(1.15); opacity: 0; }
}

.home-radar__t1 .home-radar__pulse{ animation: homeRadarPulse 2.8s ease-out infinite; animation-delay: .1s; }
.home-radar__t2 .home-radar__pulse{ animation: homeRadarPulse 2.8s ease-out infinite; animation-delay: .6s; }
.home-radar__t3 .home-radar__pulse{ animation: homeRadarPulse 2.8s ease-out infinite; animation-delay: 1.1s; }
.home-radar__t4 .home-radar__pulse{ animation: homeRadarPulse 2.8s ease-out infinite; animation-delay: 1.6s; }

/* Responsive: wenn hero split auf column geht, Radar mittig */
@media (max-width: 980px){
  .home-radar{ max-width: 520px; }
  .hero-right{ justify-content: center; }
}

/* Reduce motion respektieren */
@media (prefers-reduced-motion: reduce){
  .home-radar__sweep{ animation: none; }
  .home-radar__pulse{ animation: none !important; opacity: .2; }
}

/* ###### END Home Radar Visual (Hero Right) ###### */



/* ###### BEGIN Auth UI (CSP-safe, no inline styles) ###### */
body.page-auth{
  background:
    radial-gradient(900px 360px at 50% 10%, rgba(0,255,255,0.08), transparent 60%),
    rgba(7,11,16,1);
}

.auth-center{
  min-height: calc(100vh - 62px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.auth-card{
  width: min(820px, 96vw);
  border-radius: 22px;
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(0,255,255,0.08), transparent 60%),
    rgba(11,16,24,0.80);
  border: 1px solid rgba(0,255,255,0.18);
  box-shadow: 0 22px 80px rgba(0,0,0,0.65);
  overflow:hidden;
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  animation: authIn .22s ease forwards;
}

@keyframes authIn{ to{ transform: translateY(0) scale(1); opacity: 1; } }

.auth-card__inner{ padding: 24px 26px; }
@media (max-width: 767px){ .auth-card__inner{ padding: 18px 16px; } }

.auth-head{ margin-bottom: 12px; }
.auth-title{
  margin: 0;
  font-size: 1.35rem;
  color: rgba(230,241,255,0.96);
}
.auth-sub{
  margin-top: 6px;
  color: rgba(230,241,255,0.72);
  font-size: .95rem;
}

.auth-form{ margin-top: 10px; }

.auth-field{ margin-top: 12px; }
.auth-label{
  display:block;
  margin-bottom: 6px;
  color: rgba(230,241,255,0.80);
  font-weight: 700;
  letter-spacing: .02em;
}

.auth-input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,255,255,0.18);
  background: rgba(0,0,0,0.26);
  color: rgba(230,241,255,0.92);
  box-shadow: 0 14px 35px rgba(0,0,0,0.25);
}

.auth-input:focus{
  outline: 2px solid rgba(0,255,255,0.22);
  outline-offset: 2px;
  border-color: rgba(0,255,255,0.28);
}

.auth-actions{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* ###### END Auth UI ###### */

/* ###### BEGIN Auth pages: centered modal-like frame ###### */

body.page-auth{
  background:
    radial-gradient(900px 360px at 50% 10%, rgba(0,255,255,0.08), transparent 60%),
    rgba(7,11,16,1);
}

.auth-center{
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.auth-card{
  width: min(760px, 96vw);
  border-radius: 20px;
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(0,255,255,0.08), transparent 60%),
    rgba(11,16,24,0.78);
  border: 1px solid rgba(0,255,255,0.18);
  box-shadow: 0 22px 80px rgba(0,0,0,0.65);
  overflow: hidden;

  transform: translateY(14px) scale(0.985);
  opacity: 0;
  animation: authIn .22s ease forwards;
}

.auth-card__inner{
  padding: 22px 24px;
}

@keyframes authIn{
  to{
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 767px){
  .auth-card__inner{ padding: 18px 16px; }
}

/* ###### END Auth pages: centered modal-like frame ###### */


/* ###### BEGIN nav auth buttons ###### */
.nav-auth{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.16);
  background: rgba(0,255,255,0.06);
  color: rgba(230,241,255,0.90);
  font-size: .9rem;
  white-space: nowrap;
}
.nav-auth:hover{ border-color: rgba(0,255,255,0.28); }

.nav-auth--primary{
  background: var(--accent);
  color: #001014 !important;
  border-color: rgba(0,255,255,0.35);
  font-weight: 850;
}
/* ###### END nav auth buttons ###### */

/* ###### BEGIN Language Select (nav) ###### */
.lang-select{
  border: 1px solid rgba(0,255,255,0.16);
  background: rgba(0,255,255,0.06);
  color: rgba(230,241,255,0.92);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: .9rem;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.1;
}
.lang-select:hover{ border-color: rgba(0,255,255,0.28); }
.lang-select:focus{ outline: 2px solid rgba(0,255,255,0.22); outline-offset: 2px; }

.lang-select-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-select-wrap::after{
  content: "▾";
  position: absolute;
  right: 10px;
  pointer-events: none;
  opacity: .85;
  font-size: .9rem;
}
.lang-select{
  padding-right: 28px; /* Platz für Pfeil */
}
/* ###### END Language Select (nav) ###### */


/* ###### BEGIN Nav Auth Buttons (prettier) ###### */
.nav-auth{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.16);
  background: rgba(0,255,255,0.06);
  color: rgba(230,241,255,0.92);
  font-size: .9rem;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.nav-auth:hover{
  transform: translateY(-1px);
  border-color: rgba(0,255,255,0.28);
  background: rgba(0,255,255,0.09);
}
.nav-auth--primary{
  background: var(--accent);
  color: #001014 !important;
  border-color: rgba(0,255,255,0.35);
  font-weight: 850;
}
/* ###### END Nav Auth Buttons ###### */

/* ###### BEGIN nav dropdown ###### */
.nav-menu{ position: relative; }
.nav-menu > summary{ list-style:none; }
.nav-menu > summary::-webkit-details-marker{ display:none; }

.nav-menu__btn{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.16);
  background: rgba(0,255,255,0.06);
  color: rgba(230,241,255,0.92);
  cursor: pointer;
  user-select:none;
  white-space:nowrap;
}
.nav-menu__btn:hover{ border-color: rgba(0,255,255,0.28); background: rgba(0,255,255,0.09); }

.nav-menu[open] .nav-menu__btn{
  border-color: rgba(0,255,255,0.28);
  background: rgba(0,255,255,0.12);
}

.nav-menu__panel{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: 260px;
  padding: 10px;
  border-radius: 16px;

  background:
    radial-gradient(900px 300px at 20% 0%, rgba(0,255,255,0.08), transparent 60%),
    rgba(11,16,24,0.92);

  border: 1px solid rgba(0,255,255,0.18);
  box-shadow: 0 22px 70px rgba(0,0,0,0.6);
  z-index: 1500;

  transform: translateY(8px);
  opacity: 0;
  animation: navDrop .18s ease forwards;
}

@keyframes navDrop{
  to{ transform: translateY(0); opacity: 1; }
}

.nav-menu__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.10);
  background: rgba(0,255,255,0.05);
  color: rgba(230,241,255,0.92);
  margin-bottom: 8px;
}
.nav-menu__item:hover{
  border-color: rgba(0,255,255,0.22);
  background: rgba(0,255,255,0.09);
  transform: translateY(-1px);
}

.nav-menu__item--primary{
  background: var(--accent);
  color: #001014 !important;
  font-weight: 900;
  border-color: rgba(0,255,255,0.35);
}

.nav-menu__sep{
  height: 1px;
  background: rgba(0,255,255,0.12);
  margin: 8px 0 10px;
}

.nav-menu__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
/* ###### END nav dropdown ###### */

/* ###### BEGIN Dashboard (high-end) ###### */
body.page-dashboard{
  background:
    linear-gradient(rgba(5,10,15,0.78), rgba(5,10,15,0.92)),
    url("../img/security-bg.webp") center / cover fixed no-repeat;
}

.dash{
  max-width:1100px;
  margin: 14px auto 18px;
  padding: 0 18px;
}

.dash__top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(0,255,255,0.14);
  box-shadow: var(--shadow);
}

.dash__title{
  margin:0;
  color: rgba(230,241,255,0.96);
  font-size: 1.35rem;
  letter-spacing: .02em;
}

.dash__sub{
  margin-top:4px;
  color: rgba(230,241,255,0.75);
  font-size: .95rem;
}

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

.dash__chip{
  border: 1px solid rgba(0,255,255,0.18);
  background: rgba(0,255,255,0.08);
  color: rgba(230,241,255,0.92);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .08em;
  font-size: .78rem;
}

.dash__mail{ color: rgba(230,241,255,0.92); font-weight: 800; }
.dash__id{ color: rgba(230,241,255,0.65); font-size: .85rem; }

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

.dash-nav{
  border-radius: 18px;
  background: rgba(11,16,24,0.62);
  border: 1px solid rgba(0,255,255,0.12);
  box-shadow: var(--shadow);
  padding: 12px;
  position: sticky;
  top: 78px; /* unter sticky header */
  height: fit-content;
}

.dash-nav__item{
  width:100%;
  text-align:left;
  border: 1px solid rgba(0,255,255,0.10);
  background: rgba(0,255,255,0.05);
  color: rgba(230,241,255,0.90);
  border-radius: 14px;
  padding: 12px 12px;
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  margin-bottom: 10px;
}

.dash-nav__item:hover{
  transform: translateY(-1px);
  border-color: rgba(0,255,255,0.22);
  background: rgba(0,255,255,0.09);
}

.dash-nav__item.is-active{
  border-color: rgba(0,255,255,0.28);
  background: rgba(0,255,255,0.14);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

.dash-nav__title{ display:block; font-weight: 900; color: var(--accent); letter-spacing: .03em; }
.dash-nav__meta{ display:block; margin-top:3px; font-size: .86rem; color: rgba(230,241,255,0.72); }

.dash-nav__sep{
  height: 1px;
  background: rgba(0,255,255,0.12);
  margin: 6px 0 10px;
}

.dash-nav__link{
  display:block;
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,255,255,0.10);
  background: rgba(0,255,255,0.05);
  color: rgba(230,241,255,0.88);
}
.dash-nav__link:hover{
  border-color: rgba(0,255,255,0.22);
  background: rgba(0,255,255,0.09);
  transform: translateY(-1px);
}

.dash-main{
  border-radius: 18px;
  background: rgba(11,16,24,0.50);
  border: 1px solid rgba(0,255,255,0.10);
  box-shadow: var(--shadow);
  padding: 12px;
}

.dash-panel{
  display:none;
  opacity: 0;
  transform: translateY(8px);
}

.dash-panel.is-active{
  display:block;
  animation: dashIn .18s ease forwards;
}

@keyframes dashIn{
  to{ opacity: 1; transform: translateY(0); }
}

.dash-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dash-card{
  border-radius: 18px;
  padding: 14px;
  background: rgba(0,255,255,0.06);
  border: 1px solid rgba(0,255,255,0.14);
  transition: transform .18s ease, border-color .18s ease;
}
.dash-card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,255,255,0.22);
}

.dash-card__h{
  font-weight: 900;
  color: rgba(230,241,255,0.95);
  margin-bottom: 6px;
}
.dash-card__p{
  color: rgba(230,241,255,0.74);
  font-size: .95rem;
}

.dash-big{
  margin-top: 12px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(11,16,24,0.62);
  border: 1px solid rgba(0,255,255,0.12);
}
.dash-big h3{
  margin:0 0 8px 0;
  color: rgba(230,241,255,0.96);
}
.dash-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.dash-kv{ margin-top: 10px; }
.dash-kv__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,255,255,0.05);
  border: 1px solid rgba(0,255,255,0.10);
  margin-top: 10px;
}
.dash-kv__row span{ color: rgba(230,241,255,0.70); }
.dash-kv__row strong{ color: rgba(230,241,255,0.95); }

.dash-list{ margin-top: 10px; display:grid; gap:10px; }
.dash-list__item{
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(0,255,255,0.05);
  border: 1px solid rgba(0,255,255,0.10);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.dash-list__item:hover{
  transform: translateY(-1px);
  border-color: rgba(0,255,255,0.22);
  background: rgba(0,255,255,0.09);
}
.dash-list__title{ font-weight: 900; color: rgba(230,241,255,0.94); }
.dash-list__meta{ margin-top:4px; color: rgba(230,241,255,0.70); font-size: .92rem; }

@media (max-width: 980px){
  .dash__grid{ grid-template-columns: 1fr; }
  .dash-nav{ position: static; }
  .dash-cards{ grid-template-columns: 1fr; }
}
/* ###### END Dashboard ###### */

/* ###### BEGIN Dashboard + Kanban ###### */
body.page-dashboard{
  background:
    linear-gradient(rgba(5,10,15,0.78), rgba(5,10,15,0.92)),
    url("../img/security-bg.webp") center / cover fixed no-repeat;
}

.dash{ max-width:1100px; margin:14px auto 18px; padding:0 18px; }
.dash__top{
  display:flex; justify-content:space-between; align-items:flex-end; gap:12px;
  margin-bottom:12px; padding:16px 18px; border-radius:18px;
  background: var(--panel); border:1px solid rgba(0,255,255,0.14); box-shadow: var(--shadow);
}
.dash__title{ margin:0; font-size:1.35rem; color:rgba(230,241,255,0.96); }
.dash__sub{ margin-top:4px; color:rgba(230,241,255,0.75); font-size:.95rem; }

.dash__who{ display:flex; align-items:center; gap:10px; }
.dash__chip{
  border:1px solid rgba(0,255,255,0.18); background: rgba(0,255,255,0.08);
  padding:8px 10px; border-radius:999px; font-weight:900; letter-spacing:.08em; font-size:.78rem;
}
.dash__mail{ font-weight:850; color:rgba(230,241,255,0.92); }
.dash__id{ color:rgba(230,241,255,0.65); font-size:.85rem; }

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

.dash-nav{
  border-radius:18px; padding:12px; background: rgba(11,16,24,0.62);
  border:1px solid rgba(0,255,255,0.12); box-shadow: var(--shadow);
  position: sticky; top: 78px; height: fit-content;
}
.dash-nav__item{
  width:100%; text-align:left; cursor:pointer; margin-bottom:10px;
  border:1px solid rgba(0,255,255,0.10); background: rgba(0,255,255,0.05);
  border-radius:14px; padding:12px; color: rgba(230,241,255,0.90);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.dash-nav__item:hover{ transform: translateY(-1px); border-color: rgba(0,255,255,0.22); background: rgba(0,255,255,0.09); }
.dash-nav__item.is-active{ border-color: rgba(0,255,255,0.28); background: rgba(0,255,255,0.14); box-shadow:0 10px 26px rgba(0,0,0,0.35); }

.dash-nav__title{ display:block; font-weight:900; color: var(--accent); }
.dash-nav__meta{ display:block; margin-top:3px; font-size:.86rem; color: rgba(230,241,255,0.72); }

.dash-nav__sep{ height:1px; background: rgba(0,255,255,0.12); margin:6px 0 10px; }
.dash-nav__link{
  display:block; text-decoration:none; padding:10px 12px; border-radius:14px;
  border:1px solid rgba(0,255,255,0.10); background: rgba(0,255,255,0.05);
}
.dash-nav__link:hover{ border-color: rgba(0,255,255,0.22); background: rgba(0,255,255,0.09); transform: translateY(-1px); }

.dash-main{
  border-radius:18px; padding:12px;
  background: rgba(11,16,24,0.50); border:1px solid rgba(0,255,255,0.10); box-shadow: var(--shadow);
}
.dash-panel{ display:none; opacity:0; transform: translateY(8px); }
.dash-panel.is-active{ display:block; animation: dashIn .18s ease forwards; }
@keyframes dashIn{ to{ opacity:1; transform: translateY(0);} }

.dash-cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
.dash-card{
  border-radius:18px; padding:14px; background: rgba(0,255,255,0.06);
  border:1px solid rgba(0,255,255,0.14);
  transition: transform .18s ease, border-color .18s ease;
}
.dash-card:hover{ transform: translateY(-2px); border-color: rgba(0,255,255,0.22); }
.dash-card__h{ font-weight:900; color: rgba(230,241,255,0.95); margin-bottom:6px; }
.dash-card__p{ color: rgba(230,241,255,0.74); font-size:.95rem; }

.dash-big{
  margin-top:12px; border-radius:18px; padding:16px;
  background: rgba(11,16,24,0.62); border:1px solid rgba(0,255,255,0.12);
}
.dash-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

.dash-kv__row{
  display:flex; justify-content:space-between; gap:12px; margin-top:10px;
  padding:10px 12px; border-radius:14px; background: rgba(0,255,255,0.05);
  border:1px solid rgba(0,255,255,0.10);
}

.dash-list{ margin-top:10px; display:grid; gap:10px; }
.dash-list__item{ padding:12px; border-radius:14px; background: rgba(0,255,255,0.05); border:1px solid rgba(0,255,255,0.10); }
.dash-list__item:hover{ border-color: rgba(0,255,255,0.22); background: rgba(0,255,255,0.09); transform: translateY(-1px); }
.dash-list__title{ font-weight:900; }
.dash-list__meta{ margin-top:4px; color: rgba(230,241,255,0.70); font-size:.92rem; }

.dash-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }

/* --- Kanban --- */
.kanban{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.kanban-col{
  border-radius: 18px;
  background: rgba(0,255,255,0.05);
  border: 1px solid rgba(0,255,255,0.12);
  padding: 10px;
}
.kanban-col__head{
  display:flex; align-items:center; justify-content:space-between;
  font-weight: 900; color: rgba(230,241,255,0.95);
  padding: 6px 6px 10px;
}
.kanban-col__count{
  border:1px solid rgba(0,255,255,0.16);
  background: rgba(0,255,255,0.08);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .78rem;
  color: rgba(230,241,255,0.86);
}
.kanban-card{
  border-radius: 16px;
  padding: 12px;
  margin-top: 10px;
  background: rgba(11,16,24,0.62);
  border: 1px solid rgba(0,255,255,0.12);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.kanban-card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,255,255,0.22);
  background: rgba(11,16,24,0.72);
}
.kanban-card__title{ font-weight: 900; color: rgba(230,241,255,0.95); }
.kanban-card__meta{ margin-top: 6px; color: rgba(230,241,255,0.70); font-size: .9rem; }

@media (max-width: 980px){
  .dash__grid{ grid-template-columns: 1fr; }
  .dash-nav{ position: static; }
  .dash-cards{ grid-template-columns: 1fr; }
  .kanban{ grid-template-columns: 1fr; }
}
/* ###### END Dashboard + Kanban ###### */


/* ###### BEGIN nav dropdown fallback styling ###### */
.nav-menu__panel a{
  text-decoration:none !important;
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.10);
  background: rgba(0,255,255,0.05);
  color: rgba(230,241,255,0.92);
  margin-bottom: 8px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.nav-menu__panel a:hover{
  border-color: rgba(0,255,255,0.22);
  background: rgba(0,255,255,0.09);
  transform: translateY(-1px);
}
.nav-menu__panel a.nav-menu__item--primary,
.nav-menu__panel a:first-of-type{
  background: var(--accent);
  color: #001014 !important;
  font-weight: 900;
  border-color: rgba(0,255,255,0.35);
}
/* ###### END nav dropdown fallback styling ###### */


/* ###### BEGIN Password UI (premium) ###### */
.pw-wrap{position:relative;}
.pw-tools{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:flex;gap:6px;}
.pw-btn{border:1px solid rgba(120,220,255,.18);background:rgba(8,14,22,.55);color:rgba(230,245,255,.95);border-radius:10px;padding:6px 8px;line-height:1;cursor:pointer;transition:transform .12s ease, border-color .12s ease, background .12s ease;}
.pw-btn:hover{transform:translateY(-1px);border-color:rgba(120,220,255,.35);background:rgba(10,18,28,.7);}
.pw-btn:active{transform:translateY(0);}

.pw-meter{height:8px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(120,220,255,.12);margin-top:10px;overflow:hidden;}
.pw-meter__bar{display:block;height:100%;width:0%;border-radius:999px;background:rgba(255,80,80,.85);transition:width .18s ease, background .18s ease;}
.pw-meter__bar[data-level="0"], .pw-meter__bar[data-level="1"], .pw-meter__bar[data-level="2"]{background:rgba(255,80,80,.85);}
.pw-meter__bar[data-level="3"]{background:rgba(255,200,80,.9);}
.pw-meter__bar[data-level="4"]{background:rgba(120,240,170,.9);}
.pw-meter__bar[data-level="5"]{background:rgba(80,230,255,.9);}

.pw-reqs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px;font-size:13px;opacity:.9;}
.pw-reqs > div{padding:7px 10px;border-radius:12px;border:1px solid rgba(120,220,255,.10);background:rgba(255,255,255,.03);}
.pw-reqs > div.is-ok{border-color:rgba(120,240,170,.25);background:rgba(120,240,170,.07);}

.pw-msg{margin-top:8px;font-weight:700;letter-spacing:.2px;opacity:.9;}
.pw-match{margin-top:8px;font-weight:700;opacity:.9;}
.pw-match.is-ok{color:rgba(120,240,170,.95);}
.pw-match.is-bad{color:rgba(255,120,120,.95);}

.pw-toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%) translateY(10px);opacity:0;pointer-events:none;z-index:9999;padding:10px 12px;border-radius:14px;border:1px solid rgba(120,220,255,.18);background:rgba(10,16,26,.82);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:rgba(240,250,255,.96);font-weight:700;box-shadow:0 18px 50px rgba(0,0,0,.45);transition:opacity .14s ease, transform .14s ease;}
.pw-toast.is-show{opacity:1;transform:translateX(-50%) translateY(0);}
/* ###### END Password UI (premium) ###### */
