/* E-Shuttle AG - Hauptstylesheet */

/* Farben: Blau #0066cc und Türkis #00cccc */

/* ============================================
   Reset & Grundlagen
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #00cccc;
    --text-color: #333;
    --text-light: #666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ============================================
   Container & Layout
   ============================================ */

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

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.site-content {
    min-height: calc(100vh - 400px);
    padding: 40px 0;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: var(--transition);
}

.main-nav a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   Hero Section - KOMPAKT
   ============================================ */

.hero {
    background: var(--gradient);
    color: rgb(0, 0, 0);
    padding: 50px 0; /* Reduziert von 80px */
    min-height: 35vh; /* Maximal 35% Bildschirmhöhe */
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.svg') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5em; /* Reduziert von 48px */
    margin-bottom: 12px; /* Reduziert von 20px */
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1em; /* Reduziert von 20px */
    margin-bottom: 20px; /* Reduziert von 30px */
    opacity: 0.95;
}

.hero .btn {
    margin: 8px; /* Reduziert von 10px */
    padding: 10px 24px; /* Kompaktere Buttons */
    font-size: 0.95em;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 16px;
    line-height: 1.5;
}

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

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
    background: #00b3b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

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

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

/* ============================================
   Cards & Vehicle Grid
   ============================================ */

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

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

.section-title p {
    font-size: 18px;
    color: var(--text-light);
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.vehicle-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.vehicle-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--bg-light);
}

.vehicle-content {
    padding: 25px;
}

.vehicle-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.vehicle-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.vehicle-specs {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: var(--text-light);
}

.vehicle-spec {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vehicle-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-label {
    font-size: 14px;
    color: var(--text-light);
}

/* ============================================
   Forms
   ============================================ */

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-control:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-text {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.form-error {
    color: var(--error);
    font-size: 14px;
    margin-top: 5px;
}

/* ============================================
   Custom Checkbox & Radio
   ============================================ */

.custom-checkbox,
.custom-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.custom-checkbox:hover,
.custom-radio:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.custom-checkbox input[type="checkbox"],
.custom-radio input[type="radio"] {
    display: none;
}

.custom-checkbox .checkmark,
.custom-radio .checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.custom-checkbox .checkmark {
    border-radius: 4px;
}

.custom-checkbox input:checked ~ .checkmark,
.custom-radio input:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-radio input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.checkbox-label {
    flex: 1;
}

.checkbox-title {
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 3px;
}

.checkbox-price {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   Modal - SCHÖNES DESIGN MIT GRADIENT HEADER
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #0066cc 0%, #00cccc 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.modal-close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    border: none;
    opacity: 0.9;
}

.modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.extras-category {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.extras-category-title {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.extras-list {
    display: grid;
    gap: 10px;
}

.price-summary {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0 20px;
    border-left: 4px solid var(--primary);
}

.price-summary h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: var(--text-color);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 16px;
}

.price-row hr {
    margin: 15px 0;
    border: none;
    border-top: 2px solid #ddd;
}

.price-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    padding-top: 15px;
    border-top: 2px solid #ddd;
}

.price-total strong {
    color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   Flash Messages
   ============================================ */

.flash-message {
    padding: 15px 0;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.flash-message .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 6px;
}

.flash-success .container {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error .container {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-warning .container {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.close-flash {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.close-flash:hover {
    opacity: 1;
}

/* ============================================
   Tables
   ============================================ */

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

thead {
    background: var(--gradient);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--bg-light);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #ccc;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
    }
    
    .main-nav.active ul {
        display: flex;
    }
    
    .hero {
        padding: 40px 0;
        min-height: 40vh;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }
    
    .hero p {
        font-size: 0.9em;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 0;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-close {
        font-size: 28px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.bg-light { background: var(--bg-light); }
.bg-white { background: var(--bg-white); }
.rounded { border-radius: 6px; }
.shadow { box-shadow: var(--shadow); }
