/* Dark Love Design */
:root {
    /* Color Palette - Dark Love Theme */
    --primary-color: #ff2a6d;       /* Vibrant Pink/Red */
    --primary-dark: #c01e52;        /* Darker Pink */
    --secondary-color: #790c5a;     /* Deep Purple/Plum */
    --accent-color: #ffc857;        /* Gold/Yellow for highlights */
    --danger-color: #ff4b4b;        /* Bright Red */
    --success-color: #05d588;       /* Bright Teal/Green */
    
    /* Text Colors */
    --text-main: #f3f4f6;           /* Off-White */
    --text-muted: #9ca3af;          /* Light Gray */
    --text-dark: #1f2937;           /* Dark Gray (for light bg elements if any) */

    /* Backgrounds */
    --bg-body: #0f172a;             /* Very Dark Blue/Gray */
    --bg-card: #1e293b;             /* Dark Gray Blue */
    --bg-header: #111827;           /* Almost Black */
    --bg-input: #334155;            /* Dark Input Bg */

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
    box_sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

/* Layout Containers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
header {
    background-color: var(--bg-header);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid #374151;
}

header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 42, 109, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(255, 42, 109, 0.5);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2e1065, #be123c); /* Deep Purple to Pink */
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-main);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.75rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Winners Grid (Testsieger) */
.winners-section {
    margin-bottom: 5rem;
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.winner-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--accent-color);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.winner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    border-color: #ffd700;
}

.winner-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.winner-image-container {
    width: 100%;
    height: 220px;
    background-color: #0f172a;
    overflow: hidden;
}

.winner-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.winner-card:hover .winner-image-container img {
    transform: scale(1.05);
    opacity: 1;
}

.winner-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.winner-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.rating-stars {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.winner-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Reviews Grid (Negative) */
.reviews-section {
    margin-bottom: 5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    border-left: 5px solid var(--danger-color);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background-color: #263345;
}

.review-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.review-title a {
    color: var(--text-main);
}

.review-title a:hover {
    color: var(--primary-color);
}

.review-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem; /* Reduced horizontal padding */
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: nowrap; /* Prevent text wrapping if desired, or use normal */
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(255, 42, 109, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(255, 42, 109, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #475569;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 42, 109, 0.1);
    color: white;
}

/* Review Detail Page */
.review-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 900px) {
    .review-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.review-detail {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.review-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--text-main);
}

.review-body {
    font-size: 1.05rem;
    color: #cbd5e1;
}

.review-body h2, .review-body h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.review-body p {
    margin-bottom: 1.5rem;
}

/* Sidebar Widgets */
.sidebar-sticky {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-main);
}

.winner-sidebar-card {
    background: var(--bg-card);
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.2s;
}

.winner-sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 15px rgba(255, 200, 87, 0.2);
}

.winner-sidebar-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    background-color: #0f172a;
}

.winner-sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: #f59e0b;
}

.alert-danger {
    background-color: rgba(220, 38, 38, 0.1);
    color: #f87171;
    border-color: #dc2626;
}

/* Footer */
footer {
    background-color: #020617;
    color: #64748b;
    padding: 4rem 0;
    margin-top: 6rem;
    text-align: center;
    border-top: 1px solid #1e293b;
}

footer a {
    color: #cbd5e1;
}

footer a:hover {
    color: var(--primary-color);
}

/* Admin Login */
.admin-login {
    max-width: 450px;
    margin: 5rem auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
}

.form-control {
    background-color: var(--bg-input);
    border: 1px solid #475569;
    color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 42, 109, 0.2);
}

/* Responsive Utils */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }

    .nav-links {
        display: none; /* Simple mobile menu fix - can be expanded */
    }
}

/* Animations */
@keyframes flash-pulse {
    0% { background-color: var(--danger-color); box-shadow: 0 0 10px var(--danger-color); }
    50% { background-color: #ff0055; box-shadow: 0 0 20px #ff0055; transform: scale(1.01); }
    100% { background-color: var(--danger-color); box-shadow: 0 0 10px var(--danger-color); }
}

.flashing-banner {
    background: linear-gradient(45deg, #ff0055, #ff9900);
    color: white;
    text-align: center;
    padding: 1rem;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 1.5rem auto;
    border-radius: var(--radius-md);
    animation: flash-pulse 2s infinite;
    cursor: pointer;
    display: block;
    text-decoration: none;
    border: 2px solid white;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 800px;
}

.flashing-banner:hover {
    animation: none;
    transform: scale(1.03);
    background: linear-gradient(45deg, #ff9900, #ff0055);
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--accent-color);
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.sticky-footer p {
    margin: 0;
    color: var(--text-main);
    font-weight: 500;
}

@media (max-width: 768px) {
    .sticky-footer {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
    }
    
    .sticky-footer p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .sticky-footer .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Responsive Flashing Banner */
@media (max-width: 600px) {
    .flashing-banner {
        font-size: 1rem;
        padding: 0.75rem;
    }
}

/* Sticky Footer CTA (for review.php) */
.sticky-footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--accent-color);
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.5s ease-out;
}

@media (max-width: 768px) {
    .sticky-footer-cta {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .sticky-footer-cta .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .sticky-footer-cta span {
        display: none; /* Hide "Beste Alternative:" label on mobile */
    }
}

/* Fix button text wrapping on mobile */
@media (max-width: 480px) {
    .btn {
        white-space: normal;
        height: auto;
        padding: 0.75rem;
        line-height: 1.2;
    }
}
