/* ============================================================
   Citybeach.de – Main Stylesheet v10
   Kompatibel mit Elementor Page Builder
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--cb-font-body);
    color: var(--cb-text);
    background: var(--cb-white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cb-teal); transition: color 0.2s; }
a:hover { color: var(--cb-coral); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--cb-font-head);
    font-weight: 800;
    line-height: 1.15;
    color: var(--cb-text);
}
h1 { font-size: clamp(32px, 5vw, 72px); }
h2 { font-size: clamp(24px, 3.5vw, 48px); }
h3 { font-size: clamp(18px, 2.5vw, 28px); }
h4 { font-size: 18px; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Gradient Text Utility ────────────────────────────────── */
.cb-gradient-text {
    background: var(--cb-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Elementor: Gradient-Heading Fix */
.elementor-heading-title {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Gradient-Text via Span – funktioniert in Elementor */
.elementor-heading-title span {
    background: none !important;
    background-image: none !important;
    color: var(--cb-coral) !important;
    -webkit-text-fill-color: var(--cb-coral) !important;
}

/* Wer Elementor Pro hat: Gradient Text */
.elementor-heading-title .cb-grad-word {
    background: var(--cb-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

/* ── Buttons ──────────────────────────────────────────────── */
.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--cb-font-head);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 13px 28px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    white-space: nowrap;
}
.cb-btn--primary {
    background: var(--cb-grad);
    color: var(--cb-white);
    box-shadow: 0 6px 20px rgba(241,82,82,0.35);
}
.cb-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(241,82,82,0.45);
    color: var(--cb-white);
    filter: brightness(1.06);
}
.cb-btn--outline {
    background: transparent;
    color: var(--cb-text-mid);
    border: 1.5px solid #D8E4F0;
}
.cb-btn--outline:hover {
    background: var(--cb-grad);
    color: var(--cb-white);
    border-color: transparent;
}
.cb-btn--white {
    background: var(--cb-white);
    color: var(--cb-blue-dark);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cb-btn--white:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.22);
    color: var(--cb-blue-dark);
}

/* ── Header ───────────────────────────────────────────────── */
.cb-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    transition: background 0.35s ease, box-shadow 0.35s ease;
    padding: 0 clamp(20px, 4vw, 60px);
}
.cb-header.is-scrolled {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 #E8EEF5;
}
.cb-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 32px;
}

/* ── Logo Switching ───────────────────────────────────────── */
.cb-logo { height: 42px; width: auto; display: block; transition: opacity 0.25s; }

/* Hero (kein is-scrolled): weißes Logo */
.cb-header:not(.is-scrolled) .cb-logo--color { display: none !important; }
.cb-header:not(.is-scrolled) .cb-logo--white  { display: block !important; }

/* Scrolled (weiße Nav): buntes Logo */
.cb-header.is-scrolled .cb-logo--white { display: none !important; }
.cb-header.is-scrolled .cb-logo--color { display: block !important; }

/* ── Navigation ───────────────────────────────────────────── */
.cb-header__nav { flex: 1; }
.cb-nav__list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    justify-content: flex-end;
    padding-right: 24px;
}
.cb-nav__list a {
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}
.cb-header.is-scrolled .cb-nav__list a { color: var(--cb-text); }
.cb-header:not(.is-scrolled) .cb-nav__list a { color: rgba(255,255,255,0.88); }
.cb-nav__list a:hover { opacity: 0.6; color: inherit; }

.cb-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.cb-header__burger span {
    display: block;
    width: 24px; height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}
.cb-header.is-scrolled .cb-header__burger span { background: var(--cb-text); }

