/* ==========================================================================
   main.css – Globale Styles, Layout, Header, Footer, Home, About
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-gutter: stable;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Verhindert Browser-Blau auf Links/Icons beim ersten Paint */
a {
    color: inherit;
    text-decoration: none;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* Content-Layout
   -------------------------------------------------------------------------- */
#content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
}

#content:has(.blog-post),
#content:has(.event-post),
.page-blog-post #content,
.page-event-post #content {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 2rem 4rem;
    width: 100%;
}

.page-blog-post #content,
#content:has(.blog-post) {
    line-height: 1.8;
}

.page-event #content.content-events {
    max-width: none;
    padding: 0;
}

/* Responsive Video-Embeds (YouTube, Vimeo, WordPress, Twitch)
   -------------------------------------------------------------------------- */
.video-embed,
.TextformatterVideoEmbed {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 2rem 0;
    background-color: #0a0a0a;
    border: 1px solid #333;
}

.video-embed iframe,
.TextformatterVideoEmbed iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    margin: 0;
}

/* WordPress-Block-Embeds (importierte Blog-Beiträge) */
.wp-block-embed {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
}

.wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0a0a0a;
    border: 1px solid #333;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    margin: 0;
}

/* Standalone iframes ohne Wrapper */
.blog-content iframe,
.event-description iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    margin: 2rem 0;
    border: 1px solid #333;
    background-color: #0a0a0a;
}

/* Wrapper-iframes: absolut positioniert, kein fixes Seitenverhältnis am iframe */
.blog-content .video-embed iframe,
.blog-content .TextformatterVideoEmbed iframe,
.blog-content .wp-block-embed iframe,
.event-description .video-embed iframe,
.event-description .TextformatterVideoEmbed iframe,
.event-description .wp-block-embed iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: unset;
    height: 100% !important;
    margin: 0;
    border: 0;
}

/* Gemeinsame Komponenten
   -------------------------------------------------------------------------- */
.page-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
}

.page-header--compact {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.page-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #a0a0a0;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title--large {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.category-tag {
    background-color: #1e1e1e;
    padding: 0.2rem 0.5rem;
    border: 1px solid #ff2a6d;
    color: #ff2a6d;
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.category-tag:hover {
    background-color: #ff2a6d;
    color: #fff;
}

/* Header
   -------------------------------------------------------------------------- */
.site-header {
    background-color: rgba(18, 18, 18, 0.92);
    color: #e0e0e0;
    padding: 1rem 2rem;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
    background-color: rgba(18, 18, 18, 0.97);
    border-bottom-color: #2a2a2a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.logo-short {
    display: none;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav.desktop-nav ul li a {
    font-family: 'IBM Plex Mono', monospace;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 0;
    position: relative;
    transition: all 0.2s ease;
}

nav.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ff2a6d;
    transition: width 0.3s ease;
}

nav.desktop-nav ul li a:hover::after,
nav.desktop-nav ul li a.is-active::after {
    width: 100%;
}

nav.desktop-nav ul li a.is-active {
    color: #fff;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-user {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #a0a0a0;
    max-width: 140px;
    text-decoration: none;
    transition: none;
}

html.is-ready .header-user {
    transition: color 0.2s ease;
}

a.header-user:hover {
    color: #fff;
}

.header-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.35rem 0.55rem;
    border: 1px solid #333;
    transition: all 0.2s ease;
}

.header-auth-btn:hover {
    color: #fff;
    border-color: #ff2a6d;
    background-color: rgba(255, 42, 109, 0.12);
}

.header-auth-btn--login {
    color: #fff;
    border-color: #ff2a6d;
    background-color: rgba(255, 42, 109, 0.15);
}

.header-auth-btn--login:hover {
    background-color: #ff2a6d;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #1e1e1e;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 2rem;
}

.side-menu.active {
    right: 0;
}

.side-menu ul {
    list-style: none;
}

.side-menu ul li {
    margin-bottom: 1.5rem;
}

.side-menu ul li a {
    font-family: 'IBM Plex Mono', monospace;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.3rem 0;
    display: block;
    position: relative;
}

.side-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ff2a6d;
    transition: width 0.3s ease;
}

.side-menu__tile::after,
.side-menu__account-link::after {
    display: none;
}

.side-menu__grid .side-menu__tile {
    display: flex;
    position: static;
}

.side-menu__grid .side-menu__tile i {
    width: auto;
}

.side-menu ul li a:hover::after,
.side-menu ul li a.is-active::after {
    width: 100%;
}

.side-menu ul li a.is-active {
    color: #fff;
}

.side-menu ul li a i {
    width: 1.1rem;
    color: #ff2a6d;
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #e0e0e0;
}

