body {
	font-family: Arial, sans-serif;
	background: #f2f2f2;
}

.login-container {
	width: 400px;
	margin: 100px auto;
	padding: 20px;
	background: #fff;
	border-radius: 20px;
	text-align: center;
}

.admin-container {
	width: 80%;
	margin: 20px auto;
	padding: 20px;
	background: #fff;
	border-radius: 20px;
	text-align: left;
}

.admin-container input {
	width: 25%;
    padding: 4px 8px;
    height: 13px;
    margin: 5px 5px 0px 0px;
    border-radius: 10px;
    border: solid 1px #c5c5c5;
}

.admin-container label {
	width: 90px;
}

.admin-container button {
    font-size: 10px;
	width: auto;
    padding: 5px;
    margin: 0;
    border-radius: 10px;
    border: solid 1px #c5c5c5;
    background-color: #efefef;
}

.admin-container button:hover {
    background-color: #bdbdbd;
}

.admin-container form {
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.delfunction button {
    width: 95px;
    background-color:#ff0000;
    color:#fff;
    font-weight:600;
}
.pwchange input {
    width: 176px;
}
.pwchange button {
    width: 95px;
}
button.laubutton{
    background-color:#5fa5ff;
}

#adminMessage {
    padding: 10px;
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    margin-bottom: 20px;
    position:absolute;
    top:5px;
    right:10%;
}

.login-container h2 {
	text-align: center;
}

.login-container input {
	width: calc(80% - 25px);
	padding: 10px;
	margin: 5px 0;
	border-radius: 10px;
	border: solid 1px #c5c5c5;
}

.login-container button {
	width: 30%;
	min-width: 150px;
	padding: 5px;
	margin: 5px 1%;
	border-radius: 10px;
	border: solid 1px #c5c5c5;
	background-color: #efefef;
}

.login-container button:hover {
	background-color: #bdbdbd;
}

.login-container form {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-content: center;
	justify-content: center;
	align-items: center;
}

.error {
	color: red;
	text-align: center;
}


body {
	font-family: Arial, sans-serif;
	background: #f2f2f2;
}

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

h4 a{
    text-decoration:none;
    color: #5fa5ff;
}

h4 a:hover{
    text-decoration:none;
    color: #c90000;
}

th,
td {
	padding: 5px 5px;
	border: 1px solid #ccc;
	text-align: left;
}

input {
	padding: 5px;
}

button {
	padding: 5px 10px;
	margin-right: 5px;
}

form {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-content: center;
	justify-content: center;
	align-items: center;
}

/* Spaltenbreiten */
th:nth-child(1),
td:nth-child(1) {
    width: 1%;
    min-width: 20px;
    text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
    width: 100%;
    min-width: 100px;
    text-align: left;
    font-weight: 600;
    font-size: 20px;
}

th:nth-child(3),
td:nth-child(3) {
    width: 1%;
    min-width: 50px;
    text-align: center;
}

th:nth-child(4),
td:nth-child(4) {
    width: 1%;
    min-width: 300px;
    text-align: center;
}

@media screen and (max-width: 920px) {
    .login-container {
    	width: 300px;
    	margin: 85px auto;
    	padding: 10px;
    	background: #fff;
    	border-radius: 20px;
    	text-align: center;
    }
    /* Tabelle komplett 'aufbrechen' */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    /* Kopfzeile ausblenden, da wir sie per td:before ersetzen */
    thead {
        display: none;
    }
    /* Kopfzeile ausblenden, da wir sie per td:before ersetzen */
    .adminheadline {
        display: none;
    }
    .delfunction button {
        width: 175px;
        margin: 0px 0px 5px 0px;
    }
    .pwchange button {
        width: 175px;
    }
    
    .admin-container input {
        width: 100%;
        padding: 10px;
        margin: 5px 0px;
        border-radius: 10px;
        border: solid 1px #c5c5c5;
    }
    
    [type="checkbox"] {
      padding-left:10px;
    }
    
    [type="checkbox"]::before {
      content:"Admin:";
      padding-right:10px;
    }
    
    form.admincheck {
        display: block;
    }
    
    input[type="text"], input[type="password"] {
        width: calc(100% - 20px);
    }
    
    input[type="checkbox"] {
        width: 50%;
    }

    /* Jede Tabellenzeile bekommt Abstände usw. */
    tr {
        margin-bottom: 1rem;
        border-bottom: 1px solid #bbb;  /* optionaler Trenner */
    }

    /* Jedes <td> wird zum Block. Standardmäßig links beschriftet, Inhalt rechts. */
    td {
        position: relative;     /* für das nachfolgende :before */
        padding-left: 100px;      /* etwas Platz, damit der Label-Text Platz hat */
        text-align: left;       /* Inhalt linksbündig oder right – je nach Geschmack */
        box-sizing: border-box;
        border: none !important;  /* Falls du Rand weghaben willst */
        min-height: 20px;         /* etwas Mindesthöhe */
    }
    /*
     * Nun 'simulieren' wir das Spalten-Label pro td.
     * Wir nutzen nth-child(...) – das 1. <td> bekommt Label "Datum", das 2. <td> -> "Zeit", usw.
     */
    td:nth-child(1):before {
        content: "ID: ";
        width: 80px;
        text-align: left;
    }
    td:nth-child(2):before {
        content: "User: ";
        width: 80px;
        text-align: left;
    }
    td:nth-child(3):before {
        content: "Admin: ";
        width: 80px;
        text-align: left;
    }
    td:nth-child(4):before {
        content: "Aktion: ";
        width: 80px;
        text-align: left;
    }
    /* Die Pseudo-Labels selbst positionieren */
    td:before {
        position: absolute;
        left: 0;               /* Links beginnen */
        width: 45%;            /* so breit wie das Padding-Left */
        white-space: nowrap;   /* kein Zeilenumbruch im Label */
        font-weight: bold;
        color: #000;           /* ggf. anpassen */
        box-sizing: border-box;
        padding-left: 5px;     /* kleiner Abstand zum Rand */
    }
    
    /* Spaltenbreiten */
    th:nth-child(1),
    td:nth-child(1) {
        width: 100%;
        min-width:100px;
        text-align: left;
        padding-left: 100px;
    }
    
    th:nth-child(2),
    td:nth-child(2) {
        width: 100%;
        min-width:100px;
        text-align: left;
        padding-left: 100px;
    }
    
    th:nth-child(3),
    td:nth-child(3) {
        width: 100%;
        min-width:100px;
        text-align: left;
        padding-left: 100px;
    }
    
    th:nth-child(4),
    td:nth-child(4) {
        width: 100%;
        min-width:100px;
        text-align: left;
        padding-left: 100px;
    }
}