/**
 * T26 Frontend Basis-Stylesheet - T26 Web-Ökosystem
 * @author      Thodde26 (Thorsten)
 * @version     1.0.0
 * @link        https://www.thodde26.de
 * @file        frontend.css
 * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License v3.0
 */

/* 0. 100 % Lokale, DSGVO-konforme Webfonts (Regel 10 & Punkt 9) */
@font-face {
    font-family: "T26 Readable Sans";
    src: local("Bitstream Vera Sans"),
         local("DejaVu Sans"),
         url("../fonts/t26_vera_sans_regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "T26 Readable Sans";
    src: local("Bitstream Vera Sans Bold"),
         local("DejaVu Sans Bold"),
         url("../fonts/t26_vera_sans_bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "T26 Readable Mono";
    src: local("Bitstream Vera Sans Mono"),
         local("DejaVu Sans Mono"),
         url("../fonts/t26_vera_mono_regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "T26 Readable Mono";
    src: local("Bitstream Vera Sans Mono Bold"),
         local("DejaVu Sans Mono Bold"),
         url("../fonts/t26_vera_mono_bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Globale Layout-, Typografie- & Abstands-Variablen (Regel 8) */
    --t26-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "T26 Readable Sans", "Helvetica Neue", Arial, sans-serif;
    --t26-font-readable: "T26 Readable Sans", Verdana, Tahoma, sans-serif;
    --t26-font-mono: "T26 Readable Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    --t26-container-max: 1200px;
    --t26-radius-sm: 0.375rem;
    --t26-radius-md: 0.75rem;
    --t26-radius-lg: 1rem;
    --t26-space-xs: 0.5rem;
    --t26-space-sm: 1rem;
    --t26-space-md: 1.5rem;
    --t26-space-lg: 2.5rem;
    --t26-space-xl: 4rem;
    --t26-transition: 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 9.5rem;
    font-size: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body.t26-body {
    font-family: var(--t26-font-sans);
    background-color: var(--t26-bg-body);
    color: var(--t26-text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Barrierefreiheit: Tastatur-Fokus (Regel 11) */
:focus-visible {
    outline: 3px solid var(--t26-focus-ring);
    outline-offset: 3px;
}

/* Barrierefreiheit: Skip-Link (Regel 11) */
.t26-skip-link {
    position: absolute;
    top: -100px;
    left: var(--t26-space-sm);
    background-color: var(--t26-primary);
    color: var(--t26-text-inverse);
    padding: var(--t26-space-xs) var(--t26-space-sm);
    border-radius: var(--t26-radius-sm);
    font-weight: 700;
    text-decoration: none;
    z-index: 9999;
    transition: top var(--t26-transition);
}

.t26-skip-link:focus-visible {
    top: var(--t26-space-sm);
}

/* Container */
.t26-container {
    width: 100%;
    max-width: var(--t26-container-max);
    margin-inline: auto;
    padding-inline: var(--t26-space-md);
}

/* Zentrale Projekt-/Domain-Toolbar oben (Regel 3) */
.t26-toolbar {
    background-color: var(--t26-bg-toolbar);
    border-bottom: 1px solid var(--t26-border);
    padding-block: var(--t26-space-xs);
    font-size: 0.875rem;
    position: sticky;
    top: 0;
    z-index: 200;
}

/* 1. Eleganter Scroll-Fortschrittsbalken (Reading Indicator) */
.t26-scroll-progress {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    pointer-events: none;
    z-index: 201;
    overflow: hidden;
}

.t26-scroll-progress__bar {
    height: 100%;
    width: var(--t26-scroll-percent, 0%);
    background: var(--t26-accent);
    box-shadow: 0 0 8px var(--t26-accent);
    transition: width 0.08s linear;
}

@media (prefers-reduced-motion: reduce) {
    .t26-scroll-progress__bar {
        transition: none !important;
    }
}

.t26-toolbar .t26-container {
    max-width: 1440px;
}

.t26-toolbar__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--t26-space-xs);
}

.t26-toolbar__projects,
.t26-toolbar__controls {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--t26-space-xs);
    list-style: none;
}

@media (max-width: 1150px) {
    .t26-toolbar__badge-item {
        display: none;
    }
}

.t26-toolbar__badge {
    font-weight: 700;
    color: var(--t26-accent);
    margin-right: var(--t26-space-xs);
}

.t26-toolbar__divider {
    color: var(--t26-border);
    padding-inline: 0.15rem;
    user-select: none;
}

.t26-toolbar__link {
    color: var(--t26-text-muted);
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border-radius: var(--t26-radius-sm);
    border: 1px solid transparent;
    transition: all var(--t26-transition);
}

.t26-toolbar__link:hover,
.t26-toolbar__link--active {
    color: var(--t26-text-main);
    background-color: var(--t26-bg-card);
    border-color: var(--t26-border);
}

/* Pulldown-Menüs (Multisite & Theme-Switcher in der Toolbar) */
.t26-dropdown {
    position: relative;
}

.t26-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--t26-text-main);
    background-color: var(--t26-bg-surface);
    border: 1px solid var(--t26-border);
    padding: 0.3rem 0.7rem;
    border-radius: var(--t26-radius-sm);
    cursor: pointer;
    transition: all var(--t26-transition);
}

.t26-dropdown__toggle:hover,
.t26-dropdown__toggle--active,
.t26-dropdown.t26-dropdown--open .t26-dropdown__toggle {
    border-color: var(--t26-primary);
    color: var(--t26-primary);
    background-color: var(--t26-bg-card);
}

.t26-dropdown__caret {
    font-size: 0.75rem;
    transition: transform var(--t26-transition);
}

.t26-dropdown.t26-dropdown--open .t26-dropdown__caret {
    transform: rotate(180deg);
}

.t26-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 220px;
    background-color: var(--t26-bg-surface);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-sm);
    box-shadow: var(--t26-shadow-card);
    padding: 0.35rem;
    list-style: none;
    display: none;
    z-index: 500;
}

.t26-dropdown__menu--right {
    left: auto;
    right: 0;
    min-width: 175px;
}

.t26-dropdown__menu--a11y {
    min-width: 260px;
}

.t26-dropdown.t26-dropdown--open .t26-dropdown__menu {
    display: block;
}

.t26-dropdown__item,
.t26-dropdown__btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--t26-text-main);
    text-decoration: none;
    padding: 0.45rem 0.65rem;
    border-radius: var(--t26-radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--t26-transition), color var(--t26-transition);
}

