/* ==============================================
   TinySky – DL7AG Global Styles
   ============================================== */

:root {
    --bg-main: #020617;
    --bg-header: #020617;
    --bg-card: #0f172a;
    --bg-card-soft: #111827;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-soft: rgba(148, 163, 184, 0.35);
    --accent-yellow: #facc15;
    --accent-orange: #fb923c;
    --accent-cyan: #22d3ee;
    --accent-green: #4ade80;
    --accent-red: #f97373;
}

/* ==============================================
   Basis
   ============================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background: radial-gradient(circle at top, #020617, #020617 45%, #020617);
    color: var(--text-main);
    line-height: 1.5;
}

/* ==============================================
   Header / Logo / Top-Navigation
   ============================================== */

header {
    background: var(--bg-header);
    border-bottom: 1px solid rgba(15,23,42,0.9);
    padding: 0.6rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

header .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

header img {
    display: block;
    height: 52px;          /* <- Logo klein */
    width: auto;
}

header .site-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header nav {
    display: flex;
    gap: 1.6rem;
    font-size: 0.9rem;
}

header nav a {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.15s ease;
}

header nav a:hover {
    color: var(--accent-orange);
}

/* ==============================================
   Seiten-Container
   ============================================== */

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.6rem 1.6rem 2.5rem;
}

/* Fallback, falls header.php keinen Wrapper setzt */
main,
body > .content,
body > .page {
    max-width: 1400px;
    margin: 0 auto;
}

/* Breadcrumb / Kameranavigation */

.camera-nav {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

.camera-nav a {
    color: var(--text-muted);
    text-decoration: none;
}

.camera-nav a:hover {
    color: var(--accent-cyan);
}

h1 {
    font-size: 1.6rem;
    margin: 0 0 1.2rem;
}

/* ==============================================
   Karten-Layout (Allgemein)
   ============================================== */

.cards-grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 1.4rem;
    margin-bottom: 1.6rem;
}

.info-card {
    background: var(--bg-card);
    border-radius: 0.9rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 30px rgba(15,23,42,0.9);
}

.info-card h2 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 1.15rem;
    color: var(--accent-yellow);
}

.info-card h3 {
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* ==============================================
   Systemstatus-Boxen
   ============================================== */

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.status-column {
    background: var(--bg-card-soft);
    border-radius: 0.6rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(15,23,42,0.9);
}

.status-column p {
    margin: 0.18rem 0;
    font-size: 0.85rem;
}

.status-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Status-Badges */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-online {
    background: rgba(34,197,94,0.15);
    border-color: rgba(34,197,94,0.7);
    color: #4ade80;
}

.status-offline {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.8);
    color: var(--accent-red);
}

/* Neue-Satelliten-Box */

.tinygs-new-box {
    margin-top: 0.8rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.6rem;
    background: linear-gradient(90deg, rgba(30,64,175,0.35), rgba(15,23,42,0.85));
    border: 1px solid rgba(56,189,248,0.35);
    font-size: 0.82rem;
}

.tinygs-new-list {
    margin: 0.3rem 0 0.1rem;
    padding-left: 1.1rem;
    font-size: 0.82rem;
}

.tinygs-new-list li::marker {
    color: var(--accent-cyan);
}

/* ==============================================
   Aktuelles Bild
   ============================================== */

.camera-image-wrapper {
    border-radius: 0.8rem;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.12), rgba(15,23,42,0.9));
    padding: 0.75rem;
    border: 1px solid rgba(148,163,184,0.32);
}

.camera-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0.7rem;
    border: 1px solid rgba(15,23,42,0.9);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.camera-image:hover {
    transform: scale(1.01);
    box-shadow: 0 0 25px rgba(56,189,248,0.35);
}

.image-zoom-hint {
    margin-top: 0.3rem;
    font-size: 0.76rem;
    text-align: center;
    color: var(--text-muted);
}

