/* Globale Design-Variablen im Tactical/Cyber-Look */
:root {
    --bg-darkest: #04060a;
    --bg-dark: #080d1a;
    --bg-card: rgba(13, 22, 42, 0.65);
    --border-color: rgba(255, 255, 255, 0.05);
    
    --neon-blue: #00f2ff;
    --neon-blue-dim: rgba(0, 242, 255, 0.2);
    --police-blue: #1e40af;
    --accent-gold: #ffb703;
    --accent-red: #ff2a2a;
    --accent-green: #00ff66;
    
    --text-bright: #f1f5f9;
    --text-dark: #64748b;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* Reset & Basis */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 1.15rem;
    overflow-x: hidden;
    position: relative;
}

/* Tech-Effekte im Hintergrund */
.glow-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.15) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

.scanline {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 6px 100%;
    z-index: 999;
    pointer-events: none;
    opacity: 0.4;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

/* Header & Banner */
.cyber-header {
    background: linear-gradient(180deg, rgba(8, 13, 26, 0.95) 0%, rgba(4, 6, 10, 0.8) 100%);
    border-bottom: 2px solid var(--police-blue);
    padding: 40px 0;
    margin-bottom: 50px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.cyber-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 150px;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 12px var(--neon-blue);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 35px;
}

.logo-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-logo {
    width: 100%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(30, 64, 175, 0.6));
}

.logo-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--police-blue);
    filter: blur(25px);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.6;
}

.header-title-block h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.status-indicator.online {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

.status-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-dark);
    letter-spacing: 2px;
}

.meta-badge-container {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.meta-badge {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.meta-badge.green {
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.meta-badge.blue {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
}

/* Sektions-Header */
.cyber-section {
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

/* Profildaten Grid Layout */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
}

.profile-card {
    background: linear-gradient(145deg, rgba(12, 22, 45, 0.8) 0%, rgba(5, 9, 18, 0.9) 100%);
    border-left: 3px solid var(--police-blue);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
    padding: 16px 20px;
    transition: all 0.25s ease;
}

.profile-card:hover {
    border-left-color: var(--neon-blue);
    transform: translateX(4px);
    box-shadow: -5px 5px 15px rgba(0, 242, 255, 0.05);
}

.profile-card .label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-dark);
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.profile-card .value {
    font-size: 1.4rem;
    font-weight: 600;
}

/* Farbige Highlights */
.cyan-text { color: var(--neon-blue); font-weight: bold; }
.discord-text { color: #5865F2; font-weight: bold; }
.blue-glow { color: #ffffff; text-shadow: 0 0 10px rgba(59, 130, 246, 0.6); }
.amber-text { color: var(--accent-gold); font-weight: bold; }
.text-white { color: #ffffff; }

/* Timeline / Werdegang Sektion */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    padding-left: 20px;
    border-left: 2px dashed rgba(30, 64, 175, 0.3);
}

.timeline-item {
    display: flex;
    align-items: center;
    background: rgba(10, 17, 34, 0.6);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 4px;
    gap: 25px;
    position: relative;
    transition: all 0.25s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: calc(50% - 6px);
    width: 12px;
    height: 12px;
    background: #0f172a;
    border: 2px solid var(--text-dark);
    border-radius: 50%;
}

.timeline-item.current-job {
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.2) 0%, rgba(10, 17, 34, 0.6) 100%);
    border-left: 4px solid var(--accent-green);
}

.timeline-item.current-job::before {
    background: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.timeline-badge {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    padding: 6px 14px;
    border-radius: 3px;
    min-width: 80px;
    text-align: center;
}

.fib-color { background: rgba(220, 38, 38, 0.15); border: 1px solid #ef4444; color: #ef4444; }
.sahp-color { background: rgba(234, 179, 8, 0.15); border: 1px solid #eab308; color: #eab308; }

.timeline-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.timeline-header h4 {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 600;
}

.timeline-meta {
    font-size: 1rem;
    color: var(--text-dark);
}

.active-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 2px 8px;
    border-radius: 2px;
    letter-spacing: 1px;
}

/* Dienstpflichten & Aktivität Grid */
.duty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
}

@media (max-width: 1100px) {
    .duty-grid { grid-template-columns: 1fr; }
}

.duty-card {
    background: rgba(10, 16, 32, 0.8);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--text-dark);
    padding: 25px;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.duty-card:hover { transform: translateY(-2px); }
.border-blue { border-top-color: var(--neon-blue); }
.border-amber { border-top-color: var(--accent-gold); }
.border-red { border-top-color: var(--accent-red); }
.border-green { border-top-color: var(--accent-green); }

.duty-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.duty-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ffffff;
}

.duty-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.duty-list li {
    position: relative;
    padding-left: 20px;
    color: #cbd5e1;
    line-height: 1.5;
}

.duty-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--police-blue);
}

.border-blue .duty-list li::before { color: var(--neon-blue); }
.border-red .duty-list li::before { color: var(--accent-red); }
.border-green .duty-list li::before { color: var(--accent-green); }

.duty-list .alert-item {
    color: #fca5a5;
    font-weight: 600;
}
.duty-list .alert-item::before { color: var(--accent-red) !important; }

