/* =========================================================
   CIR — Combat Impact Rating
   Hauptdesign / Dark Tech Layout
   ========================================================= */

:root {
    --bg: #050811;
    --panel: #0b1020;
    --panel-light: #101831;
    --text: #f4f7ff;
    --muted: #9ca8c7;
    --accent: #4aa3ff;
    --accent-2: #ff9d2e;
    --border: rgba(255, 255, 255, 0.08);

    --sidebar-width: 280px;
}

/* Allgemeine Basis */
* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100%;

    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;

    background:
        radial-gradient(circle at 20% 10%, rgba(74, 163, 255, 0.16), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(255, 157, 46, 0.08), transparent 28%),
        var(--bg);
}

/* =========================================================
   Linke Sidebar Navigation
   ========================================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;

    width: var(--sidebar-width);
    height: 100vh;

    padding: 28px 22px;

    display: flex;
    flex-direction: column;

    background: rgba(5, 8, 17, 0.94);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.sidebar-brand {
    padding-bottom: 28px;
    margin-bottom: 18px;

    border-bottom: 1px solid var(--border);
}

.sidebar-brand-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.sidebar-brand-text {
    min-width: 0;
}

.sidebar-menu {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.mobile-menu-toggle {
    display: none;

    padding: 10px 14px;

    border: 1px solid rgba(74, 163, 255, 0.28);
    border-radius: 10px;

    color: var(--text);
    background: rgba(74, 163, 255, 0.08);

    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(74, 163, 255, 0.14);
    border-color: rgba(74, 163, 255, 0.4);
}

.sidebar-logo {
    display: block;

    color: var(--accent);
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.sidebar-subtitle {
    display: block;

    margin-top: 8px;

    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav a {
    display: block;

    padding: 12px 14px;

    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;

    border-radius: 10px;
    border: 1px solid transparent;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.sidebar-nav a:hover {
    color: var(--text);
    background: rgba(74, 163, 255, 0.08);
    border-color: rgba(74, 163, 255, 0.18);
}

.sidebar-nav a.active {
    color: var(--text);
    background: linear-gradient(
        135deg,
        rgba(74, 163, 255, 0.22),
        rgba(74, 163, 255, 0.06)
    );
    border-color: rgba(74, 163, 255, 0.35);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;

    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;

    border-top: 1px solid var(--border);
}

/* =========================================================
   Sidebar Rechtliches
   ========================================================= */

.sidebar-status {
    display: block;

    margin-bottom: 14px;

    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.sidebar-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-legal a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
}

.sidebar-legal a:hover,
.sidebar-legal a.active {
    color: var(--text);
}

/* =========================================================
   Seitenlayout neben Sidebar
   ========================================================= */

.hero,
.container,
footer {
    margin-left: var(--sidebar-width);
}

/* =========================================================
   Hero Bereich
   ========================================================= */

.hero {
    min-height: auto;

    padding: 46px 80px 18px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    width: calc(100% - var(--sidebar-width));
    max-width: none;
}

