/* Allgemeines Styling für den Vitaminbedarfsrechner-Wrapper */
.vitamin-rechner-wrapper {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    max-width: 100%;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Styling für die Überschriften im Rechner */
.vitamin-rechner-wrapper h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Styling für Formulargruppen */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Styling für den Button */
.calculate-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.calculate-button:hover {
    background-color: #0056b3;
}

/* Styling für die Ergebnisse */
.results {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.results h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.results p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}

.results ul {
    list-style-type: none;
    padding: 0;
}

.results ul li {
    background-color: #e2f0ff;
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 5px solid #007bff;
}

/* Referenztabelle Styling */
.reference-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.reference-table th,
.reference-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.reference-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

.reference-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.reference-table tr:hover {
    background-color: #f1f1f1;
}

/* --- Tooltip Styling Anpassungen --- */
.help-tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 5px;
    vertical-align: middle;
    font-size: 0.9em;
}

.help-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-style: normal;
    font-weight: bold;
    font-family: serif;
    line-height: 1;
}

.help-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    z-index: 1000;
    white-space: normal;
    text-align: left;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    width: auto;
    min-width: 180px;
    max-width: 320px;
    box-sizing: border-box;
    font-size: 0.9em;
    line-height: 1.4;
}

.help-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.help-tooltip-container:hover .help-tooltip-content,
.help-tooltip-container:focus-within .help-tooltip-content,
.help-tooltip-content.visible {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Randanpassung durch JS-Klassen */
.help-tooltip-content.tooltip-align-left {
    left: 5px;
    right: auto;
    transform: translateX(0) translateY(-10px);
}
.help-tooltip-content.tooltip-align-right {
    right: 5px;
    left: auto;
    transform: translateX(0) translateY(-10px);
}

/* Media Query für kleinere Bildschirme (Mobilgeräte) */
@media screen and (max-width: 768px) {
    .help-tooltip-content {
        min-width: 140px;
        max-width: 90vw;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        padding: 6px 10px;
        font-size: 0.85em;
    }
}

/* --- Styling für den Haftungsausschluss / Hinweis --- */
.vitamin-rechner-disclaimer {
    margin-top: 25px;
    padding: 15px 20px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-left: 5px solid #ffc107;
    border-radius: 5px;
    color: #664d03;
    font-size: 0.95em;
    line-height: 1.5;
    font-weight: 600;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.vitamin-rechner-disclaimer strong {
    font-weight: 700;
    color: #a00;
}