.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    background: linear-gradient(to bottom, #7aa2df, #f9f9f9);
}

.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 5%;
    width: min(42%, 560px);
    height: auto;
    transform: translateY(-50%);
    z-index: 3;
}

.hero-bubbles {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.bubble {
    position: absolute;
    display: block;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.22) 28%, transparent 48%),
        rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 0 22px rgba(255, 255, 255, 0.72),
        0 16px 28px rgba(8, 58, 128, 0.12);
    backdrop-filter: blur(2px);
}

.bubble-1 {
    width: 76px;
    height: 76px;
    right: 7%;
    top: 25%;
    animation: floatBubble 7s ease-in-out infinite;
}

.bubble-2 {
    width: 42px;
    height: 42px;
    right: 23%;
    bottom: 22%;
    animation: floatBubble 6s ease-in-out infinite reverse;
}

.bubble-3 {
    width: 54px;
    height: 54px;
    left: 48%;
    top: 36%;
    animation: floatBubble 8s ease-in-out infinite;
}

.bubble-4 {
    width: 34px;
    height: 34px;
    left: 37%;
    bottom: 29%;
    animation: floatBubble 5s ease-in-out infinite reverse;
}

@keyframes floatBubble {
    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -22px;
    }
}

.foam-divider {
    position: absolute;
    left: -3%;
    right: -3%;
    bottom: -2px;
    height: 185px;
    z-index: 6;
    pointer-events: none;
    background:
        radial-gradient(circle at 3% 72%, #ffffff 0 46px, transparent 47px),
        radial-gradient(circle at 9% 58%, #ffffff 0 72px, transparent 73px),
        radial-gradient(circle at 17% 76%, #ffffff 0 54px, transparent 55px),
        radial-gradient(circle at 25% 55%, #ffffff 0 86px, transparent 87px),
        radial-gradient(circle at 36% 76%, #ffffff 0 60px, transparent 61px),
        radial-gradient(circle at 47% 52%, #ffffff 0 92px, transparent 93px),
        radial-gradient(circle at 59% 75%, #ffffff 0 58px, transparent 59px),
        radial-gradient(circle at 70% 56%, #ffffff 0 84px, transparent 85px),
        radial-gradient(circle at 82% 74%, #ffffff 0 62px, transparent 63px),
        radial-gradient(circle at 93% 58%, #ffffff 0 76px, transparent 77px),
        linear-gradient(to bottom, transparent 0%, #ffffff 62%, #ffffff 100%);
}

/* Sommer-Angebot */

.summer-spotlight {
    position: relative;
    padding: 72px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 22%, rgba(191, 233, 255, 0.8), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(122, 162, 223, 0.24), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #eef8ff 54%, #ffffff 100%);
}

.summer-spotlight::before,
.summer-spotlight::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 32%, transparent 58%),
        rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.72);
}

.summer-spotlight::before {
    width: 150px;
    height: 150px;
    right: 8%;
    top: 24px;
}

.summer-spotlight::after {
    width: 72px;
    height: 72px;
    left: 7%;
    bottom: 24px;
}

.summer-spotlight-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 42px;
    align-items: center;
}

.summer-copy {
    max-width: 760px;
}

.summer-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(8, 58, 128, 0.08);
}

.summer-copy h2 {
    max-width: 760px;
    margin-bottom: 18px;
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.summer-copy p {
    max-width: 720px;
    margin-bottom: 26px;
    color: var(--text-color);
    font-size: 1.08rem;
    line-height: 1.8;
}

.summer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
}

.summer-actions span {
    color: var(--muted);
    font-weight: 700;
}

.summer-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 310px;
    padding: 34px 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.32) 28%, transparent 48%),
        radial-gradient(circle at 72% 78%, rgba(122, 162, 223, 0.3), transparent 52%),
        rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 0 34px rgba(255, 255, 255, 0.94),
        0 26px 60px rgba(8, 58, 128, 0.18);
    text-align: center;
    backdrop-filter: blur(10px);
}

.summer-card span,
.summer-card small {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
}

.summer-card strong {
    display: block;
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 5.4rem;
    line-height: 0.9;
}

.summer-card p {
    margin: 0;
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.summer-card small {
    font-size: 0.78rem;
}

/* Welcome and trust */

.welcome-section {
    padding: 70px 0 42px;
    background: #ffffff;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 800px;
}

.hero-title {
    margin-bottom: 18px;
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-subtitle {
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.8;
}

.trust-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0 0 64px;
    background: #ffffff;
}

.trust-item {
    padding: 24px 22px;
    border: 1px solid rgba(8, 58, 128, 0.08);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(8, 58, 128, 0.08);
    text-align: center;
}

.trust-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.trust-item span {
    color: var(--muted);
    line-height: 1.55;
}

.btn {
    display: inline-block;
    padding: 12px 26px;
    border: none;
    border-radius: 30px;
    background: var(--accent);
    color: var(--light);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    background: #0949a8;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(8, 58, 128, 0.22);
}

.info-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 60px 0 90px;
    background: var(--background-light);
    text-align: center;
}

.info-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 28px 24px;
    border-radius: 14px;
    background: var(--light);
    box-shadow: 0 8px 22px rgba(8, 58, 128, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(8, 58, 128, 0.16);
}

.info-card img {
    width: 100px;
    height: 100px;
    margin: 0 auto 18px;
    object-fit: contain;
}

.info-card h3 {
    margin-bottom: 12px;
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.info-card p {
    margin-bottom: 18px;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

.link {
    margin-top: auto;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.link:hover {
    color: var(--dark);
}

.service-request-btn {
    width: fit-content;
    margin: 18px auto 0;
    padding: 10px 20px;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(8, 58, 128, 0.14);
}

.contact-section {
    position: relative;
    padding: 90px 0;
    background:
        linear-gradient(rgba(8, 58, 128, 0.72), rgba(8, 58, 128, 0.72)),
        url("../assets/images/contact-bg.jpg") center / cover no-repeat;
    text-align: center;
}

.contact-container {
    position: relative;
    z-index: 2;
    color: var(--light);
}

.contact-container h2 {
    margin-bottom: 34px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 640px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group.full-width {
    width: 100%;
}

.contact-form .btn {
    align-self: flex-end;
}

.saved-discount-box {
    padding: 13px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    font-weight: 600;
    text-align: center;
}

/* Legal pages: impressum.html and datenschutz.html */

.legal-page {
    min-height: 70vh;
    padding: 150px 0 80px;
    background:
        linear-gradient(rgba(249, 249, 249, 0.94), rgba(249, 249, 249, 0.94)),
        url("../assets/images/start-hero.png") center / cover no-repeat;
}

.legal-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 46px;
    border: 1px solid rgba(8, 58, 128, 0.08);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(6, 36, 78, 0.08);
}

.legal-card h1,
.legal-card h2 {
    color: var(--dark);
    font-family: var(--font-heading);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.legal-card h1 {
    margin-bottom: 26px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
}

.legal-card h2 {
    margin: 32px 0 12px;
    font-size: 1.35rem;
    font-weight: 700;
}

.legal-card p {
    margin-bottom: 14px;
    color: var(--text-color);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.legal-card a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.legal-card a:hover {
    color: var(--dark);
}

/* Discount game */

.discount-game {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
}

.discount-bubble {
    position: absolute;
    z-index: 901;
    left: 72vw;
    top: 34vh;
    width: 150px;
    height: 150px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    color: var(--dark);
    font-weight: 800;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.18) 24%, transparent 42%),
        radial-gradient(circle at 70% 75%, rgba(122, 162, 223, 0.38), transparent 45%),
        rgba(255, 255, 255, 0.46);
    box-shadow:
        inset 0 0 24px rgba(255, 255, 255, 0.95),
        0 18px 35px rgba(8, 58, 128, 0.24);
    backdrop-filter: blur(4px);
    animation: roamingBubblePage 12s ease-in-out infinite alternate;
}

.discount-bubble:hover {
    transform: scale(1.04);
}

.discount-bubble-text {
    display: block;
    font-size: 0.9rem;
    line-height: 1.15;
    pointer-events: none;
}

.discount-bubble.is-popped {
    display: none;
}

.discount-result {
    position: fixed;
    z-index: 3002;
    right: 24px;
    bottom: 24px;
    width: min(360px, calc(100% - 32px));
    padding: 28px 24px;
    border-radius: 28px;
    background: #ffffff;
    color: var(--dark);
    box-shadow: 0 30px 80px rgba(8, 58, 128, 0.28);
    pointer-events: auto;
    text-align: center;
    transform: translateY(14px) scale(0.96);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.discount-result.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.discount-result::before {
    content: "Nur für Neukunden";
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.discount-result strong {
    display: block;
    margin: 6px 0;
    font-size: 2.4rem;
    line-height: 1;
}

.discount-result p {
    margin: 8px 0;
    color: var(--muted);
}

.discount-result b {
    display: inline-block;
    margin: 8px 0 10px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--dark);
}

.discount-valid {
    display: block;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.discount-result a {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--dark);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.discount-result a:hover {
    background: #0949a8;
}

.discount-small {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
}

.bubble-splash {
    position: fixed;
    width: 14px;
    height: 14px;
    z-index: 4000;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 30% 25%, #ffffff, rgba(255, 255, 255, 0.3) 45%, rgba(122, 162, 223, 0.18));
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.95);
    animation: bubbleSplash 0.85s ease-out forwards;
}

@keyframes bubbleSplash {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.4);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--move-x)), calc(-50% + var(--move-y))) scale(1.4);
    }
}

@keyframes roamingBubblePage {
    0% {
        left: 72vw;
        top: 22vh;
    }

    18% {
        left: 82vw;
        top: 64vh;
    }

    36% {
        left: 48vw;
        top: 76vh;
    }

    54% {
        left: 16vw;
        top: 58vh;
    }

    72% {
        left: 28vw;
        top: 24vh;
    }

    100% {
        left: 76vw;
        top: 38vh;
    }
}

.discount-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 700;
}

.discount-close:hover {
    background: #d9f2ff;
}

.discount-saved-badge {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 3001;
    width: min(340px, calc(100% - 32px));
    padding: 16px 18px;
    border-radius: 20px;
    background: #ffffff;
    color: var(--dark);
    box-shadow: 0 18px 48px rgba(8, 58, 128, 0.22);
    pointer-events: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.discount-saved-badge.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.discount-saved-badge strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.discount-saved-badge span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .info-section {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .hero {
        height: 620px;
        min-height: 620px;
    }

    .banner-text {
        display: none;
    }

    .foam-divider {
        height: 120px;
        background:
            radial-gradient(circle at 4% 88%, #ffffff 0 30px, transparent 31px),
            radial-gradient(circle at 10% 78%, #ffffff 0 44px, transparent 45px),
            radial-gradient(circle at 18% 88%, #ffffff 0 34px, transparent 35px),
            radial-gradient(circle at 28% 76%, #ffffff 0 50px, transparent 51px),
            radial-gradient(circle at 40% 88%, #ffffff 0 36px, transparent 37px),
            radial-gradient(circle at 52% 76%, #ffffff 0 52px, transparent 53px),
            radial-gradient(circle at 64% 88%, #ffffff 0 34px, transparent 35px),
            radial-gradient(circle at 76% 78%, #ffffff 0 48px, transparent 49px),
            radial-gradient(circle at 88% 88%, #ffffff 0 36px, transparent 37px),
            radial-gradient(circle at 98% 80%, #ffffff 0 42px, transparent 43px),
            linear-gradient(to bottom, transparent 0%, #ffffff 58%, #ffffff 100%);
    }

    .welcome-section::before {
        content: "";
        display: block;
        width: min(88%, 420px);
        height: 420px;
        margin: 0 auto 28px;
        background: url("../assets/images/banner-text.svg") center / contain no-repeat;
    }

    .welcome-section {
        padding: 42px 0 40px;
    }

    .summer-spotlight {
        padding: 58px 0;
    }

    .summer-spotlight-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .summer-card {
        width: min(310px, 100%);
        min-height: 300px;
        margin: 0 auto;
    }

    .trust-section {
        grid-template-columns: 1fr;
        max-width: 620px;
        padding-bottom: 54px;
    }

    .form-group {
        flex-direction: column;
        gap: 16px;
    }

    .contact-form .btn {
        align-self: center;
    }
}

@media (max-width: 700px) {
    .legal-page {
        padding: 120px 0 50px;
    }

    .legal-card {
        padding: 28px 22px;
    }
}

@media (max-width: 560px) {
    .hero {
        height: 520px;
        min-height: 520px;
    }

    .bg-image {
        object-position: center;
    }

    .foam-divider {
        height: 95px;
    }

    .summer-spotlight {
        padding: 44px 0;
    }

    .summer-copy h2 {
        font-size: 2.2rem;
    }

    .summer-copy p {
        font-size: 1rem;
    }

    .summer-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .summer-actions .btn {
        width: 100%;
        text-align: center;
    }

    .summer-card {
        min-height: 260px;
    }

    .summer-card strong {
        font-size: 4.5rem;
    }

    .welcome-section::before {
        width: min(92%, 360px);
        height: 360px;
        margin-bottom: 22px;
    }

    .welcome-section {
        padding: 36px 0 38px;
    }

    .info-section {
        grid-template-columns: 1fr;
        max-width: 420px;
        padding: 45px 0 70px;
    }

    .service-request-btn {
        width: 100%;
        max-width: 260px;
        padding: 11px 16px;
        font-size: 0.88rem;
    }

    .discount-bubble {
        width: 112px;
        height: 112px;
        left: 62vw;
        top: 66vh;
    }

    .discount-result {
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
        max-height: 72vh;
        overflow-y: auto;
        padding: 26px 20px 22px;
    }

    .discount-close {
        top: 10px;
        right: 10px;
    }

    .discount-saved-badge {
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
    }
}