/* style.css
   Version 4.10.0
   - basiert auf Version 4.9.0
   - Veranstaltungssponsoren auf event.php ergänzt
*/

/* =========================
   FONT
========================= */
@font-face {
    font-family: 'Fira Sans';
    src: url('../fonts/FiraSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* =========================
   BASIS
========================= */
html {
    overflow-y: scroll;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --bg: #f4f6f9;
    --text: #1e293b;
    --muted: #64748b;

    --nav: #0f172a;

    --brand: #1f3c88;
    --brand-dark: #162c63;

    --card: #ffffff;
    --line: #e5e7eb;

    --blue: #0077cc;
    --green: #2e8b57;
    --red: #cc2e2e;

    --shadow: 0 6px 18px rgba(0,0,0,0.06);
    --radius: 14px;
}

body {
    min-height: 100%;
    font-family: 'Fira Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

body.menu-open {
    overflow: hidden;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

a {
    color: inherit;
}

/* =========================
   HEADER IMAGE
========================= */
.site-header img {
    width: 100%;
    max-height: 260px;
    display: block;
}

@media (min-width: 768px) {
    .site-header img {
        max-height: 260px;
        object-fit: cover;
    }
}

/* =========================
   LAYOUT / TYPO
========================= */
.container {
    padding: 18px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        padding: 34px 28px;
    }
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 0.1px;
}

h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

h2 {
    font-size: 22px;
    margin-bottom: 14px;
}

h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    h1 { font-size: 38px; }
    h2 { font-size: 26px; }
}

p {
    margin-bottom: 12px;
}

.muted {
    color: var(--muted);
}

/* =========================
   NAVIGATION
========================= */
.navbar {
    background: var(--nav);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1500;
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
}

.nav-logo {
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.burger {
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.burger span {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
    transition: transform .25s ease, opacity .25s ease;
}

.burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.nav-menu {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: var(--nav);
    display: none;
    flex-direction: column;
    padding: 10px 20px 14px 20px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    font-size: 15px;
}

.nav-menu a:last-child {
    border-bottom: none;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.nav-menu a.active {
    font-weight: 800;
    position: relative;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: white;
    opacity: 0.9;
}

.nav-btn,
.nav-btn-outline {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 8px;
}

.nav-btn {
    color: #fff !important;
}

.nav-btn:hover {
    background: var(--brand-dark);
}

.nav-btn-outline {
    color: #fff !important;
}

.nav-btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-logout {
    border-color: rgba(248,113,113,0.85);
    color: #fecaca !important;
}

.nav-logout:hover {
    background: rgba(248,113,113,0.12);
    border-color: rgba(248,113,113,1);
}

@media (min-width: 768px) {
    .burger {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex !important;
        flex-direction: row;
        gap: 18px;
        padding: 0;
        width: auto;
        background: transparent;
        border-radius: 0;
    }

    .nav-menu a {
        border: none;
        padding: 0;
        font-size: 14px;
        margin-top: 0;
    }

    .nav-btn,
    .nav-btn-outline {
        margin-top: 0;
        padding: 8px 12px;
    }
}

/* =========================
   CARD / BUTTON / FORM
========================= */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(229,231,235,0.7);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .card {
        padding: 18px;
    }
}

.btn,
.btn-outline {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.18s ease;
}

.btn {
    background: var(--brand);
    color: #fff;
    border: 0;
}

.btn:hover {
    background: var(--brand-dark);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.btn-outline:hover {
    background: rgba(31,60,136,0.08);
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(31,60,136,0.55);
}

/* =========================
   FRONTPAGE
========================= */
.page-hero {
    padding: 12px 0 6px 0;
}

.section {
    padding: 18px 0;
}

.section-title {
    font-size: 20px;
    margin: 0 0 14px 0;
}

.info-cards {
    display: grid;
    gap: 12px;
    margin: 16px 0 8px 0;
}

.info-card {
    background: #fff;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(229,231,235,0.7);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.info-title {
    font-weight: 800;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .info-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================
   STARTSEITE
   OBERER VERANSTALTUNGSBLOCK
========================= */
.page-hero + .section {
    padding-top: 10px;
}

.page-hero + .section .container {
    background: linear-gradient(135deg, rgba(31,60,136,0.08) 0%, rgba(0,119,204,0.05) 100%);
    border: 1px solid rgba(31,60,136,0.10);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(22,44,99,0.10);
    padding-top: 22px;
    padding-bottom: 22px;
}

.page-hero + .section .section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 22px;
    color: var(--brand-dark);
}

.page-hero + .section .section-title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 8px rgba(31,60,136,0.10);
}

.page-hero + .section .events-grid {
    gap: 16px;
}

.page-hero + .section .event-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(31,60,136,0.12);
    box-shadow: 0 12px 28px rgba(22,44,99,0.10);
    padding: 18px;
}

.page-hero + .section .event-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--blue) 100%);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.page-hero + .section .event-card h3 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
    padding-top: 4px;
}

