/* ===== LOKALE SCHRIFTARTEN (DSGVO-KONFORM) ===== */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/roboto-v49-latin-300.woff2') format('woff2'); 
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/roboto-v49-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/roboto-v49-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/roboto-v49-latin-900.woff2') format('woff2');
}

/* --- Inter --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* =================================================================== */
/* === GLOBALE STILE & VARIABLEN === */
/* =================================================================== */
:root {
    --brand-primary: #0a2d4d; /* Dein Dunkelblau */
    --brand-primary-hover: #1b4a78;
    --brand-secondary: #d9534f; /* Dein Feuerwehr-Rot */
    --brand-secondary-hover: #c9302c;
    --success-color: #16a34a; /* Grün */

    --text-dark: #111827; /* Fast Schwarz */
    --text-medium: #4b5563; /* Grau */
    --text-light: #ffffff;

    --background-light: #ffffff;
    --background-grey: #f4f7f6; /* Dein globales helles Grau */
    --border-color: #e5e7eb;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--background-grey);
    color: var(--text-dark);
    line-height: 1.6;
}

.landing-container { 
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* =================================================================== */
/* === 1. STILE FÜR DIE LANDING-PAGE (TRANSPARENT & MODERN) === */
/* =================================================================== */

/* --- Header (Transparent für Startseite) --- */
.landing-header {
    background-color: transparent;
    padding: 1.5rem 0;
    border-bottom: none;
    box-shadow: none;
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%; 
    padding: 0 2rem; 
    box-sizing: border-box;
}

.landing-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Hero Sektion --- */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding-top: 10rem;
    padding-bottom: 6rem;
    border-bottom: none;
    color: #ffffff; 
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.hero-text-content h1 {
    font-size: 3.25rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    color: #ffffff;
    line-height: 1.1;
}
.hero-text-content .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #e2e8f0; 
}
.hero-text-content p {
    font-size: 1.1rem;
    margin: 0 auto 2.5rem auto;
    font-weight: 300;
    color: #cbd5e1; 
    max-width: 600px;
}
.hero-text-content p strong {
    color: #38bdf8; /* Hellblau für Kontrast */
    font-weight: 700;
}

.hero-compass-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-compass-icon i, 
.hero-compass-icon span {
    font-size: 200px; 
    color: rgba(255,255,255,0.1); 
    line-height: 1;
}


/* =================================================================== */
/* === 2. BUTTON STYLES (HIER IST DER FIX!) === */
/* =================================================================== */

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

/* Haupt-Button (Rot) */
.cta-button.primary {
    background-color: #e11d48; 
    color: white;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}
.cta-button.primary:hover {
    background-color: #be123c;
    transform: translateY(-2px);
}
.cta-button.primary.large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* --- SEKUNDÄR-BUTTON (STANDARD: GRAU FÜR DASHBOARD/ADMIN) --- */
/* Das repariert deine Admin-Buttons */
.cta-button.secondary {
    background-color: #f3f4f6; /* Hellgrau */
    color: #1f2937; /* Dunkelgrau/Schwarz */
    border: 1px solid #d1d5db;
}
.cta-button.secondary:hover {
    background-color: #e5e7eb;
    color: #000;
    border-color: #9ca3af;
}

/* --- SPEZIALFALL: SEKUNDÄR-BUTTON IM HEADER (TRANSPARENT) --- */
/* Überschreibt den Standard nur oben im Header */
.landing-header .cta-button.secondary {
    background-color: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    box-shadow: none !important;
}
.landing-header .cta-button.secondary:hover {
    background-color: #ffffff !important;
    color: #0f172a !important; /* Dunkle Schrift bei Hover */
}

/* Kleiner Button (z.B. in Tabellen) */
.cta-button.small {
    padding: 6px 12px;
    font-size: 0.85rem;
}


/* =================================================================== */
/* === 3. SEKTIONEN (FEATURES, LEGAL, ETC.) === */
/* =================================================================== */

.legal-hammer-section {
    padding: 6rem 0;
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.benefit-card, .legal-card {
    background-color: var(--background-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
}

/* Spezielle Legal-Kacheln */
.legal-card {
    background-color: #ffffff;
    border: 1px solid #fed7aa; 
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.08);
    border-left: 5px solid var(--brand-secondary);
}
.legal-card .icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #fff1f2; 
    color: var(--brand-secondary);
    display: inline-block;
    text-align: center;
    margin-bottom: 1rem;
}
.legal-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}
.legal-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin: 0;
}

