:root {
  --bg: #120b07;
  /* sehr dunkles braun */
  --panel: #1b110b;
  /* panel braun */
  --panel2: #24160e;
  /* hover/active */
  --text: #f2e9de;
  /* warmes off-white */
  --muted: #c9b8a6;
  /* muted text */
  --gold: #d6b15a;
  /* goldgelb */
  --gold2: #f2cf75;
  /* helleres gold */
  --danger: #ff6b6b;
  --border: rgba(214, 177, 90, 0.22);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 40% 0%, rgba(214, 177, 90, 0.10), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(214, 177, 90, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


a {
  color: inherit;
  text-decoration: none;
}

.app{
  display:flex;
  flex: 1 0 auto;   /* wichtig: nicht schrumpfen */
  min-height: auto; /* nicht 0 */
}


/* Sidebar */
.sidebar {
  width: 20%;
  min-width: 220px;
  max-width: 320px;
  background: linear-gradient(180deg, var(--panel), #140c08 70%);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;

  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* wichtig: verhindert "aus dem Bild" */
}

.sidebar__top {
  padding: 18px 14px 10px;
  flex: 1 1 auto;
  /* nimmt den restlichen Platz */
  overflow: auto;
  /* scrollt nur den oberen Bereich */
  min-height: 0;
  /* wichtig für flex overflow */
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: rgba(214, 177, 90, 0.45) rgba(0, 0, 0, 0.12);
}

.sidebar__top::-webkit-scrollbar {
  width: 10px;
}

.sidebar__top::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.12);
  border-left: 1px solid rgba(214, 177, 90, 0.10);
  border-radius: 12px;
}

.sidebar__top::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(242, 207, 117, 0.55), rgba(214, 177, 90, 0.35));
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
}

.sidebar__top::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(242, 207, 117, 0.75), rgba(214, 177, 90, 0.55));
}

.sidebar__bottom {
  padding: 10px 14px 18px;
  flex: 0 0 auto;
}


.sidebar__divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0 10px;
}

/* Brand */
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: rgba(0, 0, 0, 0.18);
  margin-bottom: 14px;
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1b110b;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
}

.brand__title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand__sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Nav */
.nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav__section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav__heading {
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 6px 10px 2px;
}

.nav__link {
  padding: 10px 12px;
  border-radius: 12px;
  margin: 0 6px;
  border: 1px solid transparent;
  color: var(--text);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  background: rgba(0, 0, 0, 0.12);
}

.nav__link:hover {
  background: rgba(214, 177, 90, 0.10);
  border-color: var(--border);
  transform: translateX(2px);
}

.nav__link--danger {
  border-color: rgba(255, 107, 107, 0.25);
  background: rgba(255, 107, 107, 0.08);
      display: block;
    text-align: center;
}
.nav__link--login {
  border-color: rgba(132, 255, 107, 0.25);
  background: rgba(166, 255, 107, 0.08);
      display: block;
    text-align: center;
}
.nav__link--danger:hover {
  background: rgba(255, 107, 107, 0.12);
}

/* Content */
.content {
  flex: 1;
  min-width: 0;
  padding: 26px 26px 34px;

}

.content__inner {
  min-width: 0;
  margin-left: 10px;
}

h1 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: 0.2px;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow);
  padding: 16px 16px;
  margin-top: 15px;
}

.card__title {
  font-weight: 800;
  color: var(--gold2);
  margin-bottom: 8px;
}

.card__body {
  color: var(--text);
  opacity: 0.95;
}

/* Footer */
.footer {
  flex: 0 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.footer__icons {
  display: flex;
  gap: 10px;
}

.footer__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(214, 177, 90, 0.07);
  transition: background 120ms ease, transform 120ms ease;
}

.footer__icon:hover {
  background: rgba(214, 177, 90, 0.12);
  transform: translateY(-1px);
}

.footer__icon img {
  width: 18px;
  height: 18px;
  filter: brightness(1.2);
}

.footer__right {
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px) {
  .sidebar {
    width: 260px;
    min-width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 30;
    transform: translateX(0);
  }

  .content {
    margin-left: 260px;
  }
}

@media (max-width: 720px) {
  .sidebar {
    position: sticky;
    width: 220px;
    min-width: 220px;
  }

  h1 {
    font-size: 28px;
  }
}

.list {
  margin: 0;
  padding-left: 18px;
}

.status.online {
  color: #4caf50;
}

.status.offline {
  color: #f44336;
}

.page {
  padding: 24px;
}

.page-header h1 {
  margin: 0 0 6px;
}

.page-header p {
  opacity: .8;
  margin: 0 0 18px;
}

.streamer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.streamer-card {
  display: block;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}

.streamer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.streamer-image {
  position: relative;
}

.streamer-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}

.badge-partner {
  position: absolute;
  top: 12px;
  left: 12px;
}

.streamer-content {
  padding: 14px 14px 16px;
}

.streamer-content h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.streamer-content p {
  margin: 0;
  opacity: .85;
}

.tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}

/* Detail */
.streamer-banner img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin-bottom: 18px;
}

.streamer-detail-header{
  display:flex;
  gap: 18px;
  align-items:flex-start;
  flex-wrap: wrap;      /* wichtig: darf umbrechen */
}

.streamer-avatar{
  flex: 0 0 auto;
}

.streamer-info{
  flex: 1 1 320px;      /* statt width:60% */
  min-width: 0;         /* wichtig, sonst overflow */
  width: auto;          /* falls noch gesetzt */
}



.streamer-avatar img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.streamer-title {
  display: flex;
  gap: 10px;
  align-items: center;
}

.streamer-bio {
  margin: 8px 0 10px;
  opacity: .9;
}

.streamer-meta {
  margin: 6px 0;
  opacity: .85;
}

