style css angepasst
This commit is contained in:
parent
d6bb7f7449
commit
6a80784761
3 changed files with 106 additions and 213 deletions
317
css/style.css
317
css/style.css
|
|
@ -1,146 +1,92 @@
|
|||
*, *::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; }
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
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(--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;
|
||||
: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);
|
||||
}
|
||||
|
||||
body.dark nav {
|
||||
background: rgba(15, 23, 42, 0.95);
|
||||
border-bottom: 1px solid #334155;
|
||||
/* ========================= Base ========================= */
|
||||
|
||||
body {
|
||||
background: var(--royal-dark);
|
||||
color: var(--off-white);
|
||||
font-family: 'Barlow', sans-serif;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
body.dark nav .logo {
|
||||
color: #ffffff;
|
||||
}
|
||||
/* ========================= Nav ========================= */
|
||||
|
||||
body.dark nav ul a {
|
||||
color: rgba(226, 232, 240, 0.7);
|
||||
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; }
|
||||
|
||||
body.dark nav ul a:hover,
|
||||
body.dark nav ul a.active {
|
||||
color: #ffffff;
|
||||
/* ========================= 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; }
|
||||
|
||||
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;
|
||||
@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; }
|
||||
|
||||
body.dark .hero-tag {
|
||||
color: rgba(226, 232, 240, 0.5);
|
||||
/* ========================= 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; }
|
||||
|
||||
body.dark .hero h1 {
|
||||
color: #ffffff;
|
||||
/* ========================= 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); }
|
||||
|
||||
body.dark .hero h1 span {
|
||||
color: #60a5fa;
|
||||
}
|
||||
/* ========================= Cards ========================= */
|
||||
|
||||
body.dark .hero p {
|
||||
color: rgba(226, 232, 240, 0.8);
|
||||
}
|
||||
.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; }
|
||||
|
||||
body.dark .btn {
|
||||
background: #60a5fa;
|
||||
color: #ffffff;
|
||||
}
|
||||
/* ========================= Footer ========================= */
|
||||
|
||||
body.dark .btn:hover {
|
||||
background: #3b82f6;
|
||||
}
|
||||
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; }
|
||||
|
||||
body.dark .card {
|
||||
background: #334155;
|
||||
}
|
||||
/* ========================= Dark-Mode-Toggle ========================= */
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
body.dark #dark-mode-toggle {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
/* Button-Styling */
|
||||
#dark-mode-toggle {
|
||||
padding: 0.6rem 1rem;
|
||||
border-radius: 999px;
|
||||
|
|
@ -149,105 +95,54 @@ body.dark #dark-mode-toggle {
|
|||
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;
|
||||
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); }
|
||||
|
||||
#dark-mode-toggle:hover {
|
||||
background: rgba(255,255,255,0.08);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
/* ========================= Unterseiten ========================= */
|
||||
|
||||
body.dark #dark-mode-toggle {
|
||||
background: #60a5fa;
|
||||
color: #0b1220;
|
||||
border-color: transparent;
|
||||
box-shadow: 0 0 18px rgba(96,165,250,0.4);
|
||||
}
|
||||
.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); }
|
||||
|
||||
/* =========================
|
||||
Unterseiten – Page Hero
|
||||
========================= */
|
||||
.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; }
|
||||
|
||||
.page-hero {
|
||||
padding: 5rem 3rem 3.5rem;
|
||||
max-width: 820px;
|
||||
margin: 0 auto;
|
||||
animation: fadeUp 0.9s ease both;
|
||||
}
|
||||
.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; }
|
||||
|
||||
.page-hero .hero-tag {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.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: #7ab3ff; }
|
||||
|
||||
/* =========================
|
||||
Seiteninhalt
|
||||
========================= */
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
/* Texte */
|
||||
.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;
|
||||
}
|
||||
|
||||
/* Skills */
|
||||
.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); }
|
||||
|
||||
.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;
|
||||
/* ========================= Dark Mode ========================= */
|
||||
|
||||
body.dark {
|
||||
--hero-overlay: rgba(0,0,0,0.65);
|
||||
--accent: #60a5fa;
|
||||
background: #1e293b;
|
||||
color: #e2e8f0;
|
||||
}
|
||||
|
||||
.skill:hover { border-color: #7ab3ff; color: #7ab3ff; }
|
||||
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); }
|
||||
|
||||
/* Dark Mode */
|
||||
body.dark .page p,
|
||||
body.dark .bio { color: rgba(226,232,240,0.8); }
|
||||
body.dark .hero-tag { color: rgba(226,232,240,0.5); }
|
||||
body.dark .hero p { 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 .skill:hover { border-color: #60a5fa; color: #60a5fa; }
|
||||
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); }
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
</nav>
|
||||
|
||||
<section class="hero">
|
||||
<canvas id="bg"></canvas>
|
||||
<div class="hero-content">
|
||||
<p class="hero-tag">Willkommen auf meiner Website :)</p>
|
||||
<h1>Meine<br><span>persön­liche</span><br>Seite</h1>
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ function updateButton(toggle) {
|
|||
|
||||
|
||||
// Dein bisheriger Code
|
||||
console.log("Meine Seite läuft!");
|
||||
|
||||
const canvas = document.getElementById('bg');
|
||||
const ctx = canvas.getContext('2d');
|
||||
|
|
|
|||
Loading…
Reference in a new issue