/* Grundgerüst */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* Kopfzeile */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 150px; 
    width: auto;
}

.seiten-titel {
    color: #C1121F;
    font-size: 55px;
    margin: 0;
    font-family: 'Dancing Script', cursive;
    text-align: center;
    letter-spacing: 3px;
    transform: scaleX(1.15);
    display: inline-block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

nav a:hover {
    color: #C1121F;
}

/* 1. Home Bereich */
.willkommen-bereich {
    text-align: center;
    padding: 100px 20px;
    background-color: #ffffff;
}

.willkommen-text h2 {
    color: #C1121F;
    font-size: 36px;
    margin-bottom: 10px;
}

.willkommen-text p {
    font-size: 22px;
    color: #555;
    margin: 0;
}

/* ========================================================== */
/* 2. Su di me (Über mich) mit Holz & Tuch-Hintergrund       */
/* ========================================================== */
.su-di-me-bereich {
    padding: 80px 20px;
    /* Hier ist der neue Name für das Holzbild */
    background-image: url('hintergrund-rustikal.jpg');
    background-size: cover;       
    background-position: center; 
    background-repeat: no-repeat; 
}

.su-di-me-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
}

.su-di-me-bild img.portrait {
    width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.su-di-me-text {
    max-width: 500px;
}

.su-di-me-text h2 {
    color: #C1121F;
    font-size: 32px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.su-di-me-text p {
    font-size: 18px;
    color: #444; 
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ========================================================== */
/* 3. Ricette Bereich mit Kästchenmuster-Hintergrund        */
/* ========================================================== */
.ricette-section {
    padding: 80px 20px;
    /* Hier ist der neue Name für das Kästchen-Muster */
    background-image: url('hintergrund-karo.jpg');
    background-repeat: repeat; 
    text-align: center;
}

.section-title {
    color: #C1121F;
    font-size: 32px;
    margin-bottom: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ricette-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.ricetta-card {
    width: 22%;
    min-width: 200px;
    text-decoration: none;
    transition: transform 0.3s ease;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ricetta-card:hover {
    transform: scale(1.05);
}

.ricetta-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #eeeeee;
}

.ricetta-card h3 {
    color: #333333;
    font-size: 18px;
    margin: 0;
    padding: 10px 0;
    font-weight: normal;
}

.ricetta-card:hover h3 {
    color: #C1121F;
    font-weight: bold;
}

/* 4. Social Media Bereich */
.social-bereich {
    text-align: center;
    padding: 100px 20px;
    background-image: url('hintergrund-social.jpg');
    background-size: cover;
    background-position: center;
    border-top: 1px solid #eeeeee;
}

.social-bereich h2 {
    color: #C1121F;
    font-size: 32px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.btn.facebook { background-color: #1877F2; }
.btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn.tiktok { background-color: #000000; }

/* ========================================================== */
/* 5. Design für 3 Bilder pro Reihe & Einzel-Rezepte          */
/* ========================================================== */

/* Macht die Karten breiter, sodass genau 3 in eine Reihe passen */
.ricetta-card-3 {
    width: 30%; 
    min-width: 280px; 
}

/* Das Design für die Seite, auf der das eigentliche Rezept steht */
.einzel-rezept-bereich {
    padding: 50px 20px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
}

.rezept-kopf {
    text-align: center;
    margin-bottom: 40px;
}

.rezept-kopf h2 {
    color: #C1121F;
    font-size: 40px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.rezept-hauptbild {
    width: 100%;
    max-width: 600px; /* Das Bild wird schön groß, aber nicht riesig */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Flexbox, damit Zutaten links und Zubereitung rechts stehen */
.rezept-inhalt {
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* Bricht auf Handys automatisch um */
    background-color: #fafafa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.zutaten {
    flex: 1; /* Nimmt etwas weniger Platz ein */
    min-width: 250px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eeeeee;
}

.zubereitung {
    flex: 2; /* Nimmt mehr Platz ein, da der Text länger ist */
    min-width: 300px;
}

.zutaten h3, .zubereitung h3 {
    color: #C1121F;
    font-size: 24px;
    margin-top: 0;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.zutaten ul, .zubereitung ol {
    font-size: 18px;
    color: #444;
    line-height: 1.6;
    padding-left: 20px;
}

.zutaten li, .zubereitung li {
    margin-bottom: 12px;
}

/* --- HANDY ANPASSUNG (MOBILE RESPONSIVE) --- */
@media screen and (max-width: 768px) {
    
    * {
        box-sizing: border-box !important;
    }

    body, html {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }

    /* 1. Nichts mehr abgeschnitten! Etwas Platz zum Handy-Rand */
    section, .ricette-section, [class*="-bereich"], [class*="section"] {
        padding: 20px 15px !important; 
        width: 100% !important;
        display: block !important;
    }

    .ricette-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important; 
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* 2. DER WEISSE KASTEN mit ca. 2mm Rand um das Bild */
    .ricetta-card, .ricetta-card-3 {
        width: 100% !important;
        min-width: 0 !important; /* SUPER WICHTIG: Verhindert, dass die linke Seite aus dem Bildschirm geschoben wird! */
        background-color: #fff !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 6px !important; /* Hier ist der 2mm-Abstand! */
        margin: 0 !important;
    }

    /* 3. DAS BILD füllt den Platz wieder komplett ohne Lücken */
    .ricetta-card img, .ricetta-card-3 img {
        width: 100% !important;
        height: 130px !important; 
        object-fit: cover !important; /* Füllt das Bild perfekt aus! */
        border-radius: 8px !important; /* Passt sich der Kurve des Kastens an */
        display: block !important;
    }

    /* 4. DER TEXT - Zentriert und bricht automatisch um */
    .ricetta-card h3, .ricetta-card-3 h3 {
        font-size: 12px !important; 
        font-weight: bold !important; 
        color: #333 !important;
        padding: 8px 2px 2px 2px !important;
        text-align: center !important; /* Text wieder in der Mitte */
        line-height: 1.3 !important; 
        
        white-space: normal !important; /* Erlaubt den Sprung in die nächste Zeile */
        word-wrap: break-word !important; 
        overflow-wrap: break-word !important;
        
        min-height: 45px !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Restliche Bereiche */
    .su-di-me-container { flex-direction: column; text-align: center; padding: 20px; }
    .su-di-me-bild img.portrait { width: 100% !important; max-width: 250px; }
    .social-links { flex-direction: column; align-items: center; gap: 15px; }
    .social-links .btn { width: 80%; }
}