/* EL_style.css*/
header {
/*    background-color: #024900; */
    background-color: #579153;
    color: white;
    padding: 2em;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2em;
}

.header-logo {
    position: absolute;
    top: 10px;
    left: 20px;
    height: 80px;
    width: auto;
}

.logout-box {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #5a7094;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.subtitle {
    font-size: 1em;
    color: #d1d1d1;
}
main {
    margin-top: 100px;  /* Wert > Höhe d. Headers */
    clear: both;
}

.container {
    max-width: 90%;
    margin: 3em auto;
    padding: 1.5em;
	background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
	position: relative; /* für ::before*/
    z-index: 1;
	opacity:0.9;
}
/* Hintergrundebene 
.container::before {
    content: "";
    position: fixed; 
    top: 100px;
    left: 5%;
    width: 90%;
    height: 100%;
    background: url("Flagge_Mettmann.svg") center center / cover no-repeat;
    filter: grayscale(100%);
    opacity: 0.2; 
    z-index: -1; 
	pointer-events: none;
}*/

.section {
    margin-bottom: 2em;
}

.section h2 {
    color: #003366;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 0.4em;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 0.7em 0;
}

a {
    text-decoration: none;
/*    background: #007BFF; */
    background: #2596be;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.2s ease;
}

a:hover,
a:active {
    background: #0056b3;
}

footer {
    text-align: center;
    margin-top: 2em;
    padding: 1em;
    font-size: 0.9em;
    color: white;
}

footer a {
    background: none;
    color: #fff;
    padding: 0;
    border-radius: 0;
    display: inline;
    text-decoration: underline;
}

/* Styling für Multiple-Choice-Optionen */
.mc-options-grid {
    display: grid;
    grid-template-columns: min-content 1fr;
    gap: 10px;
    align-items: center;
    max-width: 600px;
}

.option-row {
    display: contents;
}

.option-label {
    grid-column: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.option-char {
    font-weight: bold;
    min-width: 1.5rem;
}

.option-input {
    grid-column: 2;
    width: 100%;
}

/* Styling für Buttons */
.button-as-link {
    display: inline-block;
    background-color: transparent;
    border: none;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
/*    background: #007BFF; */
    background: #2596be;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.button-as-link:hover,
.button-as-link:focus,
.button-as-link:active {
    background: #0056b3;
}

.button-as-link-log{
    display: inline-block;
    background-color: transparent;
    border: none;
    font-size: inherit;
    font-family: inherit;
    font-weight: bold;
    padding: 0;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    /*    background: #007BFF; */
    background: #2596be;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.2s ease;

}
.button-as-link-log:hover,
.button-as-link-log:focus,
.button-as-link-log:active {
    background: #006eff;
}
.button-as-link-red {
    background: #cc0000;
    color: #000;
    font-weight: bold;
    display: inline-block;
    border: none;
    font-size: inherit;
    font-family: inherit;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.button-as-link-red:hover,
.button-as-link-red:focus,
.button-as-link-red:active {
    background: #990000;
}

.button-as-link-blue {
    background: #007bff;
    color: #000;
    font-weight: bold;
    display: inline-block;
    border: none;
    font-size: inherit;
    font-family: inherit;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.button-as-link-blue:hover,
.button-as-link-blue:focus,
.button-as-link-blue:active {
    background: #0056b3;
}


.bewertung-table-container {
    overflow-x: auto;
}

.bewertung-table {
    width: 100%;
    table-layout: fixed;
}

.bewertung-table th,
.bewertung-table td {
    padding: 8px;
    border: 1px solid #ccc;
    vertical-align: top;
    word-wrap: break-word;
}

.bewertung-table td:nth-child(1) { width: 30%; }
.bewertung-table td:nth-child(2) { width: 25%; }
.bewertung-table td:nth-child(3) { width: 25%; }
.bewertung-table td:nth-child(4) { width: 10%; }
.bewertung-table td:nth-child(5) { width: 10%; }

.popup {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #dc3545; /* Rot für Fehlermeldungen */
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    text-align: center;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}
/*  Button-Styles für Aktionen (Bearbeiten/Löschen) */
.button-action {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s;
}

.button-edit {
    color: #fff;
    background-color: #28a745; /* Grün für Bearbeiten */
    border-color: #28a745;
}

.button-edit:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.button-delete {
    color: #fff;
    background-color: #dc3545; /* Rot für Löschen */
    border-color: #dc3545;
	display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    text-align: center;
	transition: background-color 0.3s, border-color 0.3s;
}

.button-delete:hover {
    background-color: #c82333;
    border-color: #bd2130;
}
#timer-container {
position: absolute;
top: 15px;
right: 100px;
font-size: 1.2em;
font-weight: bold;
color: #fff;
text-shadow: 1px 1px 2px #000;
}

.admin-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}
.admin-table-start {
    width: 100%;
    table-layout: fixed; /* ← geändert */
    border-collapse: collapse;
}

.admin-table th, 
.admin-table td {
    border: 1px solid #000000;
    padding: 8px;
    text-align: left;
    /* Zeilenumbruch erzwingen, falls Wörter zu lang sind */
    word-wrap: break-word; 
    overflow-wrap: break-word;
    vertical-align: top;
}
.admin-table-start td {
    border: 1px solid #000000;
    padding: 8px;
    text-align: left;
    /* Zeilenumbruch erzwingen, falls Wörter zu lang sind */
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: top;
}

.action-form {
    display: inline-block;
}

.login-status {
    padding: 5px 15px;
    background-color: #e6f7ff;
    border: 1px solid #b3e0ff;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
	text-align: center;
}

/* AGT-Statusfarben */
.agt-ok {
    background-color: #d4edda; /* grün */
    font-weight: bold;
}

.agt-warn {
    background-color: #fff3cd; /* orange */
    font-weight: bold;
}
/* AJAX Volltextsuche */
.search-results {
    border: 1px solid #ccc;
    background: #fff;
    max-height: 180px;
    overflow-y: auto;
}

.search-item {
    padding: 6px;
    cursor: pointer;
}

.search-item:hover {
    background: #eee;
}

.search-item.new {
    font-style: italic;
    color: #555;
}
.modal{
display:none;
position:fixed;
inset:0;
background:rgba(0,0,0,.5);
z-index:999;
}
.modal-content{
background:#fff;
width:420px;
margin:10% auto;
padding:20px;
border-radius:8px;
}
