Glueck-Auf/css/style.css
2026-06-03 12:37:15 +02:00

284 lines
11 KiB
CSS

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--royal: #003f8a;
--royal-light: #0057c2;
--royal-dark: #001f44;
--off-white: #f5f8ff;
--text-muted: rgba(255,255,255,0.45);
--accent: #7ab3ff;
--hero-overlay: rgba(0,15,40,0.52);
}
/* ========================= Base ========================= */
body {
background: var(--royal-dark);
color: var(--off-white);
font-family: 'Barlow', sans-serif;
min-height: 100vh;
}
/* ========================= Nav ========================= */
nav {
display: flex; justify-content: space-between; align-items: center; gap: 2em;
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; text-decoration: none; }
nav ul { list-style: none; display: flex; column-gap: 2rem; row-gap: 0.5em; flex-wrap: wrap; }
nav ul a { color: var(--text-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 ========================= */
.hero {
position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden;
background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('../img/Hintergrund.jpg') center/cover no-repeat;
}
.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 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: var(--accent); }
.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; }
/* ========================= Hero-Tag (geteilt) ========================= */
.hero-tag {
font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
color: rgba(255,255,255,0.45); margin-bottom: 1.2rem;
}
.page-hero .hero-tag { margin-bottom: 1rem; }
/* ========================= Button ========================= */
.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 ========================= */
.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); }
a.card { text-decoration: none; color: inherit; }
.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 ========================= */
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-Toggle ========================= */
#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.25s ease;
}
#dark-mode-toggle:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
/* ========================= Unterseiten ========================= */
.page-hero { padding: 5rem 3rem 3.5rem; max-width: 820px; margin: 0 auto; animation: fadeUp 0.9s ease both; }
.page-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1; letter-spacing: 0.03em; color: #fff; margin-bottom: 2rem; }
.page-hero h1 span { color: var(--accent); }
.page-hero .sub { font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,0.62); line-height: 1.8; margin-bottom: 3rem; max-width: 560px; }
.page { max-width: 820px; margin: 0 auto; padding: 0 3rem 4rem; }
.page hr { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 2.5rem 0; }
.bio, .page p { font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.9; margin-bottom: 0.6rem; }
.skills-label, .page .label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.legal-page { max-width: 900px; padding-bottom: 5rem; }
.legal-page h1 { margin-bottom: 1rem; }
.legal-page section {
padding: 1.65rem 0 1.65rem 1.5rem;
border-left: 2px solid rgba(122,179,255,0.35);
border-bottom: 1px solid rgba(255,255,255,0.07);
}
.legal-page section + section { margin-top: 1.2rem; }
.legal-page h2 {
font-family: 'Bebas Neue', sans-serif;
font-size: 1.55rem;
font-weight: 400;
letter-spacing: 0.08em;
color: #fff;
margin-bottom: 0.9rem;
}
.legal-page p,
.legal-page address {
max-width: 680px;
font-size: 1rem;
font-style: normal;
font-weight: 300;
color: rgba(255,255,255,0.68);
line-height: 1.85;
}
.legal-page a { color: var(--accent); text-decoration: none; }
.legal-page a:hover { color: #fff; }
.contact-page { max-width: 900px; padding-bottom: 5rem; }
.contact-page h1 { margin-bottom: 1rem; }
.contact-form {
display: grid;
gap: 1.35rem;
max-width: 760px;
padding-top: 0.5rem;
}
.form-row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1.2rem;
}
.form-group { display: grid; gap: 0.55rem; }
.form-group label {
font-size: 0.72rem;
letter-spacing: 0.18em;
text-transform: uppercase;
color: rgba(255,255,255,0.48);
}
.form-group input,
.form-group textarea {
width: 100%;
border: 1px solid rgba(255,255,255,0.13);
background: rgba(255,255,255,0.045);
color: var(--off-white);
font-family: 'Barlow', sans-serif;
font-size: 1rem;
line-height: 1.6;
padding: 0.95rem 1rem;
outline: none;
transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-group textarea { resize: vertical; min-height: 180px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.32); }
.form-group input:focus,
.form-group textarea:focus {
border-color: rgba(122,179,255,0.85);
background: rgba(255,255,255,0.07);
box-shadow: 0 0 0 3px rgba(122,179,255,0.12);
}
.form-actions {
display: flex;
align-items: center;
gap: 1.2rem;
flex-wrap: wrap;
padding-top: 0.4rem;
}
.form-actions button {
border: 0;
cursor: pointer;
padding: 0.85rem 2.3rem;
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;
transition: background 0.2s, color 0.2s, transform 0.15s;
}
.form-actions button:hover { background: var(--royal-light); color: #fff; transform: translateY(-2px); }
.form-actions p {
max-width: 340px;
font-size: 0.88rem;
font-weight: 300;
color: rgba(255,255,255,0.48);
line-height: 1.6;
}
.skills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill { padding: 0.4rem 1.1rem; border: 1px solid rgba(255,255,255,0.15); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); transition: border-color 0.2s, color 0.2s; }
.skill:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
.legal-page { padding-inline: 1.5rem; }
.legal-page section { padding-left: 1rem; }
.contact-page { padding-inline: 1.5rem; }
.form-row { grid-template-columns: 1fr; }
.form-actions { align-items: flex-start; flex-direction: column; }
.form-actions button { width: 100%; }
}
/* ========================= Dark Mode ========================= */
body.dark {
--hero-overlay: rgba(0,0,0,0.65);
--accent: #60a5fa;
background: #1e293b;
color: #e2e8f0;
}
body.dark nav { background: rgba(15,23,42,0.95); border-bottom: 1px solid #334155; }
body.dark nav ul a { color: rgba(226,232,240,0.7); }
body.dark .hero-tag { color: rgba(226,232,240,0.5); }
body.dark .hero p { color: rgba(226,232,240,0.8); }
body.dark .btn { background: var(--accent); color: #0b1220; }
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 #dark-mode-toggle { background: var(--accent); color: #0b1220; border-color: transparent; box-shadow: 0 0 18px rgba(96,165,250,0.4); }
body.dark .page p, body.dark .bio { color: rgba(226,232,240,0.8); }
body.dark .skill { border-color: rgba(226,232,240,0.2); color: rgba(226,232,240,0.7); }
body.dark .page-hero .sub,
body.dark .legal-page p,
body.dark .legal-page address { color: rgba(226,232,240,0.78); }
body.dark .legal-page section { border-left-color: rgba(96,165,250,0.45); border-bottom-color: #334155; }
body.dark .form-group label,
body.dark .form-actions p { color: rgba(226,232,240,0.62); }
body.dark .form-group input,
body.dark .form-group textarea {
border-color: rgba(226,232,240,0.18);
background: rgba(15,23,42,0.55);
color: #e2e8f0;
}
body.dark .form-group input:focus,
body.dark .form-group textarea:focus {
border-color: rgba(96,165,250,0.9);
box-shadow: 0 0 0 3px rgba(96,165,250,0.16);
}
body.dark .form-actions button { background: var(--accent); color: #0b1220; }
body.dark .form-actions button:hover { background: #3b82f6; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: rgba(0,20,60,0.97); border: 1px solid rgba(255,255,255,0.07); min-width: 160px; z-index: 200; }
.dropdown-menu li { list-style: none; }
.dropdown-menu a { display: block; padding: 0.7rem 1.2rem; color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.dropdown-menu a:hover { color: #fff; }
.dropdown.open .dropdown-menu { display: block; }