/* ============================================
   Terminal Tribune — Website Stylesheet
   Ink & Iron, Büro 404.
   Anno 1937 — Art Deco Newspaper Edition
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

/* --- Foto-Filter --- */
.tt-foto,
.tt-modal-bild {
    filter: grayscale(100%) contrast(1.28) brightness(1.06);
}

/* --- Foto-Wrapper mit Zeitungsdruck-Raster (Halftone) --- */
.tt-foto-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    line-height: 0;
}


/* --- Artikel-Seite: Sepia-Stimmung --- */
.artikel-seite .page-wrapper {
    background-color: #EDE0C4;
    filter: sepia(18%);
}

.artikel-seite .site-header a {
    display: contents !important;
}

.artikel-seite .site-header a:hover .header-logo {
    filter: sepia(30%) contrast(1.08);
    transition: filter 0.3s;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

:root {
    --brown: #5C3A1E;
    --brown-light: #7A5230;
    --brown-dark: #3E2510;
    --beige: #D9C9A8;
    --beige-light: #E8DCC4;
    --beige-dark: #C4B48E;
    --black: #1A1A1A;
    --cream: #FEFAE8;
    --paper: #FEFAE5;
    --yellow-news: #FDF6DC;
    --yellow-dark: #D6C78E;
    --gold: #B8963E;
    --gold-light: #D4B058;
    --ink: #2C1810;
}

body {
    font-family: 'Special Elite', monospace;
    background-color: #1E0F05;
    color: var(--ink);
    line-height: 1.6;
}

/* --- Paper texture overlay --- */
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--paper);
    min-height: 100vh;
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.9),
        0 0 120px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(92, 58, 30, 0.04);
    position: relative;
}

.page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(92, 58, 30, 0.04) 80px,
            rgba(92, 58, 30, 0.04) 81px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 200px,
            rgba(92, 58, 30, 0.02) 200px,
            rgba(92, 58, 30, 0.02) 201px
        );
    pointer-events: none;
    z-index: 1;
}

.page-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top left, rgba(92, 58, 30, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(92, 58, 30, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(92, 58, 30, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at bottom left, rgba(92, 58, 30, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

/* --- Header --- */
.site-header {
    background-color: var(--paper);
    padding: 24px 40px 0;
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 2;
}

.site-header::before,
.site-header::after {
    content: '';
    flex: 1;
    height: 8px;
    flex-shrink: 0;
    background:
        linear-gradient(to bottom,
            var(--gold) 0px, var(--gold) 2px,
            transparent 2px, transparent 3px,
            var(--brown) 3px, var(--brown) 5px,
            transparent 5px, transparent 6px,
            var(--gold) 6px, var(--gold) 8px
        );
}

/* Art Deco Zierleiste jetzt über der Nav (Seitenanfang) */
.site-nav::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background:
        linear-gradient(to bottom,
            var(--gold) 0px, var(--gold) 2px,
            transparent 2px, transparent 3px,
            var(--brown) 3px, var(--brown) 5px,
            transparent 5px, transparent 6px,
            var(--gold) 6px, var(--gold) 8px
        );
}


.header-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 30px 8px;
    border-top: 2px solid var(--brown);
    border-bottom: 1px solid var(--brown);
    margin-top: 5px;
    background-color: var(--paper);
}

.header-ornament {
    font-size: 0.6rem;
    letter-spacing: 6px;
    color: var(--gold);
    flex: 1;
}

.header-date {
    font-family: 'Special Elite', monospace;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--brown-light);
    text-align: right;
    white-space: nowrap;
    margin-left: 20px;
    padding-bottom: 0;
}


.header-logo {
    width: 62%;
    max-width: 860px;
    height: auto;
    display: block;
    margin: 0;
    flex-shrink: 0;
    filter: sepia(10%) contrast(1.05);
    -webkit-user-drag: none;
    user-select: none;
}

.header-tagline {
    font-family: 'Special Elite', monospace;
    font-size: 0.9rem;
    color: var(--brown);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}



/* --- Börsenticker --- */
.ticker-bar {
    background: #120802;
    border-bottom: 1px solid var(--gold);
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 26px;
    position: relative;
    z-index: 3;
}

.ticker-label {
    background: var(--gold);
    color: #120802;
    font-family: 'Special Elite', monospace;
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-right: 1px solid var(--brown-dark);
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 75s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    font-family: 'Special Elite', monospace;
    font-size: 0.62rem;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    padding: 0 18px;
    white-space: nowrap;
}

.ticker-up   { color: #8BC98E; }
.ticker-down { color: #D07878; }
.ticker-sep  { color: var(--brown-light); padding: 0 4px; }

/* --- Sticky Wrapper (Nav + Header) --- */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: var(--paper);
}

/* --- Burger-Button --- */
.nav-burger {
    display: none;
    background: none;
    border: none;
    border-right: 1px solid var(--brown-light);
    color: var(--beige);
    cursor: pointer;
    padding: 12px 18px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: background-color 0.2s;
}

.nav-burger:hover {
    background-color: var(--brown-dark);
}

.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--beige);
    transition: transform 0.2s, opacity 0.2s;
}