.mobile-login {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.mobile-login a {
    font-family: 'IBM Plex Mono', monospace;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.75rem;
}

.mobile-login-status {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.footer-nav ul li a.is-active {
    color: #ff2a6d;
}

/* Login-Seite
   -------------------------------------------------------------------------- */
.page-login #content.content-login,
#content.content-login {
    max-width: 380px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.login-panel {
    border: 1px solid #333;
    background-color: #1a1a1a;
    padding: 2rem;
}

.login-panel-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-panel-header i {
    font-size: 1.5rem;
    color: #ff2a6d;
    margin-bottom: 0.75rem;
}

.login-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.login-lead {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 42, 109, 0.45);
    background-color: rgba(255, 42, 109, 0.1);
    color: #ffb3c9;
    font-size: 0.85rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-field label {
    display: block;
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 0.35rem;
}

.login-field input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #333;
    background-color: #121212;
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
}

.login-field input:focus {
    outline: none;
    border-color: #ff2a6d;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #333;
    background-color: transparent;
    color: #e0e0e0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    border-color: #ff2a6d;
    color: #fff;
}

.login-btn--primary {
    border-color: #ff2a6d;
    background-color: #ff2a6d;
    color: #fff;
}

.login-btn--primary:hover {
    background-color: #e0255f;
    border-color: #e0255f;
}

.login-btn--ghost {
    color: #a0a0a0;
}

/* Profil-Seite
   -------------------------------------------------------------------------- */
.content-profile {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.profile-panel {
    border: 1px solid #333;
    background-color: #1a1a1a;
    padding: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff2a6d, #c41e52);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.profile-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.profile-subtitle {
    color: #888;
    font-size: 0.85rem;
}

.profile-meta {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.profile-meta-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
}

.profile-meta-item dt {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-meta-item dt i {
    color: #ff2a6d;
    margin-right: 0.25rem;
}

.profile-meta-item dd {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.profile-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.profile-notice--error {
    border: 1px solid rgba(255, 42, 109, 0.45);
    background-color: rgba(255, 42, 109, 0.1);
    color: #ffb3c9;
}

.profile-notice--success {
    border: 1px solid rgba(76, 175, 80, 0.45);
    background-color: rgba(76, 175, 80, 0.1);
    color: #a5d6a7;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-fieldset {
    border: 1px solid #2a2a2a;
    padding: 1.25rem;
    margin: 0;
}

.profile-fieldset legend {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    padding: 0 0.35rem;
}

.profile-field {
    margin-top: 1rem;
}

.profile-field:first-of-type {
    margin-top: 0.75rem;
}

.profile-field--checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #c8c8c8;
    font-weight: 400;
}

.profile-field--checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #ff2a6d;
}

.profile-field label {
    display: block;
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 0.35rem;
}

.profile-field input,
.profile-field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #333;
    background-color: #121212;
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.profile-field input:focus,
.profile-field textarea:focus {
    outline: none;
    border-color: #ff2a6d;
}

.profile-field-hint {
    font-size: 0.78rem;
    color: #888;
    margin-top: 0.5rem;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-actions--row {
    flex-direction: row;
    flex-wrap: wrap;
}

.login-btn--danger {
    border-color: rgba(255, 80, 80, 0.5);
    color: #ff8888;
}

.login-btn--danger:hover {
    background-color: rgba(255, 80, 80, 0.15);
    border-color: #ff5050;
    color: #fff;
}

.content-profile--dashboard {
    max-width: 960px;
}

.profile-panel--wide {
    padding: 1.75rem;
}

.profile-header {
    flex-wrap: wrap;
}

.profile-header-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #ff2a6d;
    background-color: rgba(255, 42, 109, 0.12);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.profile-admin-link:hover {
    background-color: #ff2a6d;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.82rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.profile-tab:hover {
    color: #fff;
    border-color: #333;
}

.profile-tab.is-active {
    color: #fff;
    border-color: #ff2a6d;
    background-color: rgba(255, 42, 109, 0.1);
}

.profile-tab-panel {
    min-height: 200px;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-stat {
    border: 1px solid #333;
    padding: 1rem;
    text-align: center;
}

.profile-stat-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: #ff2a6d;
    font-weight: 700;
}

.profile-stat-label {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.profile-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border: 1px solid #333;
    color: #e0e0e0;
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.profile-action-card i {
    font-size: 1.25rem;
    color: #ff2a6d;
}

.profile-action-card:hover {
    border-color: #ff2a6d;
    color: #fff;
}

.profile-action-card--accent {
    border-color: rgba(255, 42, 109, 0.45);
    background-color: rgba(255, 42, 109, 0.08);
}

.profile-split {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr);
    gap: 1.5rem;
    align-items: start;
}

.profile-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.profile-list-header h2,
.profile-form-col h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}

.profile-link-btn {
    font-size: 0.78rem;
    color: #ff2a6d;
    text-decoration: none;
}

.profile-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #333;
}

.profile-item-list li {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #2a2a2a;
}

.profile-item-list li:last-child {
    border-bottom: none;
}

.profile-item-list li.is-active {
    background-color: rgba(255, 42, 109, 0.08);
}

.profile-item-list li > a:first-child {
    flex: 1;
    display: block;
    padding: 0.75rem;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.82rem;
}

.profile-item-list li > a:first-child strong {
    display: block;
    color: #fff;
    margin-bottom: 0.2rem;
}

.profile-item-list li time,
.profile-item-list li span {
    display: block;
    color: #888;
    font-size: 0.72rem;
    margin-top: 0.15rem;
}

.profile-item-view {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    color: #888;
    border-left: 1px solid #2a2a2a;
    text-decoration: none;
}

.profile-item-view:hover {
    color: #ff2a6d;
}

.profile-empty {
    color: #888;
    font-size: 0.85rem;
    padding: 1rem 0;
}

.profile-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.profile-field select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #333;
    background-color: #121212;
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
}

.profile-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.5rem 0;
}

.profile-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #e0e0e0;
    cursor: pointer;
}

.profile-checkbox input {
    accent-color: #ff2a6d;
}

.profile-checkbox-group--list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
}

.profile-checkbox-group--list .profile-checkbox {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.45rem 0;
    border-bottom: 1px solid #2a2a2a;
}

.profile-checkbox-group--list .profile-checkbox:last-child {
    border-bottom: none;
}

.profile-checkbox-group--list .profile-checkbox input {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.profile-checkbox-group--list .profile-checkbox span,
.profile-checkbox-group--list .profile-checkbox {
    text-align: left;
}

.profile-textarea--code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 280px;
}

.profile-field--editor .tox-tinymce {
    border-color: #333 !important;
    border-radius: 0;
}

