.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);
    transition: transform 0.2s ease-out;
}

.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: -4%;
    right: -4%;
    bottom: -2px;
    height: 110px;
    z-index: 6;
    background:
        radial-gradient(circle at 2% 82%, #ffffff 0 34px, transparent 35px),
        radial-gradient(circle at 8% 70%, #ffffff 0 46px, transparent 47px),
        radial-gradient(circle at 16% 82%, #ffffff 0 36px, transparent 37px),
        radial-gradient(circle at 25% 72%, #ffffff 0 52px, transparent 53px),
        radial-gradient(circle at 35% 84%, #ffffff 0 38px, transparent 39px),
        radial-gradient(circle at 46% 75%, #ffffff 0 48px, transparent 49px),
        radial-gradient(circle at 57% 83%, #ffffff 0 34px, transparent 35px),
        radial-gradient(circle at 67% 72%, #ffffff 0 50px, transparent 51px),
        radial-gradient(circle at 78% 83%, #ffffff 0 39px, transparent 40px),
        radial-gradient(circle at 88% 72%, #ffffff 0 54px, transparent 55px),
        radial-gradient(circle at 98% 84%, #ffffff 0 40px, transparent 41px),
        linear-gradient(#ffffff, #ffffff);
}

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

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

.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;
}

.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: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    gap: 24px;
    padding: 60px 0 90px;
    background: var(--background-light);
    text-align: center;
}

.info-card {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 360px;
    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 {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

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

.contact-section {
    position: relative;
    padding: 90px 0;
    background: url("../assets/images/contact-bg.jpg") center/cover no-repeat;
    text-align: center;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 58, 128, 0.58);
    z-index: 1;
}

.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;
}

.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;
    left: auto;
    right: 24px;
    top: auto;
    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 16px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--dark);
}

.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; }
}

@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 740px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-top: 120px;
    }

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

    .banner-text {
        top: 46%;
        left: 50%;
        width: 82%;
        max-width: 520px;
        transform: translate(-50%, -50%);
    }

    .info-section {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        width: 100%;
        max-width: 420px;
    }

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

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

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

    .banner-text {
        width: 92%;
    }

    .foam-divider {
        height: 82px;
    }

    .welcome-section {
        padding: 65px 0 45px;
    }

    .info-section {
        padding: 45px 0 70px;
    }

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

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