/* Pro School Base Styles */
:root {
    --magenta: #B81277;
    --magenta-dunkel: #830038;
    --text: #4A4A4A;
    --tinte: #3E374B;
    --grau: #E6E6E6;
    --himmel: #E6F0F4;
    --hellblau: #C4E3E9;
    --gruen: #CDCE00;
    --rot: #E2491B;
}

/* Contao-Formular initial verstecken */
#bew {
    display: none;
}

#bew.show-form {
    display: block !important;
    margin-top: 2rem
}

/* Vorabfragen Styles */
.vorqualifizierung-container {
    padding: 40px;
    border-radius: 12px;
}

.vorqualifizierung-screen {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.vorqualifizierung-screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vq-title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--magenta);
    margin: 0 0 12px;
    text-align: center;
}

/* Orange Farbe für Autismus-Screens */
#vq-autismus .vq-title {
    color: var(--rot);
}

#vq-autismus h3 {
    color: var(--rot);
}

#vq-autismus .vq-button:not(.secondary) {
    background: var(--rot);
}

#vq-autismus .vq-button:not(.secondary):hover {
    background: #C23D16;
}

/* Dynamische Farben für Hinweis-Screen */
#vq-hinweis.orange-theme .vq-title,
#vq-hinweis.orange-theme h3 {
    color: var(--rot);
}

#vq-hinweis.orange-theme .vq-button:not(.secondary) {
    background: var(--rot);
}

#vq-hinweis.orange-theme .vq-button:not(.secondary):hover {
    background: #C23D16;
}

.vq-title-schoolbell {
    font-family: 'Schoolbell', 'Comic Sans MS', cursive;
    font-weight: 700;
}

.vq-subtitle {
    font-size: 20px;
    color: var(--tinte);
    margin: 0 0 40px;
    text-align: center;
}

.vq-section-title {
    text-align: center;
    color: var(--magenta);
    font-size: 26px;
    margin-bottom: 30px;
    font-weight: 700;
}

.vq-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.vq-tile {
    border-radius: 10px;
    color: #fff;
    text-align: center;
    padding: 32px 24px;
    min-height: 180px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
    border: none;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.vq-tile-icon {
    position: absolute;
    right: -3.5rem;
    top: -2.5rem;
    height: 7.5rem;
    width: 7.5rem;
    opacity: 0.5;
    transition: all 0.5s;
}

.vq-tile:hover .vq-tile-icon {
    opacity: 0.7;
    transform: scale(1.1);
}

.vq-tile-icon path {
    fill: currentColor;
}

.vq-tile-content {
    position: relative;
    z-index: 1;
}

.vq-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, .15);
}

.vq-tile.mag {
    background: var(--magenta);
}

.vq-tile.rot {
    background: var(--rot);
}

.vq-tile.gr {
    background: var(--gruen);
    color: var(--tinte);
}

.vq-tile b {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.vq-tile span {
    font-size: 16px;
    opacity: 0.95;
}

.vq-question-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 700px;
    margin: 0 auto 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
}

.vq-question-card h3 {
    color: var(--magenta);
    margin-bottom: 20px;
    font-size: 22px;
}

.vq-radio-group,
.vq-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.vq-radio-option,
.vq-checkbox-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--himmel);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.vq-radio-option:hover,
.vq-checkbox-option:hover {
    background: var(--hellblau);
}

.vq-radio-option input,
.vq-checkbox-option input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.vq-radio-option label,
.vq-checkbox-option label {
    font-size: 17px;
    cursor: pointer;
    flex: 1;
}

.vq-select-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.vq-select-wrapper select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 17px;
    font-family: inherit;
    color: var(--tinte);
    background: var(--himmel);
    border: 2px solid var(--grau);
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
}

.vq-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--magenta);
    font-size: 12px;
}

.vq-info-text {
    font-size: 15px;
    line-height: 1.5;
    color: #6b6b6b;
    margin: 16px 0;
}

.vq-button-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.vq-button {
    border-radius: 40px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    background: var(--magenta);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
    transition: background 0.2s;
}

.vq-button:hover {
    background: var(--magenta-dunkel);
}

.vq-button.secondary {
    background: var(--grau);
    color: var(--tinte);
}

.vq-error-message {
    display: none;
    background: #fee;
    border: 2px solid #c33;
    color: #c33;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
    animation: shake 0.3s;
}

.vq-error-message.show {
    display: block;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.vq-button.secondary:hover {
    background: #d0d0d0;
}

.vq-message-box {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
    text-align: center;
}

/* .vq-message-box.warning {
      border-left: 6px solid var(--rot);
    }

    .vq-message-box.info {
      border-left: 6px solid var(--hellblau);
    } */

.vq-message-box h3 {
    color: var(--magenta);
    margin-bottom: 20px;
    font-size: 24px;
}

.vq-message-box p {
    margin: 16px 0;
    line-height: 1.6;
}

.vq-contact-info {
    background: var(--himmel);
    border-radius: 10px;
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}

.vq-contact-info p {
    margin: 8px 0;
}

.vq-contact-info a {
    color: var(--magenta);
    font-weight: 700;
    text-decoration: none;
}

.vq-contact-info a:hover {
    text-decoration: underline;
}

.vq-progress-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.vq-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--grau);
    transition: all 0.3s;
}

.vq-progress-dot.active {
    background: var(--magenta);
    width: 16px;
    height: 16px;
}