.t26-dropdown__item:hover,
.t26-dropdown__item--active,
.t26-dropdown__btn:hover,
.t26-dropdown__btn--active {
    background-color: var(--t26-bg-card);
    color: var(--t26-primary);
    font-weight: 700;
}

/* Dark / Light Mode 1-Klick-Toggle-Button in der Toolbar */
.t26-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--t26-text-inverse);
    background-color: var(--t26-primary);
    border: 1px solid var(--t26-primary);
    padding: 0.3rem 0.75rem;
    border-radius: var(--t26-radius-sm);
    text-decoration: none;
    transition: all var(--t26-transition);
}

.t26-mode-btn:hover {
    background-color: var(--t26-primary-hover);
    border-color: var(--t26-primary-hover);
    color: var(--t26-text-inverse);
}

/* Hauptnavigation (Mobile-First mit Burger-Menü ab < 920px) */
.t26-nav {
    background-color: var(--t26-bg-surface);
    border-bottom: 1px solid var(--t26-border);
    position: sticky;
    top: var(--t26-toolbar-height, 45px);
    z-index: 100;
}

.t26-nav__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--t26-space-sm);
    gap: var(--t26-space-sm);
}

.t26-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--t26-space-xs);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--t26-text-main);
    text-decoration: none;
}

.t26-nav__logo {
    height: 56px;
    width: auto;
    border-radius: var(--t26-radius-sm);
    display: block;
}

.t26-nav__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--t26-bg-card);
    color: var(--t26-primary);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-sm);
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--t26-transition);
}

.t26-nav__burger:hover,
.t26-nav__burger[aria-expanded="true"] {
    background-color: var(--t26-primary);
    color: var(--t26-text-inverse);
    border-color: var(--t26-primary);
}

.t26-nav__list {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.35rem;
    list-style: none;
    padding-top: var(--t26-space-xs);
    border-top: 1px solid var(--t26-border);
}

.t26-nav__list.t26-nav__list--open {
    display: flex;
}

@media (min-width: 920px) {
    .t26-nav__burger {
        display: none;
    }

    .t26-nav__list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
        gap: var(--t26-space-xs);
        padding-top: 0;
        border-top: none;
    }
}

.t26-nav__link {
    display: block;
    color: var(--t26-text-main);
    text-decoration: none;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: var(--t26-radius-sm);
    transition: background-color var(--t26-transition), color var(--t26-transition);
}

.t26-nav__link:hover {
    background-color: var(--t26-bg-card);
    color: var(--t26-primary);
}

/* Hero-Bereich */
.t26-hero {
    padding-block: var(--t26-space-xl);
    background-color: var(--t26-bg-surface);
    border-bottom: 1px solid var(--t26-border);
}

.t26-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--t26-space-lg);
    align-items: center;
}

@media (min-width: 768px) {
    .t26-hero__grid {
        grid-template-columns: 1.3fr 0.7fr;
    }
}

.t26-hero__badge {
    display: inline-block;
    background-color: var(--t26-bg-card);
    color: var(--t26-primary);
    border: 1px solid var(--t26-border);
    padding: 0.25rem 0.75rem;
    border-radius: var(--t26-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--t26-space-sm);
}

.t26-hero__title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: var(--t26-space-sm);
}

.t26-hero__subtitle {
    color: var(--t26-text-muted);
    font-size: 1.125rem;
    margin-bottom: var(--t26-space-md);
}

.t26-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t26-space-sm);
}

.t26-hero__media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--t26-space-xs);
}

.t26-hero__image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: var(--t26-radius-lg);
    box-shadow: var(--t26-shadow-card);
    border: 2px solid var(--t26-primary);
    animation: t26-float 5s ease-in-out infinite;
    transition: transform var(--t26-transition), border-color var(--t26-transition);
}

.t26-hero__image:hover {
    transform: scale(1.03);
    border-color: var(--t26-accent);
}

@keyframes t26-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.t26-hero__caption {
    font-size: 0.775rem;
    color: var(--t26-text-muted);
    text-align: center;
}

/* Buttons (Regel 8) */
.t26-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--t26-radius-sm);
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--t26-border);
    background-color: var(--t26-bg-card);
    color: var(--t26-text-main);
    position: relative;
    overflow: hidden;
    transition: all var(--t26-transition);
}

.t26-btn:hover {
    border-color: var(--t26-primary);
    color: var(--t26-primary);
    transform: translateY(-2px);
    box-shadow: var(--t26-shadow-card);
}

.t26-btn--primary {
    background-color: var(--t26-primary);
    color: var(--t26-text-inverse);
    border-color: var(--t26-primary);
}

.t26-btn--primary:hover {
    background-color: var(--t26-primary-hover);
    border-color: var(--t26-primary-hover);
    color: var(--t26-text-inverse);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18), 0 0 16px var(--t26-primary);
}

.t26-btn--danger {
    background-color: var(--t26-danger-bg);
    color: var(--t26-danger-text);
    border-color: var(--t26-danger-text);
}

.t26-btn--danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

/* 4. Sanfter Pure-CSS Klick-Ripple auf allen Buttons */
.t26-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, transparent 10.01%);
    background-position: center;
    transform: translate(-50%, -50%) scale(10, 10);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
    pointer-events: none;
}

.t26-btn:active::after {
    transform: translate(-50%, -50%) scale(0, 0);
    opacity: 0.45;
    transition: 0s;
}

@media (prefers-reduced-motion: reduce) {
    .t26-btn:hover,
    .t26-btn--primary:hover,
    .t26-btn--danger:hover {
        transform: none !important;
    }
    .t26-btn::after {
        display: none !important;
    }
}

/* Hauptinhalt & One-Pager Sektionen */
.t26-main {
    flex: 1;
}

.t26-section {
    padding-block: var(--t26-space-xl);
    border-bottom: 1px solid var(--t26-border);
}

.t26-section__title {
    font-size: 1.75rem;
    margin-bottom: var(--t26-space-md);
}

.t26-card {
    background-color: var(--t26-bg-card);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-md);
    padding: var(--t26-space-md);
    box-shadow: var(--t26-shadow-card);
}

.t26-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--t26-space-md);
    align-items: center;
}

@media (min-width: 768px) {
    .t26-about-grid {
        grid-template-columns: 180px 1fr;
    }
}

.t26-about__portrait {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--t26-primary);
}

.t26-about__paragraph {
    margin-bottom: var(--t26-space-sm);
}

.t26-section__subtitle {
    color: var(--t26-text-muted);
    margin-bottom: var(--t26-space-md);
}

/* Social Media Grid (Alle 14 runden Vektor-Icons mittig in 1 Reihe nebeneinander) */
.t26-social-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-block: var(--t26-space-xs);
}

