/* ==========================================================================
 *  INDUSTRIAL / TECH-BLUEPRINT THEME
 *  ========================================================================== */

/* --- LOKALE FONT-DEFINITIONEN --- */

/* Barlow Condensed - Regular */
@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/barlow-condensed-v13-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Barlow Condensed - Italic */
@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/barlow-condensed-v13-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Barlow Condensed - Bold (700) */
@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/barlow-condensed-v13-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Barlow Condensed - Bold Italic (700) */
@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/barlow-condensed-v13-latin-700italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Hack - Regular */
@font-face {
    font-family: 'Hack';
    src: url('fonts/hack-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Hack - Italic */
@font-face {
    font-family: 'Hack';
    src: url('fonts/hack-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Hack - Bold */
@font-face {
    font-family: 'Hack';
    src: url('fonts/hack-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Hack - Bold Italic */
@font-face {
    font-family: 'Hack';
    src: url('fonts/hack-bolditalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}


/* --- GLOBALE SCHRIFT-ANWENDUNG --- */

body,
input,
button,
select,
textarea,
.md-typeset {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1.08rem !important;
    letter-spacing: 0.3px;
}

/* Inhaltsverzeichnis und Seitenübersicht (Navigation) anpassen */
.md-nav,
.md-sidebar,
.md-nav__link {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 0.8rem !important;
}

/* Tabellen-Schriftgröße gezielt vergrößern */
.md-typeset table {
    font-size: 1.0rem !important;
}

.md-grid {
    max-width: 80%; /* Standard ist deutlich schmaler, hier kannst du den Wert erhöhen oder z.B. 95% / 100% nutzen */
}

/* 1. Relative Abstände für Tabellen (skaliert sauber mit) */
.md-typeset table th,
.md-typeset table td {
    padding: 0.4rem 0.6rem !important;
    line-height: 1.3 !important;
}

/* 2. Zebra-Look (wechselnde Farben) */
.md-typeset table tr:nth-child(even) {
    background-color: rgba(0, 229, 255, 0.03) !important;
}

.md-typeset table tr:nth-child(odd) {
    background-color: rgba(13, 17, 23, 0.4) !important;
}

/* 3. Mobil-Optimierung: Noch kompakter auf Handys (Bildschirme unter 768px) */
@media screen and (max-width: 768px) {
    .md-typeset table th,
    .md-typeset table td {
        padding: 0.3rem 0.4rem !important;
        font-size: 1rem !important; /* Passt die Schrift auf kleinen Screens automatisch an */
    }
}

/* Tabelle im Text exakt zentrieren */
.md-typeset__table {
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.md-typeset__table table {
    margin: 0 auto !important;
}

/* 1. Schematisches Raster im Hintergrund (Blueprint / Grid-Look) */
body {
    background-color: #0d1117 !important;
    background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
}

/* 2. Blöcke mit technischem Rahmen & leuchtendem Akzent */
.md-content__inner,
.md-sidebar__inner {
    background: rgba(22, 27, 34, 0.85) !important;
    border: 1px solid #30363d !important;
    border-left: 3px solid #00e5ff !important; /* Cyber-Blue Akzentleiste */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px);
    border-radius: 4px;
    padding: 20px;
}

/* 3. Überschriften im Schematik-Look mit Trennlinie */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #00e5ff !important;
    border-bottom: 1px dashed #30363d !important;
    padding-bottom: 5px;
}

/* 4. Codeblocks im Terminal-Look */
.md-typeset pre > code {
    background-color: #011627 !important;
    border: 1px solid #1e2d3d !important;
    border-radius: 2px !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    font-family: 'Hack', monospace !important;
}

/* 5. Subtile gestrichelte Linien für Listen und Tabellen */
.md-typeset table:not([class]) {
    border: 1px solid #30363d !important;
    background: rgba(13, 17, 23, 0.5);
}

/* 6. Bilder mit technischem Rahmen & 3D-Tiefe */
.md-typeset img {
    border: 1px solid #30363d !important;
    border-radius: 2px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 229, 255, 0.15) !important;
    background-color: #011627 !important;
    padding: 4px !important;
}

.md-typeset table:not([class]) th {
    background-color: rgba(0, 229, 255, 0.1) !important;
    color: #00e5ff !important;
    border-bottom: 2px solid #00e5ff !important;
}

/* 7. GLightbox: Weißen Hintergrund und harten Rahmen entfernen */
.glightbox-clean .gslide-media,
.gslide-image,
.gslide-image img {
    background: transparent !important;
    box-shadow: none !important;
}

/* Optional: Einen sehr dezenten dunklen Schatten um das Bild legen, damit es sich leicht abhebt */
/*.gslide-image img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
    border-radius: 4px;
}*/

/* 8. Automatisch alle Codeblöcke ab ~15 Zeilen in der Höhe begrenzen */
.md-typeset div.highlight pre {
    max-height: 380px; /* Höhe für ca. 15 Zeilen */
    overflow-y: auto;  /* Vertikale Scrollbar nur bei Bedarf */
}