/* ==============================================
   Modal – Bildvergrößerung
   ============================================== */

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 70;
}

.image-modal.is-open {
    display: block;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.92);
    backdrop-filter: blur(8px);
}

.image-modal-dialog {
    position: relative;
    max-width: 960px;
    max-height: 90vh;
    margin: 3rem auto;
    padding: 0.9rem 1rem 1.1rem;
    border-radius: 0.9rem;
    background: #020617;
    border: 1px solid rgba(148,163,184,0.55);
    box-shadow: 0 24px 60px rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.6rem;
}

.image-modal-close {
    position: absolute;
    right: 0.55rem;
    top: 0.45rem;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: none;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    font-size: 1.1rem;
    cursor: pointer;
}

.image-modal-close:hover {
    background: rgba(30,64,175,0.95);
}

.image-modal-caption {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==============================================
   TinyGS – Aktivität / Balkendiagramme
   ============================================== */

.month-bars {
    margin-top: 0.5rem;
}

.month-bars-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
}

.month-bars-label {
    width: 54px;
    color: var(--text-muted);
}

.month-bars-bar {
    flex: 1;
    height: 11px;
    background: rgba(15,23,42,0.9);
    border-radius: 999px;
    overflow: hidden;
}

.month-bars-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    width: 0;
    transition: width 0.8s ease-out;
}

.month-bars-row > div:last-child {
    width: 40px;
    text-align: right;
}

/* ==============================================
   Top- & Seltene Satelliten
   ============================================== */

.sat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.sat-table th,
.sat-table td {
    padding: 0.35rem 0.45rem;
    border-bottom: 1px solid rgba(31,41,55,0.9);
}

.sat-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.78rem;
}

.rare-sat-row td {
    background: radial-gradient(circle at left, rgba(250,204,21,0.14), rgba(15,23,42,0.96));
    border-bottom-color: rgba(250,204,21,0.6);
}

.rare-sat-pill {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(250,204,21,0.15);
    border: 1px solid rgba(250,204,21,0.7);
    color: var(--accent-yellow);
    font-size: 0.68rem;
    font-weight: 700;
    margin-right: 0.35rem;
}

/* kleine Icon-Spans */

.tinygs-icon {
    margin-right: 0.25rem;
}

/* Live-Ticker */

.tinygs-ticker ul {
    list-style: none;
    padding-left: 0;
    margin: 0.3rem 0;
    font-size: 0.82rem;
}

.tinygs-ticker li {
    margin-bottom: 0.25rem;
}

/* ==============================================
   Listen / Links
   ============================================== */

a {
    color: var(--accent-cyan);
}

a:hover {
    color: var(--accent-orange);
}

/* ==============================================
   Footer
   ============================================== */

