/* css/style.css */

/* Allgemeine Einstellungen (Reset und Basis-Typografie) */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header und Navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    padding: 0;
    font-size: 2.5rem;
    color: #ecf0f1;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #1abc9c;
}

/* Hauptinhaltsbereich */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

section:last-child {
    border-bottom: none;
}

h2, h3 {
    color: #2c3e50;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #1abc9c;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.button:hover {
    background-color: #16a085;
}

/* Bilder */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto 20px auto;
}

/* Hero Sektion (Startseite) */
#hero {
    background-image: url('../img/hero/hero-guesthouse.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    color: white;
    margin-bottom: 40px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero div {
    padding: 100px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

#hero h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
    border-bottom: none;
}

#hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Image Grid (z.B. auf der Startseite bei "Über uns kurz") */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
}

/* Testimonials */
#testimonials blockquote {
    background-color: #ecf0f1;
    border-left: 5px solid #1abc9c;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-style: italic;
}

#testimonials cite {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

/* Zimmer & Preise */
.room-type {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
    align-items: flex-start;
}

.room-type:last-of-type {
    border-bottom: none;
}

.room-type img {
    flex: 1;
    min-width: 300px;
    height: 250px;
    object-fit: cover;
    margin-bottom: 0;
}

.room-type div {
    flex: 2;
    min-width: 300px;
}

.room-type h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.room-type ul {
    list-style: disc inside;
    margin-bottom: 15px;
}

.room-type .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e67e22;
    margin-top: 15px;
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-grid figure {
    margin: 0;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 0;
}

.gallery-grid figcaption {
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    font-size: 0.9rem;
    color: #555;
}

/* Kontaktformular */
form {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form input[type="submit"] {
    background-color: #1abc9c;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background-color: #16a085;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
}

footer ul li {
    margin: 0 10px;
}

footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

footer ul li a:hover {
    text-decoration: underline;
}

/* Responsive Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    main {
        padding: 10px;
        margin: 10px auto;
    }

    #hero div {
        padding: 50px 10px;
    }

    #hero h2 {
        font-size: 2rem;
    }

    .image-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .room-type {
        flex-direction: column;
        align-items: center;
    }

    .room-type img,
    .room-type div {
        min-width: unset;
        width: 100%;
    }
}