/* ------------------------------
   Globaler Container (80%)
--------------------------------*/
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ------------------------------
   Grundlayout & Typografie
--------------------------------*/
body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: #222;
    background: #fff;
}

/* Quittenholz-Farbton */
:root {
    --quittenholz: #fad8a8;
}

/* ------------------------------
   Header
--------------------------------*/
.hero {
    padding: 2rem 0;
    text-align: center;
    border-bottom: 3px solid var(--quittenholz);
}

.logo {
    max-width: 240px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ------------------------------
   Sektionen
--------------------------------*/
section {
    padding: 1.2rem 0;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ------------------------------
   Work Grid / Kacheln (CSS GRID)
   iOS-sicher + Desktop-zentriert
--------------------------------*/
.work-grid {
    display: grid;
    gap: 2rem;
    justify-content: center;

    /* Standard (iOS-sicher) */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Desktop: wieder perfekt zentriert */
@media (min-width: 900px) {
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* Kachel */
.card {
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.card h1 {
    margin: 0 0 0.8rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Bilder füllen 80% der Kachelbreite */
.card img {
    width: 80%;
    height: auto;
    border-radius: 8px;

    /* iOS Fix */
    -webkit-object-fit: contain;
    object-fit: contain;

    display: block;
    margin: 0 auto;
}

/* ------------------------------
   Footer
--------------------------------*/
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 3px solid var(--quittenholz);
    font-size: 0.9rem;
    color: #444;
}

/* ------------------------------
   Responsive Design
--------------------------------*/

/* Mobile Typografie */
@media (max-width: 600px) {
    body {
        font-size: 16px;
    }
}

/* Grössere Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}
