/* ========== VARIABLES ========== */
:root {
    --primary-color: #0C7B17;    /* Grün */
    --primary-dark: #2ecc71;     /* Dunkleres Grün */
    --secondary-color: #3498db;  /* Blau */
    --danger-color: #e74c3c;     /* Rot */
    --success-color: #2ecc71;    /* Grün */
    --warning-color: #f1c40f;    /* Gelb */
    --text-color: #2c3e50;       /* Dunkelgrau */
    --light-gray: #f8f9fa;       /* Hellgrau */
    --border-color: #ddd;        /* Grau für Ränder */
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== LAYOUT ========== */
.container {
    flex: 1 0 auto;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.navbar-menu a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.navbar-menu a i {
    margin-right: 0.5rem;
}

.logout-btn {
    background: rgba(255,0,0,0.1);
}

.logout-btn:hover {
    background: rgba(255,0,0,0.2) !important;
}

/* ========== FOOTER ========== */
.footer {
    flex-shrink: 0;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-links i {
    margin-right: 0.3rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: var(--primary-dark);
}

/* ========== FORMS ========== */
.form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(12, 123, 23, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
	
	/* ========== AUTH STYLES ========== */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

/* Anpassung der Form-Styles für Auth-Seiten */
.auth-container .form {
    margin: 0;
    padding: 0;
    box-shadow: none;
}
	
	/* ========== LANDING PAGE ========== */
.landing-page {
    background-color: var(--light-gray);
}

.hero {
    background: linear-gradient(rgba(12, 123, 23, 0.9), rgba(46, 204, 113, 0.9)), 
                url('<?= BASE_URL ?>/assets/img/hero-bg.jpg') center/cover;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}
	
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    text-align: center;
    background: white;
}

.features h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* How it Works Section */
.how-it-works {
    padding: 4rem 2rem;
    background: var(--light-gray);
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.2rem;
    font-weight: bold;
}

/* CTA Section */
.cta {
    padding: 4rem 2rem;
    background: linear-gradient(rgba(12, 123, 23, 0.9), rgba(46, 204, 113, 0.9));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ========== DASHBOARD ========== */
.dashboard-section {
    margin-bottom: 3rem;
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.transport-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.transport-card.completed {
    background: var(--light-gray);
    opacity: 0.8;
}

.transport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.transport-details {
    margin-bottom: 1rem;
}

.transport-card i {
    width: 20px;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.transport-card.completed i {
    color: var(--text-color);
    opacity: 0.7;
}

.transport-actions {
    display: flex;
    gap: 0.5rem;
}

/* ========== PROFILE ========== */
.profile-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.profile-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ========== VEHICLES ========== */
.vehicle-list {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.vehicle-card {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-actions {
    display: flex;
    gap: 0.5rem;
}

/* ========== PAYMENTS ========== */
.payment-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.summary-card .amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

/* ========== UTILITIES ========== */
.status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.status.pending { background-color: var(--warning-color); color: #000; }
.status.accepted { background-color: var(--secondary-color); color: #fff; }
.status.in_progress { background-color: var(--primary-color); color: #fff; }
.status.completed { background-color: var(--success-color); color: #fff; }
.status.cancelled { background-color: var(--danger-color); color: #fff; }

.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.alert.success {
    background-color: var(--success-color);
    color: white;
}

.alert.error {
    background-color: var(--danger-color);
    color: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .navbar-brand {
        margin-bottom: 1rem;
    }

    .navbar-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .navbar-menu a {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features,
    .how-it-works,
    .cta {
        padding: 3rem 1rem;
    }

    .features h2,
    .how-it-works h2,
    .cta h2 {
        font-size: 2rem;
    }

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

    .payment-summary {
        grid-template-columns: 1fr;
    }
	
/* ========== CUSTOMER DASHBOARD ========== */
/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stats-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stats-card h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Transport Creation Form */
.transport-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Transport Details Page */
.transport-details-page {
    max-width: 800px;
    margin: 0 auto;
}

.transport-status-timeline {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-left: 2px solid var(--border-color);
    margin-left: 1rem;
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-item:last-child {
    border-left: none;
}

.timeline-date {
    color: #666;
    font-size: 0.9rem;
}

.timeline-content {
    flex: 1;
}

/* Price Calculator */
.price-calculator {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.calculated-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 4px;
}

/* Transport Card Enhancements */
.transport-card {
    position: relative;
    overflow: hidden;
}

.transport-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.transport-card.completed::before {
    background: var(--success-color);
}

.transport-card.cancelled::before {
    background: var(--danger-color);
}

/* Customer Profile Section */
.customer-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
}

.profile-main {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .customer-profile {
        grid-template-columns: 1fr;
    }
}
	/* Map Styles */
.route-info {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

#map {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Autocomplete Anpassungen */
.pac-container {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.pac-item {
    padding: 8px;
    cursor: pointer;
}

.pac-item:hover {
    background-color: var(--light-gray);
}
	/* Neue Styles für Frachtdetails */
.cargo-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.requirements-list li {
    margin-bottom: 5px;
}

.requirements-list i {
    color: #28a745;
    margin-right: 5px;
}

/* Falls noch nicht vorhanden: Status-Styles */
.status.pending { background: #ffeeba; }
.status.accepted { background: #b8daff; }
.status.in_progress { background: #c3e6cb; }
.status.completed { background: #d4edda; }
	
	<style>
.transport-map {
    height: 200px;
    width: 100%;
    margin-top: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.route-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stats-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}
.stats-card i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}
.stats-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}
</style>
	
	.notification-badge {
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8em;
    position: relative;
    margin-left: 5px;
}

.navbar-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.navbar-menu a i {
    margin-right: 5px;
}
	
	.price-calculation {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
}

.price-item.total {
    font-weight: bold;
    border-bottom: none;
    font-size: 1.2em;
    margin-top: 15px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none;
}
	
	}