body {
    font-family: "Segoe UI", Roboto, sans-serif;
	background-color: #121212;
    color: #e0e0e0;
}

.card-img-top {
    object-fit: cover;
    height: 250px;
}

.card-title {
    font-weight: bold;
}

footer {
    font-size: 0.9rem;
    opacity: 0.7;
	color: #bbb;
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #bbb;
}

ul li span.text-success,
ul li span.text-danger,
ul li span.text-warning {
    font-weight: bold;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.navbar .nav-link.active {
    font-weight: bold;
    text-decoration: underline;
}
.leaflet-overlay-pane path {
    fill: rgba(0, 0, 0, 0.3);
}

.equal-height-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.equal-height-card .card-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Modernes Card- und Layout-Design für AllskyKamera --- */

/* Sensordaten-Card und andere Cards */
.card.bg-secondary {
    background: #23272b !important;
    border: 1px solid #343a40;
    color: #f8f9fa;
}

.card-header {
    background: #1a1d20 !important;
    border-bottom: 1px solid #343a40;
    color: #ffc107;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.card-body {
    background: #23272b !important;
    color: #f8f9fa;
}

.card ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.card ul li {
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.text-muted {
    color: #b0b0b0 !important;
}

.table-dark th, .table-dark td {
    background-color: #23272b !important;
    color: #f8f9fa !important;
    border-color: #343a40;
}

.table-hover tbody tr:hover {
    background-color: #2c3035 !important;
}

.progress {
    background-color: #343a40;
    border-radius: 1rem;
    box-shadow: 0 1px 4px #0002;
}

.progress-bar {
    font-weight: bold;
    font-size: 1.1rem;
}

.badge {
    font-size: 0.95em;
    margin-right: 0.3em;
}

.badge.bg-success {
    background-color: #198754 !important;
}
.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #23272b !important;
}
.badge.bg-danger {
    background-color: #dc3545 !important;
}

a, a:visited {
    color: #66bfff;
}
a:hover {
    color: #ffc107;
    text-decoration: underline;
}

h1, h4 {
    letter-spacing: 0.5px;
}

img.img-fluid.shadow {
    border: 2px solid #343a40;
}

@media (max-width: 767px) {
    .card-header, .card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Inhaltsverzeichnis & Preisspalte (Kamerabau) */
.toc a { display:block; margin: .25rem 0; }
.price { text-align: right; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
h2 { scroll-margin-top: 6rem; }

/* Dunkle Info-Boxen (ersetzt helle Bootstrap Alerts) */
.alert-info {
    background: #1a2633 !important;
    color: #d7e9ff !important;
    border: 1px solid #16324a !important;
}

/* Einheitliche Karten wie auf der Startseite */
.card { background: #23272b; border: 1px solid #343a40; color:#f8f9fa; }
.card-header { background:#1a1d20 !important; border-bottom:1px solid #343a40; color:#ffc107; font-weight:700; letter-spacing:.5px; }

/* Tabellen dunkel halten */
.table-dark th, .table-dark td { background-color:#23272b !important; color:#f8f9fa !important; border-color:#343a40; }
.table-secondary { background:#2c3035 !important; color:#e0e0e0 !important; }

.level-chip{position:absolute;top:8px;left:8px;z-index:2;}
.card-img-link{position:relative;display:block;}

.share-buttons .btn svg { vertical-align: text-bottom; }
.share-buttons .btn.btn-primary { background: #0d6efd; border-color: #0d6efd; }
.share-buttons .btn.btn-outline-light { border-color: #bbb; color: #eee; }

/* Kleine Sparklines im netdata-Dashboard */
.sparkline-wrapper {
    height: 40px;        /* fixe Höhe für den Container */
    width: 100%;
    position: relative;  /* wichtig für Chart.js */
}

.sparkline {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* LongKeogram nur als Vorschau laden/anzeigen */
.longkeo-preview{
  display:block;
  max-width:100%;     /* darf kleiner werden */
  width:auto;         /* aber NICHT hochskalieren */
  height:auto;
  max-height:180px;   /* deine Vorschauhöhe */
  margin: 0 auto;     /* zentrieren */
  background:#000;
}

.keo-timeline{
  display:flex;
  justify-content:space-between;
  font-size:.8rem;
  color:#aeb6bf;
  padding:0 .25rem;
  user-select:none;
}

.keo-timeline span{
  position:relative;
  padding-top:.35rem;
}

.keo-timeline span::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:1px;
  height:6px;
  background:#55606b;
  opacity:.9;
}

/* Preview-Box verhindert "zu hohe" Keogramme auf großen Screens */
  .preview-box{
    height: 420px;                 /* kannst du z.B. 280/320/360 testen */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0,0,0,0.25);
    border-radius: .5rem;
  }
  .preview-box img{
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }
