:root {
    --teal-main: #008080;
    --teal-dark: #006666;
    --green-sprout: #4caf50;
    --bg-body: #f4fcfb;
    --bg-content: #ffffff;
    --text-main: #2c3e50;
    --border-color: #d1e0dd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 10% 15%, rgba(0, 128, 128, 0.15), transparent 55%),
        radial-gradient(at 85% 25%, rgba(76, 175, 80, 0.12), transparent 50%),
        radial-gradient(at 50% 85%, rgba(0, 102, 102, 0.10), transparent 60%);
    background-attachment: fixed;
}

.header-banner {
    max-width: 900px;
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin: 20px auto 0;
    border-radius: 8px 8px 0 0;
    background-color: var(--teal-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

nav {
    background-color: var(--teal-dark);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

nav a.active {
    background-color: var(--green-sprout);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

main {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 40px;
    background-color: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

h1 {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--teal-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--border-color);
}

p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* E-Book Produkt-Sektion */
.ebook-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.ebook-media {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.ebook-cover {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.ebook-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.btn-buy {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: var(--green-sprout);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-buy:hover {
    background-color: #43a047;
}

/* Inhaltsverzeichnis Table */
.toc-section {
    margin-top: 40px;
}

.toc-header {
    background-color: var(--teal-dark);
    color: #ffffff;
    text-align: center;
    padding: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
}

.toc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-top: none;
}

.toc-table th, 
.toc-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    vertical-align: top;
}

.toc-table th:last-child,
.toc-table td:last-child {
    border-right: none;
}

.toc-table th {
    background-color: #e8f4f2;
    color: var(--teal-dark);
    font-weight: 700;
}

.toc-table td.nr {
    text-align: center;
    font-weight: 700;
    width: 50px;
}

.toc-table td.topic {
    color: var(--teal-dark);
    font-weight: 700;
    width: 30%;
}

.toc-table td.subtopics {
    line-height: 1.6;
}

/* Video & Hilfsklassen */
.text-center {
    text-align: center;
}

.video-container {
    aspect-ratio: 16 / 9;
    width: 100%;
    margin-top: 35px;
    border-radius: 6px;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.disclaimer {
    font-size: 0.95rem;
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid var(--teal-main);
    border-radius: 4px;
    margin-bottom: 5px;
    text-align: left;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}

.recommendation-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.recommendation-table th, 
.recommendation-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.recommendation-table th {
    background-color: var(--teal-main);
    color: #ffffff;
    font-weight: 600;
}

.recommendation-table td a {
    color: var(--teal-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recommendation-table td a:hover {
    color: var(--green-sprout);
    text-decoration: underline;
}

.category-header td {
    background-color: #e8f4f2;
    color: var(--teal-dark);
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    border-top: 2px solid var(--border-color);
}

.promo-row td {
    background-color: #fff9e6;
    text-align: center;
}

.promo-row a {
    color: #d35400 !important;
    font-weight: 700;
}

.code-badge {
    background-color: #c0392b;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.paypal-btn {
    background-color: #0070ba;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-block;
    text-decoration: none;
}

.paypal-btn:hover {
    background-color: #005ea6;
}

.donation-form {
    margin: 25px 0;
}

/* Video-Seite Styles */
.channel-info-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--teal-main);
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 35px;
    text-align: center;
}

.channel-intro {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.channel-subtext {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 20px;
}

.channel-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-channel {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-channel:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-youtube {
    background-color: #cc0000;
}

.btn-odysee {
    background-color: #ef1c43;
}

.video-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.video-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-btn {
    display: block;
    background-color: var(--teal-main);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.video-btn strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: #ffffff;
    text-decoration: underline;
}

.video-btn:hover {
    background-color: var(--teal-dark);
    transform: translateY(-2px);
}

/* Gelöschtes Video Hinweis Card */
.deleted-video-card {
    background-color: #fdf6f6;
    border: 1px solid #f5d6d6;
    border-left: 5px solid #c0392b;
    border-radius: 6px;
    padding: 22px 25px;
    margin: 50px 0 25px 0;
    text-align: center;
}

.deleted-badge {
    display: inline-block;
    background-color: #c0392b;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deleted-video-card h2 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.deleted-dates {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 0;
}

/* Video Beschreibung & Liste */
.video-description {
    margin-top: 25px;
}

.video-description ul {
    margin: 10px 0 20px 20px;
    list-style-type: disc;
}

.video-description li {
    margin-bottom: 5px;
}

/* Footer */
footer {
    max-width: 900px;
    margin: 50px auto 30px;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.85;
}

footer a {
    color: var(--teal-dark);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 700px) {
    .header-banner {
        height: 120px;
        margin-top: 0;
        border-radius: 0;
    }

    h1 {
        font-size: 1.6rem;
    }

    .video-grid {
        flex-direction: column;
    }
    
    .channel-buttons {
        flex-direction: column;
    }
    
    .btn-channel {
        width: 100%;
    }
}

@media (max-width: 650px) {
    main {
        padding: 15px 10px;
    }

    .ebook-container {
        flex-direction: column;
        align-items: center;
    }

    .ebook-media {
        flex: 0 0 auto;
        width: 100%;
    }

    .recommendation-table th, 
    .recommendation-table td,
    .toc-table th,
    .toc-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}