/**
 * 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;
}

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

.t26-toolbar__projects,
.t26-toolbar__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--t26-space-xs);
    list-style: 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);
    transition: all var(--t26-transition);
}

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

.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);
}

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

/* 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;
}

.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);
}

.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);
}

.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;
}

/* 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-content {
    line-height: 1.75;
    margin-bottom: var(--t26-space-md);
}

.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);
}

/* Schwebender Back-to-Top-Button unten rechts */
.t26-back-to-top {
    position: fixed;
    bottom: var(--t26-space-md);
    right: var(--t26-space-md);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--t26-primary);
    color: var(--t26-text-inverse);
    border: 2px solid var(--t26-border);
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--t26-shadow-card);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 900;
    transition: all var(--t26-transition);
}

.t26-back-to-top.t26-back-to-top--visible {
    display: inline-flex;
}

.t26-back-to-top:hover {
    background-color: var(--t26-primary-hover);
    transform: translateY(-2px);
}

/* 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 {
    display: none !important;
}

.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;
    }
}