.profile-field--editor .tox .tox-edit-area__iframe {
    background-color: #121212;
}

.profile-editor {
    min-height: 400px;
}

.profile-thumb-preview {
    display: block;
    margin-top: 0.75rem;
    max-width: 200px;
    border: 1px solid #333;
}

/* Beitrags-Editor (WordPress-ähnlich, Vollbild)
   -------------------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.content-profile--post-editor {
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.post-editor {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #121212;
}

.post-editor--create {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 42, 109, 0.12), transparent 60%),
        #121212;
}

.post-create-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.post-create {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 36rem;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.post-create__step {
    margin: 0 0 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff2a6d;
}

.post-create__heading {
    margin: 0 0 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: #f5f5f5;
}

.post-create__hint {
    margin: 0 0 1.75rem;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.5;
}

.post-create__field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #bbb;
}

.post-create__title {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #f5f5f5;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-create__title:focus {
    outline: none;
    border-color: #ff2a6d;
    box-shadow: 0 0 0 3px rgba(255, 42, 109, 0.15);
}

.post-create__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.post-create__actions .login-btn {
    min-height: 2.75rem;
}

body.post-editor-active {
    overflow: hidden;
}

body.post-editor-active .site-header,
body.post-editor-active .site-footer,
body.post-editor-active .app-bottom-nav {
    display: none;
}

body.post-editor-active #content {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

body.post-editor-active .content-profile--post-editor {
    min-height: 100vh;
    min-height: 100dvh;
}

body.post-editor-active .post-editor {
    min-height: 100vh;
    min-height: 100dvh;
}

@media (min-width: 1024px) {
    body.post-editor-active #content,
    body.post-editor-active .content-profile--post-editor,
    body.post-editor-active .post-editor {
        height: 100vh;
        height: 100dvh;
    }

    body.post-editor-active .post-editor__layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        flex: 1;
        min-height: 0;
    }

    body.post-editor-active .post-editor__main {
        padding: 1.5rem 3rem 1.25rem;
        border-right: none;
        overflow: hidden;
    }

    body.post-editor-active .post-editor__sidebar {
        border-left: 1px solid #333;
        padding: 1.25rem;
        max-height: none;
        height: 100%;
    }

    body.post-editor-active .post-editor__body {
        min-height: 0;
        flex: 1;
    }

    body.post-editor-active .post-editor__body .tox-tinymce {
        min-height: 0 !important;
        height: 100% !important;
    }

    body.post-editor-active .post-editor__title {
        font-size: 2.5rem;
        padding-bottom: 1.25rem;
    }

    .post-editor__panel > summary.post-editor__panel-title {
        pointer-events: none;
    }

    .post-editor__panel > summary.post-editor__panel-title::after {
        display: none;
    }
}

.post-editor__notice {
    margin: 0;
    border-radius: 0;
}

.post-editor__form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.post-editor__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 20;
    flex-shrink: 0;
}

.post-editor__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.post-editor__back:hover {
    color: #fff;
}

.post-editor__bar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.post-editor__bar-actions .login-btn {
    width: auto;
    min-width: 0;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
}

.post-editor__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.post-editor__main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1.5rem 2rem 2rem;
    border-right: 1px solid #333;
    overflow: hidden;
}

.post-editor__title {
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    padding: 0 0 1rem;
    margin-bottom: 0.5rem;
    outline: none;
}

.post-editor__title::placeholder {
    color: #555;
}

.post-editor__body.is-editor-loading {
    position: relative;
    min-height: 280px;
}

.post-editor__body.is-editor-loading::before {
    content: 'Editor wird geladen…';
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #121212;
    border: 1px solid #333;
    color: #888;
    font-size: 0.85rem;
}

.post-editor__body.is-editor-loading .profile-editor {
    visibility: hidden;
}

.post-editor__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.post-editor__body .tox-tinymce {
    flex: 1;
    min-height: calc(100vh - 260px) !important;
}

.post-editor__sidebar {
    background-color: #1a1a1a;
    padding: 1rem;
    overflow-y: auto;
}

.post-editor__panel {
    background-color: #222;
    border: 1px solid #333;
    padding: 1rem;
    margin-bottom: 1rem;
}

.post-editor__panel--danger {
    border-color: rgba(255, 80, 80, 0.35);
}

.post-editor__panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-editor__panel > summary.post-editor__panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    cursor: pointer;
    list-style: none;
}

.post-editor__panel > summary.post-editor__panel-title::-webkit-details-marker {
    display: none;
}

.post-editor__panel > summary.post-editor__panel-title::after {
    content: '\f078';
    font-family: 'Font Awesome 7 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: #888;
    transition: transform 0.2s ease;
}

.post-editor__panel[open] > summary.post-editor__panel-title::after {
    transform: rotate(180deg);
}

.post-editor__panel-body {
    padding-top: 0.75rem;
    min-width: 0;
}

.post-editor__panel-body .profile-field input[type="datetime-local"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.post-editor__mobile-bar {
    display: none;
}

.post-editor__status {
    margin-bottom: 0.75rem;
}

.post-editor__badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 2px;
}

.post-editor__badge--draft {
    background-color: rgba(255, 180, 50, 0.15);
    color: #ffb432;
    border: 1px solid rgba(255, 180, 50, 0.35);
}

.post-editor__badge--published {
    background-color: rgba(80, 200, 120, 0.12);
    color: #50c878;
    border: 1px solid rgba(80, 200, 120, 0.35);
}

.post-editor__panel-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.post-editor__panel-actions .login-btn {
    width: 100%;
}

.post-editor__delete {
    width: 100%;
}

/* Umfrage / Quiz Editor (Sidebar) */

.post-interactive-config.is-hidden {
    display: none !important;
}

