/* Flexibles & Responsives Fundament - Strandurlaub Hiddensee */

/* --- 1. Basis-Reset & Elastische Medien --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, 
body {
    width: 100%;
    overflow-x: hidden;
    
    /* NEU: Eine deutlich rundere, weichere Schriftarten-Kombination */
    font-family: 'Quicksand', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif; 
    
    /* NEU: Sanfteres Anthrazit statt hartem Tiefschwarz für den Fließtext */
    color: #2c3539;
    
    line-height: 1.6;
    padding-top: 100px;
    background-color: #ebf0f3;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 2. Navigation & Header (Desktop) --- */
nav { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 5%;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #0056b3;
    text-decoration: none;
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 20px; 
    align-items: center;
}

/* KORREKTUR: Navigations-Links im Button-Style */
.nav-links a { 
    text-decoration: none; 
    color: #fff; 
    background-color: #1a73e8;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.2s, transform 0.1s;
    display: inline-block;
}

.nav-links a:hover {
    background-color: #1557b0;
}

.nav-links a:active {
    transform: scale(0.98);
}

/* Modernisierter Burger-Button */
.burger-menu { 
    display: none; 
    flex-direction: column; 
    cursor: pointer; 
    gap: 6px; 
    padding: 5px;
}

.burger-menu span { 
    width: 30px; 
    height: 3px; 
    background-color: #333; 
    border-radius: 3px; 
    transition: all 0.3s ease;
}

/* --- 3. Sidebar Widgets (Komplette Zentralsteuerung) --- */
.widget-sidebar { 
    position: fixed; 
    top: 50%; 
    right: 20px; 
    transform: translateY(-50%); 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    z-index: 1001; 
}

/* ZENTRALES DESIGN (Form, Größe, Grundfarbe) */
.widget-item { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    text-decoration: none; 
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, background-color 0.2s;
    background-color: #1a73e8; /* Dein zentrales Blau */
}

/* Zentraler Hover-Effekt */
.widget-item:hover {
    transform: scale(1.08);
    background-color: #1557b0; /* Einheitliches Abdunkeln */
}

/* ZENTRALE INHALTS-STEUERUNG (Hier werden die Emojis zugewiesen) */
.widget-anfrage::before {
    content: "📅";
}

.widget-instagram::before {
    content: "📸";
}

.widget-telefon::before {
    content: "📞";
}

/* Alle Widgets nutzen jetzt standardmäßig das moderne Blau deines Google-Maps-Buttons */
.widget-anfrage, 
.widget-instagram, 
.widget-telefon { 
    background-color: #1a73e8; 
    color: #ffffff; /* Macht Text oder Emojis im Kreis strahlend weiß */
}

/* Optional: Wenn du beim Drüberfahren (Hover) einen optischen Effekt möchtest */
.widget-anfrage:hover, 
.widget-instagram:hover, 
.widget-telefon:hover {
    background-color: #1557b0; /* Dunkleres Blau beim Hover, passend zu den Text-Links */
}

/* --- 4. Layout-Container & Allgemeine Text-Links --- */
.container, .container-narrow { 
    width: 100%;
    margin: 0 auto; 
    padding: 30px 5% 40px 5%; 
    padding-right: 90px; 
    border-radius: 8px; /* Schöne abgerundete Ecken für den Inhaltsblock */
    
    /* Integration des Hintergrundbildes auf Textbreite (Variante A) */
    background-image: url('Pic_11.jpg');
    background-attachment: fixed;
    background-clip: padding-box;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    
    /* Fallback-Farbe für den Container selbst */
    background-color: #ffffff; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.container { 
    max-width: 800px; 
}

.container-narrow {
    max-width: 650px; 
}

/* NEU: Gezielte Farbsteuerung für alle Überschriften im Textbereich */
.container h1, .container h2, .container h3,
.container-narrow h1, .container-narrow h2, .container-narrow h3 {
    color: #0f2a4a; /* Edles Tiefsee-Blau */
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* NEU: Stärkere visuelle Trennung für wichtige Highlights */
.container strong, .container-narrow strong {
    color: #0f2a4a; /* Macht fett gedruckte Wörter harmonisch dunkelblau */
}

/* KORREKTUR: Alle Standard-Links im Fließtext wie der Google Maps Button stylen */
.container a, .container-narrow a, .btn-maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; 
    color: #fff; 
    background-color: #1a73e8;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s, transform 0.1s;
    margin: 5px 0;
}

.container a:hover, .container-narrow a:hover, .btn-maps:hover {
    background-color: #1557b0;
}

.container a:active, .container-narrow a:active, .btn-maps:active {
    transform: scale(0.98);
}

.hero-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* --- 5. Formular-Layout --- */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Button-Style für Absendebutton (identisch zu den Links) */
.btn-submit {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 14px 28px;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s, transform 0.1s;
    align-self: flex-start; 
}

.btn-submit:hover {
    background-color: #1557b0;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* --- 6. Footer --- */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid #ccc;
}

footer p {
    font-size: 0.9rem;
    color: #666;
}

/* --- 7. Mobile Anpassung (Smartphones & Tablets unter 768px) --- */
@media (max-width: 768px) {
    nav { 
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .burger-menu { 
        display: flex; 
    }

    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 15px 20px;
        border-bottom: 1px solid #ccc;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links li {
        width: 100%;
    }

    /* Mobil füllen die Buttons die Zeile komplett aus */
    .nav-links a {
        display: block;
        text-align: center;
        padding: 12px 0;
    }

    .nav-links.active { 
        display: flex; 
    }

    .widget-sidebar { 
        position: absolute; 
        top: 85px;          
        right: 15px;        
        transform: none; 
        flex-direction: column; 
        gap: 10px;
        z-index: 1002;      
        transition: top 0.2s ease-in-out; 
    }

    .nav-links.active ~ .widget-sidebar {
        top: 360px; /* Leicht erhöht, da die Buttons jetzt mehr Höhe beanspruchen */
    }

    .container, .container-narrow { 
        padding-right: 75px; 
        padding-top: 20px;

        /* MOBIL-KORREKTUR FÜR DAS HINTERGRUNDBILD:
           Deaktiviert das fehlerhafte 'fixed' auf Handys. Das Bild scrollt sauber mit, 
           wird vollflächig dargestellt ('cover') und verzerrt nicht. */
        background-image: linear-gradient(rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.80)), url('Pic_11.jpg');
        background-attachment: scroll;
        background-size: cover;
    }

    .container a, .container-narrow a, .btn-submit {
        width: 100%; /* Links im Fließtext breiten sich mobil voll aus */
        text-align: center;
    }

    /* --- 8. iPad & Tablet Fix für das Hintergrundbild --- */
    @media only screen and (min-device-width: 768px) and (max-device-width: 1366px) {
    .container, .container-narrow {
        /* Hebt die Fixierung auf Tablets auf, damit Safari nicht abstürzt */
        background-attachment: scroll !important;
        /* Verhindert, dass das Bild auf dem iPad unschön verzerrt wird */
        background-size: cover !important;
        background-position: center center !important;
    }
}