.page-hero + .section .event-date {
    font-size: 15px;
    color: #475569;
    font-weight: 700;
    margin-bottom: 14px;
}

.page-hero + .section .event-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    color: var(--brand);
}

.page-hero + .section .event-link:hover {
    text-decoration: none;
    color: var(--brand-dark);
}

.page-hero + .section .event-type-badge {
    margin-bottom: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

.page-hero + .section .muted {
    font-weight: 500;
}

@media (min-width: 768px) {
    .page-hero + .section {
        padding-top: 14px;
    }

    .page-hero + .section .container {
        padding-top: 30px;
        padding-bottom: 30px;
        border-radius: 24px;
    }

    .page-hero + .section .section-title {
        font-size: 28px;
        margin-bottom: 22px;
    }

    .page-hero + .section .events-grid {
        gap: 20px;
    }

    .page-hero + .section .event-card {
        padding: 22px;
    }

    .page-hero + .section .event-card h3 {
        font-size: 22px;
    }
}

/* =========================
   STARTSEITE
   MEDIATHEK-HIGHLIGHT
========================= */
.section-media-highlight {
    padding-top: 8px;
}

.media-highlight-card {
    position: relative;
    overflow: hidden;
    padding: 22px 18px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(31, 60, 136, 0.96) 52%, rgba(0, 119, 204, 0.92) 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

.media-highlight-card::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.media-highlight-card::after {
    content: "";
    position: absolute;
    bottom: -70px;
    left: -30px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.media-highlight-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}

.media-highlight-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

.media-highlight-kicker {
    margin: 0 0 6px 0;
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.media-highlight-title {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.15;
    max-width: 760px;
}

.media-highlight-event-title {
    margin: 0 0 6px 0;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
    color: #fff;
}

.media-highlight-date {
    margin: 0 0 12px 0;
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    font-weight: 700;
}

.media-highlight-text {
    margin: 0;
    max-width: 640px;
    color: rgba(255,255,255,0.90);
    font-size: 15px;
    line-height: 1.6;
}

.media-highlight-actions {
    display: flex;
    align-items: flex-start;
}

.media-highlight-btn {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.media-highlight-btn:hover {
    background: #f8fafc;
    color: var(--brand-dark);
}

@media (min-width: 768px) {
    .section-media-highlight {
        padding-top: 10px;
    }

    .media-highlight-card {
        padding: 32px 30px;
        border-radius: 28px;
    }

    .media-highlight-content {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 24px;
    }

    .media-highlight-title {
        font-size: 34px;
    }

    .media-highlight-event-title {
        font-size: 22px;
    }

    .media-highlight-btn {
        min-width: 210px;
        text-align: center;
    }
}

/* =========================
   STARTSEITE
   SPONSOREN
========================= */
.section-home-sponsors {
    padding-top: 6px;
}

.home-sponsors-card {
    background: #ffffff;
    border: 1px solid rgba(229,231,235,0.9);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(15,23,42,0.05);
    padding: 20px 18px;
}

.home-sponsors-head {
    margin-bottom: 18px;
}

.home-sponsors-kicker {
    margin: 0 0 6px 0;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-sponsors-title {
    margin: 0 0 8px 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.2;
}

.home-sponsors-text {
    margin: 0;
    color: var(--muted);
    max-width: 720px;
}

.home-sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.home-sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 94px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-sponsor-item:hover {
    border-color: #dbeafe;
    box-shadow: 0 8px 18px rgba(15,23,42,0.06);
    transform: translateY(-1px);
}

.home-sponsor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.home-sponsor-logo {
    display: block;
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: saturate(0.96);
}

.home-sponsors-footer {
    display: flex;
    justify-content: flex-start;
}

.home-sponsors-more {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.home-sponsors-more:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .home-sponsors-card {
        padding: 28px 26px;
    }

    .home-sponsors-title {
        font-size: 30px;
    }

    .home-sponsors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .home-sponsor-item {
        min-height: 108px;
        padding: 18px;
    }

    .home-sponsor-logo {
        max-height: 62px;
    }
}

@media (min-width: 1024px) {
    .home-sponsors-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* =========================
   EVENT LIST / CARDS
========================= */
.events-grid {
    display: grid;
    gap: 14px;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

.event-card {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(229,231,235,0.7);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    min-width: 0;
}

.event-card h3 {
    margin-bottom: 8px;
}

.event-date {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.event-link {
    text-decoration: none;
    color: var(--brand);
    font-weight: 800;
}

.event-link:hover {
    text-decoration: underline;
}

.event-type-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.event-type-badge.webinar { background: var(--blue); }
.event-type-badge.hybrid  { background: var(--green); }
.event-type-badge.live    { background: var(--red); }

/* =========================
   EVENT DETAIL
========================= */
.event-header {
    padding: 8px 0 0 0;
}

.event-meta-top {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.event-badge {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
}

.badge-webinar { background: var(--blue); }
.badge-hybrid  { background: var(--green); }
.badge-live    { background: var(--red); }

.moderators-card {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(31,60,136,0.05) 0%, rgba(0,119,204,0.04) 100%);
    border: 1px solid rgba(31,60,136,0.10);
    border-radius: 18px;
}

.moderators-label {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 10px;
}

.moderators-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.moderator-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid rgba(31,60,136,0.12);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.moderator-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.moderator-city {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.2;
    white-space: nowrap;
}

.moderator-city::before {
    content: "•";
    margin-right: 8px;
    color: #94a3b8;
}

.event-sponsors-card {
    margin-top: 16px;
    padding: 16px 14px;
    background: #ffffff;
    border: 1px solid rgba(229,231,235,0.9);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.04);
}

.event-sponsors-label {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 12px;
}

.event-sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.event-sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.event-sponsor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.event-sponsor-logo {
    display: block;
    max-width: 100%;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.event-content {
    padding: 10px 0 20px 0;
}

.event-description {
    margin-bottom: 16px;
}

.timeline {
    position: relative;
    margin-top: 14px;
    padding-left: 26px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--blue);
}

.timeline-item {
    position: relative;
    margin-bottom: 18px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -21px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--blue);
    border-radius: 50%;
}

.timeline-time {
    font-weight: 900;
    color: var(--blue);
    margin-bottom: 4px;
}

.timeline-content h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

.speaker {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
}

.event-cta-bottom {
    margin-top: 18px;
}

.cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .event-cta-bottom {
        display: flex;
        justify-content: flex-end;
    }

    .cta-row {
        justify-content: flex-end;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item::before {
        left: -28px;
    }

    .moderators-card {
        padding: 16px 18px;
    }

    .moderator-badge {
        padding: 10px 16px;
    }

    .event-sponsors-card {
        padding: 18px;
    }

    .event-sponsors-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .event-sponsor-item {
        min-height: 94px;
        padding: 14px;
    }

    .event-sponsor-logo {
        max-height: 56px;
    }
}

/* =========================
   SPONSOREN
========================= */
.sponsors-page {
    padding-top: 20px;
}

.sponsors-intro {
    margin-bottom: 22px;
}

.sponsors-grid {
    display: grid;
    gap: 16px;
}

.sponsor-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(229,231,235,0.8);
    box-shadow: 0 8px 22px rgba(15,23,42,0.05);
}

.sponsor-card__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.sponsor-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sponsor-card__logo {
    max-width: 100%;
    max-height: 82px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor-card__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sponsor-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .sponsors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .sponsors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================
   DASHBOARD
========================= */
.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 0 18px 0;
}

.dash-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-grid {
    display: grid;
    gap: 14px;
}

@media (min-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}

.dash-alert-ok {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    font-weight: 900;
}

.dash-alert-err {
    border: 1px solid #fecaca;
    background: #fef2f2;
    font-weight: 900;
    color: #991b1b;
}

.dash-profile {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .dash-profile {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

.dash-details {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.dash-details summary {
    cursor: pointer;
    font-weight: 900;
    padding: 8px 0;
}

.dash-form {
    margin-top: 10px;
}

/* =========================
   DASHBOARD FORMS
   STRIKT VERTIKAL
========================= */
.dash-form-box {
    margin-top: 14px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.dash-form-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dash-form-section-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.dash-form-grid,
.dash-form-grid-profile,
.dash-form-grid-password {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100%;
}

.dash-field,
.dash-field-small,
.dash-field-wide {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    grid-column: auto !important;
}

.dash-field label,
.dash-field-small label,
.dash-field-wide label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0;
}

.dash-field input,
.dash-field-small input,
.dash-field-wide input,
.dash-field select,
.dash-field-small select,
.dash-field-wide select {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    background: white;
    transition: border 0.2s ease;
}

.dash-field input:focus,
.dash-field-small input:focus,
.dash-field-wide input:focus,
.dash-field select:focus,
.dash-field-small select:focus,
.dash-field-wide select:focus {
    outline: none;
    border-color: #1f3c88;
}

.right-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

/* =========================
   MEDIATHEK
========================= */
.mediathek-event {
    margin-bottom: 22px;
}

.mediathek-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mediathek-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.mediathek-title {
    font-weight: 900;
}

@media (max-width: 700px) {
    .mediathek-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   VIDEO MODAL
========================= */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.video-modal-inner {
    width: 100%;
    max-width: 1000px;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.65);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
}

.video-modal-close:hover {
    background: rgba(0,0,0,0.85);
}

.video-modal iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

/* =========================
   PASSWORD TOGGLE
========================= */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
}

.password-toggle:hover {
    opacity: 1;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    margin-top: 26px;
    background: #0f172a;
    color: rgba(255,255,255,0.86);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.footer-copy {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.72);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.footer-nav a {
    color: rgba(255,255,255,0.90);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.footer-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .footer-inner {
        padding: 22px 28px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* =========================
   RECHTSTEXT-SEITEN
========================= */
.legal-page {
    padding: 32px 16px 56px;
    background: #f7f8fb;
}

.legal-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229,231,235,0.7);
}

.legal-card h1 {
    margin: 0 0 24px;
    font-size: 2rem;
    line-height: 1.2;
}

.legal-card h2 {
    margin: 28px 0 10px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.legal-card p {
    margin: 0 0 14px;
    line-height: 1.7;
    color: #243041;
}

.legal-card a {
    color: #0b63ce;
    text-decoration: none;
    word-break: break-word;
}

.legal-card a:hover,
.legal-card a:focus {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .legal-page {
        padding: 48px 24px 72px;
    }

    .legal-card {
        padding: 36px 40px;
        border-radius: 24px;
    }

    .legal-card h1 {
        font-size: 2.4rem;
    }

    .legal-card h2 {
        font-size: 1.3rem;
    }
}