392 lines
7.8 KiB
CSS
392 lines
7.8 KiB
CSS
/* Basis-Stile */
|
|
:root {
|
|
--primary-color: #4361ee;
|
|
--primary-hover: #687eef;
|
|
--secondary-color: #3f37c9;
|
|
--accent-color: #4895ef;
|
|
--light-color: #f8f9fa;
|
|
--dark-color: #212529;
|
|
--success-color: #4cc9f0;
|
|
--border-radius: 10px;
|
|
--box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
--transition: all 0.3s ease;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #f5f7fa;
|
|
color: var(--dark-color);
|
|
line-height: 1.6;
|
|
display: block;
|
|
height: 100vh;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
margin-bottom: 20px;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
/* Container */
|
|
.container {
|
|
max-width: 1600px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Formular-Stile */
|
|
.form-container {
|
|
background: white;
|
|
padding: 25px;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--box-shadow);
|
|
margin: 20px 0;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.form-group input {
|
|
width: 95%;
|
|
padding: 8px 15px;
|
|
border: 1px solid #ddd;
|
|
border-radius: var(--border-radius);
|
|
font-size: 22px;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
border-color: var(--primary-color);
|
|
outline: none;
|
|
}
|
|
|
|
.btn-submit {
|
|
display: inline-block;
|
|
background: var(--primary-color);
|
|
color: white;
|
|
padding: 8px 20px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
font-weight: 600;
|
|
font-size: 22px;
|
|
box-shadow: var(--box-shadow);
|
|
transition: var(--transition);
|
|
cursor: pointer;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.btn-submit:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
/* Navigation */
|
|
.nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 20px;
|
|
background: var(--primary-color);
|
|
border-radius: var(--border-radius);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.hamburger {
|
|
display: none;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: none;
|
|
color: white;
|
|
font-size: 1.5rem;
|
|
padding: 8px 15px;
|
|
border-radius: var(--border-radius);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
margin-right: 10px;
|
|
z-index: 101;
|
|
}
|
|
|
|
.hamburger:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.nav-list {
|
|
display: flex;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.nav-list li {
|
|
margin: 0 5px;
|
|
}
|
|
|
|
.nav-list li a {
|
|
display: block;
|
|
padding: 10px 15px;
|
|
color: white;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
border-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.nav-list li a:hover {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
.logout {
|
|
color: white;
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
padding: 8px 12px;
|
|
border-radius: var(--border-radius);
|
|
background: rgba(255, 255, 255, 0.2);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.logout:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* Responsive Navigation für schmale Bildschirme */
|
|
@media (max-width: 768px) {
|
|
.hamburger {
|
|
display: block;
|
|
}
|
|
.nav-list {
|
|
display: none;
|
|
position: fixed;
|
|
top: 95px;
|
|
left: 20px;
|
|
max-width: 250px;
|
|
height: auto;
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
|
|
flex-direction: column;
|
|
padding: 10px 0;
|
|
margin: 0;
|
|
z-index: 100;
|
|
transform: translateX(-100%);
|
|
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
|
|
overflow: hidden;
|
|
}
|
|
.nav-list.show {
|
|
display: flex;
|
|
transform: translateX(0);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
|
|
}
|
|
.nav-list li {
|
|
width: 100%;
|
|
margin: 2px 0;
|
|
}
|
|
.nav-list li a {
|
|
padding: 12px 20px;
|
|
margin: 0 8px;
|
|
}
|
|
.nav-list li a:hover {
|
|
transform: translateX(5px);
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
.logout {
|
|
margin-left: 0;
|
|
padding: 8px 12px;
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
/* Tabelle */
|
|
table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
margin: 20px 0;
|
|
background: white;
|
|
border-radius: var(--border-radius);
|
|
overflow: hidden;
|
|
box-shadow: var(--box-shadow);
|
|
}
|
|
|
|
th, td {
|
|
padding: 12px 15px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
th {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
font-size: 0.85em;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
tr:hover {
|
|
background: #f8f9fa;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
/* Ausblenden der markierten Spalten auf kleinen Bildschirmen */
|
|
@media (max-width: 768px) {
|
|
.hide-on-mobile {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* Button */
|
|
.btn-new {
|
|
display: inline-block;
|
|
background: var(--primary-color);
|
|
color: white;
|
|
padding: 12px 20px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
border-radius: var(--border-radius);
|
|
font-weight: 600;
|
|
box-shadow: var(--box-shadow);
|
|
transition: var(--transition);
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.btn-new:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
/* Cookie-Hinweis */
|
|
.cookie-notice, .data-notice {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--light-color);
|
|
color: var(--dark-color);
|
|
padding: 15px;
|
|
text-align: center;
|
|
z-index: 1000;
|
|
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
|
|
border-top: 1px solid #eee;
|
|
transition: opacity 0.5s ease, max-height 0.5s ease;
|
|
opacity: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#cookie-notice.hidden {
|
|
opacity: 0;
|
|
max-height: 0;
|
|
}
|
|
|
|
#data-notice.hidden {
|
|
opacity: 0;
|
|
max-height: 0;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 1001;
|
|
}
|
|
|
|
.modal-content {
|
|
background: white;
|
|
padding: 40px;
|
|
border-radius: var(--border-radius);
|
|
width: 90%;
|
|
max-width: 450px;
|
|
box-shadow: var(--box-shadow);
|
|
transform: scale(1.05);
|
|
transition: var(--transition);
|
|
text-align: center;
|
|
}
|
|
|
|
.modal-content h2 {
|
|
font-size: 24px;
|
|
margin-bottom: 20px;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.modal-content input[type="text"],
|
|
.modal-content input[type="password"] {
|
|
width: 100%;
|
|
padding: 15px;
|
|
margin: 10px 0;
|
|
border: 1px solid #ddd;
|
|
border-radius: var(--border-radius);
|
|
box-sizing: border-box;
|
|
font-size: 16px;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.modal-content input[type="text"]:focus,
|
|
.modal-content input[type="password"]:focus {
|
|
border-color: var(--primary-color);
|
|
outline: none;
|
|
}
|
|
|
|
.modal-content button {
|
|
width: 100%;
|
|
padding: 15px;
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease, transform 0.3s ease;
|
|
}
|
|
|
|
.modal-content button:hover {
|
|
background-color: var(--primary-hover);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.modal-content button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Verstecken der Spinner-Knöpfe in verschiedenen Browsern */
|
|
input[type="number"]::-webkit-outer-spin-button,
|
|
input[type="number"]::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
input[type="number"] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.modal-content {
|
|
width: 80%;
|
|
padding: 25px;
|
|
}
|
|
.modal-content h2 {
|
|
font-size: 20px;
|
|
}
|
|
.modal-content input[type="text"],
|
|
.modal-content input[type="password"],
|
|
.modal-content button {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|