/* ===========================
   Grundvariablen
=========================== */
:root {
    --primary: #000000;
    --secondary: #d4af37;
    --bg: #f7f7f7;
    --text: #222;
    --radius: 8px;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: 0.3s ease;
    --max-width: 1200px;
}

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

body {
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    border-radius: var(--radius);
    display: block;
}

/* ===========================
   Layout
=========================== */
.section {
    padding: 60px 20px;
    max-width: var(--max-width);
    margin: auto;
}

h2 {
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 2rem;
    text-align: center;
}

/* ===========================
   Header & Navigation
=========================== */
header {
    background: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.desktop-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: var(--secondary);
}

/* Mobile Menu */
.nav-burger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

#mobileMenu {
    display: none;
    background: white;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    box-shadow: var(--shadow);
}

#mobileMenu.open {
    display: block;
}

#mobileMenu ul {
    list-style: none;
}

#mobileMenu a {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: var(--text);
}

#mobileMenu a:hover {
    background: var(--secondary);
    color: white;
}

/* ===========================
   Hero Slider
=========================== */
.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    text-shadow: 0 0 10px black;
}

/* ===========================
   Cards
=========================== */
.card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* ===========================
   Grid Layouts
=========================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* ===========================
   Speisekarte
=========================== */
.menu-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.price {
    font-weight: bold;
    color: var(--secondary);
}

/* ===========================
   Galerie
=========================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

/* ===========================
   Öffnungszeiten
=========================== */
.zeiten-table {
    width: 100%;
    border-collapse: collapse;
}

.zeiten-table td {
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
}

/* ===========================
   Footer
=========================== */
footer {
    text-align: center;
    padding: 30px;
    background: #111;
    color: white;
    margin-top: 40px;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .nav-burger {
        display: block;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 40vh;
    }
}


/* ===========================
   DESIGN-SYSTEM – VARIABLES
=========================== */
:root {
    --primary: #000000;
    --secondary: #d4af37;

    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --info: #3498db;

    --bg: #f7f7f7;
    --text: #222;

    --radius: 8px;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: 0.25s ease;
    --max-width: 1200px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

/* Primary */
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: #333;
}

/* Secondary */
.btn-secondary {
    background: var(--secondary);
    color: white;
}
.btn-secondary:hover {
    background: #b8962f;
}

/* Ghost */
.btn-ghost {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-ghost:hover {
    background: var(--primary);
    color: white;
}

/* Danger */
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #c0392b;
}

/* Sizes */
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 16px 28px; font-size: 1.1rem; }

/* ===========================
   FORM ELEMENTS
=========================== */
.input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.input:focus,
textarea:focus,
select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.25);
    outline: none;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

/* ===========================
   ALERTS
=========================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: var(--shadow);
}

.alert-info {
    background: rgba(52,152,219,0.15);
    border-left: 5px solid var(--info);
}

.alert-success {
    background: rgba(46,204,113,0.15);
    border-left: 5px solid var(--success);
}

.alert-warning {
    background: rgba(241,196,15,0.15);
    border-left: 5px solid var(--warning);
}

.alert-danger {
    background: rgba(231,76,60,0.15);
    border-left: 5px solid var(--danger);
}

/* ===========================
   GRID SYSTEM
=========================== */
.grid {
    display: grid;
    gap: 25px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   UTILITY CLASSES
=========================== */
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }

.w-100 { width: 100%; }

/* ===========================
   CARD COMPONENT
=========================== */
.card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 700;
}

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

/* ===========================
   TABLES
=========================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table td, .table th {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}

/* ===========================
   BADGES
=========================== */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary { background: var(--primary); color: white; }
.badge-secondary { background: var(--secondary); color: white; }
.badge-success { background: var(--success); color: white; }
.badge-warning { background: var(--warning); color: black; }
.badge-danger { background: var(--danger); color: white; }

/* ===========================
   MODALS (optional)
=========================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow);
}
