html { font-family: "Segoe UI", Arial, sans-serif; }

body {display: flex; justify-content: center;}
/* Centers horizontally */

/*textarea { color: #400000 ;background-color: transparent; }
*/input, textarea {
    border: 2px solid black;
    color: #400000;
    background-color: transparent;
    font-size: 16px;
    transform: scale(0.85);
    transform-origin: left center;
}
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    input[type="month"],
    input[type="week"] {
        transform: none;
        font-size: 14px;
    }

    input[type="datetime-local"] {
        min-height: 2rem;
        min-width: 12em;
        padding: .300rem .5rem;
       
    }
    
    input:focus, textarea:focus {
        border: 2px solid #0d6efd; /* Bootstrap primary color */
        outline: none; /* Remove default outline */
        box-shadow: 0 0 5px rgba(13, 110, 253, 0.5); /* Optional shadow */
        font-size: 16px;
        transform: scale(0.85);
        transform-origin: left center;
    }

select {
    line-height: 1.8rem;
    height: 1.8rem;
}

/* Stronger blue for select and date pickers */
select:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus {
    border: 2px solid #0c3c90; /* darker blue */
    box-shadow: 0 0 8px rgba(0, 65, 168, 0.8);
    outline: none;
}

/*table.center { margin-left: 5px; margin-right: 5px; }
table.form-table { width: 100%;}
*/
table.outer {
    max-width: 400px; /* upper limit */
    width: 100%; /* shrink on mobile */
    table-layout: fixed; /* prevents expansion */
    border: 1px solid #444;
}

table.inner {
    width: 100%; /* fills the outer table cell */
    border: 1px solid #999;
}


td {padding-top: 5px; font-size: 14px; }
td.center {margin-left: 5px; margin-right: 5px; padding-top: 5px; padding-bottom: 5px; text-align:center;}
td.left {margin-left: 5px; margin-left: 50px; padding-top: 5px; padding-bottom: 5px; text-align:left; color:blue}

button { background-color: blue; color: white; padding: 3px 10px; width:200px; text-align: center; font-size: 13px; border-radius: 12px; }

label.bold { font-weight: bold; font-size: 18px}
label.boldlg { font-weight: bold; font-size: 20px}
label.lg { font-size: 20px}
label.ital { font-style: italic }
/* When BOTH classes are applied */
label.bold.ital { font-weight: 700; font-size: 14px; } /* slightly less bold */



button.small, a.small {
    background-color: blue;
    color: white;
    padding: 3px 10px 3px 10px;
    margin-right: 3px;
    width: 100px;
    text-align: center;
    font-size: 13px;
    border-radius: 12px;
    display: inline-block; /* important for <a> */
    text-decoration: none; /* remove underline */
}

button.trash {
    background-color: blue;
    color: white;
    padding: 3px 10px 3px 10px;
    width: 50px;
    text-align: center;
    font-size: 13px;
    border-radius: 12px;
    display: inline-block; /* important for <a> */
    text-decoration: none; /* remove underline */
}
span.small { /* mimic disabled button */
    background-color: blue;
    color: white;
    padding: 3px 10px 3px 10px;
    margin-right: 3px;
    width: 100px;
    text-align: center;
    font-size: 13px;
    border-radius: 12px;
    display: inline-block; /* important for <a> */
    text-decoration: none; /* remove underline */
    opacity: 0.4;
    cursor: default;
}



button.long { background-color: blue; color: white; padding: 1px 10px 1px 10px; width:200px; text-align: center; font-size: 12px; border-radius: 12px; }


label { font-size: 11pt; font-weight: normal; }
label.bold { font-size: 12pt; font-weight: bold; padding-top: 5px;}
select {  color: #400000 ;background-color: white !important; }
option {  color: #400000 ;background-color: white !important; }
span.title {  font-size: 11pt;  font:bold; color: blue }
/*h5 {padding-top: 5px;}*/
h6 { font-size: 12pt; padding-top: 5px; font:bold; color: blue }

.validation-summary {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #b71c1c;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.validation-error {
    color: #c62828; /* deep red */
    font-size: 0.9rem;
    margin-top: 2px;
    display: block; /* ensures it appears on its own line */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


div.is-cancelled {
    position: relative; /* anchor for absolute overlay */
}

/* Only show overlay if the variable is set */
div.is-cancelled::after {
    content: var(--overlay-text);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(10%, -50%) rotate(-25deg);
    font-size: 3rem;
    color: rgba(200, 0, 0, 0.25);
    font-weight: bold;
    pointer-events: none;
    white-space: nowrap;
    display: none; /* hidden by default */
    white-space: pre; /* <-- required for line breaks */
}


/* Show overlay only when text is non-empty */
div.is-cancelled[style*="--overlay-text"]::after {
    display: block;
}

/* Modal delete dialog */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    min-width: 280px;
    text-align: center;
    max-width: 400px; /* 👈 keeps it small */
    width: 90%; /* 👈 responsive on mobile */
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}




    .modal-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem; /* space between buttons */
        margin-top: 1rem;
    }
    /* svg icons */
    .icon-ok {
        width: 18px;
        height: 18px;
        display: inline-block;
        margin-right: 15px;
        vertical-align: -3px; /* Feintuning */
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='green' viewBox='0 0 16 16'%3E%3Cpath d='M13.485 1.929l-7.071 7.071-3.536-3.536-1.414 1.414 4.95 4.95 8.485-8.485-1.414-1.414z'/%3E%3C/svg%3E");
    }

    .icon-x {
        width: 20px;
        height: 20px;
        display: inline-block;
        margin-right: 15px;
        vertical-align: -5px; /* Feintuning */
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='red' stroke-width='2' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646l6.708 6.708m0-6.708l-6.708 6.708'/%3E%3C/svg%3E");
    }
    /* checkbox */
    .icon-checkbox {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
    }
        /* Input unsichtbar, aber bedienbar */
        .icon-checkbox input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }
        /* Die Box */
        .icon-checkbox span {
            position: relative;
            width: 20px;
            height: 20px;
            display: inline-block;
            transform: translateY(3px);
            border-radius: 4px;
            border: 2px solid #555;
            background-color: #fff;
            vertical-align: middle;
        }
            /* Check-Icon als Overlay */
            .icon-checkbox span::after {
                content: "";
                position: absolute;
                /* leicht über die Box hinaus */
                inset: -2px;
                mask-image: none;
                mask-size: 100%; /* größerer Check */
                mask-repeat: no-repeat;
                mask-position: center;
                background-color: transparent;
            }
        /* Checked: Check erscheint */
        .icon-checkbox input[type="checkbox"]:checked + span::after {
            mask-image: url('/icons/checkbox-check.svg');
            background-color: #1f9f4f; /* kräftiges Grün */
        }

    .homepage-text {
        max-width: 50ch; /* angenehme Lesebreite, ca. 60 Zeichen */
        margin: 0 auto; /* zentriert den Block */
        text-align: center; /* Text + Zeilenumbrüche zentrieren */
        line-height: 1.6; /* bessere Lesbarkeit */
        padding: 1rem; /* etwas Innenabstand */
    }

        .homepage-text .lead-line {
            font-size: 1.2em; /* etwas größer */
            font-weight: 500; /* leicht stärker, nicht fett */
            display: inline-block; /* sorgt für sauberes Zentrieren */
            margin-bottom: 0.3em; /* optischer Abstand */
        }