/* 
 * LSFD Stylesheet
 * Modernes Design mit Feuerwehr-Theme
 */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #e63946;
    --primary-dark: #c1121f;
    --primary-light: #ff6b6b;
    --secondary-color: #1a1a2e;
    --background-dark: #0a0a0f;
    --background-medium: #12121a;
    --background-light: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--secondary-color) 100%);
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    height: 150px;
    width: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.3));
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ===== Main Content ===== */
.main-content {
    padding: 60px 20px;
}

/* ===== Sections ===== */
.section {
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-color);
}

.about-features {
    display: grid;
    gap: 20px;
}

.feature-card {
    background: var(--background-medium);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.2);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== Ranks Section ===== */
.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.rank-card {
    background: var(--background-medium);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.rank-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.rank-card.rank-high {
    border-color: rgba(255, 0, 0, 0.3);
}

.rank-card.rank-high:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 30px rgba(255, 0, 0, 0.3);
}

.rank-card.rank-mid {
    border-color: rgba(255, 165, 0, 0.3);
}

.rank-card.rank-mid:hover {
    border-color: #ffa500;
}

.rank-card.rank-standard {
    border-color: rgba(0, 123, 255, 0.3);
}

.rank-card.rank-standard:hover {
    border-color: #007bff;
}

.rank-card.rank-new {
    border-color: rgba(255, 255, 255, 0.1);
}

.rank-card.rank-new:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.rank-badge {
    font-size: 30px;
    margin-bottom: 15px;
}

.rank-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.rank-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--background-dark) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.cta-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 16px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.4);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-brand p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

/* ===== Login Page ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--secondary-color) 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: var(--background-medium);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 14px 18px;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.login-form input::placeholder {
    color: var(--text-muted);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.login-footer a:hover {
    color: var(--primary-color);
}

/* ===== Alerts ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #5dd877;
}

/* ===== Dashboard ===== */
.dashboard-header {
    margin-bottom: 30px;
}

.welcome-text h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .navbar .container {
        height: 60px;
    }

    .nav-brand span {
        font-size: 20px;
    }

    .nav-logo {
        height: 30px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-logo {
        height: 100px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .ranks-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .cta-box {
        padding: 30px 20px;
    }

    .cta-box h2 {
        font-size: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .login-box {
        padding: 30px 20px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 10px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .ranks-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease forwards;
}

.section:nth-child(2) {
    animation-delay: 0.1s;
}

.section:nth-child(3) {
    animation-delay: 0.2s;
}

.section:nth-child(4) {
    animation-delay: 0.3s;
}