/* Movie Trivia - Main Stylesheet */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    background-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    header {
        background-color: #2a2a2a;
        border-bottom-color: #444;
    }
    
    nav a {
        color: #e0e0e0;
    }
    
    nav a:hover {
        color: #ff6b6b;
    }
    
    .hero {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }
    
    .card {
        background-color: #2a2a2a;
        border-color: #444;
    }
    
    .card:hover {
        border-color: #666;
    }
    
    footer {
        background-color: #2a2a2a;
        border-top-color: #444;
    }
    
    input, textarea {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
    }
    
    input:focus, textarea:focus {
        border-color: #ff6b6b;
    }
    
    button {
        background-color: #ff6b6b;
        color: #fff;
    }
    
    button:hover {
        background-color: #ff5252;
    }
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff5252;
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

nav {
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #f5f5f5;
    color: #ff6b6b;
    text-decoration: none;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

article {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #ff6b6b;
}

.card h3 {
    color: #ff6b6b;
    margin-bottom: 0.75rem;
}

.card p {
    color: #666;
    margin-bottom: 1rem;
}

.card .meta {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 0.5rem;
}

/* Blog Post Styles */
.subtitle {
    font-size: 1.25rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.meta {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.hero-image {
    margin: 2rem 0;
    text-align: center;
}

.hero-image svg {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-image { width: 100%; }
.hero-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto; /* behält das Seitenverhältnis */
}

/* Sections */
section {
    margin: 2rem 0;
}

section h2 {
    color: #ff6b6b;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

section h3 {
    color: #333;
    margin-top: 1.5rem;
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Forms */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.contact-form p {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

.contact-form button {
    background-color: #ff6b6b;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #ff5252;
}

.mailto-fallback {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
    color: #666;
}

footer a {
    color: #666;
    margin: 0 0.5rem;
}

footer a:hover {
    color: #ff6b6b;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2a2a2a;
    color: white;
    padding: 1rem;
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-banner button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.cookie-banner .accept-btn {
    background-color: #ff6b6b;
    color: white;
}

.cookie-banner .accept-btn:hover {
    background-color: #ff5252;
}

.cookie-banner .settings-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-banner .settings-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal h2 {
    margin-bottom: 1rem;
    color: #333;
}

.cookie-modal p {
    margin-bottom: 1rem;
    color: #666;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cookie-modal button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.cookie-modal .save-btn {
    background-color: #ff6b6b;
    color: white;
}

.cookie-modal .save-btn:hover {
    background-color: #ff5252;
}

.cookie-modal .cancel-btn {
    background-color: #e0e0e0;
    color: #333;
}

.cookie-modal .cancel-btn:hover {
    background-color: #d0d0d0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #ff6b6b;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Print styles */
@media print {
    header, footer, nav {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .hero {
        background: none;
        color: black;
    }
}

