/* --------------------------------------------------------------
Attersee Theme – Global Styles
-------------------------------------------------------------- */
:root {
    --brand:#37a0be;
    --tree:#475949;
    --cta:#ffc43f;
    --ink:#1a1a1a;
    --muted:#6b6b6b;
    --bg:#ffffff;
    --section-pad:56px;
    --hotspot: #aaac24;
    --dark-grey:#232323;
}

body {
    margin:0;
    font-family:'Montserrat', sans-serif;
    color:var(--ink);
    background:var(--bg);
    line-height:1.55;
}


.container {
    width:min(1120px,92vw);
    margin-inline:auto;
}

.container-wide {
    width: min(1400px, 92vw);   /* breiter als Standard */
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.section {
    padding:var(--section-pad) 0;
}
.section.alt {
    background:#fafafa;
}

/* --------------------------------------------------------------
Headings
-------------------------------------------------------------- */
.h-section {
    font-size:clamp(1.8rem,4vw,2.4rem);
    font-weight:800;
    letter-spacing:.02em;
    text-transform:uppercase;
    margin:0 0 1rem;
}


.h-lake {color:var(--brand)!important;}
.h-hotspot {color:var(--hotspot)!important;}

.lead {
    font-size:1.15rem;
    color:var(--bg);
    line-height:1.6;
}

/* --------------------------------------------------------------
Grid / Layout
-------------------------------------------------------------- */
.grid {
    display:grid;
    gap:1.25rem;
}
.grid-3 { grid-template-columns:repeat(3, 1fr); }
.grid-4 { grid-template-columns:repeat(4, 1fr); }

.columns-2 {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:4rem;
}


/* --------------------------------------------------------------
Cards
-------------------------------------------------------------- */
.card {
    display: block;
    text-decoration: none!important;
    color: var(--ink);
    border-radius: .35rem;
    overflow: hidden;
    background: #fff;
    transition: .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.card a, a.card {
    color: var(--dark-grey);
    text-decoration: none!important;
}

.card figure {
    margin: 0;
    /*background: #e9eef1;*/
    aspect-ratio: 16/10;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .content {
    padding: .85rem 1rem;
}

.card .content h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.card--bild80 figure {
    aspect-ratio: 16/12; /* Bild etwas höher als Standard 16/10 */
}

.card--bild80 .content {
    padding: .75rem 1rem;
}

.card--hotspot figure {
    aspect-ratio: 16/9;
}

.card--hotspot .content {
    padding: 1.1rem 1rem 1.2rem;
}


/* --------------------------------------------------------------
Hero Section
-------------------------------------------------------------- */
.hero-home {
    position:relative;
    height:72vh;
    min-height:520px;
    display:flex;
    align-items:center;
    color:#fff;
}
.hero-home .bg { position:absolute; inset:0; }
.hero-home img,
.hero-home video {
    width:100%; height:100%; object-fit:cover;
}
.hero-home .overlay {
    position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .40));
}
.hero-home .inner {
    position:relative;
    z-index:2;
    text-align:center;
    width:100%;
}
.hero-home h1 { margin:0 0 .75rem; font-size:clamp(2.2rem,6vw,3.8rem); }

.hero-small {
    position: relative;
    height: 320px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

.hero-small .bg {
    position: absolute;
    inset: 0;
}

.hero-small img,
.hero-small video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-small {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
    rgba(0,0,0,.10) 0%,
    rgba(0,0,0,.55) 100%
    );
}

.hero-small .inner {
    position: relative;
    z-index: 2;
    padding-bottom: 2rem;
    text-align: left;
}

.hero-small h1 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 700;
}

.site-header {
	color: #fff;
    position: sticky;
    top: 0;
    z-index: 200;
}


.header-spacer {
    height: 140px; /* entspricht Headerhöhe + etwas Abstand */
}

.site-header.sticky ~ .header-spacer {
    height: 90px; 
	background: #fff;
    color: var(--ink);
}

.no-hero .site-header {
    background: #fff;
    color: var(--ink);
    position: fixed;
}

/* --------------------------------------------------------------
Swiper
-------------------------------------------------------------- */
.swiper-container,
.swiper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.swiper-container,
.swiper {
    position: relative;
}
.swiper-slide {
    height:auto;
}

.swiper-pagination-bullet {
    background:var(--brand) !important;
    opacity:.4;
}
.swiper-pagination-bullet-active {
    opacity:1;
}
.fav-swiper, .originale-swiper, .gallery-swiper {
    padding-bottom: 2rem;
}

/* --------------------------------------------------------------
Header
-------------------------------------------------------------- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease;
}

/* Sticky Mode */
.site-header.sticky {
    position: fixed;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
}

.header-inner {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 58px;
    width: auto;
}

.main-nav .menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav .menu a {
    text-decoration: none;
    color: #fff; /* über Hero weiß */
    font-weight: 600;
    transition: color .2s ease;
}

.mobile-menu {
    display:none;
}

.site-header.sticky .menu a {
    color: #000; /* Sticky-Version */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .btn-cta {
    background: var(--cta);
    padding: .6rem 1.2rem;
    border-radius: .6rem;
    font-weight: 600;
    text-decoration: none;
    color: #000;
}

