/* --- BASIS-STLYES --- */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --sidebar-bg: #ffffff;
    --border-color: #eee;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

/* --- LAYOUT --- */
.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    width: 300px;
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    position: fixed;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.content {
    flex: 1;
    margin-left: 300px;
    padding: 3rem;
    background: #fff;
    min-height: 100vh;
}

#main-article {
    max-width: 850px;
    margin: 0 auto;
}

/* --- LOGO & NAV --- */
.logo-area {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    max-width: 150px;
    height: auto;
}

#toc-container h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

#toc {
    list-style: none;
    padding: 0;
}

#toc li {
    margin-bottom: 0.5rem;
}

#toc a {
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    transition: color 0.2s;
}

#toc a:hover, #toc a.active {
    color: var(--accent-color);
    font-weight: bold;
}

.toc-h3 { margin-left: 15px; font-size: 0.9rem; }

/* --- TYPOGRAFIE & CONTENT --- */
h1 { font-size: 2.5rem; color: var(--primary-color); margin-top: 0; }
h2 { font-size: 1.8rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.3rem; margin-top: 2rem; }

p { margin-bottom: 1.5rem; }

a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Spezielle Link-Farben */
/* Dezent in den Text integrierter Amazon-Link */
.amazon-text-link {
    color: #333; /* Textfarbe fast wie normaler Text */
    text-decoration: none;
    font-weight: 600; /* Leicht fett, damit es auffällt */
    border-bottom: 2px solid #ff9900; /* Dünne Amazon-orange Linie unten */
    transition: all 0.2s ease-in-out;
    padding-bottom: 1px;
}

.amazon-text-link:hover {
    color: #ff9900; /* Text wird orange beim Hover */
    background-color: #fff8e1; /* Sehr dezenter, hellgelber Hintergrund-Schimmer */
    border-bottom: 2px solid #e68a00; /* Linie wird dunkler */
    text-decoration: none;
}

.amazon-text-link:hover::after {
    opacity: 1;
}

/* Normaler Info-Link im Text */
.info-text-link {
    color: #007bff; /* Klassisches Link-Blau */
    text-decoration: none;
    border-bottom: 2px solid #b3d7ff; /* Hellblaue Linie */
    transition: all 0.2s ease-in-out;
    padding-bottom: 1px;
}

.info-text-link:hover {
    color: #0056b3; /* Dunkleres Blau beim Hover */
    background-color: #e7f3ff; /* Hellblauer Schimmer */
    border-bottom: 2px solid #0056b3;
    text-decoration: none;
}

/* --- BOXEN (INFO, TIP, TRANSPARENZ) --- */
.info-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    position: relative;
    border-left: 5px solid;
}

.box-title {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.transparency-box {
    background-color: #f8f9fa;
    border-color: #bdc3c7;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.tip-box {
    background-color: #e8f6ef;
    border-color: #27ae60;
}

.disclaimer-box {
    background-color: #fff5f5;
    border-color: #e74c3c;
    font-size: 0.9rem;
}

/* --- TABELLEN --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

th {
    background-color: #f2f2f2;
    color: var(--primary-color);
    font-weight: bold;
    text-align: left;
    padding: 12px;
    border: 1px solid #ddd;
}

td {
    padding: 12px;
    border: 1px solid #ddd;
}

tr:nth-child(even) { background-color: #fafafa; }

/* --- BILDER & RENDER-SECTION --- */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.render-section {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

/* --- FOOTER --- */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

footer a { color: #7f8c8d; margin: 0 10px; }

/* --- MOBIL-OPTIMIERUNG --- */
.menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1100;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px auto;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 20px rgba(0,0,0,0.1);
    }
    
    .content {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .menu-btn {
        display: block;
    }

    h1 { font-size: 2rem; }
}