:root{
  --bg:#0b0f1a;
  --bg2:#05070c;

  --text:rgba(255,255,255,0.92);
  --muted:rgba(255,255,255,0.75);

  --card:rgba(255,255,255,0.06);
  --border:rgba(255,255,255,0.10);
  --shadow:0 20px 60px rgba(0,0,0,0.45);

  --link:rgba(255,255,255,0.82);
  --linkHoverBg:rgba(255,255,255,0.08);

  --btnBg: rgba(255,255,255,0.08);
  --btnBorder: rgba(255,255,255,0.16);
  --btnPrimaryBg: rgba(255,255,255,0.16);
  --btnPrimaryBorder: rgba(255,255,255,0.22);

  --noticeBg: rgba(255,255,255,0.04);
  --noticeBorder: rgba(255,255,255,0.12);

  --okBorder: rgba(120,255,180,0.25);
  --okBg: rgba(120,255,180,0.08);

  --errBorder: rgba(255,120,120,0.28);
  --errBg: rgba(255,120,120,0.08);

  --infoBorder: rgba(120,170,255,0.25);
  --infoBg: rgba(60,120,255,0.10);
}

*{ box-sizing:border-box; }
html, body{ height:100%; margin:0; }

body{
  background:var(--bg);
  color:var(--text);
  font-family: Arial, sans-serif;
}

h1{ font-size:18px; margin:0 0 6px; }
.muted{ color:var(--muted); font-size:13px; margin:0 0 14px; }

/* =========================
   Layout
========================= */

.section{ width:100%; padding:40px 0; }

/* Full width container mit Innenabstand */
.container{
  width:100%;
  margin:0;
  padding:0 24px;
}

/* Panel */
.panel{
  width:100%;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:22px;
  backdrop-filter: blur(10px);
}

/* =========================
   Header (Full width)
========================= */

.lv-header{ width:100%; }

.lv-topbar{
  width:100%;
  background: rgba(28,28,28,0.96);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lv-top-inner{
  width:100%;
  margin:0;
  padding:10px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

/* Brand */
.lv-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
}

.lv-logo{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.20);
  background:rgba(255,255,255,0.06);
  display:grid;
  place-items:center;
  font-weight:900;
}

.lv-name{
  font-weight:700;
  font-size:13px;
  letter-spacing:.4px;
}

/* Center nav */
.lv-nav{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:center;
}

.lv-nav a{
  color:var(--link);
  text-decoration:none;
  font-size:13px;
  padding:6px 8px;
  border-radius:8px;
}

.lv-nav a:hover{
  color:rgba(255,255,255,0.96);
  background:var(--linkHoverBg);
}

