/* ================================================
   LUBE FAHRZEUGPFLEGE - Premium Design
   ================================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e27;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* ================================================
   HEADER - Mit Auto-Hintergrund & Logo
   ================================================ */

header {
    position: relative;
    background: 
        linear-gradient(135deg, rgba(0, 40, 180, 0.95) 0%, rgba(0, 20, 100, 0.98) 100%),
        url('https://images.unsplash.com/photo-1520340356584-f9917d1eea6f?w=1200') center/cover;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 40, 180, 0.4);
    margin-bottom: 30px;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 100px
        );
    animation: shine 20s linear infinite;
}

@keyframes shine {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
}

.logo-container {
    flex-shrink: 0;
}

.logo-container img {
    width: 180px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header-text {
    flex: 1;
}

.site-title {
    color: #fff;
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 20px rgba(0, 100, 255, 0.8),
        0 0 40px rgba(0, 100, 255, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.5);
}

.site-desc {
    color: #a8d8ff;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Glanz-Effekt über Header */
header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: headerShine 4s ease-in-out infinite;
}

@keyframes headerShine {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ================================================
   NAVIGATION - Automotive Style
   ================================================ */

nav {
    background: linear-gradient(135deg, #0028b4 0%, #001450 100%);
    padding: 0;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 40, 180, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 18px 30px;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
    transition: all 0.3s;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

nav a:last-child {
    border-right: none;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #0066ff);
    transform: scaleX(0);
    transition: transform 0.3s;
}

nav a:hover::before,
nav a.active::before {
    transform: scaleX(1);
}

nav a:hover,
nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

/* ================================================
   CONTENT BOX - Premium Cards
   ================================================ */

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

.content-box {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0028b4, #00d4ff, #0028b4);
    background-size: 200% 100%;
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.content-box h1 {
    color: #0028b4;
    margin-bottom: 25px;
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-box h2 {
    color: #001450;
    margin: 35px 0 20px;
    font-size: 28px;
    font-weight: 700;
}

.content-box p {
    margin-bottom: 18px;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.8;
}

/* ================================================
   GALLERY - Auto-Showcase Style
   ================================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.gallery-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 40, 180, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 40, 180, 0.4);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-info {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.gallery-info h3 {
    color: #0028b4;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
}

.gallery-info p {
    color: #546e7a;
    font-size: 15px;
    line-height: 1.6;
}

/* ================================================
   FOOTER - Modern & Clean
   ================================================ */

footer {
    background: linear-gradient(135deg, #0028b4 0%, #001450 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: #a8d8ff;
    margin-top: 50px;
    box-shadow: 0 10px 40px rgba(0, 40, 180, 0.3);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

footer a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

/* ================================================
   ADMIN STYLES
   ================================================ */

.admin-header {
    background: linear-gradient(135deg, #0028b4 0%, #001450 100%);
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 40, 180, 0.3);
}

.admin-header h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

.admin-nav {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.admin-nav a {
    color: #0028b4;
    text-decoration: none;
    margin-right: 15px;
    padding: 12px 24px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 13px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: linear-gradient(135deg, #0028b4 0%, #001450 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 40, 180, 0.3);
}

.box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.box h2 {
    color: #0028b4;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
}

/* ================================================
   FORMS
   ================================================ */

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

.form-group label {
    display: block;
    color: #0028b4;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e3f2fd;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0028b4;
    box-shadow: 0 0 0 4px rgba(0, 40, 180, 0.1);
}

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

/* ================================================
   BUTTONS
   ================================================ */

button,
.btn {
    padding: 15px 35px;
    background: linear-gradient(135deg, #0028b4 0%, #001450 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(0, 40, 180, 0.3);
}

button:hover,
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 40, 180, 0.5);
    background: linear-gradient(135deg, #0033cc 0%, #001a66 100%);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    margin: 0 5px;
}

.btn-del {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.btn-del:hover {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

/* ================================================
   TABLES
   ================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

table th {
    background: linear-gradient(135deg, #0028b4 0%, #001450 100%);
    color: #fff;
    padding: 18px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 18px;
    border-bottom: 1px solid #f0f4ff;
}

table tr:hover {
    background: #f8fbff;
}

table tr:last-child td {
    border-bottom: none;
}

/* ================================================
   BADGES & ALERTS
   ================================================ */

.badge-on {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.badge-off {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 5px solid #10b981;
    font-weight: 600;
}

.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 5px solid #dc2626;
    font-weight: 600;
}

/* ================================================
   STATS
   ================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #0028b4;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 40, 180, 0.2);
}

.stat-card .stat-num {
    font-size: 42px;
    font-weight: 800;
    color: #0028b4;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-label {
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.empty {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
    font-size: 18px;
    font-weight: 600;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .logo-container img {
        width: 140px;
    }
    
    .site-title {
        font-size: 28px;
    }
    
    .site-desc {
        font-size: 15px;
    }
    
    nav a {
        display: block;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav a:last-child {
        border-bottom: none;
    }
    
    .content-box,
    .box {
        padding: 25px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-nav a {
        display: block;
        margin: 8px 0;
    }
    
    table {
        font-size: 13px;
    }
    
    table th,
    table td {
        padding: 12px;
    }
}