.post-interactive-editor {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-interactive-questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-interactive-question {
    padding: 0.85rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
}

.post-interactive-question__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    color: #fff;
}

.post-interactive-question__text {
    margin-bottom: 0.65rem;
}

.post-interactive-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.post-interactive-option {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.55rem;
    background-color: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}

.post-interactive-option__text {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #222;
    color: #fff;
    font-size: 0.85rem;
}

.post-interactive-option__text:focus {
    outline: none;
    border-color: var(--accent, #ff2a6d);
}

.post-interactive-option__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.post-interactive-correct {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #aaa;
    cursor: pointer;
}

.post-interactive-correct.is-hidden {
    display: none !important;
}

.post-interactive-remove {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    line-height: 1;
    border-radius: 4px;
}

.post-interactive-remove:hover {
    color: #ff8ba0;
    background-color: rgba(255, 80, 80, 0.1);
}

.post-editor__panel-body .post-interactive-type {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #222;
    color: #fff;
    font-size: 0.85rem;
}

.post-editor__panel-body .post-interactive-type:focus {
    outline: none;
    border-color: var(--accent, #ff2a6d);
}

.post-interactive-editor .login-btn--small {
    width: 100%;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
}

.post-interactive-editor .profile-field-hint {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
}

.post-editor__thumb {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.post-editor__thumb-preview {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #333;
    border-radius: 6px;
}

.post-editor__thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 120px;
    border: 1px dashed #444;
    border-radius: 6px;
    color: #666;
    font-size: 0.8rem;
}

.post-editor__thumb-placeholder i {
    font-size: 1.5rem;
}

.post-editor__thumb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #ccc;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-editor__thumb-btn:hover {
    border-color: #ff2a6d;
    color: #fff;
    background-color: rgba(255, 42, 109, 0.08);
}

.post-editor__thumb-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.post-editor__thumb-url {
    margin-top: 0.85rem;
}

.post-editor__thumb-url input[type="url"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #eee;
    font-size: 0.85rem;
}

.post-editor__thumb-url input[type="url"]:focus {
    outline: none;
    border-color: #ff2a6d;
    box-shadow: 0 0 0 3px rgba(255, 42, 109, 0.12);
}

.profile-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-posts-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-posts-section + .profile-posts-section {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #333;
}

.profile-posts-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-posts-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background-color: #2a2a2a;
    color: #888;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.profile-item-list--posts li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-post-item {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
}

.profile-post-item .post-editor__badge {
    margin-right: 0.25rem;
}

.profile-field input[type="file"] {
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

.profile-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.profile-footer-actions .login-btn {
    width: auto;
    flex: 1;
    min-width: 140px;
}

.blog-comment-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.blog-comment-form h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.comment-edit-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #ff2a6d;
    text-decoration: none;
}

