/* ============================================
   STUDIEN.HTML - EINHEITLICHES KARTEN-STYLING
   Professionelles, konsistentes Design für alle Studienkarten
   ============================================ */

/* === GLOBALE TEXT-KORREKTUREN === */
.content-section,
.content-section * {
    color: #1a1a1a !important;
    /* Schwarzer Text als Standard */
}

/* === STUDIENKARTEN - EINHEITLICHES DESIGN === */
.content-section {
    background: #ffffff !important;
    border: 1px solid rgba(26, 77, 62, 0.15) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.content-section:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* === ÜBERSCHRIFTEN === */
.content-section h1,
.content-section h2 {
    color: #0a1a14 !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3) !important;
    padding-bottom: 0.75rem !important;
}

.content-section h3,
.content-section h4 {
    color: #1a4d3e !important;
    font-weight: 600 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.content-section h5,
.content-section h6 {
    color: #2a6d5a !important;
    font-weight: 600 !important;
    margin-top: 1rem !important;
    margin-bottom: 0.75rem !important;
}

/* === FLIESSTEXT === */
.content-section p,
.content-section li,
.content-section span:not(.study-type):not(.study-year):not(.podcast-badge) {
    color: #2c3e50 !important;
    line-height: 1.7 !important;
    font-size: 1rem !important;
}

.content-section strong {
    color: #0a1a14 !important;
    font-weight: 600 !important;
}

/* === LISTEN === */
.content-section ul,
.content-section ol {
    margin: 1rem 0 !important;
    padding-left: 1.5rem !important;
}

.content-section li {
    margin-bottom: 0.5rem !important;
}

/* === LINKS === */
.content-section a {
    color: #1a4d3e !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(26, 77, 62, 0.3) !important;
    transition: all 0.2s ease !important;
}

.content-section a:hover {
    color: #d4af37 !important;
    text-decoration-color: #d4af37 !important;
}

/* === META-INFORMATIONEN === */
.study-type,
.study-year {
    display: inline-block !important;
    background: rgba(26, 77, 62, 0.1) !important;
    color: #1a4d3e !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-right: 8px !important;
    margin-bottom: 8px !important;
}

.study-year {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #b8942d !important;
}

/* === INFO-BOXEN === */
.info-box {
    background: linear-gradient(135deg, rgba(26, 77, 62, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%) !important;
    border-left: 4px solid #d4af37 !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
}

.info-box h4,
.info-box h5 {
    color: #1a4d3e !important;
    margin-top: 0 !important;
}

.info-box p,
.info-box li {
    color: #2c3e50 !important;
}

/* === PODCAST-BADGES === */
.podcast-badge {
    background: linear-gradient(135deg, #1DB954, #169c46) !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-block !important;
    margin-bottom: 1rem !important;
}

/* === ZITATE & HIGHLIGHTS === */
.content-section blockquote {
    border-left: 4px solid #d4af37 !important;
    padding-left: 1.5rem !important;
    margin: 1.5rem 0 !important;
    font-style: italic !important;
    color: #2a6d5a !important;
}

/* === TABELLEN === */
.content-section table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1.5rem 0 !important;
}

.content-section th {
    background: rgba(26, 77, 62, 0.1) !important;
    color: #0a1a14 !important;
    font-weight: 600 !important;
    padding: 12px !important;
    text-align: left !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3) !important;
}

.content-section td {
    padding: 12px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #2c3e50 !important;
}

.content-section tr:hover td {
    background: rgba(26, 77, 62, 0.03) !important;
}

/* === CODE-BLÖCKE (falls vorhanden) === */
.content-section code {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #1a4d3e !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.9em !important;
}

/* ============================================
   INHALTSVERZEICHNIS (page-toc)
   Überschreibt inline styles mit !important
   ============================================ */

/* Hauptcontainer */
.page-toc {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(26, 77, 62, 0.2) !important;
}

/* Hauptüberschrift */
.page-toc>summary {
    background: rgba(26, 77, 62, 0.08) !important;
    color: #0a1a14 !important;
}

.page-toc>summary span {
    color: #0a1a14 !important;
}

/* Alle Links im TOC */
.page-toc a,
.page-toc a:link,
.page-toc a:visited {
    color: #1a4d3e !important;
}

.page-toc a:hover {
    color: #d4af37 !important;
}

/* Alle Summary-Elemente (Kategorien) */
.page-toc summary,
.page-toc details summary {
    color: #2c3e50 !important;
}

/* Überschreibt onmouseover/onmouseout inline styles */
.page-toc details summary:hover {
    color: #d4af37 !important;
}

/* Alle Texte im TOC */
.page-toc *,
.page-toc span,
.page-toc li,
.page-toc a span {
    color: inherit !important;
}

/* SVG Chevron */
.page-toc svg {
    stroke: currentColor !important;
}

/* === RESPONSIVE ANPASSUNGEN === */
@media (max-width: 768px) {
    .content-section {
        padding: 1.5rem !important;
        margin: 1rem 0 !important;
    }

    .content-section h1,
    .content-section h2 {
        font-size: 1.5rem !important;
    }

    .info-box {
        padding: 1rem !important;
    }
}

/* === SCROLLBARE INHALTE === */
.content-section::-webkit-scrollbar {
    width: 8px !important;
}

.content-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 4px !important;
}

.content-section::-webkit-scrollbar-thumb {
    background: rgba(26, 77, 62, 0.3) !important;
    border-radius: 4px !important;
}

.content-section::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 77, 62, 0.5) !important;
}