/* docs/style.css */

/* --- Globale Einstellungen --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Montserrat:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    max-width: 1000px;
    margin: 8px auto;
    padding: 8px;
    background-color: #eef1f5; /* Sanfter Hintergrund */
    color: #34495e; /* Dunkler Text */
    line-height: 1.4;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-top: 4px;
    margin-bottom: 4px;
    padding-bottom: 0;
    border-bottom: 2px solid #cfd8dc; /* Feine Trennlinie */
}

h1 { font-size: 2.8em; color: #2980b9; border-bottom: 3px solid #2980b9; padding-bottom: 4px; }
h2 { font-size: 2.4em; margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 0.25em;
    margin-top: 0.15em;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 40px 0;
}

/* --- Spezifische Komponenten --- */

.code-block {
    background-color: #f0f4f7;
    border-left: 5px solid #34495e;
    padding: 18px 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95em;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-box {
    background-color: #e3f2fd; /* Helles Blau */
    border-left: 6px solid #2196f3; /* Dunkleres Blau */
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    color: #1976d2;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.info-box strong {
    color: #1565c0;
}

.track-click {
    display: inline-block;
    padding: 12px 25px;
    margin: 15px 10px 15px 0;
    background-color: #e74c3c; /* Kräftiges Rot */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none; /* Für Links, die als Button gestylt sind */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.track-click:hover {
    background-color: #c0392b; /* Dunkleres Rot beim Hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* --- Navigationslinks (Hauptseite) --- */
.nav-link {
    display: block;
    padding: 8px;
    margin: 20px 0 3px 0;
    background-color: #42a5f5; /* Mittleres Blau */
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    font-size: 1.3em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    background-color: #2196f3; /* Dunkleres Blau beim Hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- Statistik Tabelle --- */
table {
    width: 100%;
    border-collapse: separate; /* Für abgerundete Ecken */
    border-spacing: 0;
    margin-top: 25px;
    background-color: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden; /* Für abgerundete Ecken der Tabelle */
}

th, td {
    border: none; /* Keine individuellen Zellenränder */
    padding: 15px;
    text-align: left;
    font-size: 0.95em;
    border-bottom: 1px solid #eceff1; /* Feine Linien zwischen Zeilen */
}

th {
    background-color: #0d47a1; /* Dunkelblau */
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: #f8f8f8;
}

tr:hover {
    background-color: #e0f2f7; /* Leichter Hover-Effekt */
}

th:first-child { border-top-left-radius: 10px; }
th:last-child { border-top-right-radius: 10px; }
tr:last-child td:first-child { border-bottom-left-radius: 10px; }
tr:last-child td:last-child { border-bottom-right-radius: 10px; }

.spinner {
    border: 4px solid rgba(0,0,0,.1);
    border-left-color: #3498db;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Back-Link in Detailseiten --- */
.back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #607d8b; /* Grau-Blau */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background-color: #455a64;
}