.comment-edit-link:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .content-profile {
        padding: 2rem 1rem 3rem;
    }

    .profile-panel {
        padding: 1.25rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-header-actions {
        margin-left: 0;
        justify-content: center;
    }

    .profile-admin-link {
        margin-left: 0;
    }

    .profile-split {
        grid-template-columns: 1fr;
    }

    .post-editor__layout {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .post-editor__form {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }

    .post-editor__main {
        padding: 0.75rem;
        border-right: none;
        border-bottom: none;
        overflow: visible;
    }

    .post-editor__title {
        font-size: 1.35rem;
        padding-bottom: 0.65rem;
        margin-bottom: 0.35rem;
    }

    .post-editor__bar {
        flex-direction: row;
        align-items: center;
        padding: 0.55rem 0.75rem;
        gap: 0.5rem;
    }

    .post-editor__back {
        font-size: 0.82rem;
        min-width: 0;
        white-space: nowrap;
    }

    .post-editor__bar-actions--desktop {
        display: none;
    }

    .post-editor__mobile-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        gap: 0.5rem;
        padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
        background-color: #1a1a1a;
        border-top: 1px solid #333;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    }

    .post-editor__mobile-bar .login-btn {
        flex: 1;
        min-width: 0;
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
    }

    .post-editor__sidebar {
        padding: 0.75rem;
        overflow: visible;
        min-width: 0;
        max-width: 100%;
    }

    .post-editor__panel {
        padding: 0.75rem;
        margin-bottom: 0.65rem;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .post-editor__panel-body .profile-field {
        min-width: 0;
        max-width: 100%;
    }

    .post-editor__panel-body input[type="datetime-local"] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0.55rem 0.5rem;
        font-size: 1rem;
        line-height: 1.3;
        font-family: system-ui, -apple-system, sans-serif;
        -webkit-appearance: none;
        appearance: none;
        min-height: 2.75rem;
    }

    .post-editor__panel-body input[type="datetime-local"]::-webkit-date-and-time-value {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .post-editor__panel-body input[type="datetime-local"]::-webkit-calendar-picker-indicator {
        filter: invert(0.85);
        opacity: 0.85;
        cursor: pointer;
    }

    .post-editor__panel-actions {
        display: none;
    }

    .post-editor__panel > summary.post-editor__panel-title::after {
        display: inline-block;
    }

    .post-editor__body .tox-tinymce {
        min-height: 280px !important;
    }

    .post-editor__body .tox .tox-toolbar-overlord,
    .post-editor__body .tox .tox-toolbar__primary {
        flex-wrap: nowrap;
    }

    .profile-checkbox-group--list .profile-checkbox {
        padding: 0.35rem 0;
    }

    .profile-field-row {
        grid-template-columns: 1fr;
    }

    .profile-actions--row {
        flex-direction: column;
    }

    .profile-footer-actions .login-btn {
        width: 100%;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

.overlay.is-ready {
    transition: opacity 0.35s ease, visibility 0s 0.35s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.overlay.is-ready.active {
    transition: opacity 0.35s ease, visibility 0s 0s;
}

:root {
    --app-bottom-nav-h: 3.75rem;
    --app-bottom-nav-offset: calc(var(--app-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

/* App Shell – Mobile Bottom Navigation
   -------------------------------------------------------------------------- */
.app-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: var(--app-bottom-nav-offset);
        overscroll-behavior-y: none;
        touch-action: manipulation;
    }

    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
    select,
    textarea {
        font-size: 16px !important;
    }

    .app-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        align-items: stretch;
        justify-content: space-around;
        gap: 0.1rem;
        min-height: var(--app-bottom-nav-h);
        height: calc(var(--app-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
        padding: 0.2rem 0.4rem env(safe-area-inset-bottom, 0px);
        background-color: rgba(18, 18, 18, 0.96);
        border-top: 1px solid #2a2a2a;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
    }

    .app-bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        min-width: 0;
        min-height: 2.75rem;
        max-width: 5.5rem;
        margin: 0 auto;
        padding: 0.15rem 0.2rem;
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.68rem;
        font-weight: 500;
        line-height: 1.1;
        color: #888;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        transition: none;
        -webkit-tap-highlight-color: transparent;
    }

    .app-bottom-nav__item i {
        font-size: 1.3rem;
        line-height: 1;
        transition: none;
    }

    html.is-ready .app-bottom-nav__item {
        transition: color 0.2s ease;
    }

    html.is-ready .app-bottom-nav__item i {
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .app-bottom-nav__item span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    .app-bottom-nav__item.is-active {
        color: #ff2a6d;
    }

    .app-bottom-nav__item.is-active i {
        transform: scale(1.06);
    }

    .app-bottom-nav__item--menu.is-open {
        color: #fff;
    }

    .site-footer {
        display: none;
    }

    .site-header {
        padding: 0.75rem 1rem;
        padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
    }

    .site-header.is-scrolled {
        background-color: rgba(18, 18, 18, 0.97);
        border-bottom-color: #2a2a2a;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }

    .header-container {
        justify-content: center;
    }

    .nav-container {
        display: none;
    }

    .logo {
        font-size: 1.25rem;
        letter-spacing: 0.06em;
        text-align: center;
    }

    .logo-full {
        display: none;
    }

    .logo-short {
        display: inline;
    }

    .menu-toggle {
        display: none;
    }

    .overlay {
        bottom: var(--app-bottom-nav-offset);
        height: auto;
    }

    .side-menu {
        top: auto;
        right: auto;
        left: 0;
        bottom: var(--app-bottom-nav-offset);
        width: 100%;
        height: auto;
        max-height: 70svh;
        border-radius: 1rem 1rem 0 0;
        padding: 0 1rem 0.85rem;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
        transform: translate3d(0, 100%, 0);
        /* Keine Transition beim initialen Paint – sonst läuft die Schliess-Animation beim Laden */
        transition: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
        pointer-events: none;
        will-change: transform;
    }

    .side-menu.is-ready {
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0.35s;
    }

    .side-menu.active {
        right: auto;
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }

    .side-menu.is-ready.active {
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0s;
    }

    .side-menu::before {
        content: '';
        display: block;
        width: 2.25rem;
        height: 0.2rem;
        margin: 0.65rem auto 0;
        background-color: #444;
        border-radius: 999px;
    }

    .side-menu__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.65rem 0 0.85rem;
    }

    .side-menu__title {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
    }

    .close-menu {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
        color: #aaa;
    }

    .side-menu__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        list-style: none;
        margin: 0 0 1rem;
        padding: 0;
    }

    .side-menu__grid > li {
        display: flex;
        min-height: 4.5rem;
    }

    .side-menu__tile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        width: 100%;
        min-height: 4.5rem;
        padding: 0.85rem 0.5rem;
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.78rem;
        color: #ccc;
        text-decoration: none;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.04);
        border: 1px solid #2a2a2a;
        border-radius: 0.65rem;
        position: static;
        transition: none;
    }

    html.is-ready .side-menu__tile {
        transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }

    .side-menu__tile i {
        display: block;
        width: auto;
        min-width: 0;
        font-size: 1.2rem;
        line-height: 1;
        color: #ff2a6d;
        text-align: center;
    }

    .side-menu__tile span {
        display: block;
        width: 100%;
        line-height: 1.25;
        text-align: center;
    }

    .side-menu__tile.is-active,
    .side-menu__tile:hover {
        color: #fff;
        border-color: rgba(255, 42, 109, 0.45);
        background-color: rgba(255, 42, 109, 0.08);
    }

    .side-menu__account {
        padding-top: 0.85rem;
        border-top: 1px solid #2a2a2a;
    }

    .side-menu__account-label {
        font-size: 0.68rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #666;
        margin-bottom: 0.65rem;
    }

    .side-menu__account-link {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.65rem 0;
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.9rem;
        color: #ccc;
        text-decoration: none;
    }

    .side-menu__account-link i {
        width: 1rem;
        color: #ff2a6d;
    }

    .side-menu__account-link.is-active {
        color: #fff;
    }

    .side-menu ul li {
        margin-bottom: 0;
    }

    .side-menu ul li a:not(.side-menu__tile) {
        padding: 0;
        font-size: inherit;
    }

    .side-menu ul li a.side-menu__tile {
        display: flex;
    }

    .mobile-login-status {
        font-size: 0.82rem;
        color: #888;
        margin-bottom: 0.5rem;
    }

    body.post-editor-active {
        padding-bottom: 0;
    }

    body.post-editor-active .app-bottom-nav {
        display: none;
    }
}

@media (display-mode: standalone) {
    .site-header {
        padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
    }
}

/* Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: #121212;
    color: #e0e0e0;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid #333;
    font-family: 'IBM Plex Mono', monospace;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo a {
    color: inherit;
    text-decoration: none;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-nav ul li a:hover {
    color: #ff2a6d;
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #a0a0a0;
}

.footer-legal-link {
    display: inline-block;
    margin-left: 1rem;
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #ff2a6d;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #e0e0e0;
    font-size: 1.2rem;
    transition: none;
}

html.is-ready .footer-social a {
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: #ff2a6d;
}

/* Legal / Basic Pages
   -------------------------------------------------------------------------- */
.page-basic-page #content.content-legal {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 3rem 2rem 4rem;
    line-height: 1.8;
}

.legal-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    line-height: 1.2;
}

.legal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 2.75rem 0 1rem;
    line-height: 1.35;
}

.legal-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 0.75rem;
    line-height: 1.35;
}