h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.section-intro {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-medium);
}

.detailed-features-section {
    padding: 6rem 0;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
}
.detailed-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}
.detailed-feature:last-child { margin-bottom: 0; }
.detailed-feature:nth-child(even) .detailed-feature-icon { order: 2; }

.detailed-feature-icon {
    font-size: 10rem; /* Angepasst */
    text-align: center;
    color: var(--brand-primary);
    opacity: 0.8; /* FIX: Deutlicher sichtbar */
    text-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.detailed-feature-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-top: 0;
    margin-bottom: 1rem;
}
.detailed-feature-text p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.how-it-works {
    padding: 6rem 0;
    background-color: var(--background-grey);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}
.step-card {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.step-card span {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--background-light);
    color: var(--text-medium);
    border-top: 1px solid var(--border-color);
}
footer a { color: var(--text-medium); text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--brand-primary); }

/* --- Responsivität --- */
@media (max-width: 768px) {
    .hero { padding-top: 8rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text-content h1 { font-size: 2.5rem; }
    .nav-container { padding: 0 1rem; }
    .detailed-feature { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .detailed-feature:nth-child(even) .detailed-feature-icon { order: 0; }
    .detailed-feature-icon { font-size: 8rem; }
}


/* =================================================================== */
/* === 4. STILE FÜR LOGIN, ADMIN & DASHBOARD (INTERN) === */
/* =================================================================== */

body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
}
.login-container {
    width: 100%;
    max-width: 450px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 2.5rem;
}
.logo-container { text-align: center; margin-bottom: 2rem; }
.logo-background {
    width: 60px; height: 60px; background: var(--brand-primary);
    border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
}
.logo-icon { color: white; font-size: 1.8rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input {
    width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 8px;
    box-sizing: border-box;
}
.button-primary {
    width: 100%; padding: 0.85rem; background: var(--brand-secondary); color: white;
    border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
}
.button-primary:hover { background: var(--brand-secondary-hover); }

/* --- Dashboard & Admin Internals --- */
body.dashboard nav {
    background-color: var(--brand-primary);
    color: white;
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
body.dashboard nav .logo { color: white; font-weight: 700; font-size: 1.2rem; }
#logout-button { background: rgba(255,255,255,0.2); border: none; color: white; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; }

.container { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }

/* Cards & Modules */
.card, .module-card {
    background: white; border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid var(--border-color);
}
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.module-card h3 { color: var(--brand-primary); margin-top: 0; }
.module-card .icon { font-size: 2rem; margin-bottom: 1rem; display: block; }

/* Status Badges */
.status {
    display: inline-block; padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.8rem; font-weight: 600; margin-top: 1rem;
}
.status.status-offen { background: #f3f4f6; color: #6b7280; }
.status.status-valid { background: #dcfce7; color: #166534; }
.status.status-warning { background: #fef9c3; color: #854d0e; }
.status.status-expired { background: #fee2e2; color: #991b1b; }
.status.status-pending { background: #dbeafe; color: #1e40af; }

/* Admin Tabellen */
.table-wrapper { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border-color); }
table { width: 100%; border-collapse: collapse; background: white; }
th { background: #f9fafb; text-align: left; padding: 1rem; font-size: 0.85rem; color: #6b7280; border-bottom: 1px solid var(--border-color); }
td { padding: 1rem; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; }

/* Admin Filter Bar */
.filter-bar { display: flex; gap: 1rem; flex-wrap: wrap; background: white; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; align-items: flex-end; border: 1px solid var(--border-color); }
.filter-group { display: flex; flex-direction: column; }
.filter-group select { padding: 0.5rem; border-radius: 6px; border: 1px solid #ddd; }

/* Admin Cockpit */
.cockpit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.cockpit-card { background: white; padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-color); }
.cockpit-stat-large { font-size: 2rem; font-weight: 800; color: var(--brand-primary); margin: 0.5rem 0; }

/* Contact Form */
.contact-form { max-width: 600px; margin: 0 auto; text-align: left; }
.contact-form textarea { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 8px; }

/* Button Row (z.B. für Passwort ändern) */
.button-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}