/* ── Hero ─────────────────────────────────────────────────── */
.cb-hero {
    min-height: 92vh;
    background: var(--cb-grad-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 100px;
    text-align: center;
}
.cb-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}
.cb-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 999px;
    padding: 6px 18px;
    color: rgba(255,255,255,0.90);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
}
.cb-hero__badge-dot {
    width: 7px; height: 7px;
    background: var(--cb-teal-light);
    border-radius: 50%;
    display: inline-block;
}
.cb-hero h1 { color: white; margin-bottom: 20px; text-wrap: balance; }
.cb-hero h1 .teal { color: var(--cb-teal-light); }
.cb-hero__sub {
    color: rgba(255,255,255,0.72);
    font-size: clamp(15px, 2vw, 20px);
    font-weight: 300;
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 1.65;
}

/* Search Bar */
.cb-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 999px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    max-width: 620px;
    margin: 0 auto;
    transition: box-shadow 0.3s;
}
.cb-search:focus-within {
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 3px rgba(45,212,192,0.4);
}
.cb-search__icon {
    padding: 0 18px;
    color: var(--cb-text-light);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.cb-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: var(--cb-font-body);
    color: var(--cb-text);
    padding: 18px 8px;
    background: transparent;
    min-width: 0;
}
.cb-search input::placeholder { color: var(--cb-text-light); }
.cb-search button {
    background: var(--cb-grad);
    border: none;
    color: white;
    font-family: var(--cb-font-head);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    margin: 6px;
    border-radius: 999px;
    cursor: pointer;
    transition: filter 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.cb-search button:hover { filter: brightness(1.08); }

/* City Quicklinks */
.cb-hero__cities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.cb-hero__city-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.85);
    border-radius: 999px;
    padding: 5px 16px;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--cb-font-body);
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}
.cb-hero__city-btn:hover { background: rgba(255,255,255,0.22); }

/* Stats */
.cb-hero__stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 56px;
    flex-wrap: wrap;
}
.cb-hero__stat-num {
    font-family: var(--cb-font-head);
    font-weight: 800;
    font-size: 36px;
    color: white;
}
.cb-hero__stat-label {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Blobs */
.cb-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}
.cb-hero__blob--1 {
    top: 8%; right: 6%;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(241,82,82,0.25) 0%, transparent 70%);
    animation: cb-float 8s ease-in-out infinite;
}
.cb-hero__blob--2 {
    bottom: 12%; left: 4%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(45,212,192,0.20) 0%, transparent 70%);
    animation: cb-float 10s ease-in-out infinite reverse;
}
@keyframes cb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.04); }
}

/* Wave */
.cb-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    pointer-events: none;
    line-height: 0;
}
.cb-wave svg { display: block; width: 100%; }

/* ── Filter Bar ───────────────────────────────────────────── */
.cb-filters {
    padding: 36px clamp(20px, 4vw, 60px);
    background: var(--cb-white);
    border-bottom: 1px solid var(--cb-sand-dark);
}
.cb-filters__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.cb-filters__inner::-webkit-scrollbar { display: none; }
.cb-filter-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--cb-sand);
    border: none;
    color: var(--cb-text-mid);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--cb-font-body);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.22s;
}
.cb-filter-btn:hover,
.cb-filter-btn.is-active {
    background: var(--cb-grad);
    color: white;
    box-shadow: 0 4px 16px rgba(241,82,82,0.28);
    transform: translateY(-1px);
}

/* ── Section Utilities ────────────────────────────────────── */
.cb-section {
    padding: 80px clamp(20px, 4vw, 60px);
    overflow-x: hidden;
}
.cb-section--sand { background: var(--cb-sand); }
.cb-section--dark {
    background: linear-gradient(160deg, #0D2E5A 0%, #1050A0 55%, #1878C8 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.cb-section__inner { max-width: 1280px; margin: 0 auto; }
.cb-section__header { margin-bottom: 40px; }
.cb-section__eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--cb-coral);
}
.cb-section--dark .cb-section__eyebrow { color: var(--cb-teal-light); }
.cb-section__title { color: var(--cb-text); }
.cb-section--dark .cb-section__title { color: white; }