.legal-content p {
    margin: 0 0 1.15rem;
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.85;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
    color: #e0e0e0;
}

.legal-content li {
    margin-bottom: 0.55rem;
    line-height: 1.75;
    padding-left: 0.25rem;
}

.legal-content li:last-child {
    margin-bottom: 0;
}

.legal-content ul {
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

.legal-content strong,
.legal-content b {
    color: #fff;
    font-weight: 600;
}

.legal-content a {
    color: #ff2a6d;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.legal-content a:hover {
    color: #fff;
}

.legal-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #2a2a2a;
}

/* Home
   -------------------------------------------------------------------------- */
.page-home #content.content-home {
    padding: 1.5rem 2rem 0;
}

.page-home .section-title i {
    color: #ff2a6d;
}

.hero-section {
    margin-bottom: 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 1.25rem;
    min-height: 420px;
    align-items: stretch;
}

.hero-featured,
.hero-secondary {
    min-width: 0;
}

.hero-featured {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.hero-secondary {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 0;
}

.hero-link {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid #333;
    background-color: #1a1a1a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.hero-featured .hero-link {
    min-height: 420px;
}

.hero-secondary .hero-link {
    flex: 1;
    min-height: 0;
}

.hero-link:hover {
    border-color: #ff2a6d;
    box-shadow: 0 5px 15px rgba(255, 42, 109, 0.3);
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hero-link:hover .hero-image,
.hero-link:hover .media-placeholder.hero-image {
    transform: scale(1.05);
}

.hero-image.media-placeholder {
    transition: transform 0.3s ease;
}

/* Marken-Platzhalter für fehlende Vorschaubilder (#ff2a6d) */

.media-placeholder {
    background: linear-gradient(135deg, #ff2a6d 0%, #c41e52 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.media-placeholder__mark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 10vw, 4.5rem);
    color: rgba(255, 255, 255, 0.28);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.media-placeholder--cover {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.article-thumbnail.media-placeholder {
    width: 100%;
    min-height: 180px;
    aspect-ratio: 16 / 10;
}

.media-placeholder--related {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 120px;
}

.media-placeholder--related .media-placeholder__mark {
    font-size: 2rem;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
    padding: 1.25rem 1.35rem;
    color: #fff;
}

.hero-category {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: #ff2a6d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
    display: block;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.hero-title--compact {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.articles-section {
    margin-bottom: 3.5rem;
}

.page-home .articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.article-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    background-color: #1a1a1a;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

.article-card:hover {
    border-color: #ff2a6d;
    box-shadow: 0 5px 15px rgba(255, 42, 109, 0.2);
}

.article-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
    isolation: isolate;
}

.article-link--text {
    background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%);
}

.article-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.35s ease;
    backface-visibility: hidden;
}

.article-card:hover .article-thumbnail {
    transform: scale(1.05);
}

.article-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
    padding: 1rem 1.1rem;
    color: #fff;
}

.article-overlay--static {
    position: static;
    min-height: 100%;
    display: flex;
    align-items: flex-end;
    background: none;
}

.article-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

.article-meta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.8rem;
    font-size: 0.78rem;
    color: #a0a0a0;
    padding: 0.85rem 1rem 1rem;
    margin-top: auto;
    background-color: #1a1a1a;
}

.article-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.article-meta i {
    margin-right: 0.3rem;
    color: #ff2a6d;
}

.home-section-more {
    margin-top: 1.75rem;
    text-align: center;
}

.home-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid #333;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.home-more-link:hover {
    color: #fff;
    border-color: #ff2a6d;
    background-color: rgba(255, 42, 109, 0.12);
}

.no-articles,
.no-categories {
    color: #a0a0a0;
    font-size: 0.95rem;
    padding: 1.5rem;
    border: 1px dashed #333;
    text-align: center;
}

/* Home: kompakte Kategorie-Chips (unterscheidet sich von Blog-Karten) */
.page-home .categories-section {
    margin-bottom: 1rem;
}

.page-home .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.page-home .category-card {
    background-color: #1e1e1e;
    padding: 0.65rem 0.85rem;
    border: 1px solid #333;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-width: 0;
}

.page-home .category-card:hover {
    color: #fff;
    background-color: #ff2a6d;
    border-color: #ff2a6d;
}

.page-home .category-card:hover .category-count {
    color: rgba(255, 255, 255, 0.85);
}

.page-home .category-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-home .category-count {
    font-size: 0.75rem;
    color: #a0a0a0;
    flex-shrink: 0;
}

.home-events-section {
    margin-top: 0.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #2a2a2a;
}

.home-events-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.home-events-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #333;
    background-color: #1a1a1a;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.home-events-item:hover {
    border-color: #ff2a6d;
    background-color: #1e1e1e;
}