/* Burger nur mobil */
.menu-toggle {
    display: none;
    font-size: 1.9rem;
    border: 0;
    background: transparent;
    color: #fff;
}
.site-header.sticky .menu-toggle {
    color: #000;
}

/* --------------------------------------------------------------
Search Overlay
-------------------------------------------------------------- */
.search-overlay {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:200;
}
.search-overlay.open { display:flex; }
.search-overlay form {
    background:#fff;
    padding:2rem;
    border-radius:.75rem;
    width:min(500px,90vw);
}

/* --------------------------------------------------------------
Sections
-------------------------------------------------------------- */
.section-intro,
.section-hintergrund {
    padding-top: var(--section-pad);
    padding-bottom: calc(var(--section-pad) * 1.2);
}

.section-intro p,
.section-hintergrund p {
    margin: 0 0 1.2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-hintergrund-grid {
    align-items: center;
}

.section-hintergrund .img-stack {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin-left: 10%;
}

.section-hintergrund .img-main {
    width: 100%;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.section-hintergrund .img-bg {
    position: absolute;
    right: -30%;
    bottom: -20%;
    width: 70%;
    border-radius: 50%;
    z-index: 1;
}

/* --------------------------------------------------------------
Unterkuenfte - Liste und Karte
-------------------------------------------------------------- */
.view-switch .container {
    display: flex;
    justify-content: flex-end; /* ❗ Buttons nach rechts */
}

.switch-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #CCC;
}

.switch-btn {
    padding: .6rem 1.4rem;
    border-radius: .5rem;
    border: 0px solid var(--brand);
    background: #fff;
    color: var(--brand);
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.switch-btn.active {
    background: var(--brand);
    color: #fff;
}

/* Wrapper für Liste + Karte */
.view-wrapper {
    display: flex;
    gap: 2rem;
}

/* Liste nimmt standardmäßig die volle Breite */
#view-list-container {
    flex: 1 1 100%;
}

/* Listengrid */
.unterkunft-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card--unterkunft h3 {
    margin: 0 0 .35rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);

    /* Fixierte Höhe für 2 Zeilen */
    min-height: 2.8rem;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}


.card--unterkunft:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.card--unterkunft figure {
    aspect-ratio: 16/10;
    margin: 0;
    overflow: hidden;
    background: #dce4e9;
}

.card--unterkunft img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card--unterkunft .content {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    flex-grow: 1;
}

.card--unterkunft .rating {
    color: #ffb400;
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.card--unterkunft .town {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.card--unterkunft h3 {
    margin: 0 0 .35rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
}
.card--unterkunft h3 a {
    text-decoration: none;
    color: inherit;
}

.card--unterkunft .buttons {
    display: flex;
    gap: .75rem;
    margin-top: auto;
}

.card--unterkunft .buttons .btn {
    flex: 1 1 50%;
    text-align: center;
    white-space: normal; /* Text darf umbrechen */
    padding: .55rem .7rem;
}


.card--unterkunft .btn.small, .u-info-right a.btn.large {
    padding: .55rem .7rem;
    border-radius: .5rem;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.card--unterkunft .btn.small.outline, .u-info-right a.btn.large.outline {
    border: 1.5px solid var(--brand);
    color: var(--brand);
    background: #fff;
    text-align: center;
}

.card--unterkunft .btn.small.outline:hover, .u-info-right a.btn.large.outline:hover {
    background: var(--brand);
    color: #fff;
}

.card--unterkunft .btn.small.fill, .u-info-right a.btn.large.fill {
    background: var(--cta);
    border: 1.5px solid var(--cta);
    color: #000;
}

/* Map */
#map {
    width: 100%;
    height: 90vh;
    border-radius: 12px;
}

.unterkunft-map {
    min-height: 420px;
}

/* Karte ist in Listenansicht ausgeblendet */
#view-map-container {
    display: none;
    flex: 0 0 45%;
}

/* Bei aktivierter Kartenansicht */
.view-map-active #view-map-container {
    display: block;
}

.view-map-active #view-list-container {
    flex: 0 0 55%;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
    max-width: none !important;
}

/* Listengrid */
.unterkunft-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* --------------------------------------------------------------
Page Overview - Grid
-------------------------------------------------------------- */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.overview-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------
Unterkunft Single
-------------------------------------------------------------- */
.unterkunft-header .container {
    text-align: center;
}

.unterkunft-header .meta {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: .5rem;
    font-size: 1.1rem;
}

.u-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: .5rem;
}

.hero-left img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.gallery-swiper img {
    width: 100%;
    border-radius: 12px;
}

.gallery-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-left figure,
.gallery-right figure {
    margin: 0;
    overflow: hidden;
    border-radius: .75rem;
}

.gallery-left img,
.gallery-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb {
    cursor: pointer;
    transition: opacity .25s;
}

.gallery-thumb:hover {
    opacity: .8;
}

/* Galerie rechts: 2×2 Grid */
.gallery-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 1rem;
}

