/* ======================= */
/* RESET / BASE            */
/* ======================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }
body {
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #10141a;
  color: #e6e6e6;
  line-height: 1.6;
}

/* Links */
a { color: #38bdf8; text-decoration: none; transition: .2s ease; }
a:hover { text-decoration: underline; }

/* ======================= */
/* HEADER / NAV            */
/* ======================= */
.header {
  background-color: #1e293b;
  padding: 20px 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  box-shadow: 0 4px 10px #00000022;
}

.logo { display: flex; align-items: center; }
.logo img {
  height: 80px; width: auto; border-radius: 50%;
  border: 2px solid #38bdf8; box-shadow: 0 0 12px #00eaff66;
}

.navbar { display: flex; align-items: center; gap: 20px; }
.navbar a { font-weight: 500; color: #e2e8f0; }
.navbar a:hover { color: #38bdf8; }

.user-circle {
  background-color: #38bdf8; color: #0f172a;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 24px; cursor: pointer;
  box-shadow: 0 0 10px #38bdf855;
}

.dropdown {
  position: absolute; right: 40px; top: 90px; z-index: 1000;
  background: #1e293b; padding: 12px; border-radius: 8px; box-shadow: 0 0 12px #00000055;
}
.dropdown a { display: block; padding: 6px 12px; color: #e2e8f0; }
.dropdown a:hover { background-color: #334155; }
.hidden { display: none; }

/* ======================= */
/* HERO (optional)         */
/* ======================= */
.hero { text-align: center; padding: 100px 20px; background: linear-gradient(145deg,#1e293b,#0f172a); position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; color: #38bdf8; text-shadow: 0 0 10px #38bdf855; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; color: #94a3b8; }
.cta-button {
  background-color: #38bdf8; color: #0f172a; padding: 10px 20px; border-radius: 8px; font-weight: 700;
  transition: background-color .2s ease;
}
.cta-button:hover { background-color: #0ea5e9; }

/* ===== Hero-Menu Button & Overlay (DESKTOP) ===== */
.hero-toggle{
  position: absolute; top: 120px; left: 20px; z-index: 9999;
  background: #38bdf8; color: #0f172a; border: 0;
  padding: 10px 14px; font-size: 22px; border-radius: 6px; cursor: pointer;
  box-shadow: 0 0 10px #38bdf855; transition: background-color .2s ease;
}
.hero-toggle:hover{ background-color:#0ea5e9; }

.hero-links{
  position: absolute; top: 180px; left: 20px; z-index: 9998;
  background: #1e293b; padding: 20px; border-radius: 12px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 0 12px #38bdf866; transition: all .3s ease;
}
.hero-links a{
  color: #38bdf8; font-weight: 700; font-size: 18px; padding: 10px 20px; border-radius: 6px;
  background: transparent; box-shadow: 0 0 10px #38bdf822; transition: .2s ease;
}
.hero-links a:hover{ background:#1e293b; color:#fff; box-shadow:0 0 16px #38bdf866; transform: scale(1.05); }
.hero-links.hidden{ display: none; }

/* ======================= */
/* SEITEN-INHALT (vv-*)    */
/* ======================= */
.vv-wrap { max-width: 1000px; margin: 24px auto; padding: 0 16px; }

.vv-topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vv-panel {
  background: #0f172a; border:1px solid #1f2a44; border-radius:14px; padding:14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25); margin-bottom:14px;
}

.vv-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.vv-input, .vv-select, .vv-btn, .vv-textarea {
  padding:10px 12px; border-radius:10px; border:1px solid #1f2a44; background:#0b1324; color:#e2e8f0;
}
.vv-textarea { width:100%; min-height:120px; resize: vertical; }
.vv-btn { cursor:pointer; font-weight:700; }
.vv-btn.primary { background:#38bdf8; color:#00111a; border:0; }
.vv-btn.ghost { background:transparent; color:#e2e8f0; border:1px solid #1f2a44; }

table.vv-table { width:100%; border-collapse: collapse; }
.vv-table th, .vv-table td { padding:10px; border-bottom:1px solid #1f2a44; vertical-align: top; }
.vv-table th { text-align:left; background: rgba(56,189,248,.08); }

.vv-right { text-align:right; }
.vv-msg { margin:10px 0; padding:10px; border-radius:10px; }
.vv-msg.ok { background: rgba(34,197,94,.15); border:1px solid #14532d; color:#d1fae5; }
.vv-msg.err { background: rgba(239,68,68,.15); border:1px solid #7f1d1d; color:#fecaca; }

.vv-chip { display:inline-block; padding:4px 8px; border-radius:999px; border:1px solid #1f2a44; background: rgba(56,189,248,.08); }
.vv-comment { border-bottom:1px solid #1f2a44; padding:10px 0; }
.vv-comment small { opacity:.8; }
.vv-actions { display:flex; gap:8px; flex-wrap:wrap; }
.vv-inline-actions { display:inline-flex; gap:8px; margin-top:6px; }
.vv-link { border:1px solid #1f2a44; padding:6px 10px; border-radius:10px; background:transparent; color:#e2e8f0; text-decoration:none; }

/* Projekt-Header (optional, falls genutzt) */
.project-header {
  background: #0b0f14; padding: 20px 40px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid #00f6ff33;
}
.project-header .logo { font-size: 26px; font-weight: 700; color: #00f6ff; }
.project-header .logo span { color: #fff; }
.project-header nav ul { list-style: none; display: flex; gap: 25px; }
.project-header nav a { color: #ccc; }
.project-header nav a:hover, .project-header nav a.active { color: #00f6ff; text-shadow: 0 0 6px #00f6ff99; }

/* Optional Cards */
.project-main { padding: 60px 40px; }
.project-main h1 { font-size: 36px; margin-bottom: 40px; text-align:center; color:#00f6ff; text-shadow:0 0 8px #00f6ff88; }
.project-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:30px; }
.project-card {
  background:#161c22; border:1px solid #00f6ff22; border-radius:12px; padding:25px;
  box-shadow:0 0 15px #00f6ff11; transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow:0 0 30px #00f6ff33; }
.project-card h2 { color:#00f6ff; margin-bottom:10px; }
.project-card p { color:#aaa; }

/* Footer */
.footer {
  text-align:center; padding: 30px 20px; background:#1e293b; color:#64748b;
  margin-top: 60px; border-top: 2px solid #334155;
}
.footer-links { margin-top:16px; display:flex; justify-content:center; gap:24px; flex-wrap:wrap; }
.footer-links a {
  color:#38bdf8; font-weight:500; text-decoration:none; padding:6px 12px; border-radius:6px; transition:.3s ease;
  background:transparent; box-shadow:0 0 0 transparent;
}
.footer-links a:hover { background:#334155; color:#fff; box-shadow:0 0 12px #38bdf855; transform: scale(1.05); }

/* ======================= */
/* RESPONSIVE              */
/* ======================= */

/* Tablets & down */
@media (max-width: 900px){
  .vv-wrap { padding: 0 20px; }
}

/* Phones */
@media (max-width: 768px){
  .header { flex-direction: column; align-items: flex-start; }
  .navbar { margin-top: 10px; }
  .navbar a { display: block; margin: 5px 0; }

  .vv-topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .vv-panel { padding: 12px; }
  .vv-row { gap: 8px; }

  /* Tabelle scroll-fähig machen */
  table.vv-table { display: block; overflow-x: auto; white-space: nowrap; }
  .vv-table th, .vv-table td { white-space: nowrap; }

  /* Inhalt nicht vom Fixed-Button überdecken */
  .vv-wrap { padding-bottom: 140px; }
}

/* Hero-Toggle & -Links: unten links mit Safe-Area (Phones) */
@media (max-width: 768px){
  .hero-toggle{
    position: fixed !important;
    top: auto !important;
    left: 16px;
    bottom: calc(28px + env(safe-area-inset-bottom));
    font-size: 20px; padding: 8px 12px;
  }
  .hero-links{
    position: fixed !important;
    top: auto !important;
    left: 16px; right: 16px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    max-height: 50vh; overflow: auto;
  }
}

/* Very small phones */
@media (max-width: 420px){
  .logo img { height: 64px; }
  .vv-panel { padding: 10px; }
  .vv-input, .vv-select, .vv-btn, .vv-textarea { font-size: 14px; }
  .hero-links a { font-size: 16px; padding: 8px 12px; }
}
