
.top-banner {
    background-color: #f8d3af;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    display: flex;
    justify-content: center;
}

.top-banner a {
    color: #333;
    font-weight: normal;
    text-decoration: underline;
}

.top-banner .tap-banner-spacer {
    margin: 0 4px;
}

.main-section {
    display: flex;
    align-items: flex-start;
    padding: 10px 0 40px 0;
    gap: 20px;
    /*min-height: 500px;*/
}

.content {
    flex: 1;
    /*max-width: 600px;*/
    padding-right: 20px;
}

.main-title {
    color: #1a5f3f;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: left;
}

.main-title .highlight {
    background: linear-gradient(180deg, transparent 60%, #7df2e7 60%);
    color: black;
    padding: 0 8px;
    display: inline;
}

.main-title .subtitle-part {
    color: #000;
    font-weight: 400;
    /*display: block;*/
    margin-top: 8px;
}

.subtitle {
    color: #333;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
}

.info-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 14px;
    color: #666;
    margin-left: 8px;
    cursor: pointer;
}

.highlight-text {
    color: #22aea1;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
    text-align: left;
}

.features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.features li {
    display: flex;
    align-items: center;
    /*margin-bottom: 20px;*/
    font-size: 17px;
    color: #333;
    line-height: 1.5;
    padding: 8px 0;
}

.checkmark {
    color: #3c9a44;
    font-size: 26px;
    margin-right: 16px;
    flex-shrink: 0;
    margin-top: 0;
}

.image-container {
    flex: 0 0 480px;
    max-width: 480px;
}

.responsive-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    min-height: 320px;
    max-height: 400px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.placeholder-image {
    width: 100%;
    height: 350px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
}

/* Element Ordering */
.content-wrapper {
    display: flex;
    flex-direction: column;
}

.insurer-section-mobile {
    display: none;
}

.insurer-section-desktop {
    display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .top-banner {
        font-size: 13px;
        padding: 12px 10px;
        text-align: center;
    }

    .main-section {
        flex-direction: column-reverse;
        padding: 0;
        gap: 0px;
        min-height: auto;
    }

    .content {
        max-width: 100%;
        padding-right: 0;
    }

    .image-container {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .placeholder-image {
        height: 200px;
    }

    .main-title {
        font-size: 28px;
        margin-bottom: 16px;
        line-height: 1.2;
        text-align: center;
    }

    .main-title .highlight {
        padding: 0 2px;
        display: inline;
        /*background: none;*/
        margin-bottom: 4px;
    }

    .main-title .subtitle-part {
        font-size: 20px;
        margin-top: 4px;
    }

    .subtitle {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .highlight-text {
        font-size: 18px;
        margin-bottom: 15px;
        line-height: 1.4;
        text-align: center;
    }

    .features li {
        font-size: 15px;
        margin-bottom: 8px;
        padding: 4px 0;
        line-height: 1.3;
    }

    .checkmark {
        font-size: 24px;
        margin-right: 10px;
    }

    .responsive-image {
        min-height: 185px;
        max-height: 185px;
        border-radius: 8px;
        object-position: center top;
    }

    /* Mobile Element Reordering */
    .content-wrapper {
        display: flex;
        flex-direction: column;
    }

    .birth-date-section {
        order: 1;
    }

    .trust-elements-section {
        order: 2;
    }

    .insurer-section-mobile {
        order: 3;
        display: block;
        margin-top: 0px;
        margin-bottom: 40px;
    }

    .insurer-section-desktop {
        display: none;
    }
}

/* Extra kleine Mobile Screens */
@media (max-width: 480px) {
    .top-banner {
        font-size: 11px;
        padding: 10px 8px;
    }

    .main-title {
        font-size: 24px;
        line-height: 1.1;
        text-align: center;
    }

    .features li {
        font-size: 14px;
        margin-bottom: 0;
        margin-left: 8px;
        padding: 3px 0;
        line-height: 1.2;
    }

    .features li span {
        display: block;
        margin-left: 0;
    }

    .checkmark {
        font-size: 22px;
        margin-right: 8px;
        margin-bottom: 2px;
        align-self: flex-start;
    }

    .responsive-image {
        min-height: 185px;
        max-height: 185px;
    }
}

/* Tablet Styles - Medium Range (769px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
    .container {
        padding: 0 30px; /* Bessere Seitenabstände */
        max-width: 1200px;
        margin: 0 auto;
    }

    .main-section {
        flex-direction: column; /* Stapele Inhalt vertikal */
        padding: 40px 0;
        gap: 30px;
        align-items: center;
    }

    .content {
        max-width: 100%;
        width: 100%;
        padding-right: 0;
        text-align: center; /* Zentriere Content */
    }

    .main-title {
        font-size: 32px;
        margin-bottom: 18px;
        text-align: center;
    }

    .highlight-text {
        font-size: 20px;
        margin-bottom: 25px;
        text-align: center;
    }

    .features {
        max-width: 600px;
        margin: 0 auto;
    }

    .features li {
        font-size: 16px;
        margin-bottom: 15px;
        justify-content: flex-start;
        text-align: left;
    }

    .image-container {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px; /* Begrenze Bildgröße */
        margin: 0 auto;
    }

    .responsive-image {
        min-height: 280px;
        max-height: 350px;
        border-radius: 10px;
        width: 100%;
    }
}

