/* GRUNDLEGENDE STILE & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #E86A33; /* Gebranntes Orange - Akzentfarbe für Hacks/Buttons */
    --color-dark: #111;
    --color-light: #F8F8F8;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    /* Platzhalter-Wert für den fixierten Header (muss ggf. angepasst werden) */
    padding-top: 220px; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b05027; /* Dunklere Akzentfarbe */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

/* HEADER BEREICH (FIXIERT) */
.main-header {
    background-color: #fff;
    border-bottom: 3px solid var(--color-primary); /* Akzent-Linie */
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.blog-title {
    font-size: 2.5em; 
    letter-spacing: 3px;
    margin-bottom: 0;
    color: var(--color-dark);
}

.tagline {
    font-family: var(--font-body);
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
}

.main-nav ul {
    list-style: none;
    text-align: center;
    padding-top: 10px;
}

.main-nav ul li {
    display: inline-block;
    margin: 0 15px;
}

.main-nav ul li a {
    font-family: var(--font-heading);
    font-size: 1em;
    font-weight: 700;
    color: var(--color-dark);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav ul li a.active,
.main-nav ul li a:hover {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}


/* HAUPTINHALT & LAYOUT (GRID-STRUKTUR) */
.main-content {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
}

.latest-posts {
    flex: 3; /* Nimmt 3/4 des Platzes ein */
    margin-right: 40px;
}

.sidebar {
    flex: 1; /* Nimmt 1/4 des Platzes ein */
    padding-left: 20px;
    border-left: 1px solid #ddd;
}

/* POST KARTE */
.post-card {
    background-color: #fff;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
}

.post-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 3px;
    border: 1px solid #eee;
}

.post-content {
    flex: 1;
}

.post-category {
    display: block;
    font-size: 0.8em;
    font-weight: 700;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.post-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: var(--color-primary); 
    color: #fff;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #b05027; 
}

/* HACK POST SPEZIALSTIL */
.hack-post {
    border-left: 5px solid var(--color-primary); /* Hebt Hacks visuell hervor */
    background-color: #fffaf7; /* Sehr heller, warmer Hintergrund */
}

.hack-label {
    color: var(--color-primary);
}


/* SIDEBAR STILE */
.sidebar-widget {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.03);
}

.sidebar-widget h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px dashed #eee;
    padding-bottom: 5px;
}

.category-widget ul {
    list-style: none;
}

.category-widget ul li {
    margin-bottom: 8px;
}

.category-widget ul li a {
    color: #555;
    font-weight: 400;
}

.profile-pic {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 3px solid var(--color-primary); 
}

.about-widget p {
    font-size: 0.9em;
    text-align: center;
}


/* FOOTER BEREICH */
.main-footer {
    background-color: var(--color-dark);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.85em;
}

.main-footer a {
    color: var(--color-primary);
    margin: 0 8px;
}

.main-footer a:hover {
    color: #fff;
}

/* RESPONSIVES DESIGN */
/* ... (Dein Footer-Code endet hier) ... */

/* HIER FÜGST DU DEN NEUEN CODE FÜR HANDYS EIN (max-width: 768px) */
@media (max-width: 768px) {
    
    /* 1. Header Anpassungen für sehr kleine Bildschirme */
    .main-header {
        padding: 15px 0;
    }
    
    .blog-title {
        font-size: 2em;
        letter-spacing: 1px;
    }
    
    .tagline {
        display: none;
    }

    /* 2. Navigation vertikal anordnen */
    .main-nav ul {
        padding-top: 10px;
        overflow-x: auto; 
        white-space: nowrap;
        text-align: left;
        -webkit-overflow-scrolling: touch; 
    }
    
    .main-nav ul li {
        display: inline-block;
        margin: 0 10px;
    }
    
    .main-nav ul li a {
        font-size: 0.9em;
    }

    /* 3. Main-Content (übernommen von 992px-Regel) */
    .main-content {
        flex-direction: column;
        padding-top: 20px;
    }

    .latest-posts, .sidebar {
        flex: auto;
        margin-right: 0;
        padding-left: 0;
        border-left: none;
    }
    
    /* 4. Post-Karte Anpassung */
    .post-card {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }
    
    .post-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .post-title {
        font-size: 1.3em;
    }

    /* 5. Padding für Body anpassen */
    body {
        padding-top: 110px;
    }

}
/* ENDE DES NEUEN MOBILE-CODES */

/* ======================================================= */
/* REZEPT SPEZIFISCHE STILE (story-box, table, map) */
/* ... (Dein rezeptspezifischer Code beginnt hier) ... */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .latest-posts {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .sidebar {
        border-left: none;
        padding-left: 0;
    }
    
    .post-card {
        flex-direction: column;
        align-items: center;
    }
    
    .post-image {
        width: 100%;
        max-width: 350px;
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    body {
        /* Mobile Header ist oft kleiner, also padding reduzieren */
        padding-top: 130px; 
    }
}

/* ======================================================= */
/* REZEPT SPEZIFISCHE STILE (story-box, table, map) */
/* ======================================================= */

/* Stil für die Story-Box (ersetzt Inline-Style) */
.story-box {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    /* Linker Akzent wie auf der Hack-Post */
    border-left: 5px solid var(--color-primary); 
}

.story-title {
    margin-top: 0;
    color: var(--color-primary); /* Akzentfarbe für den Titel der Geschichte */
}

.map-heading {
    margin-top: 20px;
    font-size: 1.2em;
}

/* Container für Google Maps iFrame (damit das Mapping richtig aussieht) */
.map-container {
    width: 100%;
    height: 300px;
    background-color: #eee; 
    border: 1px solid #ccc; 
    margin-top: 15px;
    overflow: hidden; /* Stellt sicher, dass das iFrame die Grenzen nicht überschreitet */
}

/* Stellt sicher, dass der iFrame die volle Größe des Containers einnimmt */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Stil für die Zutaten-Tabelle */
.ingredients-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-family: var(--font-body);
    font-size: 0.95em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ingredients-table th {
    padding: 12px 10px;
    text-align: left;
    background-color: var(--color-dark); /* Dunkler Hintergrund für Header */
    color: #fff;
    font-family: var(--font-heading);
}

.ingredients-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.ingredients-table tr:last-child td {
    border-bottom: none;
}

/* Stil für die Zubereitungs-Liste (Algorithmus) */
.recipe-steps {
    padding-left: 20px;
    list-style-type: none; /* Entfernt die Standardnummerierung */
    counter-reset: step-counter; /* Setzt Zähler zurück */
}

.recipe-steps li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px; /* Platz für die benutzerdefinierte Nummer */
}

.recipe-steps li:before {
    counter-increment: step-counter;
    content: counter(step-counter) "."; /* Zeigt die Zahl gefolgt von einem Punkt */
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.3em;
    position: absolute;
    left: 0;
    top: 0;
}

/* Styling für den Hack-Block innerhalb der Schritte (nutzt bestehenden hack-block Stil) */
.hack-block {
    list-style: none; /* Hack soll keine Nummerierung haben */
    padding: 15px !important; 
    border-left: 5px solid var(--color-primary) !important; 
    background-color: #fffaf7 !important; 
    margin: 15px 0 !important;
}

/* Titel für Rezeptabschnitte */
.recipe-heading {
    margin-top: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}
/* Stil für die Zutaten-Tabelle */
.ingredients-table {
    /* ... deine bestehenden Stile ... */
}

/* DIESEN CODE FÜR RESPONSIVE TABELLEN HINZUFÜGEN: */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}