/* Base Design System for Heimatküche Freiburg - Dark Mode Edition */

:root {
    --primary-color: #4f4f4f;
    --secondary-color: #e3000f;
    --text-color: #e0e0e0;
    --bg-color: #1c1c1c; /* Dark Grey Background */
    --header-bg: #121212;
    --footer-bg: #121212;
    --white: #ffffff;
    --black: #000000;
    --card-bg: #2d2d2d;
    
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* @font-face placeholders - User should place font files in public/fonts/ */
@font-face {
    font-family: 'Raleway';
    src: url('../fonts/raleway-v28-latin-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/raleway-v28-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/raleway-v28-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-v51-latin-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-v51-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    text-decoration: none !important;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }

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

/* Header & Navigation */
header {
    background-color: var(--header-bg);
    color: var(--white);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.logo-container img {
    height: 120px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
}

/* Hero Section */
.hero {
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/freiburg_hero.jpg');
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    margin-bottom: 4rem;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #999;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid #333;
}

footer .footer-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.8rem;
}

footer .footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.admin-link {
    display: block;
    margin-top: 2rem;
    font-size: 0.7rem;
    color: #444 !important;
    opacity: 0.3;
}

.admin-link:hover {
    opacity: 1;
    color: var(--secondary-color) !important;
}

/* Menu Page Specifics */
.menu-content {
    max-width: 800px;
    margin: 0 auto;
}

.menu-content h3 {
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    color: #ffffff;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gallery img:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 500px;
    background-color: #2a2a2a;
    color: var(--white);
    padding: 2rem;
    z-index: 2000;
    display: none;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #444;
}

#cookie-banner .buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--black);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #444;
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #555;
}

/* Admin Styles */
.admin-login {
    max-width: 450px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.admin-login input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.2rem;
    background: #1c1c1c;
    border: 1px solid #444;
    color: white;
    border-radius: 6px;
}

.admin-dashboard {
    display: none;
}

#editor-container {
    height: 400px;
    margin-bottom: 1rem;
    background: #fff;
    color: #000;
}

/* Responsive */
@media (max-width: 800px) {
    header {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        display: none;
        margin-top: 1.5rem;
    }
    
    nav ul.show {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 1.5rem;
        top: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}