.socials {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
  color: inherit;
}

.social-btn:hover {
  background: rgba(255, 255, 255, .12);
}

.backlink {
  margin-top: 16px;
}

.twitch-embed {
  width: 100%;
  aspect-ratio: 16 / 8;
  /* <-- weniger Höhe: 16/9; mehr Höhe: 16/8 oder 16/7 */
  border-radius: 12px;
  overflow: hidden;
}

.twitch-embed iframe {
  width: 100%;
  height: 100%;
}

.twitch-embed--tall {
  height: 340px;
  aspect-ratio: auto;
}

.sidebar-user {
  padding: 12px 14px;
}

.sidebar-user__label {
  font-size: 12px;
  opacity: .7;
}

.sidebar-user__name {
  font-weight: 600;
  margin-top: 2px;
  word-break: break-word;
}

.sidebar-user__actions {
  margin-top: 10px;
}
.nav__link--withdot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.status-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(0,0,0,.35) inset;
}

.status-dot.is-online{
  background: #2ecc71; /* grün */
  box-shadow: 0 0 10px rgba(46,204,113,.55);
}

.status-dot.is-offline{
  background: #e74c3c; /* rot */
  box-shadow: 0 0 10px rgba(231,76,60,.35);
}

.status-dot.is-unknown{
  background: rgba(255,255,255,.25); /* grau */
}
/* Tabs / Registerkarten */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-top: 10px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-bottom: none;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: rgba(255,255,255,.04);
  text-decoration: none;
  font-weight: 600;
  opacity: .85;
}

.tab:hover {
  opacity: 1;
  background: rgba(255,255,255,.07);
}

.tab.is-active {
  opacity: 1;
  background: rgba(255,255,255,.10);
  position: relative;
  top: 1px; /* damit es "auf" der Linie sitzt */
}

.tab-meta {
  font-size: 12px;
  opacity: .75;
  font-weight: 500;
}

.tab-panel {
  padding-top: 12px;
}
/* Wrapper bleibt zentriert */
.admin-map-wrap{
  display:flex;
  justify-content:center;
}

/* Map-Box: Größe limitieren */
.admin-map-inner{
  position:relative;
  width:100%;
  max-width: 700px;      /* <- HIER die Breite limitieren */
  height: 700px;         /* <- feste Höhe (quadratisch) */
  max-height: 70vh;      /* <- nie höher als Viewport */
  margin:0 auto;

  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
  background: rgba(0,0,0,0.25);
}

/* Bild füllt die Box */
.admin-map-image{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

/* Canvas Overlay */
.admin-map-overlay{
  position:absolute;
  inset:0;
  pointer-events:auto;
}
/* Admin Menü – kompakt (kein Button-Look) */
.nav__section--admin{
  gap: 10px;
}

.nav__group{
  margin: 0 6px;
  padding: 6px 8px 8px;
  border: 1px solid rgba(214, 177, 90, 0.14);
  border-radius: 12px;
  background: rgba(0,0,0,0.10);
}

.nav__groupTitle{
  font-size: 12px;
  color: var(--gold2);
  font-weight: 800;
  margin: 6px 6px 4px;
  letter-spacing: .2px;
}

/* Links im Admin-Menü: "Textlinks" */
.nav__adminLink{
  display: block;
  padding: 6px 8px;
  margin: 0 4px;
  border-radius: 10px;
  color: var(--text);
  opacity: .92;
  border: 1px solid transparent;
  background: transparent;
  transition: background 120ms ease, border-color 120ms ease;
}

.nav__adminLink:hover{
  background: rgba(214, 177, 90, 0.08);
  border-color: rgba(214, 177, 90, 0.18);
}

.nav__adminLink.is-active{
  background: rgba(214, 177, 90, 0.12);
  border-color: rgba(214, 177, 90, 0.25);
  opacity: 1;
}

/* Sub-Links leicht eingerückt */
.nav__adminLink--sub{
  padding-left: 14px;
}
/* ---------- Rohlogs Dropdown (SaC) ---------- */

.dd {
  position: relative;
  display: inline-block;
}

.dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  min-width: 260px;
  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.92);

  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.dd-btn::after {
  content: "▾";
  opacity: 0.75;
  font-size: 12px;
}

.dd.open .dd-btn {
  border-color: rgba(214,177,94,0.35);
  box-shadow: 0 0 0 3px rgba(214,177,94,0.08);
}

.dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;

  width: min(520px, 78vw);
  max-height: 420px;

  background: rgba(10,10,10,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;

  overflow: hidden;
  display: none;
}

.dd.open .dd-panel {
  display: block;
}

.dd-search {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
}

.dd-search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;

  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.12);

  color: rgba(255,255,255,0.92);
  font-size: 13px;
}

.dd-search input:focus {
  outline: none;
  border-color: rgba(214,177,94,0.35);
  box-shadow: 0 0 0 3px rgba(214,177,94,0.08);
}

.dd-list {
  max-height: 360px;
  overflow: auto;
  padding: 6px;
}

.dd-item {
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;

  color: rgba(255,255,255,0.88);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dd-item:hover {
  background: rgba(255,255,255,0.06);
}

.dd-item.active {
  background: rgba(214,177,94,0.12);
  border: 1px solid rgba(214,177,94,0.22);
}

/* Highlight in Log */
#logViewer .mark {
  background: rgba(214,177,94,0.25);
  border: 1px solid rgba(214,177,94,0.25);
  border-radius: 6px;
  padding: 0 2px;
}

/* nicer scrollbars (optional) */
.dd-list::-webkit-scrollbar,
#logViewer::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.dd-list::-webkit-scrollbar-thumb,
#logViewer::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
}
.dd-list::-webkit-scrollbar-track,
#logViewer::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.15);
}
