/* 
 * Energy-Drink.de - Modernes CSS
 * Energiegeladenes Design in Blau/Türkis
 */

/* CSS Variables für konsistente Farben */
:root {
    --primary-blue: #0066ff;
    --primary-turquoise: #00bcd4;
    --secondary-blue: #2196f3;
    --accent-cyan: #00e5ff;
    --dark-blue: #1565c0;
    --light-blue: #e3f2fd;
    --success-green: #4caf50;
    --warning-orange: #ff9800;
    --error-red: #f44336;
    --text-dark: #212121;
    --text-light: #757575;
    --text-white: #ffffff;
    --background-light: #fafafa;
    --background-white: #ffffff;
    --border-light: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--primary-turquoise));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-blue), var(--accent-cyan));
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-medium);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--background-white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--text-white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Header */
.main-header {
    background: var(--background-white);
    box-shadow: 0 2px 16px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* *** NEU: Logo größer gemacht *** */
.logo-img {
    height: 250px; /* Vergrößert von 50px auf 250px */
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

/* Search - nur auf Desktop sichtbar */
.header-search {
    display: none; /* Komplett entfernt wie gewünscht */
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 12px 50px 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    background: var(--background-white);
    border-top: 1px solid var(--border-light);
    padding: 1rem 0;
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto;
}

.hero-search .search-input {
    padding: 16px 60px 16px 20px;
    font-size: 1.1rem;
    border: none;
}

.hero-search .search-btn {
    width: 44px;
    height: 44px;
    right: 6px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
}

/* Top Drinks Section */
.top-drinks-section {
    padding: 4rem 0;
    background: var(--background-white);
}

.top-drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.top-drink-card {
    background: var(--background-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.top-drink-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.top-drink-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow-medium);
    border-color: var(--primary-blue);
}

.top-drink-rank {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.top-drink-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* *** NEU: Verbessertes Bild-System mit Fallbacks *** */
.top-drink-image img,
.drink-image img {
    width: 100px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.top-drink-image img:hover,
.drink-image img:hover {
    transform: scale(1.05);
}

/* Fallback für kaputte Bilder */
.top-drink-image img[src=""],
.top-drink-image img:not([src]),
.drink-image img[src=""],
.drink-image img:not([src]) {
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.top-drink-image img[src=""]:before,
.top-drink-image img:not([src]):before,
.drink-image img[src=""]:before,
.drink-image img:not([src]):before {
    content: "🥤";
    font-size: 3rem;
    color: var(--primary-blue);
}

/* Platzhalter für nicht ladende Bilder */
.image-placeholder {
    width: 100px;
    height: 150px;
    background: var(--light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-blue);
    margin: 0 auto;
}

.top-drink-info h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.top-drink-brand {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.top-drink-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-item .stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Drinks Grid */
.drinks-section {
    padding: 4rem 0;
}

.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.drink-card {
    background: var(--background-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-light);
    transition: all 0.3s ease;
}

.drink-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.drink-image {
    position: relative;
    height: 200px;
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.drink-image img {
    width: 120px;
    height: 180px;
    object-fit: contain;
}

.drink-info {
    padding: 1.5rem;
}

.drink-info h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.drink-brand {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.drink-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.drink-stat {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: var(--light-blue);
    border-radius: 6px;
}

.drink-stat .value {
    display: block;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.drink-stat .label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.drink-actions {
    display: flex;
    gap: 0.75rem;
}

.drink-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    background: var(--background-white);
    color: var(--text-dark);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.pagination-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-blue);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 3rem auto;
    background: var(--background-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-light);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

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

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--success-green);
    color: #2e7d32;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border-color: var(--error-red);
    color: #c62828;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: var(--warning-orange);
    color: #ef6c00;
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--primary-blue);
    color: var(--dark-blue);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--shadow-medium);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

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

.footer-section h3 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.footer-text {
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #ccc;
    margin: 0;
}

.affiliate-notice {
    color: #999;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Header */
    .logo-img {
        height: 180px; /* Proportional zu 250px Desktop */
    }
    
    .main-nav .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* *** NEU: Header-Suchleiste auf Mobile verstecken *** */
    .header-search {
        display: none !important;
    }
    
    /* Mobile Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Mobile Grids */
    .top-drinks-grid,
    .drinks-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Mobile Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Mobile Forms */
    .form-container {
        padding: 2rem 1.5rem;
        margin: 0 15px;
    }
    
    /* Mobile Footer */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .drinks-grid {
        grid-template-columns: 1fr;
    }
    
    .top-drink-card,
    .drink-card {
        margin: 0 10px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-white);
    animation: spin 1s ease-in-out infinite;
}

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

/* *** NEU: Bild-Fehlerbehandlung mit JavaScript *** */
.image-error {
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-error::before {
    content: "🥤";
    font-size: 3rem;
    color: var(--primary-blue);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none; }
.visible { display: block; }