footer {
    border-top: 1px solid rgba(15,23,42,0.9);
    padding: 1.1rem 1.4rem 1.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==============================================
   Responsive
   ============================================== */

@media (max-width: 980px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 0.4rem;
    }

    .cards-grid-2 {
        grid-template-columns: 1fr;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-container {
        padding: 1.2rem 1rem 2rem;
    }

    h1 {
        font-size: 1.3rem;
    }
}

/* ======================= Header / Top-Bar ======================= */

.site-header {
    background: #020617;
    border-bottom: 1px solid #0f172a;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo + Textblock links */

.brand-link,
.brand-link:link,
.brand-link:visited {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 46px;
    height: auto;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.brand-title-primary {
    color: #f59e0b; /* TinySky in orange */
}

.brand-title-separator {
    margin: 0 0.15rem;
    color: #fbbf24;
}

.brand-title-secondary {
    color: #facc15; /* DL7AG in gelb */
}

.brand-subtitle {
    font-size: 0.8rem;
    color: #94a3b8; /* grau/blau */
    margin-top: 0.1rem;
}

/* Navigation rechts */

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;        /* Abstand zwischen den Links */
    font-size: 0.95rem;
}

.main-nav a,
.main-nav a:link,
.main-nav a:visited {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #facc15;     /* gelb bei Hover */
}

/* Hauptbereich unter dem Header */

.site-main {
    max-width: 1200px;
    margin: 1.75rem auto 3rem;
    padding: 0 1.75rem;
}

/* ======================= Aktuelles Bild ======================= */

.image-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.image-description {
    font-size: 0.9rem;
    color: var(--text-muted, #9ca3af);
    max-width: 40rem;
}

.image-wrapper {
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    background: radial-gradient(circle at top, #020617, #020617 45%, #020617);
}

/* 💡 WICHTIG: Bild wieder voll in der Karte, so wie im Screenshot */
.image-wrapper img {
    display: block;
    width: 100%;     /* füllt die Karte aus */
    height: auto;
    cursor: zoom-in;
}

.image-zoom-hint {
    font-size: 0.78rem;
    color: var(--text-muted, #9ca3af);
}

/* ======================= Bild-Zoom Modal ======================= */

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.image-modal.is-open {
    display: flex;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

.image-modal-dialog {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    padding: 0.8rem;
    border-radius: 1rem;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85);
}

.image-modal-dialog img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0.8rem;
}

.image-modal-close {
    position: absolute;
    right: 0.5rem;
    top: 0.4rem;
    border: none;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.image-modal-close:hover {
    background: rgba(30, 64, 175, 0.95);
}

/* Bildgröße reduzieren */
.image-wrapper img {
    display: block;
    width: 70%;        /* <-- statt 100% */
    margin: 0 auto;    /* zentriert das Bild */
    height: auto;
    cursor: zoom-in;
}

/* ======================= Standard-2-Spalten-Grid ======================= */

.cards-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: flex-start;
}

/* Auf schmalen Displays alles untereinander */
@media (max-width: 900px) {
    .cards-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ======================= TinyGS 2-Spalten Layout ======================= */

.tinygs-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .tinygs-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* Balken animieren */
.month-bars-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    width: 0;
    transition: width 0.8s ease-out;
}

/* Badges für Satelliten */
.sat-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.6rem;
}

.sat-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.8);
    font-size: 0.78rem;
    color: #e5e7eb;
    white-space: nowrap;
}

/* Seltene Satelliten hervorheben */
.rare-sat {
    background: rgba(250, 204, 21, 0.12);
    border-left: 3px solid var(--accent-yellow);
    padding-left: 0.4rem;
}

/* === Bild endlich klein machen === */
img#liveImage.camera-full {
    max-width: 600px !important;   /* absolute Obergrenze */
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;     /* zentriert */
}

/* =======================
   TinyGS – Zweispaltiger Block
   ======================= */

.tinygs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.6rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .tinygs-grid {
        grid-template-columns: 1fr;
    }
}

.tinygs-col h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.tinygs-meta {
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
    margin-top: 0.6rem;
}

/* Faktenliste rechts */

.tinygs-facts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tinygs-facts li {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.25rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.tinygs-facts li:last-child {
    border-bottom: none;
}

.tinygs-fact-label {
    font-size: 0.86rem;
    color: var(--text-muted, #9ca3af);
}

.tinygs-fact-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* zusätzliche kleine Hinweiszeile */

.tinygs-hint {
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
    margin-top: 0.7rem;
}

/* ============================
   Systemstatus – 2-Spalten Grid
   ============================ */

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
}

.status-left h3 {
    margin-top: 0.6rem;
    margin-bottom: 0.4rem;
}

.status-right h3 {
    margin-top: 0;
}

.status-image {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    display: block;
    margin-bottom: 0.6rem;
}

.image-note {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* optional: subtile Trennlinie */
.status-left hr {
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 1rem 0;
}

/* ============================
   Bild-Modal (Zoom)
   ============================ */

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.image-modal.is-open {
    display: block;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.image-modal-dialog {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    padding: 1rem;
    background: #0f172a;
    border-radius: 0.75rem;
    border: 1px solid rgba(200, 200, 200, 0.2);
}

.image-modal img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.image-modal-close {
    position: absolute;
    top: 0.3rem;
    right: 0.4rem;
    background: rgba(30,30,30,0.9);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
    border-radius: 50%;
    cursor: pointer;
}

.image-modal-close:hover {
    background: rgba(80,80,80,1);
}

/* =======================
   Satelliten-Lexikon Teaser
   ======================= */

#satelliten-lexikon-compact {
    margin-top: 1.5rem;
}

#satelliten-lexikon-compact .sat-lexikon-title {
    margin: 0 0 0.4rem;
    /* Font-Style kommt von globalem h2 */
}

#satelliten-lexikon-compact .sat-lexikon-intro {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

#satelliten-lexikon-compact .sat-lexikon-highlights {
    margin: 0 0 0.9rem;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    opacity: 0.95;
}