.site-nav.open .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav.open .nav-burger span:nth-child(2) {
    opacity: 0;
}

.site-nav.open .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Navigation --- */
.site-nav {
    background-color: var(--brown);
    padding: 0;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    gap: 0;
    flex-shrink: 0;
}

.site-nav a {
    display: block;
    padding: 12px 30px;
    color: var(--beige);
    text-decoration: none;
    font-family: 'Special Elite', monospace;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
    border-right: 1px solid var(--brown-light);
    flex-shrink: 0;
}

.site-nav a:hover,
.site-nav a.active {
    background-color: var(--brown-dark);
    color: var(--gold-light);
}

/* --- Sprach-Toggle in Nav --- */
.nav-lang-toggle {
    margin-left: auto;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.nav-lang-btn {
    background: none;
    border: none;
    border-left: 1px solid var(--brown-light);
    color: var(--beige);
    font-family: 'Special Elite', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 12px 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.nav-lang-btn:hover {
    background-color: var(--brown-dark);
}

.nav-lang-btn .lang-label {
    opacity: 0.4;
    transition: opacity 0.2s, color 0.2s;
}

.nav-lang-btn .lang-label.aktiv {
    opacity: 1;
    color: var(--gold-light);
}

.nav-lang-btn .lang-sep {
    color: var(--brown-light);
    opacity: 0.6;
    font-size: 0.65rem;
}

@media (max-width: 768px) {
    .nav-lang-toggle {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        border-left: none;
        border-top: 1px solid var(--brown-light);
    }

    .nav-lang-btn {
        border-left: none;
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.8rem;
        letter-spacing: 2px;
        min-height: 40px;
    }
}

/* --- Content Layout --- */
.content-layout {
    display: flex;
    position: relative;
    z-index: 2;
}

.main-content {
    flex: 1;
    padding: 40px;
    min-width: 0;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
}

.section-header::before,
.section-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 0;
    border-top: 2px solid var(--brown);
    border-bottom: 1px solid var(--brown);
    padding-top: 3px;
    transform: translateY(-50%);
}

.section-header::before { left: 0; }
.section-header::after { right: 0; }

.section-header h2 {
    font-family: 'Special Elite', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brown);
    display: inline-block;
    background-color: var(--paper);
    padding: 0 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
}

.section-header h2::after {
    content: '\2726 \2726 \2726';
    display: block;
    font-size: 0.5rem;
    letter-spacing: 6px;
    color: var(--gold);
    margin-top: 6px;
}

/* --- Featured Article --- */
.featured {
    margin-bottom: 50px;
}

.featured-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 3px double var(--brown);
    background-color: var(--yellow-news);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(62, 37, 16, 0.3);
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(92, 58, 30, 0.2);
    pointer-events: none;
    z-index: 3;
}

.featured-card img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(8%) saturate(0.95) contrast(1.02);
}

.featured-info {
    padding: 20px 25px;
    border-top: 2px solid var(--brown);
    position: relative;
}

.featured-info::before {
    content: '\25C6 \25C6 \25C6 \25C6 \25C6';
    display: block;
    text-align: center;
    font-size: 0.35rem;
    letter-spacing: 8px;
    color: var(--gold);
    margin: -10px 0 12px;
    position: relative;
    top: -4px;
}

