﻿/* Start CSS fuer Anzeige in Cards von HomeToGo Angeboten*/

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 15px;
    font-size: 14px;
    line-height: 1.3;
}

.card-content h3 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 16px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-green {
    background: #28a745;
}

.btn-green:hover {
    background: #ABEC86;
}

.btn-orange {
    background: #ff9800;
}

.btn-orange:hover {
    background: #e68900;
}

.btn-red {
    background: #dc3545;
}

.btn-red:hover {
    background: #c82333;
}

.btn-blue {
    background: #007bff;
}

.btn-blue:hover {
    background: #0069d9;
}

.card-img-wrapper {
    position: relative;
}

.price-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #27ae60;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Button für "Zum Angebot" */
.offer-btn {
    display: inline-block;
    padding: 6px 12px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: #FF9D00;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.offer-btn:hover {
    background: #FC6A56;
    color: #fff;
    text-decoration: none;
}

/* Button für "Alle Angebote" */
.green-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #12324a;
    background-color: #9edcff;
    border: 2px solid #62bde8;
    border-radius: 8px;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.green-btn:hover {
    color: #0b2638;
    background-color: #c5ebff;
    border-color: #3aa9dc;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.green-btn:focus-visible {
    outline: 3px solid #075985;
    outline-offset: 3px;
}

.green-btn:active {
    color: #ffffff;
    background-color: #287fa8;
    border-color: #1f6688;
    transform: translateY(0);
}
.price-badge-woche {
    background-color: #FFCC00;
    color: black;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1em;
}

/* Button für "Fincas eingezaeunt" */
.btn-link {
    display: inline-block;
    padding: 10px 16px;
    background-color: #FFCC00;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-link:hover {
    background-color: #27AE60;
}

.small-text {
    font-size: 9px;
    color: gray;
}

/* Ende CSS fuer Anzeige in Cards von HomeToGo Angeboten */


/* ================================================================================= */
/* ===================== PREMIUM SNAP SCROLL SECTION =============================== */
/* ================================================================================= */

.premium-scroll-section {
    position: relative;
    margin: 40px 0;
    width: 100%;
    overflow: hidden;
}

.premium-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 5vw;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.premium-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Die Karte */
.premium-scroll-section .premium-card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    scroll-snap-align: start;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    position: relative !important;
    display: flex;
    flex-direction: column;
}

/* Hover nur, wenn das Gerät eine Maus unterstützt */
@media (hover: hover) {
    .premium-scroll-section .premium-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }
}

/* Bild */
.premium-scroll-section .premium-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Content */
.premium-card-content {
    padding: 16px;
    font-size: 14px;
    line-height: 1.4;
    flex-grow: 1;
}

.premium-card-content h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Preis-Badge */
.premium-scroll-section .premium-card .price-badge {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    background: #27ae60 !important;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 13px !important;
    z-index: 50 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.premium-scroll-section .price-badge-woche {
    font-weight: bold;
    margin-top: 8px;
    display: block;
    color: #2c3e50;
}

/* Button innerhalb der Premium-Karten */
.premium-scroll-section .offer-btn {
    display: block;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, #FF9D00, #FC6A56);
    border-radius: 8px;
    text-decoration: none !important;
    text-align: center;
}

/* Navigations-Buttons */
.premium-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

.premium-scroll-btn.left {
    left: 10px;
}

.premium-scroll-btn.right {
    right: 10px;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .premium-scroll-section .premium-card {
        flex: 0 0 260px;
    }

    .premium-scroll-section .premium-card img {
        height: 180px;
    }

    .premium-scroll-container {
        gap: 15px;
        padding: 10px 20px;
    }

    .premium-scroll-btn {
        display: none;
    }
}

/* ================================================================================= */
/* ========================= END PREMIUM SNAP SCROLL =============================== */
/* ================================================================================= */


/* ---------------------------------------------------------
   4. SUCHMASKE
   --------------------------------------------------------- */

.search-bar {
    background: rgba(39, 174, 96, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    width: 95%;
    max-width: 900px;
}

.search-bar form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: center;
}

.search-input {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    min-width: 150px;
}

.search-input label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.search-input input,
.search-input select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
}