#satelliten-lexikon-compact .sat-lexikon-highlights li + li {
    margin-top: 0.2rem;
}

#satelliten-lexikon-compact .sat-lexikon-cta {
    margin: 0;
    text-align: right;
}

#satelliten-lexikon-compact .sat-lexikon-button {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(90deg, #00bcd4, #00e5ff);
    color: #02050a;
    box-shadow: 0 6px 14px rgba(0, 200, 255, 0.3);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s ease-out;
}

#satelliten-lexikon-compact .sat-lexikon-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 200, 255, 0.4);
    filter: brightness(1.05);
}
/* Zurück-Button oben auf der Satelliten-Lexikon-Seite */

.camera-nav {
    margin-bottom: 1.0rem; /* etwas Luft unter dem Button */
}

.camera-nav .sat-back-button {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.6);
    color: var(--text-main);
    box-shadow: 0 8px 18px rgba(0,0,0,0.55);
    transition: background 0.12s ease-out,
                transform 0.12s ease-out,
                box-shadow 0.12s ease-out;
}

.camera-nav .sat-back-button:hover {
    background: rgba(30,64,175,0.95);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15,23,42,0.9);
}
/* Systemstatus – Zwei Spalten nebeneinander in der Systemstatus-Box */
.status-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    margin-top: 0.8rem;
}

.status-block h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.status-block p {
    margin: 0.2rem 0;
}

@media (max-width: 900px) {
    .status-two-col {
        grid-template-columns: 1fr;
    }
}
/* Wolkenvorhersage (Open-Meteo) */

.cloudbox {
    background: #111827;
    color: #e5e7eb;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #1f2937;
    font-size: 13px;
    margin-top: 8px;
}

.cloud-row {
    display: flex;
    gap: 4px;
}

.cloud-cell {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    border-radius: 4px;
    font-weight: 600;
    box-sizing: border-box;
}

.cloud-time {
    font-size: 11px;
    opacity: 0.85;
}

.cloud-value {
    font-size: 13px;
}

.cloud-label {
    font-size: 11px;
    opacity: 0.9;
}

/* Farben für die verschiedenen Bewölkungsstufen */
.cloud-clear {
    background: #14532d;
}

.cloud-partly {
    background: #92400e;
}

.cloud-overcast {
    background: #7f1d1d;
}

.cloudbox-error {
    background: #331;
    border-color: #633;
    color: #f9d6d5;
}
/* TinyGS Box: kompakter, sauberer */

.tinygs-card .tinygs-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.tinygs-card .tinygs-link{
  font-size:0.85rem;
  color:#60a5fa;
  text-decoration:none;
  padding:6px 10px;
  border:1px solid rgba(96,165,250,0.35);
  border-radius:999px;
  background:rgba(15,23,42,0.5);
}

.tinygs-card .tinygs-link:hover{
  text-decoration:underline;
}

.tinygs-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;
  margin-bottom:14px;
}