.duty-list .warning-item {
    color: #fde047;
}

/* Zeit-Anzeige innerhalb Dienstzeit-Card */
.time-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.time-row {
    display: flex;
    justify-content: space-between;
    background: rgba(0,0,0,0.2);
    padding: 12px 20px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.02);
}

.time-row .days {
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--accent-gold);
}

.time-row .hours {
    font-weight: 600;
    color: #ffffff;
}

/* Panel / Cards (Konzept) */
.glass-panel {
    background-color: var(--bg-card);
    border: 1px solid rgba(30, 64, 175, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 30px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.panel-icon {
    font-size: 1.4rem;
    color: var(--accent-gold);
}

.panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #ffffff;
}

.panel-body p {
    color: #cbd5e1;
    font-size: 1.2rem;
    line-height: 1.7;
    text-align: justify;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(30,64,175,0.6) 0%, transparent 100%);
    margin: 20px 0;
}

/* Abteilungs-Karten (Departments) */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.dept-box {
    background: #090e1a;
    border: 1px solid var(--border-color);
    border-bottom: 3px solid var(--police-blue);
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.dept-box:hover {
    border-color: var(--neon-blue);
    border-bottom-color: var(--neon-blue);
    transform: translateY(-4px);
}

.dept-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.dept-id {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 900;
    background: rgba(30, 64, 175, 0.3);
    border: 1px solid var(--police-blue);
    color: #60a5fa;
    padding: 2px 8px;
    border-radius: 2px;
}

.dept-header h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #ffffff;
}

.dept-box p {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.5;
}

.alert-border { border-bottom-color: var(--accent-red); }
.alert-border:hover { border-color: var(--accent-red); border-bottom-color: var(--accent-red); }
.alert-text { background: rgba(255,42,42,0.1); border-color: var(--accent-red); color: var(--accent-red); }

.swat-border { border-bottom-color: #ffffff; }
.swat-border:hover { border-color: #ffffff; border-bottom-color: #ffffff; }
.swat-text { background: rgba(255,255,255,0.1); border-color: #ffffff; color: #ffffff; }

/* CSS-Pure Akkordeon System (Hierarchie) */
.rank-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: rgba(10, 17, 34, 0.7);
    border: 1px solid var(--border-color);
}

.accordion-item input[type="checkbox"] {
    display: none;
}

.accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 25px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: #93c5fd;
    cursor: pointer;
    background: rgba(16, 27, 56, 0.4);
    transition: background 0.2s;
}

.accordion-trigger:hover {
    background: rgba(30, 64, 175, 0.3);
    color: #ffffff;
}

.accordion-trigger .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    padding: 0 25px;
}

.accordion-item input[type="checkbox"]:checked ~ .accordion-content {
    max-height: 1000px;
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.accordion-item input[type="checkbox"]:checked ~ .accordion-trigger .arrow {
    transform: rotate(180deg);
    color: var(--neon-blue);
}

.rank-row {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.02);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.badge-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: bold;
    background: #04060a;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    min-width: 28px;
    padding: 2px 0;
    text-align: center;
    border-radius: 2px;
}

.premium-rank { color: var(--accent-gold); border-left: 2px solid var(--accent-gold); }
.premium-rank .badge-num { border-color: var(--accent-gold); color: var(--accent-gold); }
.danger-rank { color: var(--accent-red); border-left: 2px solid var(--accent-red); }
.danger-rank .badge-num { border-color: var(--accent-red); color: var(--accent-red); }
.warning-rank { color: #f97316; border-left: 2px solid #f97316; }
.warning-rank .badge-num { border-color: #f97316; color: #f97316; }
.info-rank { color: var(--neon-blue); border-left: 2px solid var(--neon-blue); }
.info-rank .badge-num { border-color: var(--neon-blue); color: var(--neon-blue); }

/* Interview Terminal */
.interview-terminal {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.terminal-node {
    background: linear-gradient(180deg, #090f1d 0%, #050810 100%);
    border: 1px solid rgba(30, 64, 175, 0.25);
    border-radius: 4px;
}

.node-question {
    background: rgba(13, 24, 48, 0.6);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(30, 64, 175, 0.2);
}

.node-number {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--neon-blue);
}

.node-question h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #ffffff;
}

.node-answer {
    padding: 25px;
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.6;
    text-align: justify;
}

/* Footer Element */
.cyber-footer {
    text-align: center;
    margin-top: 40px;
}

.footer-line {
    height: 1px;
    background: radial-gradient(circle, var(--police-blue) 0%, transparent 70%);
    margin-bottom: 20px;
}

.cyber-footer p {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-dark);
    letter-spacing: 2px;
}

/* Responsive Optimierung */
@media (max-width: 768px) {
    .header-container { flex-direction: column; text-align: center; gap: 15px; }
    .header-title-block h1 { font-size: 1.6rem; }
    .meta-badge-container { justify-content: center; }
    .accordion-content { grid-template-columns: 1fr; }
    .timeline-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .timeline-content { flex-direction: column; align-items: flex-start; gap: 10px; }
}