/* Lato für Überschriften */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Bold.woff2') format('woff2'),
         url('fonts/Lato-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Merriweather für Fließtext */
@font-face {
    font-family: 'Merriweather';
    src: url('fonts/Merriweather48pt-Regular.woff2') format('woff2'),
         url('fonts/Merriweather48pt-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Überschriften */
h1, h2, h3, .box h1 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #4d7f2c; /* Akazie Grün */
}

/* Buttons */
a.btn, button.btn {
    font-family: 'Lato', sans-serif;
}

/* Basis-Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body mit Hintergrundbild */
body {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    color: #252525;
    min-height: 100vh;

    background-image: url('image/background_akazie.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Weißer Container */
.box {
    width: 100%;
    max-width: 480px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    text-align: center;
}

/* Überschrift & Text */
.box h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #4d7f2c;
    margin-bottom: 20px;
}

.box p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 40px;
    padding: 0 5px;
}

/* Moderner Button */
a.btn, button.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, #4d7f2c, #3a6320);
    border: none;
    border-radius: 10px; /* halb-runde Ecken */
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    margin: 5px;
}

/* Hover Effekt */
a.btn:hover, button.btn:hover {
    background: linear-gradient(135deg, #5ea03c, #487024);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

/* Responsive Design */

/* kleine Tablets / große Handys */
@media (max-width: 600px) {
    .box {
        padding: 40px 20px;
    }
    .box h1 {
        font-size: 2rem;
    }
    .box p {
        font-size: 1rem;
        margin-bottom: 20px; /* Abstand nach Text reduziert */
    }
    a.btn, button.btn {
        font-size: 1rem;
        padding: 14px 28px;
        margin: 10px 0 0 0; /* kleinerer Abstand nach Text */
    }
}

/* kleine Smartphones */
@media (max-width: 420px) {
    .box {
        padding: 30px 15px;
    }
    .box h1 {
        font-size: 1.8rem;
    }
    .box p {
        font-size: 0.95rem;
        margin-bottom: 16px; /* noch kompakter */
    }
    a.btn, button.btn {
        font-size: 0.95rem;
        padding: 12px 0;
        width: 100%; /* Buttons vollbreit */
        max-width: none;
        margin: 8px 0 0 0;
    }
}

/* sehr kleine Smartphones (z.B. iPhone SE) */
@media (max-width: 360px) {
    .box {
        padding: 25px 10px;
    }
    .box h1 {
        font-size: 1.6rem;
    }
    .box p {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
    a.btn, button.btn {
        font-size: 0.9rem;
        padding: 10px 0;
        margin: 6px 0 0 0;
    }
}