/* ── Location Cards ───────────────────────────────────────── */
.cb-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.cb-card {
    background: white;
    border-radius: var(--cb-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 8px 32px rgba(24,120,200,0.14) !important;
    transition: transform 0.30s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.30s ease;
    cursor: pointer;
}
.cb-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12), 0 24px 56px rgba(24,120,200,0.26) !important;
}
.cb-card__img {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cb-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cb-card:hover .cb-card__img img { transform: scale(1.05); }
.cb-card__badge {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 4px 12px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}
.cb-card__rating {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 4px 10px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cb-card__rating-star { color: #FFD700; }
.cb-card__body { padding: 20px 22px 22px; }
.cb-card__title {
    font-family: var(--cb-font-head);
    font-weight: 700;
    font-size: 18px;
    color: var(--cb-text);
    margin-bottom: 4px;
}
.cb-card__city {
    color: var(--cb-text-light);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
}
.cb-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.cb-card__tag {
    background: var(--cb-sand);
    color: var(--cb-text-mid);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
}

/* ── Feature Boxes ────────────────────────────────────────── */
.cb-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.cb-feature { text-align: center; padding: 28px 20px; }
.cb-feature__icon { font-size: 42px; margin-bottom: 18px; }
.cb-feature__title {
    font-family: var(--cb-font-head);
    font-weight: 700;
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
}
.cb-feature__text { color: rgba(255,255,255,0.60); font-size: 15px; line-height: 1.65; }

/* ── CTA Block ────────────────────────────────────────────── */
.cb-cta-block {
    background: linear-gradient(160deg, #0D2E5A 0%, #1050A0 45%, #1878C8 75%, #1ABFB0 100%);
    border-radius: var(--cb-radius-xl);
    padding: 60px clamp(28px, 6vw, 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(13,46,90,0.35);
    max-width: 900px;
    margin: 0 auto;
}
.cb-cta-block__eyebrow {
    color: var(--cb-teal-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.cb-cta-block h2 { color: white; margin-bottom: 16px; }
.cb-cta-block p {
    color: rgba(255,255,255,0.65);
    font-size: 17px;
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* ── News Cards ───────────────────────────────────────────── */
.elementor-posts .elementor-post__card {
    border-radius: var(--cb-radius-lg) !important;
    box-shadow: var(--cb-shadow) !important;
    overflow: hidden !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease !important;
}
.elementor-posts .elementor-post__card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--cb-shadow-hover) !important;
}
.elementor-posts .elementor-post__title a {
    font-family: var(--cb-font-head) !important;
    font-weight: 700 !important;
    color: var(--cb-text) !important;
}
.elementor-posts .elementor-post__read-more {
    color: var(--cb-teal) !important;
    font-weight: 600 !important;
}

/* ── Footer ───────────────────────────────────────────────── */
.cb-footer {
    background: var(--cb-footer-bg);
    color: rgba(255,255,255,0.55);
    padding: 60px clamp(20px, 4vw, 60px) 32px;
}
.cb-footer__inner { max-width: 1280px; margin: 0 auto; }
.cb-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.cb-footer__brand img { margin-bottom: 16px; }
.cb-footer__tagline {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    max-width: 260px;
    margin-bottom: 12px;
}
.cb-footer__contact a {
    color: var(--cb-teal-light);
    text-decoration: none;
    font-size: 14px;
}
.cb-footer__col-title {
    font-family: var(--cb-font-head);
    font-weight: 700;
    font-size: 14px;
    color: white;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}
.cb-footer__col ul { list-style: none; }
.cb-footer__col ul li { margin-bottom: 10px; }
.cb-footer__col ul a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.cb-footer__col ul a:hover { color: var(--cb-teal-light); }
.cb-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}
.cb-footer__nav { display: flex; gap: 20px; list-style: none; }
.cb-footer__nav a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.cb-footer__nav a:hover { color: var(--cb-teal-light); }

/* ── Elementor Global Overrides ───────────────────────────── */
.elementor-section, .e-con { max-width: 100%; overflow-x: hidden; }

.elementor-button.cb-btn-primary {
    background: var(--cb-grad) !important;
    border-radius: 999px !important;
    font-family: var(--cb-font-head) !important;
    font-weight: 700 !important;
    border: none !important;
    color: white !important;
}

/* ── Animate on Scroll ────────────────────────────────────── */
.cb-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.cb-animate.cb-visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cb-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .cb-features-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .cb-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    /* Header */
    .cb-header__nav, .cb-header__cta { display: none; }
    .cb-header__burger { display: flex; }
    .cb-header__inner { height: 62px; }

    /* Mobile Menu */
    .cb-header.is-menu-open .cb-header__nav {
        display: block;
        position: fixed;
        top: 62px; left: 0; right: 0; bottom: 0;
        background: rgba(10,31,64,0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 40px 24px;
        z-index: 9998;
        overflow-y: auto;
    }
    .cb-header.is-menu-open .cb-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .cb-header.is-menu-open .cb-nav__list a { font-size: 24px; color: white; }

    /* Hero */
    .cb-hero { min-height: 100svh; padding: 96px 20px 60px; }
    .cb-hero h1 { font-size: clamp(28px, 8vw, 44px); margin-bottom: 14px; }
    .cb-hero__sub { font-size: 16px; margin-bottom: 28px; }
    .cb-hero__badge { font-size: 12px; padding: 5px 14px; }
    .cb-hero__blob { display: none; }
    .cb-hero__stats { gap: 20px; margin-top: 36px; }
    .cb-hero__stat-num { font-size: 26px; }

    /* Search – bleibt in einer Zeile, Button unter Input */
    .cb-search {
        border-radius: 16px;
        flex-wrap: wrap;
        padding: 6px 6px 6px 6px;
        align-items: stretch;
    }
    .cb-search__icon { padding: 10px 12px; }
    .cb-search input { padding: 10px 6px; font-size: 15px; }
    .cb-search button {
        width: 100%;
        margin: 4px 0 0 0;
        border-radius: 10px;
        padding: 13px;
    }

    /* Sections */
    .cb-section { padding: 48px 20px; }
    .cb-section__header { margin-bottom: 24px; }

    /* Cards – IMMER 1 Spalte auf Mobile */
    .cb-cards-grid { grid-template-columns: 1fr !important; gap: 18px; }
    .cb-card__img { height: 180px; }

    /* Features */
    .cb-features-grid { grid-template-columns: 1fr; gap: 8px; }
    .cb-feature { padding: 20px 16px; }

    /* CTA */
    .cb-cta-block { border-radius: var(--cb-radius-lg); padding: 40px 24px; }
    .cb-cta-block h2 { font-size: clamp(22px, 6vw, 32px); }

    /* Footer */
    .cb-footer { padding: 44px 20px 24px; }
    .cb-footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .cb-footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cb-footer__nav { flex-wrap: wrap; gap: 10px 18px; }

    /* Elementor Headings – kein Overflow */
    .elementor-heading-title { font-size: clamp(22px, 6vw, 36px) !important; }
    .elementor-widget-container { overflow-x: hidden; }
}

@media (max-width: 480px) {
    .cb-hero { padding: 86px 16px 48px; }
    .cb-hero h1 { font-size: clamp(26px, 9vw, 36px); }
    .cb-hero__cities { gap: 7px; }
    .cb-hero__city-btn { font-size: 12px; padding: 4px 12px; }
    .cb-hero__stats { gap: 16px; }
    .cb-hero__stat-num { font-size: 22px; }
    .cb-section { padding: 36px 16px; }
    .cb-cards-grid { gap: 14px; }
    .cb-filter-btn { font-size: 12px; padding: 7px 12px; }
    .cb-cta-block { padding: 32px 18px; }
    .cb-footer__grid { gap: 20px; }
}
