/* --- DESIGN VARIABLES --- */
:root {
    --bg-color: #000000;
    --card-bg: #111111;
    --primary-neon: #00f2ff;
    --accent-purple: #681188;
    --text-main: #ffffff;
    --text-dim: #bbbbbb;
}

html {
    overflow-x: hidden;
    width: 100%;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    hyphens: auto;
}

/* Header */
.header-main {
    max-width: 1100px;
    margin: 40px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.header-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-purple);
}

.header-slogan {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: bold;
    margin: 0;
    color: var(--primary-neon);
}

/* Navigation */
.nav-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-nav {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    background: var(--accent-purple);
    font-weight: bold;
    transition: transform 0.3s, filter 0.3s;
    cursor: pointer;
}

.btn-nav:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Sections */
section {
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

h2 {
    color: var(--accent-purple);
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent-purple);
    display: inline-block;
    padding-bottom: 5px;
}

/* Content boxes */
.content-box {
    background: linear-gradient(145deg, #161b22, #21262d);
    border-left: 5px solid var(--primary-neon);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    height: 150px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.content-box:hover {
    border-left-color: var(--primary-neon);
}

/* Thumbnails (podcast, artikel, steckbrief only — not the news image) */
.podcast-thumbnail {
    width: 100px;
    height: 100px;
    min-width: 100px;
    max-width: 100px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
}

/* Artikel title + teaser inline */
.artikel {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px;
    min-width: 0; /* allow flex child to shrink below content size */
    overflow: hidden;
}

/* Action hint */
.action-hint {
    color: var(--text-main);
    font-weight: bold;
    flex: 0 0 auto;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: right;
}

/* Artikel link wrapper */
.artikel-link {
    text-decoration: none;
    display: block;
}

/* External link indicator on artikel cards */
.external-link-icon {
    color: var(--text-dim);
    font-size: 0.7rem;
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Carousel controls */
.nav-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.arrow {
    color: var(--primary-neon);
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s;
}

.arrow:hover {
    color: var(--accent-purple);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    overflow-y: auto;
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 30px;
    max-width: 750px;
    border-radius: 20px;
    border: 1px solid #333;
}

.modal-with-comments {
    min-height: 82vh;
}

.close-btn {
    background: var(--accent-purple);
    color: white;
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 25px;
    display: block;
    font-weight: bold;
}

/* Footer */
.footer-main {
    background: #050505;
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 60px;
}

.footer-socials a {
    color: var(--text-dim);
    font-size: 2rem;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--primary-neon);
}

.footer-nav {
    margin: 25px 0;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    margin: 0 15px;
}

.footer-nav a:hover {
    color: white;
}

/* Card titles (neon h3 inside content boxes) */
.card-title {
    color: var(--primary-neon);
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* News box — column layout so the news image sits below the text */
.news-box {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(145deg, #21262d, #2d333b);
    border-radius: 10px;
    margin-bottom: 20px;
    height: auto;
    overflow: visible;
    cursor: auto;
}

/* News image — auto width, capped height, centered */
.news-picture-centered {
    display: block;
    margin: 20px auto 10px;
    align-self: center;
    width: auto;
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px;
    border: 2px solid var(--accent-purple);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Modal content helpers */
.modal-audio {
    width: 100%;
    margin: 15px 0;
}

.modal-link {
    color: var(--primary-neon);
}

/* Cusdis comments thread */
#cusdis_thread {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

#cusdis_thread iframe {
    width: 100%;
    min-height: 400px;
}

/* --- TABLET & MOBILE (≤768px) --- */
@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        padding: 20px;
    }

    .modal-with-comments {
        min-height: 90vh;
    }

    .news-picture-centered {
        max-width: 90%;
        margin: 15px auto;
    }

    /* Card: image stays left, text area right — but no fixed height */
    .content-box {
        height: auto;
        padding: 15px;
        gap: 15px;
        align-items: flex-start;
        overflow: visible;
    }

    .podcast-thumbnail {
        width: 80px;
        height: 80px;
        min-width: 80px;
        max-width: 80px;
        flex-shrink: 0;
    }

    /* Text area: title above action-hint (column), fills remaining width */
    .artikel {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 6px;
        width: 100%;
        overflow: visible;
    }

    .card-title {
        font-size: 1rem;
        width: 100%;
    }

    .action-hint {
        white-space: normal;
        text-align: left;
        font-size: 0.75rem;
    }
}

/* --- SMALL PHONES (≤420px) — tighter thumbnail --- */
@media (max-width: 420px) {
    .podcast-thumbnail {
        width: 60px;
        height: 60px;
        min-width: 60px;
        max-width: 60px;
    }
}

/* --- Static detail pages (podcast episodes, profile, legal pages) --- */
.detail-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
}

.detail-page a {
    color: var(--primary-neon);
}
