/*Body*/
html {
    min-height: 100vh;
}

body {
    background: #FFFFFF;
    min-height: 100vh;
}

* {
    font-family: Verdana !important;
}

/*General element styling*/
input {
    min-width: 250px !important;
}

button {
    background: #1B387B;
    padding: 10px;
    border-radius: 30px;
    color: #fff;
    border: unset;
}

a {
    text-decoration: none;
}

.link_list {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.link_list a {
    margin-right: 10px;
    margin-top: 10px;
}

#frame button {
    margin-top: 10px;
    margin-bottom: 10px;
}

#frame input {
    display: block;
    margin-bottom: 10px;
}

#frame label {
    margin-bottom: 5px !important;
    display: block;
}

/*Login*/
#frame_login {
    width: 100%;
    margin: 0 auto;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("/images/bg_login.jpeg");

}

#login_form_div {
    background: #DDECF9;
    box-shadow: 1px 1px 10px;
    padding: 150px;
    border-radius: 100px;
    min-height: 250px;

}

#login_form_div::before {
    content: url('/images/aip-logo.png');
    position: absolute;
    left: 370px;
    top: 0;
}

#login_form_div h3 {
    margin-left: 80px;
}

#login_form {
    max-width: 70%;
    margin: 0 auto;
}

/*Header*/

header {
    width: 100%;
    background: #DDECF9;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

header button {
    background: #1B387B;
    padding: 10px;
    border-radius: 30px;
    color: #fff;
    border: unset;
    margin-left: 15px;
}

/*General Frame*/


#frame {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
    margin-top: 20px;
}

/* Form fields*/
.input_enter {
    width: 100%;
    margin-bottom: 15px;
    height: 50px;
    border: none;
    box-shadow: 1px 1px 3px;
    border-radius: 30px;
    color: #1B387B;
    padding-left: 20px;
}

.input_enter::placeholder {
    color: #1B387B;
}

.submit {
    background: #1B387B;
    color: #fff;
    border: none;
    padding: 5px;
    border-radius: 10px;
    float: right;
}

/*Error Message*/

.error_message {
    color: #ff0000;
}

/*Client overview*/

#client_overview {
    display: flex;
    flex-direction: column;
}

#client_overview .the_client {
    display: flex;
    flex-direction: row;
    justify-content: center;
    border-bottom: 1px solid #000;
    align-items: center;
}

#client_overview .the_client div {
    margin-right: 10px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-content: center;
}

#client_overview .the_client div strong {
    margin-right: 3px;
}

#client_overview .the_client button {
    margin-right: 20px;
    border-radius: 30px;
    background: #1B387B;
    color: #fff;
    border: none;
    cursor: pointer;
    min-width: 150px;
}

/*Buttons and selects*/

#select_menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#buttons_admin_main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
}

.menu_tree {
    text-align: center;
    border-bottom: 2px dashed #DDECF9;
    padding-bottom: 5px;
}

.button_row {
    display: flex;
    margin-bottom: 20px;
    height: 40px;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.button_row a button {
    height: 40px;
    margin-bottom: 20px;
    border-radius: 30px;
    background: #1B387B;
    color: #fff;
    border: none;
    margin: 20px;
    cursor: pointer;
    min-width: 150px;
}

/*Form*/

#frame form {
    width: 50%;
    display: flex;
    flex-direction: column;
}

#frame form label {
    margin: 5px;
    color: #1B387B;
}

#frame form select {
    border: none;
    box-shadow: 1px 1px 3px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 30px;
}

#frame form input {
    border: none;
    box-shadow: 1px 1px 3px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 30px;
    margin-top: 5px;
}

/* User */

#userTable th {
    cursor: pointer;
}

/* Protocol Details */

#protocol_detail_list {
    display: flex;
    flex-wrap: wrap;
}

#protocol_detail_list .p_list_detail {
    background: #fff;
    margin: 5px;
    padding: 10px;
}

.content_header {
    margin-top: 20px;
}


/*** NOTFALLPLAN ****/

#notfallplan tr {
    margin-bottom: 20px;
    border-bottom: 1px dotted #000;
    overflow: visible;
}