.featured-info h3 {
    font-family: 'Special Elite', monospace;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 5px;
}

.featured-date {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--brown-light);
}

.featured-type {
    display: inline-block;
    font-family: 'Special Elite', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: var(--brown);
    color: var(--gold-light);
    padding: 3px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--gold);
}

/* --- Article Grid --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--beige-dark);
    background-color: var(--yellow-news);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(62, 37, 16, 0.2);
}

.article-card img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(8%) saturate(0.95) contrast(1.02);
}

.article-card .card-info {
    padding: 15px 18px;
    border-top: 1px solid var(--beige-dark);
}

.article-card .card-info h3 {
    font-family: 'Special Elite', monospace;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-date {
    font-style: italic;
    font-size: 0.8rem;
    color: var(--brown-light);
}

.card-type {
    display: inline-block;
    font-family: 'Special Elite', monospace;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background-color: var(--brown);
    color: var(--beige);
    padding: 2px 8px;
    margin-bottom: 6px;
}

/* --- Divider --- */
.divider {
    text-align: center;
    margin: 45px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 0;
    border-top: 1px solid var(--brown);
    border-bottom: 1px solid var(--brown);
    padding-top: 3px;
}

.divider span {
    position: relative;
    background-color: var(--paper);
    padding: 0 20px;
    font-family: 'Special Elite', monospace;
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 4px;
}

/* --- Artikel-Seite --- */
.artikel-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

.artikel-back {
    display: inline-block;
    font-family: 'Special Elite', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brown);
    text-decoration: none;
    border: 1px solid var(--brown);
    padding: 8px 18px;
    margin-bottom: 30px;
    transition: background-color 0.2s, color 0.2s;
}

.artikel-back:hover {
    background-color: var(--brown);
    color: var(--beige);
}

.share-btn {
    display: inline-block;
    font-family: 'Special Elite', monospace;
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding: 6px 16px;
    border: 1px solid var(--brown);
    text-decoration: none;
    cursor: pointer;
    background: #fff;
    color: var(--brown);
    transition: background 0.15s, color 0.15s;
}

.share-btn:hover {
    background: var(--brown);
    color: var(--beige);
}

.share-btn-x     { border-color: #1a1a1a; color: #1a1a1a; }
.share-btn-x:hover { background: #1a1a1a; color: #fff; }

.share-btn-reddit     { border-color: #ff4500; color: #ff4500; }
.share-btn-reddit:hover { background: #ff4500; color: #fff; }

.share-btn-copy { font-family: 'Special Elite', monospace; }

.artikel-type {
    display: block;
    font-family: 'Special Elite', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: var(--brown);
    color: var(--gold-light);
    padding: 3px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--gold);
    text-align: center;
}

.artikel-title {
    font-family: 'Special Elite', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 10px;
    text-align: center;
}

.artikel-meta {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--brown-light);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--brown);
    text-align: center;
}

.artikel-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px 0;
    filter: sepia(10%) saturate(0.9) contrast(1.05);
    border: 2px solid var(--beige-dark);
}

.artikel-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink);
}

.artikel-body p {
    margin-bottom: 1.4em;
    text-align: justify;
}

.artikel-body p:first-of-type::first-letter {
    font-family: 'Special Elite', monospace;
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    margin: 5px 8px 0 0;
    color: var(--brown);
}

/* --- Archiv-Seite --- */
.archiv-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    font-family: 'Special Elite', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: none;
    border: 1px solid var(--brown);
    color: var(--brown);
    padding: 6px 16px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--brown);
    color: var(--beige);
}

/* --- Impressum --- */
.impressum-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

.impressum-container h1 {
    font-family: 'Special Elite', monospace;
    font-size: 1.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--brown);
}

.impressum-container h2 {
    font-family: 'Special Elite', monospace;
    font-size: 1.1rem;
    color: var(--brown);
    margin: 25px 0 8px;
    letter-spacing: 2px;
}

.impressum-container p,
.impressum-container address {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink);
    font-style: normal;
    margin-bottom: 10px;
}

.impressum-container a {
    color: var(--brown);
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 35px 40px 30px;
    border-top: 2px solid var(--brown);
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, transparent 0%, rgba(214, 199, 142, 0.12) 100%);
}

