165 lines
5.2 KiB
CSS
165 lines
5.2 KiB
CSS
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
:root {
|
|
--royal: #003f8a;
|
|
--royal-light: #0057c2;
|
|
--royal-dark: #001f44;
|
|
--white: #f5f8ff;
|
|
--muted: rgba(255,255,255,0.45);
|
|
}
|
|
body { background: var(--royal-dark); color: var(--white); font-family: 'Barlow', sans-serif; min-height: 100vh; }
|
|
|
|
nav {
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
padding: 1.2rem 2.5rem;
|
|
background: rgba(0,20,60,0.88); backdrop-filter: blur(12px);
|
|
border-bottom: 1px solid rgba(255,255,255,0.07);
|
|
position: sticky; top: 0; z-index: 100;
|
|
}
|
|
nav .logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; letter-spacing: 0.12em; color: #fff; }
|
|
nav ul { list-style: none; display: flex; gap: 2rem; }
|
|
nav ul a { color: var(--muted); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
|
|
nav ul a:hover, nav ul a.active { color: #fff; }
|
|
|
|
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; background: linear-gradient(rgba(0,15,40,0.52), rgba(0,15,40,0.52)), url('../img/Hintergrund.jpg') center/cover no-repeat; }
|
|
canvas#bg { display: none; }
|
|
.hero-content { position: relative; z-index: 2; padding: 0 3rem; max-width: 820px; animation: fadeUp 0.9s ease both; }
|
|
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
|
|
|
|
.hero-tag { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 1.2rem; }
|
|
.hero h1 {
|
|
font-family: 'Bebas Neue', sans-serif; font-size: clamp(3.5rem, 9vw, 7rem);
|
|
line-height: 0.95; letter-spacing: 0.03em; color: #fff;
|
|
text-shadow: 0 4px 40px rgba(0,80,200,0.7); margin-bottom: 1.6rem;
|
|
}
|
|
.hero h1 span { color: #7ab3ff; }
|
|
.hero p { font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.8; max-width: 480px; margin-bottom: 2.5rem; }
|
|
.btn {
|
|
display: inline-block; padding: 0.8rem 2.4rem;
|
|
background: #fff; color: var(--royal-dark);
|
|
font-family: 'Barlow', sans-serif; font-size: 0.82rem; font-weight: 500;
|
|
letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
|
|
transition: background 0.2s, color 0.2s, transform 0.15s;
|
|
}
|
|
.btn:hover { background: var(--royal-light); color: #fff; transform: translateY(-2px); }
|
|
|
|
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1px; background: rgba(255,255,255,0.06); }
|
|
.card { background: var(--royal-dark); padding: 2.5rem 2rem; transition: background 0.3s; }
|
|
.card:hover { background: var(--royal); }
|
|
.card .num { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: rgba(255,255,255,0.07); line-height: 1; margin-bottom: 0.8rem; }
|
|
.card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
|
|
.card p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.65; font-weight: 300; }
|
|
|
|
footer { text-align: center; padding: 2rem; font-size: 0.78rem; color: rgba(255,255,255,0.22); border-top: 1px solid rgba(255,255,255,0.07); }
|
|
footer a { color: rgba(255,255,255,0.22); text-decoration: none; margin: 0 0.5rem; }
|
|
footer a:hover { color: #fff; }
|
|
|
|
/* =========================
|
|
Dark Mode
|
|
========================= */
|
|
|
|
body.dark {
|
|
background: #1e293b;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
body.dark nav {
|
|
background: rgba(15, 23, 42, 0.95);
|
|
border-bottom: 1px solid #334155;
|
|
}
|
|
|
|
body.dark nav .logo {
|
|
color: #ffffff;
|
|
}
|
|
|
|
body.dark nav ul a {
|
|
color: rgba(226, 232, 240, 0.7);
|
|
}
|
|
|
|
body.dark nav ul a:hover,
|
|
body.dark nav ul a.active {
|
|
color: #ffffff;
|
|
}
|
|
|
|
body.dark .hero {
|
|
background:
|
|
linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
|
|
url('../img/Hintergrund.jpg') center/cover no-repeat;
|
|
}
|
|
|
|
body.dark .hero-tag {
|
|
color: rgba(226, 232, 240, 0.5);
|
|
}
|
|
|
|
body.dark .hero h1 {
|
|
color: #ffffff;
|
|
}
|
|
|
|
body.dark .hero h1 span {
|
|
color: #60a5fa;
|
|
}
|
|
|
|
body.dark .hero p {
|
|
color: rgba(226, 232, 240, 0.8);
|
|
}
|
|
|
|
body.dark .btn {
|
|
background: #60a5fa;
|
|
color: #ffffff;
|
|
}
|
|
|
|
body.dark .btn:hover {
|
|
background: #3b82f6;
|
|
}
|
|
|
|
body.dark .card {
|
|
background: #334155;
|
|
}
|
|
|
|
body.dark .card:hover {
|
|
background: #475569;
|
|
}
|
|
|
|
body.dark .card p {
|
|
color: rgba(226, 232, 240, 0.75);
|
|
}
|
|
|
|
body.dark footer {
|
|
color: rgba(226, 232, 240, 0.6);
|
|
border-top: 1px solid #334155;
|
|
}
|
|
|
|
body.dark footer a {
|
|
color: rgba(226, 232, 240, 0.6);
|
|
}
|
|
|
|
body.dark footer a:hover {
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* Button-Styling */
|
|
#dark-mode-toggle {
|
|
padding: 0.6rem 1rem;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(255,255,255,0.2);
|
|
cursor: pointer;
|
|
background: transparent;
|
|
color: rgba(255,255,255,0.8);
|
|
font-family: 'Barlow', sans-serif;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
#dark-mode-toggle:hover {
|
|
background: rgba(255,255,255,0.08);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
body.dark #dark-mode-toggle {
|
|
background: #60a5fa;
|
|
color: #0b1220;
|
|
border-color: transparent;
|
|
box-shadow: 0 0 18px rgba(96,165,250,0.4);
|
|
}
|