/*** STATISTICS ***/
#statistics input {
    min-width: unset !important;
}

#valueForm label {
    padding: 5px;
    margin: 5px;
    border: 1px solid #000;
    display: inline-block;
}

#send_form {
    display: block;
    border-radius: 30px;
    background: #1B387B;
    padding: 10px;
    color: #fff;
    border: unset;
    margin-top: 10px;
}

/*** Med Table ***/

.responsive table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.responsive th, .responsive td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.responsive th {
    background-color: #f4f4f4;
}

.responsive tr:nth-child(even) {
    background-color: #f9f9f9;
}

.responsive tr:hover {
    background-color: #f1f1f1;
}

.responsive {
    overflow-x: auto;
}

/** Add client **/

.addOn {
    border-top: 1px dashed #000;
}

/* Umschalter (Radio-Buttons) */
div label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    font-size: 0.95em;
    cursor: pointer;
    color: #444;
}

div input[type="radio"] {
    margin-right: 6px;
    transform: scale(1.1);
    accent-color: #007BFF;
}

/* Select & Input */
#aktivitaetSelect,
#aktivitaetInput {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 10px 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border 0.3s, box-shadow 0.3s;
}

/* Fokus-Effekt */
#aktivitaetSelect:focus,
#aktivitaetInput:focus {
    border-color: #007BFF;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
    outline: none;
}

/*
#mam table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#mam table form{
    width:100%;
}
#mam th, #mam td {
    padding: 6px;
    border: 1px solid #ddd;
}

*/

#mam .btn-delete {
    background-color: #e74c3c;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#mam .btn-delete:hover {
    background-color: #c0392b;
}

@media screen and (max-width: 600px) {
    #mam table, #mam thead, #mam tbody, #mam th, #mam td, #mam tr {
        display: block;
    }

    #mam thead {
        display: none;
    }

    #mam tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        padding: 5px;
    }

    #mam td {
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }

    #mam td::before {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 45%;
        white-space: nowrap;
        font-weight: bold;
        content: attr(data-label);
    }
}

/* Wrapper: erlaubt Scrollen */
#mam {
    width: 100%;
    overflow-x: auto; /* horizontales Scrollen */
    overflow-y: auto; /* optional: vertikales Scrollen, wenn max-height greift */
    max-height: 70vh; /* optional: Höhe begrenzen, nach Bedarf anpassen */
    -webkit-overflow-scrolling: touch; /* sanftes Scrollen auf iOS */
    border: 1px solid #ddd; /* optisch */
    border-radius: 8px;
}

/* Tabelle: verhindert Umbrüche, damit Spalten nicht zusammenquetschen */
#mam table {
    border-collapse: collapse;
    width: max-content; /* so breit wie Inhalt → ermöglicht horizontales Scrollen */
    min-width: 100%;
    table-layout: auto; /* alternativ: fixed, wenn du feste Spaltenbreiten willst */
    white-space: nowrap; /* keine Zeilenumbrüche in Zellen */
}

#mam th,
#mam td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

/* Optional: Kopfzeile sticky, bleibt beim Vertikalscrollen sichtbar */
#mam thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    box-shadow: 0 1px 0 0 #eee;
}

/* Optional: erste Spalte sticky, bleibt beim Horizontalscrollen sichtbar */
#mam tbody td:first-child,
#mam thead th:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 3;
}

#mam form {
    width: 100%;
}

/*********************************** Utilities *********************************/

#frame .content_frame {
    width: 80%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-evenly;
}

#frame .content_frame .list {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #1b387b;
    margin: 2px;
    background: #ddecf9;
}

#frame .content_frame .pagination a {
    color: #1b387b;
}

#frame .util_const_soa_list {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#frame .util_const_soa_list a {
    margin: 0 5px;
}


.link_list {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 20px;
}

.util_container{
    border:1px solid #000;

    border-radius:20px;

}

.util_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.util_row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.util_info {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.button_group {
    display: flex;
    gap: 10px;
}

/* Buttons verfeinern */
.btn {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s;
}

.btn-edit {
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn:hover {
    opacity: 0.85;
}