/* === TOOLTIP === */
.tooltip {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-wrap: wrap;
}

.checkbox-wrapper {
    margin-right: 8px;
    flex-shrink: 0;
}

.checkbox-text {
    flex: 1;
    min-width: 0;
}

.tooltiptext {
    display: none;
    flex-basis: 100%;
    width: 100%;
    background-color: #142c82;
    color: white;
    text-align: left;
    border-radius: 15px;
    padding: 10px 15px;
    margin-top: 10px;
    box-sizing: border-box;
}

.tooltiptext p {
    margin: 0;
    margin-bottom: 14px;
}

.tooltiptext ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.tooltiptext li {
    margin-bottom: 5px;
}

.tooltip:hover .tooltiptext {
    display: block;
}

/* === CHECKBOXEN === */
input.big-checkbox {
    width: 1.4vw;
    height: 1.4vw;
    min-height: 15px;
    min-width: 15px;
    max-height: 25px;
    max-width: 25px;
    transform: scale(1.8);
    border: 5px solid #000;
    border-radius: 10px;
    display: inline-block;
    cursor: pointer;
    position: relative;
    margin-right: 0.7vw;
    margin-left: 1vw;
}

input.big-checkbox:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 60%;
    border: solid black;
    border-width: 0 5px 5px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s;
}

input[type="checkbox"]:checked + .big-checkbox:after {
    opacity: 1;
}

input.interesse-checkbox {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -ms-appearance: none !important;
    -o-appearance: none !important;
    appearance: none !important;
    background: white !important;
    background-image: none !important;
    background-color: white !important;
    width: 1.4vw !important;
    height: 1.4vw !important;
    min-height: 15px !important;
    min-width: 15px !important;
    max-height: 25px !important;
    max-width: 25px !important;
    transform: scale(1.8) !important;
    border: 2px solid #000 !important;
    border-radius: 50% !important;
    display: inline-block !important;
    cursor: pointer !important;
    position: relative !important;
    margin-right: 0.7vw !important;
    margin-left: 1vw !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

input.interesse-checkbox::-ms-check {
    display: none !important;
}

input.interesse-checkbox::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 50% !important;
    height: 50% !important;
    border-radius: 50% !important;
    background-color: white !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s !important;
}

input.interesse-checkbox:checked {
    background-color: #142c82 !important;
    border-color: #142c82 !important;
}

input.interesse-checkbox:checked::after {
    opacity: 1 !important;
}

input.checkbox-text {
    font-size: clamp(13px, 1.6vw, 15px);
    line-height: 1.0;
}

/* === LABELS === */
label {
    display: flex;
    align-items: center;
    height: clamp(40px, 2vw, 60px);
    margin-bottom: clamp(5px, 1.8vw, 12px);
    gap: clamp(8px, 1.5vw, 20px);
    margin-left: 20px;
}

/* === GLOBALE RESETS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    color: inherit;
    text-decoration: underline;
}

a:link {
    color: inherit;
}

a:hover {
    font-weight: bold;
}

a:visited {
    color: inherit;
}

/* === CONTAINER === */
.container {
    max-width: 1600px;
    width: 100%;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header {
    padding-top: 50px;
    padding-bottom: 40px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    width: 100%;
}

.footer {
    background-color: #142c82;
    color: white;
    text-align: center;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.content {
    display: flex;
}

.single {
    flex: 1;
    background-color: #f4f4f4;
    padding: 20px;
    text-align: center;
    border-radius: 20px;
}

.box {
    flex: 1;
    background-color: #f4f4f4;
    padding: 20px;
    text-align: center;
    border-radius: 20px;
}

.whitespace {
    flex: 1;
    height: 20px;
    background-color: #fff;
}

.column {
    flex: 1;
    background-color: #f4f4f4;
    padding: 20px;
    text-align: left;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: gray;
    border-radius: 20px;
}

.column label.tooltip {
    margin-bottom: clamp(14px, 2.5vw, 40px) !important;
}

.interessen-box label {
    margin-bottom: 0px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.spalten-titel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #142c82;
    color: white;
    font-weight: bold;
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    padding: 0.7rem 1rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1.2;
}

.spalten-titel-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

/* === MOBILE (max-width: 768px) === */
@media (max-width: 768px) {
    
    .content {
        flex-direction: column;
        gap: 0 !important;
    }
    
    .tooltiptext {
        left: 53%;
        top: auto;
        transform: none;
        width: auto;
        max-width: 90%;
    }
    
    .tooltip-left .tooltiptext {
        left: 53%;
        right: auto;
    }
    
    .content .column {
        padding: 10px 15px;
    }
    
    .checkbox-text {
        line-height: 1.3;
        flex: 1;
    }
    
    input.big-checkbox {
        margin-left: 0 !important;
        margin-right: 10px !important;
        flex-shrink: 0;
    }
    
    input.interesse-checkbox {
        transform: none !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
        border-width: 3px !important;
        margin-left: 0 !important;
        margin-right: 10px !important;
        flex-shrink: 0 !important;
    }
    
    input.interesse-checkbox::after {
        width: 50% !important;
        height: 50% !important;
    }
    
    .column label {
        height: auto !important;
        min-height: 40px;
        margin-bottom: 8px;
        gap: 12px;
        align-items: flex-start;
        padding: 5px 0;
    }
    
    .tooltip {
        align-items: flex-start;
    }
    
    .interessen-box .content .column {
        margin-bottom: 0;
        padding: 0 15px !important;
    }
    
    .interessen-box label {
        align-items: center !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 12px 0 !important;
        margin-bottom: 0 !important;
        gap: 12px !important;
    }
    
    .interessen-box .checkbox-text {
        transform: translateY(2px);
    }
    
}



/* === ULTIMATIVER OVERRIDE für Tooltips === */
label.tooltip .tooltiptext,
.box .tooltiptext,
.content .tooltiptext,
.column .tooltiptext,
.interessen-box .tooltiptext {
    display: none !important;
    position: static !important;
    flex-basis: 100% !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    background-color: #142c82 !important;
    color: white !important;
    border-radius: 15px !important;
    padding: 10px 15px !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

label.tooltip:hover .tooltiptext,
.box .tooltip:hover .tooltiptext,
.content .tooltip:hover .tooltiptext,
.column .tooltip:hover .tooltiptext,
.interessen-box .tooltip:hover .tooltiptext {
    display: block !important;
}

label.tooltip,
.box label.tooltip,
.content label.tooltip,
.column label.tooltip,
.interessen-box label.tooltip {
    flex-wrap: wrap !important;
    height: auto !important;
}

.column label.tooltip {
    min-height: clamp(60px, 3.5vw, 60px);
    margin-bottom: clamp(8px, 1vw, 16px) !important;
}


@media (min-width: 769px) and (max-width: 1600px) {
    .column label.tooltip {
        min-height: 80px;   /* Höhe eines 4-Zeilers, Wert austesten */
    }
}


.spalten-titel {
    min-height: 3.9em;   /* Platz für 2 Zeilen; wirkt dank align-items: center auch bei 1 Zeile zentriert */
}

.column label.tooltip {
    align-items: flex-start !important;   /* schlägt Tailwinds items-center */
}

.column label.tooltip .checkbox-wrapper {
    display: flex;
    align-items: center;
    height: 1.2em;        /* = line-height der ersten Textzeile */
    margin-top: 0;        /* alte Offsets raus */
}

.column label.tooltip .checkbox-text {
    line-height: 1.2;     /* muss zum Wert oben passen */
    padding-top: 0;       /* alten Mobile-Offset raus */
}

/* Automatische Silbentrennung */
.checkbox-text {
    hyphens: auto;
}