@media (max-width:900px){
  .tinygs-grid{ grid-template-columns:1fr; }
}

.tinygs-item{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(30,41,59,0.9);
  background:rgba(2,6,23,0.35);
}

.tinygs-label{
  font-size:0.75rem;
  color:#94a3b8;
  margin-bottom:4px;
}

.tinygs-value{
  font-size:0.95rem;
  color:#e5e7eb;
  font-weight:600;
}

.tinygs-recent{
  padding-top:10px;
  border-top:1px solid rgba(148,163,184,0.18);
}

.tinygs-subhead{
  font-size:0.9rem;
  font-weight:700;
  margin-bottom:8px;
}

.tinygs-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.tinygs-list li{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(30,41,59,0.85);
  background:rgba(15,23,42,0.55);
}

.tinygs-sat{
  font-weight:800;
  color:#f1f5f9;
}

.tinygs-when{
  color:#94a3b8;
  font-size:0.85rem;
  white-space:nowrap;
}

.tinygs-muted{
  color:#94a3b8;
  font-size:0.85rem;
}
.sat-today-grid {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
}

@media (max-width: 900px) {
  .sat-today-grid { grid-template-columns: 1fr; }
}

.sat-today-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  background: rgba(15,23,42,0.6);
}

.sat-today-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sat-today-count {
  font-variant-numeric: tabular-nums;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.35);
  background: rgba(56,189,248,0.12);
}

.sat-badge-new {
  display: inline-block;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: #f97316;
  color: #0b1120;
  font-size: 0.75rem;
  font-weight: 800;
}


.space-weather-card .sw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.space-weather-card .sw-kp {
  font-size: 1.6rem;
  font-weight: 800;
  color: #38bdf8;
}

.space-weather-card .sw-bar {
  margin: 0.75rem 0;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(30,64,175,0.35);
  overflow: hidden;
}

.space-weather-card .sw-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    #22c55e 0%,
    #84cc16 30%,
    #facc15 50%,
    #f97316 70%,
    #ef4444 100%
  );
}

.space-weather-card .sw-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.space-weather-card .sw-links {
  margin-top: 0.6rem;
  display: flex;
  gap: 1rem;
}


.section-separator {
  border: none;
  height: 1px;
  margin: 2.5rem 0 2rem;
  background: linear-gradient(
    90deg,
    rgba(148,163,184,0.0),
    rgba(148,163,184,0.35),
    rgba(148,163,184,0.0)
  );
}


.iss-card .iss-list{
  margin:.5rem 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:.4rem;
}

.iss-card li{
  padding:.45rem .6rem;
  border-radius:.6rem;
  background: rgba(30,64,175,.25);
  display:flex;
  justify-content:space-between;
  gap:1rem;
  font-weight:700;
}

.iss-card .iss-end{
  opacity:.7;
  font-weight:600;
}


/* Space-Weather Dashboard */
.space-weather-card .sw-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
}
.space-weather-card .sw-kp{
    display:flex;
    align-items:center;
    gap:.5rem;
    font-weight:800;
    padding:.25rem .6rem;
    border-radius:999px;
    border:1px solid #1e293b;
    background: rgba(15,23,42,0.75);
}
.sw-trend{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:1.6rem;
    height:1.6rem;
    border-radius:999px;
    border:1px solid #1e293b;
    background: rgba(15,23,42,0.9);
    font-size:1rem;
    line-height:1;
}
.sw-bar{
    position:relative;
    height:14px;
    border-radius:999px;
    background: rgba(30,64,175,0.35);
    overflow:hidden;
    border:1px solid #1e293b;
    margin-top:.6rem;
}
.sw-bar-fill{
    height:100%;
    background: linear-gradient(90deg,
        rgba(56,189,248,0.65) 0%,
        rgba(56,189,248,0.95) 100%
    );
}
.sw-markers{
    position:absolute;
    inset:0;
    pointer-events:none;
}
.sw-marker{
    position:absolute;
    top:0;
    bottom:0;
    width:1px;
    background: rgba(226,232,240,0.35);
}
.sw-marker span{
    position:absolute;
    top:-1.25rem;
    left:50%;
    transform:translateX(-50%);
    font-size:.7rem;
    color:#cbd5f5;
    background: rgba(15,23,42,0.85);
    border:1px solid #1e293b;
    padding:.05rem .35rem;
    border-radius:999px;
}