.home-events-item--live {
    border-color: rgba(255, 42, 109, 0.45);
}

.home-events-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #333;
    background-color: #121212;
    line-height: 1.1;
}

.home-events-date-day {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.home-events-date-month {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ff2a6d;
}

.home-events-body {
    min-width: 0;
}

.home-events-title {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.home-events-title:hover {
    color: #ff2a6d;
}

.home-events-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    margin: 0;
    font-size: 0.78rem;
    color: #a0a0a0;
    line-height: 1.4;
}

.home-events-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ff2a6d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.68rem;
}

.home-events-live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background-color: #ff2a6d;
    animation: home-live-pulse 2s ease-out infinite;
}

.home-events-location {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-events-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-events-item:hover .home-events-arrow {
    color: #ff2a6d;
    transform: translateX(2px);
}

.home-about {
    margin-top: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-top: 1px solid #2a2a2a;
}

.home-about-main {
    display: grid;
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.home-about-logo {
    display: block;
    aspect-ratio: 1;
    background-color: #7b5dff;
    border: 1px solid #333;
    text-decoration: none;
    overflow: hidden;
}

.home-about-logo__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-about-text {
    min-width: 0;
}

.home-about-text .section-title {
    margin-bottom: 1.25rem;
}

.home-about-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #e0e0e0;
    margin-bottom: 1.25rem;
}

.home-about-contact {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #a0a0a0;
}

.home-about-contact a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-about-contact a:hover {
    color: #ff2a6d;
}

/* About / Team
   -------------------------------------------------------------------------- */
.page-about #content.content-about {
    max-width: 1100px;
    padding: 3rem 2rem 4rem;
}

.page-about .home-about {
    margin-top: 3.5rem;
    margin-bottom: 0;
    padding-top: 2.5rem;
    padding-bottom: 0;
    border-top: 1px solid #2a2a2a;
    border-bottom: none;
}

.about-intro {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.team-section-heading.about-intro {
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.about-intro :is(h1, h2, h3) {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.about-intro :is(p, ul, ol) {
    margin-top: 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #a0a0a0;
    max-width: 42rem;
}

.about-intro a {
    color: #ff2a6d;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.about-intro a:hover {
    color: #fff;
}

.team-section {
    margin-bottom: 1rem;
}

.team-section .section-title--large {
    margin-bottom: 2rem;
}

.team-section .section-title--large i {
    color: #ff2a6d;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.team-member {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-member:hover {
    border-color: #ff2a6d;
    box-shadow: 0 8px 24px rgba(255, 42, 109, 0.15);
    transform: translateY(-3px);
}

.team-member-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #2a2a2a;
}

.team-member-info {
    flex: 1;
    padding: 1.25rem 1.35rem 1.5rem;
}

.team-member-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.team-member-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: #ff2a6d;
    margin-bottom: 0.75rem;
}

.team-member-bio {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #a0a0a0;
    margin: 0;
}

.no-members {
    color: #a0a0a0;
    font-size: 0.95rem;
    padding: 2rem;
    text-align: center;
    border: 1px dashed #333;
}

.faq-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #2a2a2a;
}

.faq-section .section-title--large {
    margin-bottom: 1.5rem;
}

.faq-section .section-title--large i {
    color: #ff2a6d;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 42rem;
}

.faq-item {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    transition: border-color 0.25s ease;
}

.faq-item[open] {
    border-color: #ff2a6d;
}

.faq-question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    user-select: none;
}

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

.faq-question-text {
    flex: 1;
    min-width: 0;
}

.faq-icon {
    flex-shrink: 0;
    color: #ff2a6d;
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

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

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #a0a0a0;
}

.faq-answer p {
    margin: 0 0 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.contact-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #2a2a2a;
}

.contact-section .section-title--large {
    margin-bottom: 0.75rem;
}

.contact-section .section-title--large i {
    color: #ff2a6d;
}

.contact-lead {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a0a0a0;
    max-width: 42rem;
}

.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    max-width: 42rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-alert--error {
    border: 1px solid rgba(255, 42, 109, 0.45);
    background-color: rgba(255, 42, 109, 0.1);
    color: #ffb3c9;
}

.contact-alert--success {
    border: 1px solid rgba(76, 175, 80, 0.45);
    background-color: rgba(76, 175, 80, 0.1);
    color: #a5d6a7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 42rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form .login-field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #333;
    background-color: #121212;
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 8rem;
}

.contact-form .login-field textarea:focus {
    outline: none;
    border-color: #ff2a6d;
}

.contact-optional {
    color: #666;
    font-weight: 400;
}

.contact-form-actions {
    margin-top: 0.25rem;
}

