/* ====== Kev-Network – globales Dark-Theme ====== */
:root{
  --bg: #0b1422;
  --panel: #121d2e;
  --panel-border: #1e2a40;
  --text: #cdd7e5;
  --muted: #8fa2bf;
  --primary: #2f7efb;
  --primary-600: #2566c9;
  --btn-outline: rgba(255,255,255,.15);
  --sidebar-bg: #0f192b;

  --header-height: 64px;
  --footer-height: 64px;
  --sidebar-width: 260px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; margin:0; }
body.app-body{
  background: var(--bg);
  color: var(--text);
  font-synthesis-weight: none;
}

/* Container-Breite für Inhalte im Header/Footer/Content */
.container{ max-width: 1100px; }

/* ====== Fixed Header ====== */
.app-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--panel);
  border-bottom: 1px solid var(--panel-border);
  z-index: 1000;
  backdrop-filter: saturate(120%) blur(2px);
}

/* ====== Fixed Footer ====== */
.app-footer{
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-height);
  background: var(--panel);
  border-top: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  z-index: 1000;
}

/* ====== Viewport-Puffer (unter Header, über Footer) ====== */
.app-viewport{
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
  min-height: 100vh; /* so bleibt Footer immer sichtbar */
}

/* Branding */
.brand-logo{ height: 44px; width:auto; display:block; }
.brand-name{ letter-spacing:.12em; font-weight:600; color:var(--muted); }
.user-badge{ color: var(--muted); }

/* Buttons */
.btn{ border-radius:.65rem; padding:.55rem 1rem; }
.btn-primary{ background:var(--primary); border-color:var(--primary); }
.btn-primary:hover{ background:var(--primary-600); border-color:var(--primary-600); }
.btn-outline-light{ color:var(--text); border-color:var(--btn-outline); }
.btn-outline-light:hover{ color:#fff; border-color:var(--text); background:rgba(255,255,255,.06); }
.btn-outline-primary{ color:var(--text); border-color:var(--btn-outline); }
.btn-outline-primary:hover{ border-color:var(--primary); box-shadow:0 0 0 .15rem rgba(47,126,251,.15); }
.text-secondary{ color: var(--muted) !important; }

/* ====== Home Hero ====== */
.home-hero{
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--bg) 0%, #0e1a2d 100%);
}
.home-hero-title{
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.home-hero-subtitle{
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ====== Home Projects ====== */
.home-projects{
  padding:4rem 1rem;
  text-align:center;
}
.home-projects h2{
  font-size:2rem;
  margin-bottom:1rem;
}
.home-projects p{
  color:var(--muted);
  max-width:600px;
  margin:0 auto;
}

.home-projects .project-teaser{
  max-width:600px;
  margin:2rem auto 0 auto;
}
.home-projects .project-teaser h3{
  font-size:1.5rem;
  margin-bottom:.5rem;
}
.home-projects .project-teaser p{
  color:var(--muted);
  margin-bottom:1rem;
}
.home-projects .project-teaser p:last-of-type{
  margin-bottom:1.5rem;
}

/* ====== Project Pages ====== */
.project-hero{
  min-height:60vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:4rem 1rem;
  background:linear-gradient(135deg,var(--bg) 0%, #0e1a2d 100%);
}
.project-hero h1{
  font-size:3rem;
  font-weight:600;
  letter-spacing:.03em;
}
.project-hero p{
  font-size:1.25rem;
  color:var(--muted);
  max-width:700px;
  margin:0 auto;
}
.project-section{
  padding:4rem 1rem;
}
.project-section h2{
  font-size:2rem;
  text-align:center;
  margin-bottom:1rem;
}
.project-section p{
  max-width:800px;
  margin:0 auto 1rem;
  color:var(--text);
  text-align:center;
}
.project-list{
  max-width:800px;
  margin:0 auto;
  text-align:left;
}
.project-list li{
  margin-bottom:.5rem;
}

/* Workflows: zentriert, minimalistisch (Apple-like) */
.workflow-section .workflow-list{
  max-width:900px;
  margin:0 auto;
  text-align:center; /* zentriert unter der Headline */
  line-height:1.75;
  font-size:1.05rem;
  letter-spacing:.01em;
  padding-left:0; /* keine Einrückung */
}
.workflow-section h2{ font-weight:600; letter-spacing:.02em; }

/* Highlights: ebenfalls zentral unter der Überschrift */
.highlights-section .highlights-list{
  max-width:900px;
  margin:0 auto;
  text-align:center;
  line-height:1.75;
  font-size:1.05rem;
  letter-spacing:.01em;
  padding-left:0;
}
.project-footer{
  padding:3rem 1rem;
  text-align:center;
  background:var(--panel);
  border-top:1px solid var(--panel-border);
}
.project-footer p{
  margin-bottom:.25rem;
}

/* Material Symbols */
.material-symbols-outlined{
  font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
  font-size: 20px; line-height:1; vertical-align:-4px; margin-right:.6rem;
}

/* ====== STATUS-LAYOUT ====== */
/* Gesamte Status-Ansicht nimmt die volle Breite ein (unter Header, über Footer) */
.status-shell{
  position: relative;
  width: 100%;
  /* kein Full-bleed nötig, da Sidebar jetzt fixed ist */
}

/* Sidebar: FIXED zwischen Header und Footer */
.status-sidebar{
  position: fixed;
  top: var(--header-height);
  bottom: var(--footer-height);
  left: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--panel-border);
  padding: 16px;
  overflow: auto;               /* Sidebar scrollt falls zu lang */
}

/* Hauptbereich: nimmt restliche Fläche ein, scrollt nur intern bei Bedarf */
.status-main{
  margin-left: var(--sidebar-width);
  height: calc(100vh - var(--header-height) - var(--footer-height));
  overflow: auto;               /* nur Content scrollt */
}

/* Innenabstand + max Breite wie gewohnt */
.status-main-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* Sidebar Navigation */
.status-nav ul{ list-style:none; margin:0; padding:0; }
.status-nav > ul > li{ margin-bottom: .25rem; }

.status-nav a{
  display:flex; align-items:center; gap:.6rem;
  color: var(--text); text-decoration:none;
  padding:.55rem .7rem; border-radius:.55rem; border:1px solid transparent;
}
.status-nav a:hover{
  background: rgba(255,255,255,.04); border-color: var(--panel-border);
}
.status-nav li.active > a{
  background: rgba(47,126,251,.12); border-color: rgba(47,126,251,.35);
}
.status-nav .section .section-title{
  display:flex; align-items:center; gap:.6rem;
  padding:.55rem .7rem; color:var(--muted);
  text-transform:uppercase; font-size:.85rem; letter-spacing:.06em;
  margin-top: .5rem;
}
.status-nav .section ul.sub{ list-style:none; margin:.25rem 0 .5rem 0; padding-left:.8rem; }
.status-nav .sub li{ margin:.1rem 0; }

/* Tabellen */
.table-dark{ --bs-table-bg: rgba(255,255,255,.03); }

/* RESPONSIVE */
@media (max-width: 900px){
  :root{ --sidebar-width: 220px; }
}
@media (max-width: 700px){
  /* Sidebar als Top-Bar einklappen (einfachste Variante) */
  .status-sidebar{
    position: static;
    width: auto; height: auto;
    border-right: 0; border-bottom: 1px solid var(--panel-border);
  }
  .status-main{
    margin-left: 0;
    height: calc(100vh - var(--header-height) - var(--footer-height) - 180px); /* grob, da Sidebar oben steht */
  }
}