/* Trend-Farben */
.sw-trend {
    font-weight: 900;
}

.sw-trend.up {
    color: #22c55e; /* grün */
    border-color: rgba(34,197,94,0.6);
}

.sw-trend.down {
    color: #f97316; /* orange */
    border-color: rgba(249,115,22,0.6);
}

.sw-trend.flat {
    color: #94a3b8; /* grau */
    border-color: rgba(148,163,184,0.5);
}


.sw-title{
  display:flex;
  align-items:center;
  gap:.75rem;
}

.sw-badge{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.25rem .6rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.35);
  background:rgba(15,23,42,.65);
  font-size:.8rem;
  font-weight:800;
  letter-spacing:.2px;
  line-height:1;
}

/* Aurora-Chance Farben */
.sw-badge.low   { color:#94a3b8; border-color:rgba(148,163,184,.45); }
.sw-badge.mid   { color:#38bdf8; border-color:rgba(56,189,248,.45); }
.sw-badge.good  { color:#22c55e; border-color:rgba(34,197,94,.45); }
.sw-badge.high  { color:#f97316; border-color:rgba(249,115,22,.55); }
.sw-badge.vhigh { color:#ef4444; border-color:rgba(239,68,68,.60); }





.sat-info-links {
  display: flex;
  gap: 1rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

.sat-info-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(56,189,248,.15);
  border: 1px solid rgba(56,189,248,.35);
  color: #e5e7eb;
  font-weight: 700;
  text-decoration: none;
}

.sat-info-link:hover {
  background: rgba(56,189,248,.3);
}
/* SatNOGS / N2YO Link-Buttons im Satellite-Header */
.sat-info-links{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
  margin:.35rem 0 0 0;
}

.sat-info-links .sat-back-button{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.45rem .8rem;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}

/* Optional: leicht dezenter im Info-Card Kontext */
.info-card .sat-info-links .sat-back-button{
  background:rgba(56,189,248,.10);
  border:1px solid rgba(56,189,248,.28);
}

.info-card .sat-info-links .sat-back-button:hover{
  background:rgba(56,189,248,.18);
  border-color:rgba(56,189,248,.40);
}
/* SatNOGS / N2YO Link-Buttons (Satellite-Header) */
.sat-info-links{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
  margin:.4rem 0 0 0;
}

/* Button-Grundstil */
.sat-info-links .sat-back-button{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.45rem .9rem .45rem .6rem;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  transition:background .15s ease, border-color .15s ease, transform .05s ease;
}

/* dezenter Info-Card Look */
.info-card .sat-info-links .sat-back-button{
  background:rgba(56,189,248,.10);
  border:1px solid rgba(56,189,248,.28);
}

.info-card .sat-info-links .sat-back-button:hover{
  background:rgba(56,189,248,.18);
  border-color:rgba(56,189,248,.45);
  transform:translateY(-1px);
}

/* Icon-Kreis */
.sat-info-links .sat-back-button::before{
  content:"";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.45rem;
  height:1.45rem;
  border-radius:999px;
  font-size:.8rem;
  background:rgba(56,189,248,.25);
  color:#0b1120;
}

/* SatNOGS Icon */
.sat-info-links .sat-back-button[href*="satnogs"]::before,
.sat-info-links .sat-back-button[href*="db.satnogs.org"]::before{
  content:"🛰";
}

/* N2YO Icon */
.sat-info-links .sat-back-button[href*="n2yo.com"]::before{
  content:"🌍";
}