.t26-social-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--t26-bg-card);
    border: 2px solid var(--t26-primary);
    color: var(--t26-primary);
    text-decoration: none;
    box-shadow: var(--t26-shadow-card);
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.t26-social-card:hover {
    background-color: var(--t26-primary);
    color: var(--t26-text-inverse);
    border-color: var(--t26-accent);
    transform: translateY(-4px) scale(1.1);
}

.t26-social-card__svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Projekt- & Domain-Grid (Multisite-Karten & Fortschrittsbalken) */
.t26-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--t26-space-md);
}

.t26-project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--t26-space-sm);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.t26-project-card:hover {
    transform: translateY(-4px);
    border-color: var(--t26-primary);
}

.t26-project-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--t26-space-xs);
}

.t26-project-card__header .t26-hero__badge {
    margin-bottom: 0;
}

/* 5. News-Metadaten & 1-Klick Teilen-Button (t26_news) */
.t26-news__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--t26-space-xs);
}

.t26-news__share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid var(--t26-border);
    color: var(--t26-text-muted);
    padding: 0.25rem 0.6rem;
    border-radius: var(--t26-radius-sm);
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t26-transition);
}

.t26-news__share-btn:hover {
    border-color: var(--t26-primary);
    color: var(--t26-primary);
    background-color: var(--t26-bg-surface);
    transform: translateY(-1px);
}

.t26-news__share-btn:focus-visible {
    outline: 2px solid var(--t26-primary);
    outline-offset: 2px;
}

.t26-news__share-btn--copied {
    border-color: #10b981 !important;
    color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .t26-news__share-btn:hover,
    .t26-news__share-btn--copied {
        transform: none !important;
    }
}

.t26-progress-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--t26-accent);
}

.t26-progress-meter {
    width: 100%;
    height: 0.75rem;
    accent-color: var(--t26-primary);
}

.t26-project-card__title {
    font-size: 1.25rem;
    line-height: 1.3;
}

.t26-project-card__desc {
    color: var(--t26-text-muted);
    flex: 1;
}

.t26-project-card__actions {
    margin-top: var(--t26-space-xs);
}

/* Support- & Spenden-Modul (t26_support) */
.t26-support-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: var(--t26-space-sm);
    background-color: var(--t26-bg-surface);
    border: 1px solid var(--t26-border);
    border-left: 4px solid var(--t26-primary);
    border-radius: var(--t26-radius-sm);
    padding: var(--t26-space-sm) var(--t26-space-md);
    margin-bottom: var(--t26-space-lg);
    box-shadow: var(--t26-shadow);
}

.t26-support-disclaimer__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.t26-support-disclaimer__content {
    flex: 1;
}

.t26-support-disclaimer__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--t26-text-main);
    margin-bottom: 0.2rem;
}

.t26-support-disclaimer__text {
    font-size: 0.875rem;
    color: var(--t26-text-muted);
    line-height: 1.55;
    margin: 0;
}

.t26-news-source {
    font-size: 0.85rem;
    color: var(--t26-text-muted);
    border-top: 1px solid var(--t26-border);
    padding-top: var(--t26-space-xs);
}

/* Sektions-Header, Inline-Admin-Panels & Streaming-Plan-Tabelle (t26_news & t26_streamplan) */
.t26-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--t26-space-sm);
    margin-bottom: var(--t26-space-md);
}

.t26-section-header .t26-section__title {
    margin-bottom: 0.25rem;
}

.t26-section-header .t26-section__subtitle {
    margin-bottom: 0;
}

.t26-admin-panel {
    margin-bottom: var(--t26-space-md);
    border: 2px solid var(--t26-primary);
}

.t26-admin-panel .t26-project-card__title {
    margin-bottom: var(--t26-space-xs);
}

.t26-stream-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--t26-space-sm);
}

@media (min-width: 768px) {
    .t26-stream-form-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }
}

.t26-stream-paused-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--t26-space-sm);
    margin-bottom: var(--t26-space-md);
    border: 2px solid var(--t26-accent);
}

.t26-table-wrapper {
    overflow-x: auto;
    padding: 0;
}

.t26-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.t26-table th,
.t26-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--t26-border);
    vertical-align: middle;
}

.t26-table th {
    background-color: var(--t26-bg-surface);
    color: var(--t26-primary);
    font-weight: 700;
    white-space: nowrap;
}

.t26-table tbody tr:last-child td {
    border-bottom: none;
}

.t26-table tbody tr:hover {
    background-color: var(--t26-bg-surface);
}

.t26-table__nowrap {
    white-space: nowrap;
}

/* 7-Tage-Wochenkalender & Wochentags-Auswahl (t26_streamplan) */
.t26-calendar-subheading {
    font-size: 1.15rem;
    margin-bottom: var(--t26-space-sm);
    color: var(--t26-text-main);
}

.t26-weekdays-picker {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t26-space-xs);
}

.t26-weekday-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background-color: var(--t26-bg-surface);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t26-transition);
}

.t26-weekday-chip:hover {
    border-color: var(--t26-primary);
}

.t26-week-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--t26-space-sm);
    margin-bottom: var(--t26-space-md);
}

.t26-day-col {
    display: flex;
    flex-direction: column;
    gap: var(--t26-space-xs);
    padding: var(--t26-space-sm);
}

.t26-day-col--today {
    border: 2px solid var(--t26-primary);
    background-color: var(--t26-bg-surface);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12), 0 0 16px var(--t26-primary-hover);
}

/* 3. Live-Status Radar-Puls im Streaming-Plan (t26_streamplan) */
.t26-streamplan__today-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.t26-streamplan__pulse {
    display: inline-flex;
    position: relative;
    width: 9px;
    height: 9px;
    align-items: center;
    justify-content: center;
}

.t26-streamplan__pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--t26-accent);
    box-shadow: 0 0 6px var(--t26-accent);
}

.t26-streamplan__pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--t26-accent);
    transform: translate(-50%, -50%);
    animation: t26-radar-pulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    pointer-events: none;
}

@keyframes t26-radar-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(2.4);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.7);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t26-streamplan__pulse-ring {
        animation: none !important;
        display: none !important;
    }
}

.t26-day-col__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    border-bottom: 1px solid var(--t26-border);
    padding-bottom: 0.4rem;
}

.t26-day-col__header .t26-hero__badge {
    margin-bottom: 0;
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
}

.t26-day-col__name {
    display: block;
    font-size: 1rem;
    color: var(--t26-primary);
}

.t26-day-col__date {
    font-size: 0.8rem;
    color: var(--t26-text-muted);
}