/* Kleinere Tablets (769px - 1024px) - Feinabstimmung */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }

    .main-section {
        padding: 30px 0;
        gap: 25px;
    }

    .main-title {
        font-size: 30px;
    }

    .image-container {
        max-width: 450px;
    }

    .responsive-image {
        min-height: 260px;
        max-height: 320px;
    }
}

/* Sticky Header Styling */
.birthdate-sticky-header {
    /*background-color: #cbf0d9;*/
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.birthdate-sticky-header.sticky-visible {
    opacity: 1;
    transform: translateY(0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.birthdate-sticky-header .birthdate-sticky-form {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 30px;
}

.birthdate-sticky-header .birthdate-form-container {
    background: #cbf0d9;
    border: 2px solid #88d6c2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    margin: 0;
    flex: 0 0 auto;
    width: auto;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.birthdate-sticky-header .birthdate-form-title {
    display: none;
}

.birthdate-sticky-header .birthdate-form-layout {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: auto;
}

.birthdate-sticky-header .birthdate-form-inputs-container {
    flex: 0 0 auto;
}

.birthdate-sticky-header .birthdate-form-inputs {
    gap: 5px;
    margin-bottom: 0;
}

.birthdate-sticky-header .birthdate-form-date-input {
    height: 50px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 6px;
}

/* Platzhaltertext-Styling für Sticky Header */
.birthdate-sticky-header .birthdate-form-date-input::placeholder {
    color: #999;
    opacity: 1;
}
.birthdate-sticky-header .birthdate-form-date-input::-webkit-input-placeholder {
    color: #999;
    opacity: 1;
}
.birthdate-sticky-header .birthdate-form-date-input::-moz-placeholder {
    color: #999;
    opacity: 1;
}
.birthdate-sticky-header .birthdate-form-date-input:-ms-input-placeholder {
    color: #999;
    opacity: 1;
}

.birthdate-sticky-header .birthdate-form-date-input:focus {
    border-color: #26a69a;
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.25);
    background-color: #fafafa;
}

.birthdate-sticky-header .birthdate-form-submit-button {
    height: 50px;
    width: 200px;
    background: #26a69a;
    color: white;
    font-weight: 600;
    border: none;
    font-size: 16px;
    border-radius: 6px;
    flex: 0 0 auto;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.birthdate-sticky-header .birthdate-form-submit-button:hover {
    background: #00897b;
}

.sticky-google-reviews {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: 16px;
}

.sticky-google-reviews .trust-element-review-container {
    max-width: none;
    width: auto;
    margin: 0;
    height: 60px;
}

/* Mobile Styling für Sticky Header */
@media (max-width: 768px) {
    .birthdate-sticky-header {
        padding: 16px 0;
        background: white;
        top: auto;
        bottom: 0;
        transform: translateY(100%);
        border-top: 1px solid #e0e0e0;
        border-bottom: none;
        box-shadow: 0 -8px 32px rgba(38, 166, 154, 0.15), 0 -4px 16px rgba(38, 166, 154, 0.1);
    }

    .birthdate-sticky-header.sticky-visible {
        opacity: 1;
        transform: translateY(0);
        background-color: #cbf0d9;
    }

    .birthdate-sticky-header .birthdate-sticky-form {
        padding: 0 24px;
        gap: 0;
    }

    #birthdateFormSticky {
        width: 100%;
    }

    .birthdate-sticky-header .birthdate-form-container {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        max-width: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .birthdate-sticky-header .birthdate-form-layout {
        flex-direction: row;
        align-items: center;
        gap: 0;
        max-width: none;
        width: 100%;
        justify-content: center;
    }

    .birthdate-sticky-header .birthdate-form-inputs-container {
        display: none;
    }

    .birthdate-sticky-header .birthdate-form-submit-button {
        width: calc(100% - 48px);
        max-width: 300px;
        margin: 0 auto;
        height: 56px;
        font-size: 16px;
        background: #26a69a;
        color: white;
        font-weight: 700;
        border: none;
        padding: 16px 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-decoration: none;
    }

    .birthdate-sticky-header .birthdate-form-submit-button:hover {
        background: #00897b;
        color: white;
    }

    .sticky-google-reviews {
        display: none;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .birthdate-sticky-header .birthdate-sticky-form {
        padding: 0 20px;
    }

    .birthdate-sticky-header .birthdate-form-submit-button {
        width: calc(100% - 40px);
        max-width: 230px;
        font-size: 15px;
        height: 52px;
        padding: 14px 28px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-decoration: none;
    }
}
