413 lines
No EOL
6.1 KiB
CSS
413 lines
No EOL
6.1 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Arial, sans-serif;
|
|
color: #333;
|
|
background-color: #fff;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
padding: 1rem 2rem;
|
|
background: #fff;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.06);
|
|
}
|
|
|
|
nav a {
|
|
text-decoration: none;
|
|
color: #003366;
|
|
font-weight: 500;
|
|
}
|
|
|
|
nav a:hover { text-decoration: underline; }
|
|
|
|
main {
|
|
max-width: 860px;
|
|
margin: 2rem auto;
|
|
padding: 0 1.5rem;
|
|
}
|
|
|
|
h1 {
|
|
color: #003366;
|
|
font-size: 4rem;
|
|
font-weight: 700;
|
|
margin-top: 2rem;
|
|
margin-bottom: 1rem;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.4rem;
|
|
color: #444;
|
|
margin-top: 35px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
p {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.galerie {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.galerie img {
|
|
width: 100%;
|
|
max-width: 420px;
|
|
height: 200px;
|
|
object-fit: cover;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.galerie img:hover {
|
|
transform: scale(1.03);
|
|
}
|
|
|
|
.btn {
|
|
display: inline-block;
|
|
margin-top: 30px;
|
|
padding: 12px 30px;
|
|
background-color: #2563eb;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
.btn:hover {
|
|
background-color: #1a4aaa;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
font-size: 0.85rem;
|
|
color: #64748b;
|
|
border-top: 1px solid #e2e8f0;
|
|
margin-top: 4rem;
|
|
}
|
|
|
|
/* Logo in Nav */
|
|
.nav-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
.logo {
|
|
height: 40px;
|
|
width: auto;
|
|
}
|
|
|
|
/* Galerien nebeneinander */
|
|
.galerien-wrapper {
|
|
display: flex;
|
|
gap: 2rem;
|
|
margin-top: 2rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.slideshow-container {
|
|
flex: 1;
|
|
min-width: 220px;
|
|
max-width: 300px;
|
|
}
|
|
|
|
.slideshow-container h2 {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
/* Slideshow */
|
|
.slideshow {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.slide {
|
|
display: none;
|
|
}
|
|
|
|
.slide.active {
|
|
display: block;
|
|
}
|
|
|
|
.slide img {
|
|
width: 100%;
|
|
height: 380px;
|
|
object-fit: contain;
|
|
border-radius: 8px;
|
|
display: block;
|
|
background-color: #f0f4f8;
|
|
}
|
|
|
|
.prev, .next {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: rgba(0,0,0,0.4);
|
|
color: #fff;
|
|
border: none;
|
|
padding: 8px 14px;
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
border-radius: 4px;
|
|
transition: background 0.2s;
|
|
z-index: 10;
|
|
}
|
|
|
|
.prev { left: 8px; }
|
|
.next { right: 8px; }
|
|
.prev:hover, .next:hover { background: rgba(0,0,0,0.7); }
|
|
|
|
.dots {
|
|
text-align: center;
|
|
padding: 10px 0 6px;
|
|
background: rgba(255,255,255,0.85);
|
|
}
|
|
|
|
.dot {
|
|
display: inline-block;
|
|
width: 10px;
|
|
height: 10px;
|
|
margin: 0 4px;
|
|
background: #ccc;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.dot.active { background: #2563eb; }
|
|
|
|
|
|
/* Notenrechner */
|
|
.rechner-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
max-width: 400px;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.rechner-feld {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.rechner-feld label {
|
|
font-weight: 600;
|
|
color: #003366;
|
|
}
|
|
|
|
.rechner-feld input {
|
|
padding: 10px 14px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 6px;
|
|
font-size: 1rem;
|
|
outline: none;
|
|
}
|
|
|
|
.rechner-feld input:focus {
|
|
border-color: #2563eb;
|
|
}
|
|
|
|
.ergebnis-box {
|
|
margin-top: 2rem;
|
|
padding: 1.2rem 1.5rem;
|
|
background: #f0f4ff;
|
|
border-left: 4px solid #2563eb;
|
|
border-radius: 6px;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.ergebnis-box p {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: #003366;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Textarea */
|
|
.rechner-feld textarea {
|
|
padding: 10px 14px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 6px;
|
|
font-size: 1rem;
|
|
font-family: inherit;
|
|
resize: vertical;
|
|
outline: none;
|
|
}
|
|
|
|
.rechner-feld textarea:focus {
|
|
border-color: #2563eb;
|
|
}
|
|
|
|
|
|
/* Balken */
|
|
.balken-hintergrund {
|
|
margin-top: 1rem;
|
|
background: #e2e8f0;
|
|
border-radius: 6px;
|
|
height: 16px;
|
|
max-width: 400px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.balken {
|
|
height: 100%;
|
|
width: 0%;
|
|
border-radius: 6px;
|
|
transition: width 0.5s ease, background-color 0.5s ease;
|
|
}
|
|
|
|
|
|
/* Dark Mode */
|
|
body.dark {
|
|
background-color: #1e293b;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
body.dark nav {
|
|
background-color: #0f172a;
|
|
border-color: #334155;
|
|
}
|
|
|
|
body.dark a {
|
|
color: #60a5fa;
|
|
}
|
|
|
|
body.dark h1,
|
|
body.dark h2 {
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
body.dark p {
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
body.dark nav a {
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
/* Dark Mode Toggle Switch */
|
|
#dark-mode-toggle {
|
|
margin-left: auto;
|
|
position: relative;
|
|
width: 52px;
|
|
height: 26px;
|
|
background-color: #ccc;
|
|
border: none;
|
|
border-radius: 50px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
#dark-mode-toggle::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
top: 3px;
|
|
left: 3px;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
body.dark #dark-mode-toggle {
|
|
background-color: #2563eb;
|
|
border-color: #2563eb;
|
|
}
|
|
|
|
body.dark #dark-mode-toggle::after {
|
|
transform: translateX(26px);
|
|
}
|
|
|
|
body.dark .rechner-feld label {
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
body.dark .rechner-feld input,
|
|
body.dark .rechner-feld textarea {
|
|
background: #1e293b;
|
|
color: #e2e8f0;
|
|
border-color: #334155;
|
|
}
|
|
|
|
body.dark .ergebnis-box {
|
|
background: #0f172a;
|
|
border-color: #2563eb;
|
|
}
|
|
|
|
body.dark .ergebnis-box p {
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
/* Begrüßung nach Tageszeit */
|
|
.morgen { color: #d97706; }
|
|
.tag { color: #16a34a; }
|
|
.abend { color: #4338ca; }
|
|
|
|
|
|
|
|
/* Quiz */
|
|
.quiz-frage {
|
|
margin-top: 2rem;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.frage-text {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
color: #003366;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.antworten {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.quiz-btn {
|
|
padding: 10px 20px;
|
|
background: #f0f4ff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 6px;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.quiz-btn:hover:not(:disabled) {
|
|
background: #dbeafe;
|
|
}
|
|
|
|
.quiz-btn:disabled {
|
|
cursor: default;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.feedback {
|
|
margin-top: 1rem;
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
} |