.site-footer::before {
    content: '\2014\2014\2014 \2726 \2014\2014\2014 \2726 \2014\2014\2014 \2726 \2014\2014\2014';
    display: block;
    font-size: 0.5rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 20px;
    margin-top: -10px;
}

.site-footer::after {
    content: '';
    display: block;
    margin-top: 20px;
    height: 8px;
    background:
        linear-gradient(to bottom,
            var(--gold) 0px, var(--gold) 2px,
            transparent 2px, transparent 3px,
            var(--brown) 3px, var(--brown) 5px,
            transparent 5px, transparent 6px,
            var(--gold) 6px, var(--gold) 8px
        );
}

.footer-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    opacity: 0.8;
    filter: sepia(20%);
}

.footer-text {
    font-family: 'Special Elite', monospace;
    font-size: 0.8rem;
    color: var(--brown);
    letter-spacing: 3px;
}

.footer-quote {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--brown);
    margin-top: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* --- Social Follow Button (fixed unten rechts) --- */
.tt-social-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.tt-social-btn {
    width: 46px;
    height: 46px;
    background: var(--brown-dark);
    border: 1px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.tt-social-btn:hover {
    background: var(--brown);
    color: var(--gold-light);
}

.tt-social-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--brown-dark);
    border: 1px solid var(--gold);
    padding: 12px 10px;
    gap: 14px;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
}

.tt-social-wrap.open .tt-social-popup {
    display: flex;
}

.tt-social-popup a {
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    line-height: 1;
}

.tt-social-popup a:hover {
    color: var(--gold-light);
}

.tt-social-popup svg {
    display: block;
}