.badge {
    width: fit-content;

    padding: 8px 14px;
    margin-bottom: 18px;

    border: 1px solid rgba(74, 163, 255, 0.35);
    border-radius: 999px;

    color: var(--accent);
    background: rgba(74, 163, 255, 0.08);

    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero h1 {
    margin: 0;

    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-title-main {
    display: block;

    font-size: clamp(3rem, 7.2vw, 6.4rem);

    white-space: nowrap;
}

.hero-title-sub {
    display: block;

    margin-top: 0.12em;

    font-size: clamp(1.7rem, 3.6vw, 3.25rem);
    letter-spacing: -0.045em;

    color: var(--text);

    white-space: nowrap;
}

.hero p {
    max-width: 760px;

    margin: 22px 0 24px;

    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.5;
}

.btn {
    width: fit-content;

    padding: 13px 24px;

    border-radius: 8px;

    color: #06101e;
    background: linear-gradient(135deg, var(--accent), #8ed0ff);

    text-decoration: none;
    font-weight: 800;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(74, 163, 255, 0.22);
}

/* =========================================================
   Startseiten-Content
   ========================================================= */

.container {
    padding: 8px 80px 34px;
}

.container h2 {
    text-align: center;

    font-size: 2.4rem;
    margin-bottom: 48px;
}

.intro-panel {
    width: 100%;
    max-width: none;
    margin: 0;

    padding: 28px 36px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background:
        linear-gradient(180deg, rgba(16, 24, 49, 0.88), rgba(11, 16, 32, 0.82));

    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.intro-kicker {
    margin-bottom: 10px;

    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.intro-panel h2 {
    margin: 0 0 14px;

    text-align: left;
    font-size: clamp(1.65rem, 2.6vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.intro-panel p {
    max-width: 1180px;

    margin: 0 0 10px;

    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* Statusbox auf der Startseite */
.intro-status {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;

    width: fit-content;
    max-width: 100%;

    margin-top: 18px;
    padding: 14px 16px;

    border: 1px solid rgba(74, 163, 255, 0.22);
    border-radius: 14px;

    background: rgba(74, 163, 255, 0.07);
}

.intro-status-label {
    margin-bottom: 8px;

    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.intro-status-content {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-wrap: wrap;
}

.intro-status-pill {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;

    border: 1px solid rgba(74, 163, 255, 0.32);
    border-radius: 999px;

    color: #06101e;
    background: linear-gradient(135deg, var(--accent), #8ed0ff);

    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.intro-status strong {
    color: var(--text);
    font-size: 0.96rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 22px;
}

.card {
    min-height: 230px;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: linear-gradient(180deg, var(--panel-light), var(--panel));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.card h3 {
    margin-top: 0;

    color: var(--accent-2);
}

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

/* =========================================================
   Allgemeine Inhaltsseiten
   ========================================================= */

.content-page {
    margin-left: var(--sidebar-width);

    min-height: 100vh;

    padding: 70px 80px;
}

.content-panel {
    width: 100%;
    max-width: 1120px;

    padding: 38px 42px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background:
        linear-gradient(180deg, rgba(16, 24, 49, 0.88), rgba(11, 16, 32, 0.82));

    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.content-panel h1 {
    margin: 0 0 22px;

    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.content-panel h2 {
    margin: 34px 0 14px;

    font-size: 1.35rem;
}

.content-panel p {
    max-width: 980px;

    margin: 0 0 16px;

    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

/* =========================================================
   Status-Karten auf Inhaltsseiten
   ========================================================= */

.project-status-card {
    width: fit-content;
    max-width: 720px;

    margin-top: 34px;
    padding: 18px 20px;

    border: 1px solid rgba(74, 163, 255, 0.22);
    border-radius: 16px;

    background: rgba(74, 163, 255, 0.07);
}

.project-status-header {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;

    flex-wrap: wrap;
}

.project-status-label {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.project-status-badge {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;

    border: 1px solid rgba(255, 157, 46, 0.34);
    border-radius: 999px;

    color: var(--accent-2);
    background: rgba(255, 157, 46, 0.08);

    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-status-card strong {
    display: block;

    margin-bottom: 8px;

    color: var(--text);
    font-size: 1rem;
}

.project-status-card p {
    margin: 0;

    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* =========================================================
   Kontaktliste
   ========================================================= */

.contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-top: 30px;
}

.contact-list div {
    padding: 18px 20px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: rgba(74, 163, 255, 0.055);
}

.contact-list span {
    display: block;

    margin-bottom: 12px;
    padding-bottom: 10px;

    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.13em;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-list a,
.contact-list a:visited {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus {
    color: var(--accent);
    text-decoration: none;
}

.contact-list strong {
    color: var(--text);
    font-size: 1rem;
}

/* =========================================================
   Rechtliche Unterseiten
   ========================================================= */

.legal-page {
    margin-left: var(--sidebar-width);

    min-height: 100vh;

    padding: 70px 80px;

    color: var(--text);
}

.legal-panel {
    max-width: 980px;

    padding: 38px 42px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background:
        linear-gradient(180deg, rgba(16, 24, 49, 0.88), rgba(11, 16, 32, 0.82));

    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.legal-panel h1 {
    margin: 0 0 24px;

    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.legal-placeholder {
    margin-bottom: 34px;

    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.legal-block {
    padding-top: 22px;
    margin-top: 22px;

    border-top: 1px solid var(--border);
}

.legal-block h2 {
    margin: 0 0 12px;

    color: var(--text);
    font-size: 1.25rem;
}

.legal-block p {
    margin: 0;

    color: var(--muted);
    line-height: 1.65;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
    padding: 42px 80px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* =========================================================
   Responsive Anpassungen
   ========================================================= */

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   Mobile / Tablet Layout
   ========================================================= */

@media (max-width: 900px) {
    .sidebar {
        position: relative;

        width: 100%;
        height: auto;

        padding: 22px 20px 18px;

        border-right: none;
        border-bottom: 1px solid var(--border);

        background: rgba(5, 8, 17, 0.96);
    }

    .sidebar-brand {
        padding-bottom: 0;
        margin-bottom: 0;

        border-bottom: none;
    }

    .sidebar-brand-row {
        align-items: center;
    }

    .sidebar-logo {
        font-size: 2rem;
    }

    .sidebar-subtitle {
        margin-top: 8px;
        font-size: 0.76rem;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;
    }

    .sidebar-menu {
        display: none;

        margin-top: 18px;
        padding-top: 18px;

        border-top: 1px solid var(--border);
    }

    .sidebar-menu.is-open {
        display: block;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sidebar-nav a {
        padding: 11px 12px;

        font-size: 0.96rem;
        text-align: left;
    }

    .sidebar-footer {
        display: block;

        margin-top: 18px;
        padding-top: 16px;
    }

    .hero,
    .container,
    footer {
        margin-left: 0;
        width: 100%;
    }

    .hero {
        min-height: auto;

        padding: 42px 24px 28px;

        justify-content: flex-start;
    }

    .badge {
        padding: 7px 12px;
        margin-bottom: 24px;

        font-size: 0.7rem;
        letter-spacing: 0.14em;
    }

    .hero h1 {
        line-height: 0.98;
        letter-spacing: -0.055em;
    }

    .hero-title-main {
        white-space: normal;

        font-size: clamp(3.1rem, 15vw, 5.2rem);
    }

    .hero-title-sub {
        margin-top: 0.16em;

        white-space: normal;

        font-size: clamp(1.65rem, 8vw, 2.8rem);
        line-height: 1.02;
    }

    .hero p {
        max-width: 100%;

        margin: 28px 0 28px;

        font-size: 1.08rem;
        line-height: 1.65;
    }

    .btn {
        width: 100%;
        max-width: 300px;

        text-align: center;
    }

    .container {
        padding: 34px 24px 54px;
    }

    .intro-panel {
        width: 100%;
        max-width: none;

        padding: 26px 24px;

        border-radius: 18px;
    }

    .intro-panel h2 {
        font-size: clamp(1.9rem, 8vw, 2.8rem);
    }

    .intro-panel p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .intro-status {
        max-width: 100%;
    }

    .intro-status-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .content-page {
        margin-left: 0;

        padding: 40px 24px;
    }

    .content-panel {
        padding: 30px 24px;
    }

    .project-status-card {
        width: 100%;
        max-width: 100%;
    }

    .project-status-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

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

    footer {
        padding: 32px 24px;

        flex-direction: column;
    }

    .legal-page {
        margin-left: 0;
        padding: 40px 24px;
    }
}

@media (max-width: 520px) {
    .sidebar {
        padding: 20px 18px 16px;
    }

    .mobile-menu-toggle {
        padding: 9px 12px;

        font-size: 0.86rem;
    }

    .hero {
        padding: 38px 20px 26px;
    }

    .hero-title-main {
        font-size: clamp(3rem, 16vw, 4.8rem);
    }

    .hero-title-sub {
        font-size: clamp(1.55rem, 8vw, 2.45rem);
    }

    .hero p {
        font-size: 1.02rem;
    }

    .container {
        padding: 28px 20px 48px;
    }

    .legal-panel {
        padding: 30px 24px;
    }
}