/* ============================================================
   Platzhalter
   Eigenständige statische Seite im Portal-Erscheinungsbild
============================================================ */

* {
    box-sizing: border-box;
}

:root {
    --transparent: transparent;
    --white: #ffffff;
    --page-bg: #eef1f5;
    --page-text: #111827;
    --page-text-muted: #343536;
    --topbar-bg: linear-gradient(135deg, var(--white) 0%, var(--page-bg) 58%, var(--brand-silver) 100%);
    --topbar-text: #000080;
    --topbar-text-muted: #6b7280;
    --navigation-bg: linear-gradient(180deg, var(--content-bg) 0%, var(--navigation-bg-flat) 100%);
    --navigation-bg-flat: #e5e7eb;
    --navigation-text: #000080;
    --navigation-text-muted: #6b7280;
    --navigation-hover-bg: #d1d5db;
    --navigation-hover-text: #000080;
    --navigation-active-bg: linear-gradient(135deg, var(--brand-blue-soft), var(--white));
    --navigation-active-text: #000080;
    --content-bg: #f8fafc;
    --content-text: #111827;
    --content-text-muted: #343536;
    --content-heading-text: #000080;
    --modal-overlay-bg: rgba(0, 0, 80, 0.72);
    --brand-blue: #000080;
    --brand-blue-light: #3b82f6;
    --brand-blue-soft: #e8f1ff;
    --brand-silver: #d1d5db;
    --border: #cfd6df;
    --shadow: rgba(17, 24, 39, 0.1);
    --shadow-soft: rgba(17, 24, 39, 0.08);
    --logo-shadow: rgba(0, 0, 128, 0.16);
    --modal-shadow: rgba(0, 0, 80, 0.32);
}

html,
body {
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--page-bg);
    color: var(--page-text);
}

button {
    font: inherit;
}

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 26px 0 28px;
    background: var(--topbar-bg);
    color: var(--topbar-text);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 18px var(--shadow);
}

.header-title {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-name {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-subtitle {
    font-size: 13px;
    color: var(--topbar-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 2px 7px var(--logo-shadow));
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    min-width: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--content-bg);
    color: var(--topbar-text);
    box-shadow: 0 4px 12px var(--shadow-soft);
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.side-menu {
    position: fixed;
    top: 72px;
    left: 0;
    z-index: 950;
    width: 250px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    background: var(--navigation-bg);
    color: var(--navigation-text);
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 18px var(--shadow-soft);
}

.mobile-menu-backdrop {
    display: none;
}

.menu-section-title {
    margin: 0 0 14px 12px;
    color: var(--navigation-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-link {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    margin-bottom: 9px;
    border: 0;
    border-radius: 8px;
    background: var(--transparent);
    color: var(--navigation-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.menu-link span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-link:hover {
    background: var(--navigation-hover-bg);
    color: var(--navigation-hover-text);
}

.menu-link.active {
    background: var(--navigation-active-bg);
    color: var(--navigation-active-text);
    box-shadow: inset 3px 0 0 var(--brand-blue-light), 0 8px 20px var(--shadow-soft);
}

.menu-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--brand-blue);
    font-size: 11px;
    font-weight: 800;
}

.menu-spacer {
    flex: 1;
    min-height: 18px;
}

.sidebar-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-top: 1px solid var(--border);
}

.sidebar-note span {
    color: var(--navigation-text-muted);
    font-size: 12px;
}

.sidebar-note strong {
    color: var(--navigation-text);
    font-size: 14px;
}

.main-content {
    min-height: calc(100vh - 42px);
    margin-left: 250px;
    padding: 104px 28px 72px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#start,
#status,
#kontakt,
#impressum,
#datenschutz {
    scroll-margin-top: 92px;
}

.module-card-page {
    width: 100%;
}

.module-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.module-card {
    background: var(--content-bg);
    color: var(--content-text);
    border: 1px solid var(--border);
    border-top: 4px solid var(--brand-blue);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 22px var(--shadow);
}

.module-card h2 {
    margin-top: 0;
    color: var(--content-heading-text);
    font-size: 18px;
}

.module-card p {
    color: var(--content-text-muted);
    line-height: 1.6;
}

.module-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--page-bg);
    color: var(--content-heading-text);
    font-size: 12px;
    font-weight: 700;
}

.module-text-box {
    width: min(100%, 1180px);
    padding: 26px;
    background: var(--content-bg);
    color: var(--content-text);
    border: 1px solid var(--border);
    border-top: 4px solid var(--brand-blue);
    border-radius: 8px;
    box-shadow: 0 8px 22px var(--shadow);
}

.module-text-box h1 {
    margin: 0 0 18px 0;
    color: var(--content-heading-text);
    font-size: 28px;
}

.module-text-box h2 {
    margin: 24px 0 8px 0;
    color: var(--content-heading-text);
    font-size: 18px;
}

.module-text-box h2:first-child {
    margin-top: 0;
}

.module-text-box p {
    margin: 0 0 14px 0;
    line-height: 1.6;
    color: var(--content-text);
}

.module-text-box p:last-child {
    margin-bottom: 0;
}

.module-text-box a {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
}

.module-text-box a:hover {
    text-decoration: underline;
}

.module-list {
    margin: 0;
    padding-left: 22px;
}

.module-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.module-info-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0 0;
}

.module-info-list div {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.module-info-list dt {
    color: var(--content-heading-text);
    font-weight: 800;
}

.module-info-list dd {
    margin: 0;
    color: var(--content-text);
    overflow-wrap: anywhere;
}

.footer {
    position: fixed;
    left: 250px;
    right: 0;
    bottom: 0;
    z-index: 900;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    background: var(--navigation-bg-flat);
    color: var(--navigation-text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

.footer-left {
    opacity: 0.8;
}

.footer-right {
    display: flex;
    gap: 14px;
    opacity: 0.85;
}

.footer-right a {
    color: var(--navigation-text-muted);
    text-decoration: none;
}

.footer-right a:hover {
    color: var(--navigation-text);
    text-decoration: underline;
}

@media (max-width: 760px) {
    .top-header {
        height: 64px;
        padding: 0 14px;
        gap: 12px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-name {
        font-size: 20px;
    }

    .app-subtitle {
        font-size: 12px;
    }

    .logo-img {
        height: 34px;
        max-width: 120px;
    }

    .side-menu {
        top: 64px;
        z-index: 1200;
        width: min(82vw, 310px);
        height: calc(100dvh - 64px);
        padding: 18px 14px;
        box-shadow: 10px 0 28px var(--modal-shadow);
        transform: translateX(-105%);
        transition: transform 0.2s ease;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open .side-menu {
        transform: translateX(0);
    }

    .mobile-menu-backdrop {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        display: block;
        border: 0;
        background: var(--modal-overlay-bg);
        cursor: pointer;
    }

    .mobile-menu-backdrop[hidden] {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 86px 16px 72px 16px;
    }

    #start,
    #status,
    #kontakt,
    #impressum,
    #datenschutz {
        scroll-margin-top: 82px;
    }

    .module-text-box {
        padding: 22px;
    }

    .module-info-list div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .footer {
        left: 0;
        height: auto;
        min-height: 42px;
        flex-wrap: wrap;
        padding: 10px 16px;
    }

    .footer-right {
        width: 100%;
        flex-wrap: wrap;
    }
}