.tt-spende-btn {
    background: var(--brown-dark);
    border: none;
    border-left: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    width: 44px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Special Elite', monospace;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.tt-spende-btn:hover {
    background: var(--brown);
    color: var(--gold-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .content-layout {
        flex-direction: column;
    }

    .page-wrapper {
        margin: 0;
        box-shadow: none;
    }

    .site-header {
        padding: 14px 20px 0;
        gap: 16px;
    }

    .header-logo {
        width: 72%;
    }

    .sticky-top .header-logo {
        max-height: 52px;
        width: auto;
        margin: 0 auto;
    }

    .site-nav ul {
        flex-wrap: wrap;
    }

    .site-nav a {
        padding: 10px 18px;
        font-size: 0.75rem;
    }

    .main-content {
        padding: 25px 20px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .section-header::before,
    .section-header::after {
        width: 10%;
    }

    .section-header h2 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .featured {
        margin-bottom: 30px;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .divider {
        margin: 30px 0;
    }

    .site-footer {
        padding: 25px 20px 20px;
    }

    .artikel-title {
        font-size: 1.4rem;
    }

    .artikel-container {
        padding: 25px 15px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 12px 12px 0;
        gap: 10px;
    }

    .header-logo {
        width: 80%;
    }

    .nav-burger {
        display: flex;
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .site-nav ul {
        display: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .site-nav.open ul {
        display: flex;
    }

    .site-nav a {
        padding: 12px 20px;
        font-size: 0.75rem;
        letter-spacing: 1px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .main-content {
        padding: 20px 15px;
    }

    .section-header {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .section-header h2 {
        font-size: 1.1rem;
        letter-spacing: 1px;
        padding: 0 10px;
    }

    .section-header h2::after {
        font-size: 0.4rem;
        letter-spacing: 3px;
    }

    .section-header::before,
    .section-header::after {
        width: 5%;
    }

    .featured {
        margin-bottom: 25px;
    }

    .featured-info {
        padding: 15px;
    }

    .featured-info h3 {
        font-size: 1.1rem;
    }

    .featured-info::before {
        letter-spacing: 4px;
        font-size: 0.3rem;
    }

    .featured-type {
        font-size: 0.6rem;
        padding: 2px 8px;
    }

    .article-card .card-info {
        padding: 12px 14px;
    }

    .divider {
        margin: 25px 0;
    }

    .divider span {
        font-size: 0.75rem;
        padding: 0 12px;
    }

    .site-footer {
        padding: 20px 15px 15px;
    }

    .footer-logo {
        width: 60px;
    }

    .footer-text {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    .site-footer::before {
        letter-spacing: 1px;
        overflow: hidden;
        white-space: nowrap;
    }

    .site-footer::after {
        margin-top: 15px;
    }

    .artikel-title {
        font-size: 1.2rem;
    }

    .artikel-container {
        padding: 20px 10px;
    }

    .impressum-container {
        padding: 30px 15px;
    }

    .impressum-container h1 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 360px) {
    .section-header h2 {
        font-size: 1rem;
    }

    .featured-info h3 {
        font-size: 1rem;
    }

    .artikel-title {
        font-size: 1.1rem;
    }
}


/* --- Radio Button --- */
.tt-radio-btn {
    background: var(--brown-dark);
    border: none;
    border-left: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    width: 44px;
    padding: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
    position: relative;
    font-size: 1.1rem;
}

.tt-radio-btn:hover {
    background: var(--brown);
    color: var(--gold-light);
}

.tt-radio-btn.playing {
    color: var(--gold-light);
}

.tt-radio-btn.playing .tt-radio-note {
    animation: tt-radio-pulse 1.8s ease-in-out infinite;
}

@keyframes tt-radio-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}


/* ============================================
   Sidebar — Content Layout
   ============================================ */

.content-layout {
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

/* --- Newsfeed Sidebar --- */
.newsfeed-sidebar {
    width: 280px;
    flex-shrink: 0;
    border-left: 2px solid var(--gold);
    background-color: var(--brown-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-telegraph {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.sidebar-widget-header {
    display: block;
    width: 100%;
    background: var(--brown-dark);
    color: var(--gold-light);
    font-family: 'Special Elite', monospace;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    padding: 14px 16px;
    border: none;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid rgba(184, 150, 62, 0.3);
    cursor: pointer;
    transition: background 0.15s;
}

.sidebar-widget-header:hover {
    background: #120802;
    color: var(--gold);
}

.sidebar-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding: 10px 10px 6px;
}

.sidebar-panel.open {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--brown-light) transparent;
}

/* --- Feed Items --- */
.sidebar-feed-item {
    display: block;
    padding: 10px 12px;
    margin-bottom: 7px;
    background: var(--paper);
    border: 1px solid var(--beige-dark);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, border-color 0.15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.sidebar-feed-item:hover {
    background: var(--cream);
    border-color: var(--gold);
}

.sidebar-feed-kategorie {
    font-family: 'Special Elite', monospace;
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 3px;
}

.sidebar-feed-title {
    font-family: 'Special Elite', monospace;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 4px;
}

.sidebar-feed-date {
    font-size: 0.58rem;
    font-style: italic;
    color: var(--brown-light);
}

/* --- Responsive Sidebar --- */
@media (max-width: 900px) {
    .content-layout {
        flex-direction: column;
    }

    .newsfeed-sidebar {
        width: 100%;
        border-left: none;
        border-top: 2px solid var(--brown);
        position: static;
        max-height: none;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   SITE-VERSIONS-BADGE  (eingeführt ab v1.1 — Konvention, siehe CLAUDE.md)
   ----------------------------------------------------------------------
   PFLEGE: Bei JEDEM Release NUR die Nummer im `content:` unten anpassen,
   passend zu version.json / Git-Tag. Bewusst CSS-only (kein HTML/JS) →
   erscheint global auf allen Seiten, unabhängig vom HTML-Generator.
   Sitzt unter dem Social-Button (.tt-social-wrap, bottom:24/right:24).
   @phil: bitte beim Redesign (#267) beibehalten + weiterführen.
   ══════════════════════════════════════════════════════════════════════ */
body::after {
    content: "v1.2.0";                 /* ← bei jedem Release bumpen */
    position: fixed;
    right: 8px;
    bottom: 4px;
    z-index: 9998;
    padding: 2px 7px;
    font: 600 11px/1.3 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    letter-spacing: .04em;
    color: var(--brown, #6b4f3a);
    background: rgba(244, 238, 226, .82);
    border: 1px solid rgba(107, 79, 58, .35);
    border-radius: 3px;
    pointer-events: none;              /* nie klickbar, stört keine UI */
    opacity: .55;
}
@media print { body::after { content: none; } }
