/* -----------------------------
   Global Styles
----------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", Arial, sans-serif;
}

body {
    background: #ffffff;
    color: #111;
    line-height: 1.6;
}

/* -----------------------------
   Container
----------------------------- */
.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* -----------------------------
   Hero
----------------------------- */
.hero img {
    width: 100%;
    max-height: 700px;
    object-fit: cover;  /* Bild wird proportional zugeschnitten, füllt den Bereich */
    display: block;
    border-radius: 8px;
}

/* -----------------------------
   Grid Section (max. 3 Kacheln pro Reihe)
----------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* maximal 3 Kacheln pro Reihe */
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 960px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* Tablets: 2 pro Reihe */
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr; /* Smartphones: 1 pro Reihe */
    }
}

.card {
    background: #fff;
    border: 1px solid #DDD;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: auto;
}

.card h3 {
    margin: 16px;
    font-size: 1.1rem;
    color: #398C92;
}

.card p {
    margin: 0 16px 16px 16px;
    font-size: 0.95rem;
    color: #555;
}

/* -----------------------------
   Feature Row
----------------------------- */
.feature-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

.feature-row img {
    width: 100%;
    border-radius: 8px;
}

.feature-row .text h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #398C92;
}

.feature-row .text p {
    margin-bottom: 16px;
    color: #555;
}

/* -----------------------------
   Center Feature
----------------------------- */
.center-feature {
    text-align: center;
    margin-top: 60px;
}

.center-feature img {
    width: 100%;
    max-width: 600px;
    margin-bottom: 24px;
    border-radius: 8px;
}

.center-feature h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #398C92;
}

.center-feature p {
    max-width: 700px;
    margin: 0 auto 16px auto;
    color: #555;
    line-height: 1.5;
}

/* -----------------------------
   Footer / Hinweis
----------------------------- */
.center-feature p:last-child {
    font-size: 0.85rem;
    color: #777;
}

/* -----------------------------
   Buttons (CTA optional)
----------------------------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.btn.primary {
    background: #398C92;
    color: #fff;
    border: 2px solid #398C92;
}

.btn.primary:hover {
    background: #2c6e73;
}

/* -----------------------------
   Forms
----------------------------- */
.form {
    max-width: 600px;
    background: #fff;
    border: 1px solid #DDD;
    padding: 1.6rem;
    border-radius: 8px;
}

.form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form input {
    width: 100%;
    padding: 0.7rem;
    margin: 0.4rem 0 1rem 0;
    border-radius: 6px;
    border: 1px solid #DDD;
}

/* -----------------------------
   FAQ
----------------------------- */
details {
    background: #fff;
    border: 1px solid #DDD;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.7rem 0;
}

details summary {
    cursor: pointer;
    font-weight: 600;
}

details p {
    margin-top: 0.7rem;
}

/* -----------------------------
   Footer
----------------------------- */
.footer {
    padding: 2rem 0;
    border-top: 1px solid #DDD;
    margin-top: 2rem;
}

.footer p {
    margin-bottom: 0.4rem;
}

.muted {
    color: #777;
}

/* -----------------------------
   Erfolgspopup
----------------------------- */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #398C92; /* Petrol */
    color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    display: none;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.popup button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    background: #fff;
    color: #398C92;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

/* -----------------------------
   Ausrichtung Formular, FAQ & Footer wie erste Grid-Kachel
----------------------------- */
.align-grid-col {
    max-width: calc((1200px - 2*20px - 2*30px) / 3); /* entspricht exakter Kachelbreite */
    margin-left: calc(20px + 0*( (1200px - 2*20px - 2*30px)/3 + 30px )); /* exakte Position erste Kachel */
}

@media (min-width: 961px) {
    .align-grid-col {
        /* bleibt linksbündig unter erster Kachel */
    }
}

@media (max-width: 960px) {
    .align-grid-col {
        max-width: 100%;
        margin-left: 0;
    }
}
