/* --- 1. GRUNDEINSTELLUNGEN --- */
:root {
    --primary: #2c3e50;    /* Dunkelblau für Navigation/Texte */
    --accent: #e67e22;     /* Orange für Highlights/Häkchen */
    --bg-light: #f4f7f6;   /* Hellgrau für Sektionen */
    --white: #ffffff;
}

* { box-sizing: border-box; } /* Wichtig für Handy-Breite */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
}

/* --- 2. HEADER & PANORAMA (Optimiert) --- */
header {
    width: 100%;
    background: var(--bg-light);
    overflow: hidden;
}

header img {
    width: 100%;
    height: auto; /* Behält das 1920x450 Format bei */
    display: block;
    object-fit: cover;
}

/* --- 3. NAVIGATION (PHP-Include) --- */
nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: bold;
}

nav ul li a:hover { color: var(--accent); }

/* --- 4. LAYOUT & SEKTIONEN --- */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

section { padding: 40px 0; text-align: center; }

.bg-light { 
    background: var(--bg-light); 
    width: 100vw; 
    position: relative; 
    left: 50%; 
    right: 50%; 
    margin-left: -50vw; 
    margin-right: -50vw; 
}

/* --- 5. GRID & KARTEN (Wohnung/Hund/Umgebung) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 4px solid var(--accent);
    text-align: left;
}

/* --- 6. BUCHUNGSKALENDER (HANDY-OPTIMIERT) --- */
.iframe-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    -webkit-overflow-scrolling: touch; /* Flüssiges Scrollen auf iPhone */
}

.iframe-container iframe {
    width: 100%;
    height: 1200px; /* Standardhöhe Desktop */
    border: none;
    display: block;
}

/* --- 7. KONTAKT & HINWEIS-BOXEN --- */
.contact-box {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#insider-tipp {
    background-color: var(--bg-light);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    width: 95%; /* Wichtig für Handy */
    margin: 40px auto;
}

/* --- 8. MOBILE ANPASSUNGEN (Media Queries) --- */
@media (max-width: 768px) {
    nav ul { flex-direction: column; }
    h1 { font-size: 1.6rem; }
    
    .iframe-container iframe {
        height: 1600px; /* Mehr Platz für mobile Preisliste */
    }
    
    .bg-light { width: auto; position: static; margin: 0; }
}

/* --- 9. FOOTER --- */
footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

footer a { color: #bdc3c7; text-decoration: none; }

/* --- Kontaktseite ts-urlaubsreisen.de (Finale Version) --- */

/* Der äußere Container */
.kontakt-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 20px 0;
    display: block;
}

/* Header */
.kontakt-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

/* Iframe-Hülle ohne Einschränkungen */
.iframe-wrapper {
    width: 100% !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Der Iframe: Hier lag der Fehler. Jetzt auf 100% Breite fixiert */
.iframe-wrapper iframe {
    width: 100% !important;
    min-width: 100% !important;
    height: 1250px; /* Höhe Desktop */
    border: 0 !important;
    display: block;
}

/* Kleingedrucktes */
.kontakt-footer-klein {
    font-size: 10px;
    color: #999;
    text-align: center;
    margin-top: 15px;
    padding: 0 20px;
}

.kontakt-footer-klein a {
    color: #999;
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
}

/* --- Mobile Optimierung für Handys --- */
@media (max-width: 600px) {
    .iframe-wrapper iframe {
        height: 1550px !important; /* Mehr Höhe für mobile Ansicht */
    }
}


/* --- Galerie & Beschreibung Haus Sonnenstrahl 2026 --- */

/* Bildergalerie Grid-System */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
    width: 100%;
}

.galerie-item {
    overflow: hidden;
    background: #fdfdfd;
}

.galerie-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.galerie-item img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* SEO-Textbereich unter der Galerie */
.unterkunft-beschreibung {
    padding: 30px 0;
    line-height: 1.7;
    color: #444;
}

.unterkunft-beschreibung h2 {
    font-size: 24px;
    color: #0056b3;
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
}

.unterkunft-beschreibung p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* Mobile Optimierung für Handys (2026 Standard) */
@media (max-width: 600px) {
    .galerie-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .galerie-item img {
        height: 220px;
    }
    .unterkunft-beschreibung h2 {
        font-size: 20px;
    }
    .unterkunft-beschreibung p {
        font-size: 15px;
    }
}

/* Styling für den Galerie-Header */
.galerie-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.galerie-intro h1 {
    font-size: 26px;
    color: #0056b3;
    margin-bottom: 10px;
}

.galerie-intro p.intro-text {
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.galerie-intro h3 {
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

/* Handy-Optimierung */
@media (max-width: 600px) {
    .galerie-intro h1 { font-size: 22px; }
    .galerie-intro p.intro-text { font-size: 16px; }
}