.contact-submit {
    width: auto;
    min-width: 12rem;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: 0;
    }

    .hero-featured {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-featured .hero-link {
        min-height: 320px;
    }

    .hero-secondary {
        grid-column: 1;
        grid-row: 2;
        flex-direction: row;
        gap: 1.25rem;
    }

    .hero-secondary .hero-link {
        min-height: 200px;
    }

    .page-home .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .header-auth {
        display: none;
    }

    nav.desktop-nav {
        display: none;
    }

    #content {
        padding: 1rem;
    }

    .page-blog-post #content,
    .page-event-post #content {
        padding: 2rem 1rem 3rem;
    }

    .page-basic-page #content.content-legal {
        padding: 2rem 1rem 3rem;
    }

    .legal-content h2 {
        font-size: 1.2rem;
        margin-top: 2.25rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title,
    .section-title--large {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-secondary {
        flex-direction: column;
    }

    .hero-featured .hero-link,
    .hero-secondary .hero-link {
        min-height: 220px;
    }

    .page-home #content.content-home {
        padding: 1rem 1rem 0;
    }

    .home-about {
        margin-top: 1.5rem;
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    .page-about .home-about {
        margin-top: 2.5rem;
        margin-bottom: 0;
        padding-top: 2rem;
        padding-bottom: 0;
    }

    .home-about-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .home-about-logo {
        width: min(100%, 160px);
    }

    .page-home .articles-grid {
        grid-template-columns: 1fr;
    }

    .page-home .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-events-item {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.85rem;
    }

    .home-events-arrow {
        display: none;
    }

    .page-about #content.content-about {
        padding: 2rem 1rem 3rem;
    }

    .about-intro {
        margin-bottom: 2rem;
        padding-bottom: 1.75rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-member {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.1rem;
    }

    .team-member:hover {
        transform: none;
    }

    .team-member-img {
        width: 6.75rem;
        height: 6.75rem;
        min-width: 6.75rem;
        aspect-ratio: 1;
        object-fit: cover;
        border: 1px solid #2a2a2a;
        border-bottom: 1px solid #2a2a2a;
    }

    .team-member-info {
        padding: 0;
        min-width: 0;
        flex: 1;
    }

    .team-member-name {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }

    .team-member-bio {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    .team-section .section-title--large {
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

    .faq-section {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .faq-section .section-title--large {
        margin-bottom: 1.25rem;
        font-size: 1.5rem;
    }

    .faq-list {
        max-width: none;
    }

    .faq-question {
        padding: 1rem 1.1rem;
        font-size: 0.98rem;
    }

    .faq-answer {
        padding: 0 1.1rem 1.1rem;
        font-size: 0.9rem;
    }

    .contact-section {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .contact-section .section-title--large {
        margin-bottom: 0.65rem;
        font-size: 1.5rem;
    }

    .contact-form,
    .contact-lead,
    .contact-alert {
        max-width: none;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-submit {
        width: 100%;
    }

    .about-intro :is(h1, h2, h3) {
        font-size: 1.75rem;
    }

    .about-intro :is(p, ul, ol) {
        font-size: 0.95rem;
        max-width: none;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Homepage: Live-Info-Banner
   -------------------------------------------------------------------------- */
.home-live-banners {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 2rem;
}

.home-live-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1.1rem 1.35rem;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(255, 42, 109, 0.08) 0%, rgba(24, 24, 24, 0.95) 55%);
    border: 1px solid rgba(255, 42, 109, 0.22);
    border-left: 4px solid #ff2a6d;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-live-banner:hover {
    background: linear-gradient(135deg, rgba(255, 42, 109, 0.14) 0%, rgba(30, 30, 30, 0.98) 55%);
    border-color: rgba(255, 42, 109, 0.4);
}

.home-live-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.15rem;
    padding: 0.4rem 0.65rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff2a6d;
    background: rgba(255, 42, 109, 0.1);
    border: 1px solid rgba(255, 42, 109, 0.24);
}

.home-live-banner-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ff2a6d;
    animation: home-live-pulse 2s ease-out infinite;
}

.home-live-banner-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.1rem 0;
}

.home-live-banner-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.home-live-banner-detail {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #aaa;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-live-banner-detail--muted {
    font-style: italic;
    color: #888;
}

.home-live-banner-action {
    flex-shrink: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: #ff2a6d;
    background: rgba(255, 42, 109, 0.08);
    border: 1px solid rgba(255, 42, 109, 0.22);
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.home-live-banner:hover .home-live-banner-action {
    background: rgba(255, 42, 109, 0.14);
    border-color: rgba(255, 42, 109, 0.35);
}

.home-live-banner-action i {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.home-live-banner:hover .home-live-banner-action i {
    transform: translateX(2px);
}

@keyframes home-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 42, 109, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(255, 42, 109, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 42, 109, 0); }
}

@media (max-width: 768px) {
    .home-live-banner {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.85rem 1rem;
        padding: 1rem 1.1rem;
    }

    .home-live-banner-badge {
        margin-top: 0;
    }

    .home-live-banner-body {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .home-live-banner-action {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: start;
        padding: 0.45rem 0.7rem;
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .home-live-banner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.75rem;
    }

    .home-live-banner-badge {
        justify-self: start;
    }

    .home-live-banner-body {
        grid-column: 1;
        grid-row: 2;
    }

    .home-live-banner-action {
        grid-column: 1;
        grid-row: 3;
        justify-self: stretch;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-live-banner-dot {
        animation: none;
    }
}

/* 404-Fehlerseite
   -------------------------------------------------------------------------- */
.content-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 3rem 0 4rem;
}

.error-page {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid #2a2a2a;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.6) 0%, rgba(18, 18, 18, 0.9) 100%);
}

.error-page__code {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 18vw, 6.5rem);
    font-weight: 700;
    line-height: 1;
    color: #ff2a6d;
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
    text-shadow: 0 0 40px rgba(255, 42, 109, 0.25);
}

.error-page__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.25;
}

.error-page__text {
    font-size: 1rem;
    line-height: 1.75;
    color: #a0a0a0;
    margin: 0 0 2rem;
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.error-page__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
    text-decoration: none;
    border: 1px solid #333;
    background-color: #1a1a1a;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.error-page__btn:hover {
    border-color: #ff2a6d;
    color: #fff;
}

.error-page__btn--primary {
    background-color: #ff2a6d;
    border-color: #ff2a6d;
    color: #fff;
}

.error-page__btn--primary:hover {
    background-color: #e0245f;
    border-color: #e0245f;
    color: #fff;
}

.page-404 #content {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .error-page {
        padding: 2rem 1rem;
        border-left: none;
        border-right: none;
    }

    .error-page__actions {
        flex-direction: column;
    }

    .error-page__btn {
        justify-content: center;
        width: 100%;
    }
}
