162 lines
2.5 KiB
CSS
162 lines
2.5 KiB
CSS
/* Grundlegender Reset */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Body-Styles */
|
|
body {
|
|
font-family: 'Helvetica Neue', Arial, sans-serif;
|
|
line-height: 1.6;
|
|
color: #333;
|
|
background-color: #f8f8f8;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Container für zentrierten Inhalt */
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 15px;
|
|
}
|
|
|
|
/* Header */
|
|
header {
|
|
background-color: #fff;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
padding: 20px 0;
|
|
margin-bottom: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
header h1 {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
header nav ul {
|
|
list-style: none;
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
header nav ul li a {
|
|
text-decoration: none;
|
|
color: #555;
|
|
font-weight: 500;
|
|
padding: 8px 12px;
|
|
transition: background-color 0.3s, color 0.3s;
|
|
}
|
|
|
|
header nav ul li a:hover {
|
|
background-color: #007BFF;
|
|
color: #fff;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Main Bereich */
|
|
main {
|
|
background-color: #fff;
|
|
padding: 40px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
/* Überschriften */
|
|
h2,
|
|
h3 {
|
|
margin-bottom: 15px;
|
|
color: #222;
|
|
}
|
|
|
|
/* Gruppen-Karten */
|
|
.group-card {
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 30px;
|
|
transition: box-shadow 0.3s;
|
|
}
|
|
|
|
.group-card:hover {
|
|
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Gruppen-Header */
|
|
.group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.group-image {
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
|
|
/* Liste der Glühbirnen */
|
|
.bulb-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
}
|
|
|
|
.bulb {
|
|
flex: 1 1 200px;
|
|
background-color: #f0f0f0;
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
text-align: center;
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.bulb:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.bulb-info p {
|
|
margin-bottom: 10px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Statusbild der Glühbirne */
|
|
.bulb-status-image img {
|
|
width: 60px;
|
|
height: 60px;
|
|
}
|
|
|
|
/* Fehlermeldung */
|
|
.bulb-error p {
|
|
margin-top: 10px;
|
|
color: red;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
text-align: center;
|
|
padding: 20px 0;
|
|
border-top: 1px solid #e0e0e0;
|
|
color: #777;
|
|
}
|
|
|
|
/* Responsive Anpassen */
|
|
@media (max-width: 768px) {
|
|
header nav ul {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
main {
|
|
padding: 20px;
|
|
}
|
|
|
|
.bulb-list {
|
|
flex-direction: column;
|
|
}
|
|
} |