/* ==========================================
    1. GRUNDLAGEN & RESET
    ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #383838; /* Etwas weicheres Schwarz aus dem Original-CSS */
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typografie */
h1, h2, h3 {
    font-weight: normal;
    margin-bottom: 1.5rem;
    color: #000;
}

p {
    margin-bottom: 1.5rem;
}

ul {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5rem;
}

/* Container für zentrierten Inhalt */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Text-Container (etwas schmaler für bessere Lesbarkeit) */
.text-container {
    max-width: 916px; /* Aus deinem Desktop-CSS übernommen */
    margin: 0 auto;
}

/* ==========================================
    2. HEADER & NAVIGATION (Passend zur Startseite)
    ========================================== */
.header-content {
    background-color: #d1e3ed;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;;
    text-align: center;
    gap: 20px;
}

.header-text p {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #444;
}

/* ==========================================
   3. BILDERGALERIE (CSS Grid) - FIX
   ========================================= */
.gallery-wrapper {
    background-color: #fff;
    padding: 20px 0 40px;
}

.gallery {
    display: grid;
    gap: 15px;
    
    /* --- DIE WICHTIGSTEN FIXES HIER --- */
    
    /* 1. Wir definieren feste Spaltenbreiten statt 'auto-fill' mit '1fr' */
    /* Auf dem Handy: 2 Spalten nebeneinander, je 165px breit */
    grid-template-columns: repeat(2, 165px);
    
    /* 2. Zentriert die gesamte Galerie-Gruppe horizontal im Container */
    justify-content: center; 
}

.gallery img {
    width: 100%; /* Füllt die 165px Spalte aus */
    
    /* Zwingt das Bild in ein perfektes Quadrat, damit border-radius funktioniert */
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    
    /* Deine gewünschte Tropfenform */
    border-radius: 0 50% 50% 50%; 
    
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==========================================
    4. INHALTSBEREICH & AUSSTATTUNG
    ========================================== */
.content-section {
    padding: 40px 20px;
}

.section-title {
    font-size: 1.6rem;
    margin-top: 2rem;
    text-transform: uppercase;
}

/* Hervorhebungen */
.alert-text {
    color: #d71d23; /* Original-Rotton für den Nichtraucher/Haustier-Hinweis */
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #f9f9f9;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #eaeaea;
    font-size: 0.9rem;
    color: #666;
}

/* ==========================================
    5. RESPONSIVE DESIGN (TABLETS & DESKTOP)
    ========================================== */
@media (min-width: 768px) {
    /* Header nebeneinander auf großen Screens */
    .header-content {
        flex-direction: row;
        justify-content: center;
        text-align: left;
        gap: 50px;
    }
    .content-section {
        padding: 60px 40px;
    }
    .gallery {
        /* Auf dem Desktop: 4 Spalten nebeneinander, je 250px breit */
        grid-template-columns: repeat(4, 250px);
        gap: 25px; /* Größerer Abstand auf Desktop */
    }
}