/* =========================================
   Basis & Variablen
   ========================================= */

:root {
    --bg-body: #0f172a;
    --bg-main: #0b1120;
    --bg-card: #020617;
    --bg-card-alt: #020617;
    --border-soft: rgba(148, 163, 184, 0.35);
    --primary: #38bdf8;
    --primary-soft: #0ea5e9;
    --accent: #f97316;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --link: #38bdf8;
}

/* Reset */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.15), transparent 55%),
        radial-gradient(circle at bottom right, rgba(249,115,22,0.12), transparent 55%),
        var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================================
   Topbar
   ========================================= */

.topbar {
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(14px);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.4rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-links {
    display: flex;
    gap: 1rem;
}

.topbar-links a {
    color: var(--text-muted);
}

/* =========================================
   Header / Branding
   ========================================= */

header {
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.8rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.crest {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.9);
    box-shadow:
        0 0 0 1px rgba(148, 163, 184, 0.35),
        0 0 30px rgba(56, 189, 248, 0.65);
    background:
        conic-gradient(from 210deg, #0ea5e9, #22c55e, #f97316, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b1120;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text span:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.brand-text span:last-child {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.header-right {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.header-nav {
    display: flex;
    gap: 0.9rem;
    font-size: 0.9rem;
}

.header-nav a {
    position: relative;
    padding-bottom: 0.15rem;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}

.header-nav a:hover {
    color: var(--primary);
}

.header-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary-soft);
}

.header-emergency {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: radial-gradient(circle at top left, #f97316, #dc2626);
    color: #fef2f2;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 0 22px rgba(248, 113, 113, 0.55);
}

.header-emergency .circle {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #facc15;
    box-shadow: 0 0 10px #facc15;
}

/* =========================================
   Hauptlayout
   ========================================= */

.page-wrap {
    max-width: 1180px;
    margin: 1.5rem auto 2.5rem;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
}

/* Sidebar */

.sidebar {
    background: linear-gradient(180deg, #020617, #020617);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 1.2rem 1rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.7);
    position: sticky;
    top: 5.8rem;
    align-self: flex-start;
}

.sidebar-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.sidebar-subtitle {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-top: 1.1rem;
    margin-bottom: 0.5rem;
}

.sidebar-nav {
    list-style: none;
    font-size: 0.9rem;
}

.sidebar-nav li + li {
    margin-top: 0.35rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.4rem 0.55rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.sidebar-nav a:hover {
    background: rgba(15, 118, 110, 0.18);
    color: var(--primary);
    transform: translateX(2px);
}

.sidebar-nav a.active {
    background: rgba(56, 189, 248, 0.08);
    color: var(--primary);
}

/* Inhalt rechts */

.content-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

/* =========================================
   Hero / Banner
   ========================================= */

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 1.1rem;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.13), transparent 55%),
                radial-gradient(circle at bottom right, rgba(248,250,252,0.02), transparent 55%),
                #020617;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.6rem 1.6rem 1.3rem;
    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

.hero-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 0.4rem;
}

.hero-subtitle {
    font-size: 0.95rem;
    max-width: 40rem;
    color: var(--text-muted);
}

.hero-meta {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    font-size: 0.8rem;
}

.hero-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-muted);
}

.hero-notice {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.7);
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.15), rgba(15,23,42,0.9));
    color: #fef3c7;
}

.hero-notice .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #facc15;
}

/* =========================================
   Slider (Startseite)
   ========================================= */

.slider-section {
    background: rgba(2, 6, 23, 0.98);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.1rem 1.2rem 1.2rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
}

.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 0.2rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0.9rem;
    height: 260px;
    background: #020617;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.slide.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    border-radius: 999px;
    font-size: 1.1rem;
}

.slider-btn.prev {
    left: 0.8rem;
}

.slider-btn.next {
    right: 0.8rem;
}

.slider-dots {
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
}

.slider-dots .dot.active {
    background: var(--primary);
}

/* =========================================
   Info-Sektion / Bewerbungsseite / Kontakt
   ========================================= */

.info-section {
    background: rgba(2, 6, 23, 0.98);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.1rem 1.3rem 1.3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.4rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.info-section h2 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
    color: #f9fafb;
}

.info-section p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.info-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-left: 3px solid rgba(148, 163, 184, 0.6);
    padding-left: 0.7rem;
    margin-top: 0.4rem;
}

/* Formular-Elemente (Apply-Seite & Panel) */

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #020617;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #020617;
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-primary {
    border-color: rgba(56, 189, 248, 0.9);
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #0b1120;
    font-weight: 600;
}

/* =========================================
   News-Listen & Detail
   ========================================= */

.news-list {
    background: rgba(2, 6, 23, 0.98);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.1rem 1.3rem 1.2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.news-item {
    border-bottom: 1px solid rgba(31, 41, 55, 0.85);
    padding-bottom: 0.8rem;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-title {
    font-size: 1rem;
    color: #e5e7eb;
    margin-bottom: 0.2rem;
}

.news-title a {
    color: inherit;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.news-teaser {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.news-readmore {
    font-size: 0.85rem;
    font-weight: 600;
}

.news-detail {
    background: rgba(2, 6, 23, 0.98);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.1rem 1.3rem 1.3rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.news-detail-body {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
}

/* =========================================
   Footer
   ========================================= */

footer {
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.98);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem 1.25rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 960px) {
    .page-wrap {
        grid-template-columns: minmax(0, 1fr);
    }
    .sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .hero-panel {
        padding: 1.2rem 1.1rem;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .info-section {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-slider {
        height: 220px;
    }
}


/* Team / Ansprechpartner */

.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: radial-gradient(circle at top left, rgba(56,189,248,0.13), transparent 55%),
                radial-gradient(circle at bottom right, rgba(248,250,252,0.02), transparent 55%),
                #020617;
    border: 1px solid #31024d;
    padding: 1.5rem;
    border-radius: 8px;
}

.team-role {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #0467ca;
}

.team-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.team-contact a {
    color: inherit;
    text-decoration: none;
}