.lv-nav a.is-strong{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Right area (logged-in UI) */
.lv-right{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.lv-online{
  font-size:12px;
  color:rgba(255,255,255,0.75);
  white-space:nowrap;
}

.lv-link{
  color:rgba(255,255,255,0.85);
  text-decoration:none;
  font-size:13px;
  padding:6px 8px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.lv-link:hover{
  color:rgba(255,255,255,0.96);
  background:var(--linkHoverBg);
}

.badge{
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  color:rgba(255,255,255,0.95);
  background: rgba(255,80,80,0.85);
  border:1px solid rgba(255,255,255,0.18);
}

.caret{
  opacity:.8;
  font-size:12px;
}

/* Optional Hero (wenn du es aktivierst) */
.lv-hero{
  width:100%;
  height:260px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(to bottom, var(--bg2), var(--bg));
  border-bottom:1px solid rgba(255,255,255,0.06);
}

@media (max-width: 980px){
  .lv-top-inner{ flex-direction: column; align-items:flex-start; }
  .lv-right{ width:100%; justify-content:flex-start; }
}

/* =========================
   Auth (Register/Login)
========================= */

.auth-wrap{
  width: min(980px, calc(100vw - 40px));
  margin: 24px auto 60px;
}

.auth-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(10px);
}

.auth-title{
  font-size: 28px;
  margin: 0 0 8px 0;
  letter-spacing: .2px;
}

.auth-sub{
  margin: 0 0 18px 0;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
}

.hr{
  height:1px;
  background: rgba(255,255,255,0.12);
  margin:14px 0 18px;
}

/* Form */
.form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field label{
  font-size:13px;
  opacity:.9;
}

.field input, .field textarea, .field select{
  width:100%;
  padding:14px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(10,14,26,0.55);
  color: rgba(255,255,255,0.92);
  outline:none;
}

.field input:focus, .field textarea:focus{
  border-color: rgba(255,255,255,0.28);
  background: rgba(10,14,26,0.70);
}

/* Checkbox rows */
.checkrow{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.checkrow input[type="checkbox"]{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color: rgba(255,255,255,0.9);
}

.checkrow p{
  margin:0;
  color: rgba(255,255,255,0.72);
  font-size:13px;
  line-height:1.45;
}

/* Buttons / Actions */
.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:6px;
}

.btn{
  cursor:pointer;
  border:1px solid var(--btnBorder);
  background: var(--btnBg);
  color: var(--text);
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.btn.primary{
  background: var(--btnPrimaryBg);
  border-color: var(--btnPrimaryBorder);
}

.btn.ghost{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}

.btn:hover{ background: rgba(255,255,255,0.12); }
.btn.primary:hover{ background: rgba(255,255,255,0.20); }

/* Notices */
.notice{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--noticeBorder);
  background: var(--noticeBg);
  font-size:13px;
}

.notice.err{
  border-color: var(--errBorder);
  background: var(--errBg);
  color: rgba(255,220,220,0.95);
}

.notice.ok{
  border-color: var(--okBorder);
  background: var(--okBg);
  color: rgba(210,255,230,0.95);
}

/* =========================
   Apply (Bewerbung)
========================= */

.apply-title{
  font-size:28px;
  margin:0 0 6px 0;
}

.apply-sub{
  margin:0;
  color: rgba(255,255,255,0.70);
  font-size:13px;
}

.helpbox{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--infoBorder);
  background: var(--infoBg);
  color: rgba(220,235,255,0.92);
  font-size:13px;
  line-height:1.45;
}

.helpbox .dot{
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid rgba(120,170,255,0.35);
  display:grid;
  place-items:center;
  font-weight:900;
  flex:0 0 auto;
}

.textarea-wrap{ position:relative; }

.counter{
  margin-top:6px;
  color: rgba(255,255,255,0.55);
  font-size:12px;
  text-align:right;
}

/* Versuchsliste */
.attempts{
  margin-top:16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.10);
  overflow:hidden;
}

.attempts .row{
  padding:12px 14px;
  background: rgba(255,255,255,0.04);
  border-top:1px solid rgba(255,255,255,0.08);
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.attempts .row:first-child{ border-top:none; }

.smallmuted{
  color: rgba(255,255,255,0.65);
  font-size:12px;
}

/* =========================
   Schräge (optional)
========================= */

.apply-top{
  width:100%;
  min-height:100px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(to bottom, var(--bg2), var(--bg));
  position: relative;
}

.slanted-divider{
  width:100%;
  height:32px;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transform: skewY(-2deg);
  transform-origin: left;
  margin-top: -16px;
}

/* Dashboard Cards/Grid/Pills (fehlte noch) */
.grid{ display:grid; gap:12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px){ .grid{ grid-template-columns:1fr; } }

.card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 16px;
}

.pill{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  opacity: .9;
}
.pill.ok{ border-color: rgba(120,255,180,0.25); background: rgba(120,255,180,0.08); }
.pill.warn{ border-color: rgba(255,210,120,0.25); background: rgba(255,210,120,0.08); }
.pill.bad{ border-color: rgba(255,120,120,0.25); background: rgba(255,120,120,0.08); }