.search-btn {
    background: #ffc107;
    color: #000;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   ENDE 4. SUCHMASKE
   --------------------------------------------------------- */


/* ---------------------------------------------------------
   1. VARIABLEN & GRUND-EINSTELLUNGEN
   --------------------------------------------------------- */

:root {
    --primary-color: #0077b6;
    --accent-color: #e9c46a;
    --text-color: #264653;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}


/* ---------------------------------------------------------
   2. HEADER / HERO BEREICH
   --------------------------------------------------------- */

.hero {
    width: 100%;
    height: 210px;

    /*
     * Das Bild wird ohne halbtransparenten Verlauf geladen.
     * Dadurch erscheint das Headerbild klar und nicht milchig.
     */
    background-image: url('../images/Ferienhaus-umzauent-mit-Hund.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: flex-end;
    justify-content: flex-start;

    padding: 20px;
    color: white;
}

/* Inhalt im Hero */
.hero-content {
    max-width: 1200px;
}

/* Überschrift */
.hero-content h1 {
    line-height: 1.2;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

/* Optionaler Untertitel */
.hero-content p {
    margin: 5px 0 0;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}


/* ---------------------------------------------------------
   RESPONSIVE HERO-OPTIMIERUNG
   --------------------------------------------------------- */

/* Tablet */
@media (max-width: 768px) {
    .hero {
        height: 130px;
        padding: 15px;
    }
}

/* Handy */
@media (max-width: 480px) {
    .hero {
        height: 110px;
        padding: 12px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }
}


/* ---------------------------------------------------------
   3. NAVIGATION
   --------------------------------------------------------- */

.main-nav {
    position: sticky;
    top: 0;
    z-index: 10000;
    overflow: visible;

    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/*
 * Nur die erste Menüebene wird horizontal dargestellt.
 * Verschachtelte UL-Elemente gehören zum Dropdown.
 */
.main-nav > ul {
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0;
    padding: 1rem;
    list-style: none;
}

/* Hauptmenüpunkte */
.main-nav > ul > li {
    position: relative;
    margin: 0;
    padding: 0;
}

/* Alle Navigationslinks */
.main-nav a {
    display: block;
    padding: 0.5rem 1.5rem;

    color: var(--text-color);
    background-color: transparent;
    border-radius: 8px;

    font-weight: bold;
    text-decoration: none;

    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

/* Hauptmenü: gut lesbarer Hover-Zustand */
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a:focus-visible {
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
    outline: none;
}

/* ---------------------------------------------------------
   DROPDOWN-MENÜS
   --------------------------------------------------------- */

/* Untermenüs zunächst verstecken und unter dem Hauptpunkt positionieren */
.main-nav > ul > li > ul,
.main-nav .dropdown-menu,
.main-nav .dropdown-content,
.main-nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10001;

    display: none;
    flex-direction: column;

    min-width: 260px;
    margin: 0;
    padding: 8px 0;

    list-style: none;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* Dropdown bei Mauszeiger oder Tastaturfokus anzeigen */
.main-nav > ul > li:hover > ul,
.main-nav > ul > li:focus-within > ul,
.main-nav > ul > li:hover > .dropdown-menu,
.main-nav > ul > li:focus-within > .dropdown-menu,
.main-nav > ul > li:hover > .dropdown-content,
.main-nav > ul > li:focus-within > .dropdown-content,
.main-nav > ul > li:hover > .submenu,
.main-nav > ul > li:focus-within > .submenu {
    display: flex;
}

/* Einträge innerhalb eines Dropdowns */
.main-nav ul ul li,
.main-nav .dropdown-menu li,
.main-nav .dropdown-content li,
.main-nav .submenu li {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Links innerhalb eines Dropdowns */
.main-nav ul ul a,
.main-nav .dropdown-menu a,
.main-nav .dropdown-content a,
.main-nav .submenu a {
    display: block;
    width: 100%;
    padding: 10px 16px;

    color: #264653 !important;
    background-color: #ffffff !important;
    border-radius: 0;

    white-space: nowrap;
    text-shadow: none !important;
}

/* Dropdown-Hover: weiß auf kräftigem Blau */
.main-nav ul ul a:hover,
.main-nav ul ul a:focus-visible,
.main-nav .dropdown-menu a:hover,
.main-nav .dropdown-menu a:focus-visible,
.main-nav .dropdown-content a:hover,
.main-nav .dropdown-content a:focus-visible,
.main-nav .submenu a:hover,
.main-nav .submenu a:focus-visible {
    color: #ffffff !important;
    background-color: #005f92 !important;
    text-shadow: none !important;
    outline: none;
}

/* Weitere verschachtelte Menüebenen rechts daneben anzeigen */
.main-nav ul ul ul {
    top: 0;
    left: 100%;
}

/* Tastaturbedienung klar sichtbar */
.main-nav a:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,119,182,0.28);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .main-nav {
        position: relative;
        top: auto;
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
    }

    .main-nav > ul > li {
        width: 100%;
    }

    .main-nav > ul > li > a {
        width: 100%;
        text-align: center;
    }

    .main-nav > ul > li > ul,
    .main-nav .dropdown-menu,
    .main-nav .dropdown-content,
    .main-nav .submenu {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .main-nav ul ul a,
    .main-nav .dropdown-menu a,
    .main-nav .dropdown-content a,
    .main-nav .submenu a {
        white-space: normal;
        text-align: center;
    }
}


/* ---------------------------------------------------------
   4. SUCHMASKE IM HERO
   --------------------------------------------------------- */

.search-bar {
    background: rgba(193, 224, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    width: 95%;
    max-width: 900px;
}

.search-bar form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: center;
}

.search-input {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    min-width: 150px;
}

.search-input label {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.search-input input,
.search-input select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #005f92;
}


/* ---------------------------------------------------------
   5. FEWO GRID & CARDS
   --------------------------------------------------------- */

.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.fewo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.fewo-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.fewo-card:hover {
    transform: translateY(-8px);
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.fewo-card .card-content {
    padding: 1.5rem;
}

.price {
    display: block;
    font-weight: bold;
    margin: 1rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.fewo-card .btn {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    padding: 0.7rem 1.4rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.fewo-card .btn:hover {
    opacity: 0.9;
}


/* ---------------------------------------------------------
   6. FOOTER
   --------------------------------------------------------- */

footer {
    background: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   7. RESPONSIVE ANPASSUNGEN
   --------------------------------------------------------- */

@media (max-width: 768px) {
    .search-input {
        flex: 1 1 100%;
    }
}