﻿/* Global styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Stepbox styling */
.gauting-stepbox {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 20px;
    padding: 20px;
    max-width:600px;
}

    .gauting-stepbox h3 {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 1rem;
        text-align: center;
    }

    .gauting-stepbox h4 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #2c3e50;
        text-align: center;
    }

/* Radio group and options */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
}

.radio-option label {
    font-size: 1em;
    color: #555;
    display: flex;
    align-items: center;
}

.radio-option .info-icon {
    margin-left: 10px;
    font-size: 1.2em;
    cursor: pointer;
    color: #888;
}

/* Form card styling */
.form-card {
    background-color: #DAE5CF;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.form-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        font-size: 1em;
        color: #333;
        margin-bottom: 5px;
    }

.form-control {
    width: 100%;
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-check-input {
    margin-right: 10px;
}

.form-check-label {
    font-size: 1em;
    color: #555;
}



/* Buttons */
button {
    padding: 10px 15px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    button.btn-secondary {
        background-color: #6c757d;
        color: #fff;
    }

    button.btn-primary {
        background-color: #007bff;
        color: #fff;
    }

    button.btn-success {
        background-color: #28a745;
        color: #fff;
    }

    button.btn-danger {
        background-color: #dc3545;
        color: #fff;
    }

    button:hover {
        opacity: 0.9;
    }

/* Tooltip styles */
[data-bs-toggle="tooltip"] {
    position: relative;
    cursor: pointer;
}

.tooltip-inner {
    background-color: #333;
    color: #fff;
    font-size: 0.9em;
    padding: 5px;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

    /* Form container for children */
    .step-actions button {
        flex: 1;
        max-width: 45%;
    }

/* Info icons for tooltips */
.info-icon {
    cursor: pointer;
    font-size: 1.2em;
    color: #888;
}

/* Specific styles for Familienkarte form */
.familienkarte-form .form-card {
    background-color: #e9f7fe;
    border: 2px solid #007bff;
}

.familienkarte-form .form-group label {
    font-size: 1em;
    color: #007bff;
}

.familienkarte-form .form-control {
    border-color: #007bff;
}

.familienkarte-form .step-actions button {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Styles for dynamic actions */
button.btn-secondary.mb-3 {
    background-color: #f1f1f1;
    color: #333;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

    button.btn-secondary.mb-3:hover {
        background-color: #e0e0e0;
    }

/* Adjustments for the layout of different forms */
.form-group {
    margin-bottom: 15px;
    width: 100%;
}

input[type="file"] {
    display: block;
    margin-top: 5px;
}

/* Add some spacing around input files and buttons */
input[type="file"], .form-control {
    margin-bottom: 10px;
}

/* Specific style adjustments */
input[type="text"] {
    background-color: #ffffff;
    border: 1px solid #ccc;
}

input[type="checkbox"] {
    margin-right: 10px;
}

/* Adjust the layout of step actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

/* Override input styles when editing Familienkarte form */
.familienkarte-form .form-control {
    background-color: #f9f9f9;
}

/* Buttons customization */
button.btn-danger {
    background-color: #ff5733;
    border: none;
}

/* Tooltip */
.tooltip-inner {
    background-color: #1e2125;
    color: #fff;
    font-size: 0.9em;
    padding: 8px;
}

.g-heading {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.g-subheading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.g-box {
    background-color: #DAE5CF;
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 600px; /* Begrenzung für bessere Lesbarkeit */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.g-label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: #333;
}

.g-input {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

    .g-input:focus {
        border-color: #28a745;
        outline: none;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
    }

.g-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.g-button {
    background-color: #28a745;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 120px;
}

    .g-button:hover {
        background-color: #218838;
    }

.g-pflicht {
    color: red;
    margin-left: 0.25rem;
    font-weight: bold;
}

g-error {
    color: darkred;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.label-tooltip {
    cursor: help;
    margin-left: 0.3rem;
    font-size: 0.95rem;
    vertical-align: middle;
}

/* Radio-Buttons */
.gauting-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gauting-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .gauting-radio-option input {
        margin: 0;
    }

/* Form Card */
.gauting-form-card {
    background-color: #f0f9f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gauting-form-group {
    margin-bottom: 15px;
}

    .gauting-form-group label {
        display: block;
        color: #555;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .gauting-form-group input,
    .gauting-form-group .gauting-form-control-lg {
        width: 100%;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ccc;
        font-size: 16px;
        transition: all 0.3s ease;
    }

        .gauting-form-group input:focus,
        .gauting-form-group .gauting-form-control-lg:focus {
            border-color: #007b5e;
            outline: none;
        }

.gauting-info-icon {
    font-size: 18px;
    cursor: pointer;
    color: #007b5e;
}

/* Buttons */
.gauting-step-button {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.gauting-btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
}

    .gauting-btn-outline-success:hover {
        background-color: #28a745;
        color: #fff;
    }

.gauting-btn-success {
    background-color: #28a745;
    border: none;
    color: white;
}

    .gauting-btn-success:hover {
        background-color: #218838;
    }

.gauting-btn-danger {
    background-color: #dc3545;
    border: none;
    color: white;
}

    .gauting-btn-danger:hover {
        background-color: #c82333;
    }

.gauting-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

    .gauting-step-actions button {
        width: 48%;
    }

/* Form-Check (Checkboxes) */
.gauting-form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gauting-form-check-input {
    margin: 0;
}

.gauting-form-check-label {
    font-size: 14px;
    color: #555;
}

/* Tooltips */
[data-bs-toggle="tooltip"] {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

    [data-bs-toggle="tooltip"]:hover::after {
        content: attr(title);
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: #fff;
        padding: 5px;
        border-radius: 5px;
        font-size: 12px;
        white-space: nowrap;
    }

/* Responsive Styling */
@media (max-width: 768px) {
    .gauting-stepbox {
        background-color: #f9f9f9;
        padding: 1.5rem;
        border: 1px solid #ccc;
        border-radius: 1rem;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 600px;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    }

    .gauting-form-group input,
    .gauting-form-group .gauting-form-control-lg {
        font-size: 14px;
    }

    .gauting-step-button {
        width: 100%;
    }

    .gauting-step-actions {
        flex-direction: column;
        gap: 10px;
    }

        .gauting-step-actions button {
            width: 100%;
        }
    img.g-thumbnail {
        width: 100px;
        height: auto;
        margin-top: 0.5rem;
        border-radius: 4px;
        box-shadow: 0 0 4px rgba(0,0,0,0.2);
    }
    .g-hinweis {
        margin-top: 0.5rem;
        color: #444;
        font-size: 0.9rem;
    }
    
}

