/* ==========================================================================
   1. GLOBALE STILE & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hauptbereich */
main {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    background-color: #0056b3;
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

header .logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-block;
}

header .logo:hover {
    opacity: 0.9;
}

/* Hamburger Menü-Button für Mobilgeräte */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover, nav a.active {
    color: white;
    background-color: #004085;
}

/* ==========================================================================
   3. BUTTONS & ELEMENTE
   ========================================================================== */
.btn {
    display: inline-block;
    background-color: #ffc107;
    color: #212529;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-align: center;
}

.btn:hover { 
    background-color: #e0a800; 
}

/* Formulare allgemein (Login / Admin) */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ==========================================================================
   4. PREMIUM HERO BEREICH & SEKTIONEN (STARTSEITE)
   ========================================================================== */
.hero-premium {
    position: relative;
    background: url('https://unsplash.com') center/cover no-repeat;
    padding: 8rem 5%;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 40, 85, 0.9) 30%, rgba(0, 123, 255, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #ffc107;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #0056b3;
    transform: translateY(-2px);
}

/* Feature Sektion (Vorteils-Leiste) */
.features-section {
    background: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 2rem 5%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-bottom: 1px solid #e2e8f0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 2rem;
    color: #0056b3;
    background: #f0f7ff;
    padding: 15px;
    border-radius: 12px;
}

.feature-item h4 {
    color: #1e293b;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Sektions-Überschriften */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    color: #64748b;
    font-size: 1.05rem;
}

/* ==========================================================================
   5. KARTEN- & SHOP-GRID-LAYOUTS
   ========================================================================== */
.categories, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Premium Kategorie-Karten auf Startseite */
.category-premium-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 30px 20px;
}

.category-premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #007bff;
}

.category-icon-wrapper {
    font-size: 3.5rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.category-premium-card h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #0056b3;
}

.btn-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: gap 0.2s;
}

.category-premium-card:hover .btn-link {
    gap: 12px;
    color: #007bff;
}

/* Produktkarten im Shop */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-image-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #0056b3;
}

.product-card p {
    color: #666;
    flex-grow: 1;
    font-size: 0.95rem;
}

.product-card .price {
    font-size: 1.2rem;
    color: #0056b3;
    margin: 15px 0 10px 0;
}

.product-btn {
    width: 100%;
}

/* ==========================================================================
   6. KUNDENSTIMMEN (TESTIMONIALS)
   ========================================================================== */
.testimonials-section {
    background-color: #ebf3f9;
    padding: 5rem 5%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-weight: bold;
    font-size: 0.9rem;
    color: #64748b;
}

/* ==========================================================================
   7. AUTHENTIFIZIERUNG (LOGIN BOX)
   ========================================================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.auth-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h2 { 
    margin-bottom: 20px; 
    text-align: center; 
}

.switch-auth {
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
}

/* ==========================================================================
   8. RECHTLICHE TEXTE & ADMIN-PANEL STILE
   ========================================================================== */
.legal-content p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.admin-form-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.admin-table-wrapper {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #f4f7f9;
    color: #0056b3;
}

/* ==========================================================================
   9. FOOTER
========================================================================== */footer {background-color: #212529;color: #aaa;text-align: center;padding: 1.5rem;font-size: 0.9rem;margin-top: auto;}footer a {color: #fff;text-decoration: none;}/* ==========================================================================10. ANIMATIONEN & RESPONSIVE DESIGN (HANDY-ANSICHT)========================================================================== */@keyframes fadeInUp {from {opacity: 0;transform: translateY(20px);}to {opacity: 1;transform: translateY(0);}}@media (max-width: 768px) {header {flex-direction: row;justify-content: space-between;padding: 1rem;}.menu-toggle {display: block;}nav {display: none;flex-direction: column;width: 100%;position: absolute;top: 100%;left: 0;background-color: #0056b3;padding: 10px 0;box-shadow: 0 4px 6px rgba(0,0,0,0.1);}nav.show {display: flex;}nav a {margin: 8px 20px;padding: 10px;text-align: center;}/* Hero Anpassungen */.hero-premium {padding: 5rem 5%;}.hero-content h1 {font-size: 2.2rem;}.hero-buttons {flex-direction: column;width: 100%;}.hero-buttons .btn {width: 100%;}/* Grids auf einspaltig zwingen */.categories, .products-grid, .testimonials-grid {grid-template-columns: 1fr;}.features-section {grid-template-columns: 1fr;gap: 20px;}/* Admin-Tabelle für Handys optimieren */.admin-table th:nth-child(1), .admin-table td:nth-child(1) {display: none;}.admin-table th, .admin-table td {padding: 8px;font-size: 0.85rem;}}