.t26-day-col__body {
    display: flex;
    flex-direction: column;
    gap: var(--t26-space-xs);
    flex: 1;
}

.t26-stream-slot {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0.65rem;
    background-color: var(--t26-bg-surface);
    border-left: 3px solid var(--t26-primary);
    border-radius: var(--t26-radius-sm);
}

.t26-stream-slot__time {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--t26-accent);
}

.t26-stream-slot__title {
    font-size: 0.92rem;
    line-height: 1.3;
}

.t26-stream-slot__desc {
    font-size: 0.8rem;
    color: var(--t26-text-muted);
}

.t26-day-col__empty {
    font-size: 0.85rem;
    color: var(--t26-text-muted);
    font-style: italic;
    padding-block: 0.5rem;
}

/* Streaming-Kanäle & Multi-Plattform Badges (Twitch, YouTube, TikTok) */
.t26-stream-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--t26-space-sm);
    margin-bottom: var(--t26-space-sm);
}

.t26-stream-channels-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--t26-space-xs);
}

.t26-stream-channels-bar__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--t26-text-muted);
}

.t26-stream-channels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--t26-space-xs);
}

/* Spezifische Live-Kanal Buttons */
.t26-btn--sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.t26-btn--twitch {
    background-color: #9146ff;
    color: #ffffff !important;
    border-color: #9146ff;
}

.t26-btn--twitch:hover {
    background-color: #772ce8;
    border-color: #772ce8;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.4);
    transform: translateY(-2px);
}

.t26-btn--youtube {
    background-color: #ff0000;
    color: #ffffff !important;
    border-color: #ff0000;
}

.t26-btn--youtube:hover {
    background-color: #cc0000;
    border-color: #cc0000;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

.t26-btn--tiktok {
    background-color: #111827;
    color: #ffffff !important;
    border-color: #374151;
}

.t26-btn--tiktok:hover {
    background-color: #000000;
    border-color: #fe2c55;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.4);
    transform: translateY(-2px);
}

/* Plattform-Badges im Kalender & in der Tabelle */
.t26-stream-slot__platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.t26-platform-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--t26-radius-sm);
    text-decoration: none;
    transition: all var(--t26-transition);
}

.t26-platform-badge:hover {
    transform: translateY(-1px) scale(1.04);
}

.t26-platform-badge--twitch {
    background-color: rgba(145, 70, 255, 0.14);
    color: #a970ff;
    border: 1px solid rgba(145, 70, 255, 0.4);
}

.t26-platform-badge--twitch:hover {
    background-color: rgba(145, 70, 255, 0.28);
    border-color: #9146ff;
}

.t26-platform-badge--youtube {
    background-color: rgba(255, 0, 0, 0.12);
    color: #ff4d4d;
    border: 1px solid rgba(255, 0, 0, 0.35);
}

.t26-platform-badge--youtube:hover {
    background-color: rgba(255, 0, 0, 0.25);
    border-color: #ff0000;
}

.t26-platform-badge--tiktok {
    background-color: rgba(254, 44, 85, 0.12);
    color: #fe2c55;
    border: 1px solid rgba(254, 44, 85, 0.35);
}

.t26-platform-badge--tiktok:hover {
    background-color: rgba(254, 44, 85, 0.25);
    border-color: #fe2c55;
}

@media (prefers-reduced-motion: reduce) {
    .t26-btn--twitch:hover,
    .t26-btn--youtube:hover,
    .t26-btn--tiktok:hover,
    .t26-platform-badge:hover {
        transform: none !important;
    }
}

/* Rechtstexte-Plugin & Online-Editor (t26_legal) */
.t26-legal-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--t26-space-sm);
    margin-bottom: var(--t26-space-md);
}

.t26-legal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t26-space-xs);
    margin-bottom: var(--t26-space-md);
    padding: var(--t26-space-xs);
    background-color: var(--t26-bg-card);
    border: 1px solid var(--t26-border-color);
    border-radius: var(--t26-radius-md);
}

.t26-legal-content {
    line-height: 1.75;
    margin-bottom: var(--t26-space-md);
}

.t26-link--legal {
    color: var(--t26-primary);
    text-decoration: underline;
    font-weight: 600;
}

.t26-link--legal:hover {
    color: var(--t26-primary-hover);
}

.t26-anchor-target {
    scroll-margin-top: calc(var(--t26-toolbar-height, 4rem) + 1.5rem);
    display: inline-block;
}

.t26-legal-meta {
    font-size: 0.85rem;
    color: var(--t26-text-muted);
    border-top: 1px solid var(--t26-border);
    padding-top: var(--t26-space-xs);
}

.t26-form {
    display: flex;
    flex-direction: column;
    gap: var(--t26-space-md);
}

.t26-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.t26-form__label {
    font-weight: 700;
}

.t26-form__input,
.t26-form__textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--t26-text-main);
    background-color: var(--t26-bg-surface);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-sm);
    padding: 0.65rem 0.85rem;
}

.t26-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t26-space-sm);
}

/* 2. Schwebender Back-to-Top-Button unten rechts (Regel 8 & 11) */
.t26-back-to-top {
    position: fixed;
    bottom: var(--t26-space-md);
    right: var(--t26-space-md);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--t26-bg-card);
    color: var(--t26-primary);
    border: 2px solid var(--t26-primary);
    font-size: 1.35rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.85);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0.3s,
                background-color var(--t26-transition),
                color var(--t26-transition),
                box-shadow var(--t26-transition);
}

.t26-back-to-top.t26-back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.t26-back-to-top:hover {
    background-color: var(--t26-primary);
    color: var(--t26-text-inverse);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22), 0 0 16px var(--t26-primary);
}

.t26-back-to-top:focus-visible {
    outline: 3px solid var(--t26-primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .t26-back-to-top {
        transition: opacity 0.2s ease, visibility 0.2s;
        transform: none !important;
    }
    .t26-back-to-top:hover {
        transform: none !important;
    }
}

/* Systemmeldungen (Regel 8) */
.t26-alert-success,
.t26-alert-danger,
.t26-alert-info {
    padding: var(--t26-space-sm);
    border-radius: var(--t26-radius-sm);
    margin-top: var(--t26-space-sm);
    font-weight: 600;
}

.t26-alert-success {
    background-color: var(--t26-success-bg);
    color: var(--t26-success-text);
}

.t26-alert-danger {
    background-color: var(--t26-danger-bg);
    color: var(--t26-danger-text);
}

.t26-alert-info {
    background-color: var(--t26-info-bg);
    color: var(--t26-info-text);
}

/* Footer */
.t26-footer {
    background-color: var(--t26-bg-surface);
    padding-block: var(--t26-space-lg);
    font-size: 0.9rem;
    color: var(--t26-text-muted);
}

.t26-footer__inner {
    display: flex;
    flex-direction: column;
    gap: var(--t26-space-sm);
}

.t26-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t26-space-sm);
    list-style: none;
}

