/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding-bottom: 10px; /* Space for progress bar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky; 
    top: 0;
    z-index: 100;
}

.logo-link {
    display: block;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Main Content */
main {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Yellow Box */
.yellow-box {
    background-color: #FFD700;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.yellow-box h1 {
    font-size: 1.1rem;
    text-align: center;
    color: #333;
    font-weight: 600;
}

/* Slider */
.slider-container {
    margin: 20px 0;
    position: relative;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.slider-images {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.slider-images img {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
    min-height: 200px;
}


.slider-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(0,0,0,0.1);
    margin-top: 10px;
    border-radius: 2px;
    overflow: hidden;
}

.slider-progress-fill {
    height: 100%;
    background-color: #FFD700;
    transition: width 0.3s ease;
    width: 0%;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #FFD700;
    width: 24px;
    border-radius: 4px;
}

/* Content Text */
.content-text {
    margin: 30px 0;
}

.intro-text {
    text-align: center;
    line-height: 1.6;
    color: #333;
}

.intro-text strong {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.intro-text span {
    font-size: 1rem;
    font-weight: 400;
    display: block;
}

.info-box {
    background-color: transparent;
    padding: 10px 0;
}

.info-box p {
    margin: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
}

.info-box p:first-child {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
}

.info-box p strong {
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin: 15px 0 8px 0;
}

/* Question Section */
.question-section {
    background-color: #e8e8e8;
    padding: 40px 20px;
    border-radius: 0;
    margin: 30px -20px 50px -20px;
    width: calc(100% + 40px);
}

.question-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #000;
    line-height: 1.4;
}

.button-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.button-group.vertical {
    gap: 15px;
}

.big-button {
    border: none;
    border-radius: 12px;
    padding: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    min-height: 140px;
}

.big-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.big-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button-orange {
    background-color: #2d2d46;
}

.button-orange:hover {
    background-color: #1f1f33;
}

.button-green {
    background-color: #FFD700;
    color: #333;
}

.button-green:hover {
    background-color: #FFC700;
    color: #333;
}

.button-icon {
    font-size: 2rem;
    line-height: 1;
}

.button-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-green .button-icon,
.button-orange .button-icon {
    color: #2d2d46;
}

.button-green .button-icon {
    color: #2d2d46;
}

/* Experience Page (Frage 2) */
.experience-title {
    font-size: 1.2rem;
    text-align: center;
    margin: 25px 20px 5px 20px;
    color: #333;
    line-height: 1.4;
}

.experience-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.experience-card {
    border: none;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    background-color: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.experience-card-illustration {
    background-color: #2d2d46; /* ASB blue, same as links on first page */
    overflow: hidden;
    flex: 1;
    min-height: 150px;
}

.experience-card-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.experience-card-label {
    background-color: #FFD700; /* yellow instead of orange */
    color: #333;
    font-weight: 700;
    padding: 14px 16px;
    text-align: center;
    font-size: 0.95rem;
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* License Page (Letzte Frage) */
.license-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.license-card {
    border: none;
    border-radius: 18px;
    padding: 40px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.license-card-yes {
    background-color: #FFD700; /* ASB yellow */
}

.license-card-no {
    background-color: #2d2d46;
}

.license-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.license-icon {
    font-size: 2.2rem;
}

.license-card-yes .license-icon {
    color: #333;
}

.license-card-no .license-icon {
    color: #2d2d46;
}

.license-label {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.license-card-yes .license-label {
    color: #333;
}

.license-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* Benefits Section */
.benefits-section {
    margin: 50px 0 30px 0;
    scroll-margin-top: 100px; /* Account for sticky header */
}

.benefits-section h3 {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    background-color: transparent;
    padding: 0;
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1.2;
}

.benefit-item div {
    flex: 1;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.benefit-item strong {
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: #333;
}

.apply-button {
    width: 100%;
    background-color: #FFD700;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.apply-button:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.apply-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Question Pages */
.question-header {
    background-color: #e8e8e8;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.question-counter {
    text-align: center;
    font-size: 1rem;
    color: #666;
    font-weight: 300;
}

.question-title {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 8px;
    color: #333;
}

.option-button {
    width: 100%;
    background-color: #FFD700;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.option-button:hover:not(.disabled):not(.option-button-gray) {
    background-color: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.option-button:active:not(.disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.option-button.disabled {
    background-color: #e0e0e0;
    border: none;
    color: #999;
    cursor: not-allowed;
}

.option-button-gray {
    background-color: #9e9e9e !important;
    color: #333 !important;
}

.option-button-gray:hover {
    background-color: #8e8e8e !important;
    color: #222 !important;
}

.option-button.selected:not(.option-button-gray) {
    background-color: #FFC700 !important;
    font-weight: 600;
}

.option-button-gray.selected,
.option-button.option-button-gray.selected {
    background-color: #8e8e8e !important;
    color: #222 !important;
    font-weight: 600;
}

/* Mehrfachauswahl: initial grau, ausgewählt gelb */
.option-button-multiselect {
    background-color: #9e9e9e !important;
    color: #333 !important;
}

.option-button-multiselect:hover {
    background-color: #8e8e8e !important;
    color: #222 !important;
}

.option-button-multiselect.selected {
    background-color: #FFD700 !important;
    color: #333 !important;
    font-weight: 600;
}

.option-button-multiselect.selected:hover {
    background-color: #FFC700 !important;
}

.option-section-label {
    margin: 24px 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.einsatz-weiter-button {
    margin-top: 24px;
}

.contact-intro-dialog {
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-intro-dialog p {
    margin-bottom: 8px;
}

.contact-intro-dialog p:last-child {
    margin-bottom: 0;
}

.contact-intro-dialog--success {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.contact-intro-dialog--info {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
}

.option-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-icon-gray {
    color: #666;
}

/* No Qualification Page */
.no-qualification-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-qualification-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.no-qualification-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.no-qualification-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.share-button {
    width: 100%;
    background-color: #FFD700;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-button:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.back-button {
    width: 100%;
    background-color: #000;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-button:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Contact Page */
.contact-container {
    background-color: #fff;
    border-radius: 16px;
    padding: 20px 20px 30px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 10px auto 20px auto;
}

.contact-subtitle {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2001a;
    margin-bottom: 10px;
}

.contact-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.4;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-group {
    text-align: left;
}

.contact-optional {
    font-size: 0.8rem;
    font-weight: 400;
    color: #888;
}

.contact-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0 12px;
}

.contact-input-row:focus-within {
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.35);
}

.contact-input-emoji {
    font-size: 1.3rem;
}

.contact-input {
    width: 100%;
    padding: 12px 4px 12px 0;
    border-radius: 10px;
    border: none;
    font-size: 0.85rem;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input:focus {
    box-shadow: none;
}

.contact-input-multiline {
    resize: vertical;
    min-height: 60px;
    font-size: 0.85rem;
    line-height: 1.4;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.contact-input::placeholder,
.contact-input-multiline::placeholder {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.85rem;
    color: #999;
}

.contact-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #555;
    margin-top: 10px;
}

.contact-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.contact-checkbox-row a {
    color: #2d7ff9;
    text-decoration: underline;
}

.contact-submit-button {
    width: 100%;
    background-color: #FFD700;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.contact-submit-button:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.button-6-hours {
    margin-top: 0;
}

.divider-with-text {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.divider-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.contact-info-text {
    max-width: 600px;
    margin: 25px auto 0 auto;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
}

.contact-info-text p {
    margin-bottom: 10px;
}

.contact-info-note {
    font-size: 0.85rem;
    color: #666;
}

/* Summary Page */
.summary-container {
    text-align: center;
    padding: 20px;
}

.summary-container h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #333;
}

.summary-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
}

.summary-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #666;
    display: block;
    margin-bottom: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: auto;
    font-size: 0.9rem;
    color: #666;
}

footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #FFD700;
}

.footer-separator {
    margin: 0 10px;
}

/* Progress Bar */
.progress-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 0, 0, 0.2);
    z-index: 1000;
}

.progress-bar-fill {
    height: 100%;
    background-color: #ff0000;
    transition: width 0.5s ease;
    width: 20%;
}

/* Success toast */
.success-toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(100%);
    background-color: #66bb6a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2000;
}

.success-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (min-width: 768px) {
    .yellow-box h1 {
        font-size: 1.3rem;
    }

    .question-section h2 {
        font-size: 1.0rem;
    }

    .button-group {
        flex-direction: row;
        gap: 20px;
    }

    .button-group.vertical {
        flex-direction: column;
    }

    .big-button {
        flex: 1;
    }

    main {
        max-width: 800px;
    }
}

@media (min-width: 1024px) {
    main {
        max-width: 1000px;
    }
}