/* Info-Bereich */
.unterkunft-info {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

div.heading {
    font-size: 1.2rem;
}

.preis-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 1.05rem;
}

.preis-tabelle th {
    text-align: left;
    padding: .75rem;
    border-bottom: 2px solid #ddd;
}

.preis-tabelle td {
    padding: .75rem;
    border-bottom: 1px solid #eee;
}

.preis-tabelle tr.bestpreis {
    background: #e9f7e9; /* sehr heller Grünton */
}

.preis-tabelle tr.bestpreis td {
    font-weight: 600;
}

.preis-tabelle tr.bestpreis:first-child td {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.preis-tabelle tr.bestpreis:last-child td {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.preis-tabelle a {
    margin-left: .5rem;
    color: var(--brand);
    font-weight: 600;
}

.bestpreis-button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.my-review {
    max-width: 820px;
    margin: 3rem auto;
    padding: 2.5rem 3rem;
    background: #f7f9fa;
    border-left: 6px solid var(--brand);
    border-radius: .5rem;
    font-size: 1.25rem;
    line-height: 1.65;
    font-style: italic;
    color: var(--ink);
}


/* Ausstattung */
.ausstattung-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem 1.5rem;
}

.ausstattung-list li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 1.05rem;
}

.ausstattung-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand);
    font-weight: 700;
}

/* --------------------------------------------------------------
Single Posts
-------------------------------------------------------------- */
.single-cover img {
    width: 100%;
    height: auto;
    border-radius: .75rem;
    margin-bottom: 1.5rem;
}

.single-cat {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: .04em;
}

.single-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: .5rem 0 1rem;
    line-height: 1.25;
}

.single-divider {
    width: 20%;
    height: 4px;
    background: var(--brand);
    border-radius: 2px;
    margin: 1.5rem 0;
}

.single-content {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 4rem;
}

/*** RELATED Posts			***/

.related-posts .related-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.related-card {
    background: #fff;
    border-radius: .75rem;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: .2s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.related-card figure {
    aspect-ratio: 16/10;
    margin: 0;
}

.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card h3 {
    font-size: 1.05rem;
    padding: .85rem 1rem;
    margin: 0;
}



.aff {
    padding: .5rem;
    font-size: .8rem;
}

/* --------------------------------------------------------------
Footer
-------------------------------------------------------------- */
.site-footer {
    background:var(--brand);
    color:#fff;
    margin-top:4rem;
    position:relative;
}
.footer-columns {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2rem;
}
.footer-bottom {
    margin-top:2rem;
    text-align:center;
    font-size:.9rem;
    opacity:.8;
}

/* --------------------------------------------------------------
Media Queries
-------------------------------------------------------------- */
@media (min-width: 1600px) {
    .container-wide {
        width: min(1600px, 92vw);
    }
}

@media (min-width: 1200px) {
    body:not(.view-map-active) .unterkunft-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 901px) {
    .grid-4 > .card:nth-child(2n) {
        margin-top: 1.4rem; /* 20–24px, je nach Geschmack */
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:900px) {
    .main-nav { display:none; }
    .header-actions .btn-cta { display: none; }
    .menu-toggle { display:block; font-size:1.9rem; background:none; border:0; }

    .mobile-menu {
        position: fixed;
        right: -100%;
        top: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        background: #fff;
        padding: 2rem;
        box-shadow: -4px 0 18px rgba(0,0,0,.1);
        transition: right .35s ease;
        z-index: 200;
    }
    .mobile-menu.open { right: 0; }

    .menu-mobile {
        list-style: none;
        padding: 0;
        margin: 0 0 2rem;
    }
    .menu-mobile li { margin-bottom: 1rem; }
    .menu-mobile a { color: #000; font-weight: 600; }

    .header-spacer {
        height: 110px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .grid-3, .grid-4, .columns-2 {
        grid-template-columns:1fr;
    }

    .container-wide {
        width: 94vw;
        margin-inline:auto;
        padding: 1vw;
    }

    .container-wide-two {
        grid-template-columns: 1fr;
    }

    .ausstattung-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-hintergrund .img-stack {
        margin: 2rem auto 0;
    }
    .section-hintergrund .img-bg {
        right: -10%;
        bottom: -10%;
        width: 65%;
    }

    .unterkunft-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-wrapper {
        grid-template-columns: 1fr;
    }

    .gallery-right {
        grid-template-columns: repeat(2, 1fr);
    }

    .view-wrapper {
        flex-direction: column;
    }

    .view-switch .container {
        justify-content: center;
    }

    .view-map-active #view-list-container,
    .view-map-active #view-map-container {
        flex: 1 1 100%;
    }

    #map {
        height: 50vh;
    }
	
	.related-posts .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .unterkunft-info {
        grid-template-columns: 1fr;
    }

    .unterkunft-list {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .bestpreis-button-wrapper {
        justify-content: flex-start; /* mobil einfach untereinander */
    }

    .ausstattung-list {
        grid-template-columns: 1fr;
    }
	
	.related-posts .related-grid {
        grid-template-columns: 1fr;
    }
}