.t26-footer__link {
    color: var(--t26-primary);
    text-decoration: none;
}

.t26-footer__link:hover {
    text-decoration: underline;
}

.t26-footer__cookie-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--t26-primary);
    cursor: pointer;
}

.t26-footer__cookie-btn:hover {
    text-decoration: underline;
}

/* Cookie-Consent-Modul (t26_cookie_consent) */
.t26-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--t26-bg-surface);
    border-top: 2px solid var(--t26-primary);
    box-shadow: var(--t26-shadow-card);
    padding-block: var(--t26-space-sm);
    z-index: 950;
    display: none;
}

.t26-cookie-notice.t26-cookie-notice--visible {
    display: block;
}

.t26-cookie-notice__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--t26-space-sm);
}

.t26-cookie-notice__text {
    flex: 1 1 320px;
    color: var(--t26-text-main);
    font-size: 0.925rem;
}

.t26-cookie-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t26-space-xs);
}

.t26-cookie-modal {
    position: fixed;
    inset: 0;
    background-color: var(--t26-bg-toolbar);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--t26-space-md);
    z-index: 1000;
}

.t26-cookie-modal.t26-cookie-modal--open {
    display: flex;
}

.t26-cookie-modal__box {
    width: 100%;
    max-width: 540px;
    border: 2px solid var(--t26-primary);
}

.t26-cookie-modal__desc {
    color: var(--t26-text-muted);
    margin-bottom: var(--t26-space-md);
}

.t26-cookie-modal__options {
    display: flex;
    flex-direction: column;
    gap: var(--t26-space-xs);
    margin-bottom: var(--t26-space-md);
}

.t26-cookie-option {
    display: flex;
    align-items: center;
    gap: var(--t26-space-xs);
    padding: 0.65rem 0.85rem;
    background-color: var(--t26-bg-surface);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-sm);
    cursor: pointer;
    color: var(--t26-text-main);
    font-weight: 600;
}

.t26-cookie-option__checkbox {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--t26-primary);
}

.t26-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t26-space-xs);
}

.t26-cookie-toast {
    position: fixed;
    bottom: var(--t26-space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    box-shadow: var(--t26-shadow-card);
    border: 1px solid var(--t26-border);
    display: none;
}

.t26-cookie-toast.t26-cookie-toast--visible {
    display: block;
}

/* Kontaktformular & 5-Stufen T26-Shield Spamschutz (t26_contact) */
.t26-contact-alert {
    margin-bottom: var(--t26-space-md);
}

.t26-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.t26-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--t26-space-md);
}

@media (min-width: 768px) {
    .t26-contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.t26-shield-box {
    display: flex;
    flex-direction: column;
    gap: var(--t26-space-sm);
    padding: var(--t26-space-sm) var(--t26-space-md);
    background-color: var(--t26-bg-surface);
    border: 1px solid var(--t26-primary);
    border-radius: var(--t26-radius-sm);
}

.t26-shield-box__title {
    font-weight: 700;
    color: var(--t26-primary);
    font-size: 0.95rem;
}

.t26-shield-box__math {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--t26-space-sm);
}

.t26-shield-box__equation {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: var(--t26-bg-card);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-sm);
    color: var(--t26-accent);
    font-weight: 800;
}

.t26-shield-box__input {
    width: 110px;
    font-weight: 700;
}

/* Barrierefreiheits-Modi (gesteuert über das Toolbar-Menü, Regel 11) */
html.t26-a11y-font-lg {
    font-size: 115%;
}

html.t26-a11y-font-xl {
    font-size: 130%;
}

html.t26-a11y-spacing body.t26-body {
    line-height: 2;
    letter-spacing: 0.04em;
    word-spacing: 0.08em;
}

html.t26-a11y-underline a {
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

html.t26-a11y-contrast {
    filter: contrast(125%);
}

html.t26-a11y-no-motion,
html.t26-a11y-no-motion *,
html.t26-a11y-no-motion *::before,
html.t26-a11y-no-motion *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* T26 Signature Scroll-Reveal-Animationen */
.t26-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.t26-reveal.t26-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* 18. Wartungsarbeiten-Karte & Live-Countdown-Timer (bis 31.12.2026 00:00:00) */
.t26-maint-card {
    text-align: center;
    padding: var(--t26-space-xl);
    border: 2px solid var(--t26-accent);
    max-width: 860px;
    margin-inline: auto;
}

.t26-maint-card__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--t26-space-sm);
    margin-bottom: var(--t26-space-md);
}

.t26-maint-card__title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--t26-text-main);
    margin-bottom: var(--t26-space-sm);
}

.t26-maint-card__text {
    color: var(--t26-text-muted);
    max-width: 68ch;
    margin: 0 auto var(--t26-space-md);
    line-height: 1.65;
}

.t26-maint-card__target {
    font-weight: 700;
    color: var(--t26-accent);
    margin: var(--t26-space-md) 0;
    font-size: 0.95rem;
}

.t26-countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--t26-space-md);
    max-width: 640px;
    margin: 0 auto var(--t26-space-lg);
}

@media (min-width: 600px) {
    .t26-countdown {
        grid-template-columns: repeat(4, 1fr);
    }
}

.t26-countdown__box {
    background-color: var(--t26-bg-surface-alt);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-md);
    padding: var(--t26-space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--t26-shadow);
}

.t26-countdown__num {
    font-family: var(--t26-font-mono);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--t26-accent);
    line-height: 1.1;
    margin-bottom: var(--t26-space-xs);
}

.t26-countdown__label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--t26-text-muted);
}

.t26-maint-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--t26-space-md);
    margin-top: var(--t26-space-md);
}

/* 19. Mobile Toolbar (mind. 44x44px Touch-Ziele) & Mobiles Footer-Akkordeon (WCAG 2.1 AA) */
.t26-footer__accordion-btn {
    display: none;
}

