/* =========================================
   1. Globale Einstellungen & Reset
   ========================================= */
:root {
    --primary-color: #2ecc71; /* Frisches Neon-Grün */
    --secondary-color: #e67e22; /* Koch-Orange */
    --bg-dark: #121212; /* Sehr dunkler Hintergrund */
    --bg-card: rgba(30, 30, 30, 0.85); /* Halbtransparente Karte */
    --text-main: #ecf0f1; /* Fast Weiß */
    --text-muted: #bdc3c7; /* Hellgrau */
    --font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --border-radius: 12px;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-dark);
    /* Ein dunkles, stimmungsvolles Hintergrundbild einer Profiküche */
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9)), 
                      url('https://images.unsplash.com/photo-1556910103-1c02745aae4d?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 40px 20px;
}

/* =========================================
   2. Header & Hauptinhalt
   ========================================= */
header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 10px rgba(46, 204, 113, 0.3);
}

main {
    max-width: 900px;
    margin: 0 auto 40px auto;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px); /* Glas-Effekt */
}

.main_img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 4px);
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

main p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

main p br {
    display: none; /* Br-Tags auf großen Bildschirmen ignorieren für besseren Fluss */
}

/* =========================================
   3. Überschrift & Tabelle
   ========================================= */
h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

h2 + p {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 25px;
    padding-left: 20px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 50px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

th, td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background-color: rgba(46, 204, 113, 0.1); /* Hauch von Grün */
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

td {
    color: var(--text-main);
    font-size: 1.05rem;
}

/* Spezifische Icons für die Kategorien (Simuliert) */
td:nth-child(2) {
    color: var(--text-muted);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    cursor: default;
}

/* =========================================
   4. Der Rezept-Button (CTA)
   ========================================= */
.button-link {
    display: table; /* Zentriert den Button-Inhalt */
    margin: 0 auto;
    background-color: var(--secondary-color);
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px; /* Vollständig abgerundet */
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
    position: relative;
    overflow: hidden;
}

.button-link::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: all 0.3s ease;
}

.button-link:hover {
    background-color: #d35400;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.5);
}

.button-link:hover::after {
    opacity: 1;
}

.button-link:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.4);
}

/* =========================================
   5. Responsives Design (Mobilgeräte)
   ========================================= */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    main {
        padding: 20px;
    }

    .main_img {
        max-height: 300px;
    }

    main p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    main p br {
        display: inline; /* Br-Tags auf dem Handy wieder anzeigen */
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Tabelle für Handys optimieren */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        overflow: hidden;
    }

    td {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
        padding-left: 50%; /* Platz für das Label */
        text-align: right;
    }

    td:last-child {
        border-bottom: none;
    }

    td::before {
        position: absolute;
        top: 50%;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        transform: translateY(-50%);
        text-align: left;
        font-weight: 700;
        color: var(--primary-color);
        content: attr(data-label); /* Wir müssen data-labels im HTML hinzufügen */
    }

    .button-link {
        display: block;
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }
}