/* ACP Tiles */
.tile-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px){
  .tile-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px){
  .tile-grid{ grid-template-columns: 1fr; }
}

.tile{
  display:block;
  text-decoration:none;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 16px;
  transition: transform .08s ease, background .08s ease, border-color .08s ease;
}

.tile:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

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

.tile-title{
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .2px;
}

.tile-desc{
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.4;
}

.tile-meta{
  margin-top: 12px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

/* =========================
   Profil Dropdown (Header)
========================= */

.lv-profile{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Button soll wie ein Link wirken (wie .lv-link) */
.lv-profile-btn{
  cursor: pointer;
  border: 0;
  background: transparent;
}

/* Dropdown Panel */
.lv-dropdown{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;

  background: rgba(28,28,28,0.98);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);

  display: none;
  z-index: 9999;
  top: calc(100% + 10px);
}

/* Unsichtbare Hover-Bridge zwischen Button und Dropdown */
@media (hover: hover) and (pointer: fine) {
  .lv-dropdown::before{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;     /* muss zum Abstand passen */
    height: 10px;   /* muss zum Abstand passen */
  }
}

/* Open state */
.lv-profile.is-open .lv-dropdown{
  display: block;
}

/* Items */
.lv-dd-item{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;

  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 13px;

  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
}

.lv-dd-item:hover{
  color: rgba(255,255,255,0.96);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.10);
}

/* Separator */
.lv-dd-sep{
  height: 1px;
  margin: 8px 6px;
  background: rgba(255,255,255,0.10);
}

/* Logout Button in Form */
.lv-dd-form{ margin: 0; }
.lv-dd-form button.lv-dd-item{
  cursor: pointer;
  border: 0;
  text-align: left;
}

/* "Danger" (Logout) */
.lv-dd-item.danger{
  color: rgba(255,190,190,0.95);
}
.lv-dd-item.danger:hover{
  background: rgba(255,80,80,0.10);
  border-color: rgba(255,120,120,0.22);
}

/* Default: per Klick (Mobile & generell) */
.lv-dropdown{ display: none; }
.lv-profile.is-open .lv-dropdown{ display: block; }

/* Desktop mit Hover: Menü öffnet beim Hover */
@media (hover: hover) and (pointer: fine) {
  .lv-profile:hover .lv-dropdown{
    display: block;
  }
}

/* =========================
   Support: Tabs + Chat
========================= */
.tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.tab { padding:10px 12px; border-radius:12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); text-decoration:none; color: inherit; }
.tab.active { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.16); }

.chat { display:flex; flex-direction:column; gap:10px; }
.msg { border-radius:14px; padding:10px 12px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); }
.msg.user { background: rgba(255,255,255,.04); }
.msg.support { background: rgba(255,255,255,.08); }
.msg.internal { background: rgba(255,180,0,.10); border-color: rgba(255,180,0,.25); }

.msg-head { display:flex; justify-content:space-between; gap:12px; font-size:12px; opacity:.8; margin-bottom:6px; }
.msg-body { white-space:pre-wrap; word-break:break-word; }

.split { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; }
.split > * { flex: 1; min-width: 220px; }


/* Tickets-Link: nie hervorheben (nur Badge) */
.lv-right a.tickets-link,
.lv-right a.tickets-link:visited{
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  background: transparent !important;
}

.lv-right a.tickets-link:hover,
.lv-right a.tickets-link:focus,
.lv-right a.tickets-link:active{
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  background: transparent !important;
}



/* =========================
   Support UX fixes
   - Card links should not turn purple/underlined
   - Tabs should look like buttons even if markup uses plain <a>
========================= */
a.card,
a.card:visited {
  color: inherit !important;
  text-decoration: none !important;
}

a.card:hover,
a.card:focus {
  text-decoration: none !important;
}

/* Tabs: style any link inside .tabs like a button */
.tabs a,
.tabs a:visited {
  color: inherit !important;
  text-decoration: none !important;
}

.tabs a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.tabs a.active{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.16);
}