@media (max-width: 767px) {
    /* Punkt 6: Mobile Toolbar mit kompakten Icons >= 44x44px */
    .t26-toolbar__badge-item,
    .t26-toolbar__text {
        display: none;
    }

    .t26-toolbar__inner {
        justify-content: space-between;
        gap: 0.25rem;
    }

    .t26-toolbar__projects,
    .t26-toolbar__controls {
        gap: 0.3rem;
    }

    .t26-toolbar .t26-dropdown__toggle,
    .t26-toolbar .t26-mode-btn,
    .t26-toolbar .t26-toolbar__link {
        min-width: 44px;
        min-height: 44px;
        padding: 0.35rem 0.5rem;
        justify-content: center;
        font-size: 1rem;
    }

    .t26-dropdown__menu,
    .t26-dropdown__menu--right,
    .t26-dropdown__menu--a11y {
        min-width: 210px;
        max-width: calc(100vw - 1.5rem);
    }

    .t26-dropdown__item,
    .t26-dropdown__btn {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Punkt 7: Mobiles Footer-Aufklappmenü (Akkordeon) */
    .t26-footer__accordion-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 44px;
        padding: 0.6rem 0.9rem;
        background-color: var(--t26-bg-card);
        color: var(--t26-text-main);
        border: 1px solid var(--t26-border);
        border-radius: var(--t26-radius-sm);
        font-family: inherit;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        transition: all var(--t26-transition);
    }

    .t26-footer__accordion-btn:hover,
    .t26-footer__accordion-btn[aria-expanded="true"] {
        border-color: var(--t26-primary);
        color: var(--t26-primary);
    }

    .t26-footer__accordion-btn[aria-expanded="true"] .t26-dropdown__caret {
        transform: rotate(180deg);
    }

    .t26-footer__links {
        display: none;
        flex-direction: column;
        gap: 0.25rem;
        margin-top: var(--t26-space-xs);
        padding: var(--t26-space-xs);
        background-color: var(--t26-bg-card);
        border: 1px solid var(--t26-border);
        border-radius: var(--t26-radius-sm);
    }

    .t26-footer__links.t26-footer__links--open {
        display: flex;
    }

    .t26-footer__link,
    .t26-footer__cookie-btn {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding-inline: var(--t26-space-sm);
        border-radius: var(--t26-radius-sm);
    }

    .t26-footer__link:hover,
    .t26-footer__cookie-btn:hover {
        background-color: var(--t26-bg-surface);
    }
}

/* 20. Punkt 9: Barrierefreie Leseschrift (DIN 1450 / WCAG 2.1 AA) & Dropdown-Trenner */
html.t26-a11y-readable-font body.t26-body {
    font-family: var(--t26-font-readable);
    letter-spacing: 0.025em;
    word-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

.t26-dropdown__divider {
    margin-top: 0.35rem;
    padding: 0.45rem 0.75rem 0.25rem;
    border-top: 1px solid var(--t26-border);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--t26-text-muted);
    user-select: none;
}

/* 21. Punkt 16: Saison- & Feiertags-Modul (t26_season – 100 % CSS, barrierefrei abschaltbar) */
.t26-season {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 45;
}

/* Bei aktivierter Bewegungsreduktion (System oder Toolbar) komplett ausblenden (Regel 11) */
@media (prefers-reduced-motion: reduce) {
    .t26-season {
        display: none !important;
    }
}

html.t26-a11y-no-motion .t26-season,
html.t26-season-off .t26-season {
    display: none !important;
}

/* Barrierefreier Schieberegler (role="switch") in der Toolbar & Dropdown-Menü */
.t26-dropdown__menu--season {
    min-width: 240px;
}

.t26-dropdown__switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    gap: var(--t26-space-sm);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--t26-text-main);
}

.t26-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 32px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--t26-text-main);
    background-color: var(--t26-bg-surface);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-sm);
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    transition: all var(--t26-transition);
}

.t26-switch:hover {
    border-color: var(--t26-primary);
}

.t26-switch__track {
    position: relative;
    display: inline-block;
    width: 2.5rem;
    height: 1.35rem;
    border-radius: 999px;
    background-color: var(--t26-bg-card);
    border: 2px solid var(--t26-text-muted);
    transition: all var(--t26-transition);
}

.t26-switch__knob {
    position: absolute;
    top: 50%;
    left: 0.15rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: var(--t26-text-muted);
    transform: translateY(-50%);
    transition: all var(--t26-transition);
}

.t26-switch[aria-checked="true"] .t26-switch__track {
    background-color: var(--t26-primary);
    border-color: var(--t26-primary);
}

.t26-switch[aria-checked="true"] .t26-switch__knob {
    left: calc(100% - 0.95rem);
    background-color: var(--t26-text-inverse);
}

@media (max-width: 767px) {
    .t26-switch {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        padding: 0.35rem 0.5rem;
    }
}

.t26-season__particle {
    position: absolute;
    top: -3rem;
    font-size: 1.15rem;
    opacity: 0.55;
    user-select: none;
    animation-name: t26-season-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Sommer & Silvester/Neujahr schweben sanft funkelnd */
.t26-season--summer .t26-season__particle,
.t26-season--newyear .t26-season__particle {
    animation-name: t26-season-sparkle;
    animation-timing-function: ease-in-out;
}

/* Verteilung der 12 Partikel über die Bildschirmbreite ohne Inline-Styles (Regel 3) */
.t26-season__particle--1  { left: 4%;  animation-duration: 14s; animation-delay: 0s;   font-size: 0.95rem; }
.t26-season__particle--2  { left: 12%; animation-duration: 18s; animation-delay: 2.5s; font-size: 1.25rem; }
.t26-season__particle--3  { left: 21%; animation-duration: 15s; animation-delay: 5s;   font-size: 1.05rem; }
.t26-season__particle--4  { left: 29%; animation-duration: 20s; animation-delay: 1.2s; font-size: 1.3rem; }
.t26-season__particle--5  { left: 38%; animation-duration: 16s; animation-delay: 4.1s; font-size: 0.9rem; }
.t26-season__particle--6  { left: 47%; animation-duration: 19s; animation-delay: 6.8s; font-size: 1.2rem; }
.t26-season__particle--7  { left: 56%; animation-duration: 15s; animation-delay: 3.3s; font-size: 1.1rem; }
.t26-season__particle--8  { left: 65%; animation-duration: 21s; animation-delay: 0.7s; font-size: 1.35rem; }
.t26-season__particle--9  { left: 74%; animation-duration: 17s; animation-delay: 5.6s; font-size: 1rem; }
.t26-season__particle--10 { left: 82%; animation-duration: 16s; animation-delay: 2.1s; font-size: 1.2rem; }
.t26-season__particle--11 { left: 90%; animation-duration: 19s; animation-delay: 4.7s; font-size: 0.95rem; }
.t26-season__particle--12 { left: 96%; animation-duration: 15s; animation-delay: 7.4s; font-size: 1.15rem; }

@keyframes t26-season-fall {
    0% {
        transform: translate3d(0, -5vh, 0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.55;
    }
    50% {
        transform: translate3d(18px, 50vh, 0) rotate(180deg);
    }
    85% {
        opacity: 0.55;
    }
    100% {
        transform: translate3d(-14px, 105vh, 0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes t26-season-sparkle {
    0% {
        transform: translate3d(0, 95vh, 0) scale(0.7);
        opacity: 0;
    }
    25% {
        opacity: 0.65;
    }
    50% {
        transform: translate3d(-12px, 50vh, 0) scale(1.15);
        opacity: 0.45;
    }
    75% {
        opacity: 0.65;
    }
    100% {
        transform: translate3d(12px, -5vh, 0) scale(0.7);
        opacity: 0;
    }
}

/* 22. Punkt 12: Individuelles Branding je Domain – Hero-Hintergrundbild (nur wenn hero_bg.jpg existiert) */
.t26-hero--has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.t26-hero--bg-thodde26 {
    background-image: linear-gradient(color-mix(in srgb, var(--t26-bg-surface) 84%, transparent), color-mix(in srgb, var(--t26-bg-surface) 84%, transparent)), url("../images/branding/thodde26/hero_bg.jpg");
}

.t26-hero--bg-nonamemod {
    background-image: linear-gradient(color-mix(in srgb, var(--t26-bg-surface) 84%, transparent), color-mix(in srgb, var(--t26-bg-surface) 84%, transparent)), url("../images/branding/nonamemod/hero_bg.jpg");
}

.t26-hero--bg-nnm_netzwerk {
    background-image: linear-gradient(color-mix(in srgb, var(--t26-bg-surface) 84%, transparent), color-mix(in srgb, var(--t26-bg-surface) 84%, transparent)), url("../images/branding/nnm_netzwerk/hero_bg.jpg");
}

.t26-hero--bg-nonamehost {
    background-image: linear-gradient(color-mix(in srgb, var(--t26-bg-surface) 84%, transparent), color-mix(in srgb, var(--t26-bg-surface) 84%, transparent)), url("../images/branding/nonamehost/hero_bg.jpg");
}

.t26-hero--bg-gamesquad {
    background-image: linear-gradient(color-mix(in srgb, var(--t26-bg-surface) 84%, transparent), color-mix(in srgb, var(--t26-bg-surface) 84%, transparent)), url("../images/branding/gamesquad/hero_bg.jpg");
}

.t26-hero--bg-ironsoldiers {
    background-image: linear-gradient(color-mix(in srgb, var(--t26-bg-surface) 84%, transparent), color-mix(in srgb, var(--t26-bg-surface) 84%, transparent)), url("../images/branding/ironsoldiers/hero_bg.jpg");
}

.t26-hero--bg-pixelbuster {
    background-image: linear-gradient(color-mix(in srgb, var(--t26-bg-surface) 84%, transparent), color-mix(in srgb, var(--t26-bg-surface) 84%, transparent)), url("../images/branding/pixelbuster/hero_bg.jpg");
}

.t26-hero--bg-wemz88 {
    background-image: linear-gradient(color-mix(in srgb, var(--t26-bg-surface) 84%, transparent), color-mix(in srgb, var(--t26-bg-surface) 84%, transparent)), url("../images/branding/wemz88/hero_bg.jpg");
}

/* 23. Medien- & Datei-Verwaltung (t26_media) */
.t26-media-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--t26-space-md);
    margin-bottom: var(--t26-space-lg);
}

.t26-media-header__actions {
    display: flex;
    align-items: center;
    gap: var(--t26-space-sm);
}

.t26-media-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--t26-space-md);
    margin-bottom: var(--t26-space-lg);
}

.t26-media-stat {
    background-color: var(--t26-bg-surface);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-md);
    padding: var(--t26-space-md);
    text-align: center;
    box-shadow: var(--t26-shadow);
}

.t26-media-stat__value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--t26-accent);
    font-family: var(--t26-font-mono);
    line-height: 1.2;
}

.t26-media-stat__label {
    display: block;
    font-size: 0.85rem;
    color: var(--t26-text-muted);
    margin-top: var(--t26-space-xs);
}

.t26-media-upload-card,
.t26-media-gallery-card,
.t26-media-pin-card {
    margin-bottom: var(--t26-space-xl);
}

.t26-media-upload-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--t26-space-md);
    margin-bottom: var(--t26-space-md);
}

@media (min-width: 768px) {
    .t26-media-upload-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.t26-media-file-input {
    cursor: pointer;
}

.t26-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--t26-space-lg);
    margin-top: var(--t26-space-md);
}

.t26-media-item {
    background-color: var(--t26-bg-surface);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--t26-shadow);
    transition: transform var(--t26-transition), box-shadow var(--t26-transition);
}

.t26-media-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--t26-shadow-card);
}

.t26-media-item__preview {
    position: relative;
    height: 180px;
    background-color: var(--t26-bg-surface-alt);
    background-image: linear-gradient(45deg, var(--t26-border) 25%, transparent 25%),
                      linear-gradient(-45deg, var(--t26-border) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, var(--t26-border) 75%),
                      linear-gradient(-45deg, transparent 75%, var(--t26-border) 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.t26-media-item__preview img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform var(--t26-transition);
}

.t26-media-item:hover .t26-media-item__preview img {
    transform: scale(1.05);
}

.t26-media-item__icon {
    font-size: 3rem;
}

.t26-media-item__ext-badge {
    position: absolute;
    top: var(--t26-space-xs);
    right: var(--t26-space-xs);
    background-color: color-mix(in srgb, var(--t26-bg-body) 85%, transparent);
    color: var(--t26-accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--t26-radius-sm);
    border: 1px solid var(--t26-border);
    backdrop-filter: blur(4px);
}

.t26-media-item__body {
    padding: var(--t26-space-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.t26-media-item__name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 var(--t26-space-xs) 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--t26-text-main);
}

.t26-media-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t26-space-xs);
    font-size: 0.78rem;
    color: var(--t26-text-muted);
    margin-bottom: var(--t26-space-md);
}

.t26-media-item__meta span {
    background-color: var(--t26-bg-surface-alt);
    padding: 2px 6px;
    border-radius: var(--t26-radius-sm);
    border: 1px solid var(--t26-border);
}

.t26-media-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t26-space-xs);
    align-items: center;
}

.t26-media-delete-form {
    margin: 0;
    display: inline;
}

.t26-media-empty {
    text-align: center;
    color: var(--t26-text-muted);
    padding: var(--t26-space-xl) 0;
    font-style: italic;
}

/* 24. 404 Fehlerseite & Admin-Bypass Bar */
.t26-error-card {
    text-align: center;
    max-width: 680px;
    margin: var(--t26-space-xl) auto;
    padding: var(--t26-space-xl) var(--t26-space-lg);
}

.t26-error-card__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin: var(--t26-space-md) 0;
    color: var(--t26-text-main);
    line-height: 1.25;
}

.t26-error-card__text {
    font-size: 1.05rem;
    color: var(--t26-text-muted);
    max-width: 500px;
    margin: 0 auto var(--t26-space-lg) auto;
    line-height: 1.6;
}

.t26-error-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--t26-space-md);
}

.t26-admin-maint-bar {
    margin-top: var(--t26-space-md);
    margin-bottom: var(--t26-space-md);
}

.t26-admin-maint-bar__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--t26-space-sm);
    width: 100%;
}

/* 25. FAQ-Modul (t26_faq) - Barrierefreies Accordion */
.t26-faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--t26-space-md);
    max-width: 880px;
    margin: 0 auto;
}

.t26-faq-item {
    margin: 0;
    padding: 0;
    border-radius: var(--t26-radius-md);
    background-color: var(--t26-bg-card);
    border: 1px solid var(--t26-border-color);
    box-shadow: var(--t26-shadow-card);
    overflow: hidden;
    transition: border-color var(--t26-transition-normal), box-shadow var(--t26-transition-normal);
}

.t26-faq-item:hover {
    border-color: var(--t26-primary);
    box-shadow: var(--t26-shadow-hover);
}

.t26-faq-item[open] {
    border-color: var(--t26-primary);
}

.t26-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--t26-space-md);
    padding: var(--t26-space-md) var(--t26-space-lg);
    cursor: pointer;
    user-select: none;
    list-style: none;
    outline: none;
    transition: background-color var(--t26-transition-fast);
}

.t26-faq-summary::-webkit-details-marker {
    display: none;
}

.t26-faq-summary:hover {
    background-color: var(--t26-bg-elevated);
}

.t26-faq-summary:focus-visible {
    outline: 2px solid var(--t26-primary);
    outline-offset: -2px;
}

.t26-faq-summary__main {
    display: flex;
    align-items: center;
    gap: var(--t26-space-md);
    flex-wrap: wrap;
    flex: 1;
}

.t26-faq-badge {
    margin: 0;
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.t26-faq-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--t26-text-main);
    line-height: 1.35;
    margin: 0;
}

.t26-faq-icon {
    font-size: 1.3rem;
    line-height: 1;
    color: var(--t26-primary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.t26-faq-item[open] .t26-faq-icon {
    transform: rotate(180deg);
}

.t26-faq-answer {
    padding: 0 var(--t26-space-lg) var(--t26-space-lg) var(--t26-space-lg);
    color: var(--t26-text-muted);
    line-height: 1.7;
    font-size: 1rem;
    border-top: 1px solid var(--t26-border-color);
    padding-top: var(--t26-space-md);
    margin-top: var(--t26-space-xs);
}

.t26-faq-answer p {
    margin: 0;
}

.t26-faq-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--t26-space-md);
    max-width: 880px;
    margin: var(--t26-space-xl) auto 0 auto;
    padding: var(--t26-space-lg);
    background-color: var(--t26-bg-elevated);
    border: 1px solid var(--t26-border-color);
    border-radius: var(--t26-radius-md);
}

.t26-faq-cta__icon {
    font-size: 2.2rem;
    line-height: 1;
}

.t26-faq-cta__content {
    flex: 1;
    min-width: 260px;
}

.t26-faq-cta__title {
    font-size: 1.2rem;
    color: var(--t26-text-main);
    margin: 0 0 var(--t26-space-xs) 0;
}

.t26-faq-cta__text {
    color: var(--t26-text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.t26-faq-cta__actions {
    display: flex;
    gap: var(--t26-space-sm);
    flex-wrap: wrap;
}

/* Streaming-Plan: CTA & Monatsübersicht (?page=streamplan) */
.t26-stream-month-cta {
    margin-top: var(--t26-space-md);
    display: flex;
    justify-content: center;
}

.t26-stream-month-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--t26-space-sm);
    margin-bottom: var(--t26-space-md);
}

.t26-month-nav-card {
    margin-bottom: var(--t26-space-md);
    padding: var(--t26-space-sm) var(--t26-space-md);
}

.t26-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--t26-space-sm);
}

.t26-month-nav__current {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    color: var(--t26-primary);
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.t26-month-nav__btn {
    padding: 0.5rem 1rem;
}

.t26-month-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--t26-space-xl);
}

.t26-month-grid-header {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: var(--t26-space-xs);
    margin-bottom: var(--t26-space-xs);
    text-align: center;
}

.t26-month-grid-header__day {
    padding: 0.5rem;
    font-weight: 800;
    color: var(--t26-primary);
    background-color: var(--t26-bg-surface);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-sm);
    font-size: 0.9rem;
}

.t26-month-grid-header__long {
    display: inline;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
    margin-left: 4px;
}

.t26-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: var(--t26-space-xs);
}

.t26-month-day {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: var(--t26-space-xs);
    padding: 0.5rem;
    background-color: var(--t26-bg-card);
    border: 1px solid var(--t26-border);
    border-radius: var(--t26-radius-sm);
    transition: border-color var(--t26-transition);
}

.t26-month-day--empty {
    background-color: transparent;
    border: 1px dashed var(--t26-border);
    opacity: 0.35;
    pointer-events: none;
}

.t26-month-day--today {
    border: 2px solid var(--t26-primary);
    box-shadow: 0 0 14px var(--t26-primary-hover);
    background-color: var(--t26-bg-surface);
}

.t26-month-day__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--t26-border);
    padding-bottom: 0.25rem;
    font-size: 0.85rem;
}

.t26-month-day__number {
    font-weight: 800;
    color: var(--t26-text-muted);
}

.t26-month-day--today .t26-month-day__number {
    color: var(--t26-primary);
}

.t26-month-day__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.t26-stream-slot--compact {
    padding: 0.35rem 0.45rem;
    font-size: 0.8rem;
    border-left: 2px solid var(--t26-primary);
}

.t26-month-empty-notice {
    text-align: center;
    padding: var(--t26-space-lg);
    color: var(--t26-text-muted);
    font-style: italic;
    margin-top: var(--t26-space-md);
}

@media (max-width: 600px) {
    .t26-month-grid-header__long {
        display: none;
    }
}



