First Implementation

This commit is contained in:
caroschulte02-alt
2026-05-13 01:29:17 +02:00
parent 68b6ecdfc3
commit dfb5076032
+74 -135
View File
@@ -1,179 +1,118 @@
* { * {
box-sizing: border-box; :root {
} --bg: #f1f5f9; /* etwas weniger „blau-stichig“, ruhiger Hintergrund */
/* =========================
Farben
========================= */
:root {
--bg: #eef2f7;
--white: #ffffff; --white: #ffffff;
--nav: #1e293b; /* Navigation: dunkler für besseren Kontrast */
--nav-hover: #334155; --nav: #0f172a;
--nav-hover: #1e293b;
--primary: #2563eb; /* Primary: etwas dunkler für besseren Kontrast auf Weiß */
--primary-hover: #1d4ed8; --primary: #1d4ed8;
--primary-hover: #1e40af;
--text: #1e293b; /* Text: deutlich dunkler (wichtig für Accessibility) */
--text-light: #64748b; --text: #0f172a;
--text-light: #334155;
--border: #dbe4ee; /* Border: etwas stärker sichtbar */
} --border: #cbd5e1;
}
/* ========================= /* =========================
Body Body
========================= */ ========================= */
body { body {
font-family: "Segoe UI", Arial, sans-serif; font-family: "Segoe UI", Arial, sans-serif;
background-color: var(--bg); background-color: var(--bg);
color: var(--text); color: var(--text);
} }
/* ========================= /* =========================
Header Header / Nav
========================= */ ========================= */
header { header,
nav {
background-color: var(--nav); background-color: var(--nav);
} }
/* ========================= /* =========================
Logo / Bild Links
========================= */ ========================= */
header img { a {
object-fit: cover; color: var(--primary);
background-color: white; transition: 0.25s ease;
border-radius: 14px; }
}
/* ========================= a:hover {
Navigation color: var(--primary-hover);
========================= */ text-decoration: underline; /* wichtig für Screenreader + Klarheit */
}
nav { /* =========================
background-color: var(--nav); Navigation Links
} ========================= */
nav a { nav a {
text-decoration: none; color: #f8fafc;
color: #f1f5f9;
font-weight: 600;
border-radius: 10px; border-radius: 10px;
transition: 0.3s ease; }
}
nav a:hover { nav a:hover {
background-color: var(--nav-hover); background-color: var(--nav-hover);
color: white; color: #ffffff;
} }
/* ========================= /* =========================
Suchfeld
========================= */
input[type="text"],
input[type="search"] {
border: 1px solid var(--border);
background-color: white;
font-size: 1rem;
border-radius: 12px;
}
input:focus {
border-color: var(--primary);
}
/* =========================
Buttons Buttons
========================= */ ========================= */
button { button {
background-color: var(--primary); background-color: var(--primary);
color: white; color: white;
border: none;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
border-radius: 12px; border-radius: 12px;
font-weight: 600;
transition: 0.25s ease; transition: 0.25s ease;
} }
/* Hover Bewegung */ /* klarer Hover-Kontrast */
button:hover {
button:hover {
background-color: var(--primary-hover); background-color: var(--primary-hover);
transform: translateY(-2px); transform: translateY(-2px);
} }
/* Klick-Effekt */ /* Tastatur-Fokus (SEHR wichtig für Accessibility) */
button:active {
transform: translateY(0px);
}
/* ========================= button:focus,
Hauptinhalt nav a:focus,
========================= */ input:focus {
outline: 3px solid #93c5fd;
outline-offset: 2px;
}
main { /* =========================
background-color: var(--white); Inputs
border-radius: 24px; ========================= */
}
/* ========================= input[type="text"],
Überschriften input[type="search"] {
========================= */ border: 1px solid var(--border);
border-radius: 12px;
background-color: white;
color: var(--text);
}
h1 { /* =========================
color: var(--primary);
font-size: 3.5rem;
}
h2 {
color: var(--primary);
}
/* =========================
Texte Texte
========================= */ ========================= */
p { p {
color: var(--text-light); color: var(--text-light);
line-height: 1.8; line-height: 1.8;
font-size: 1.08rem; font-size: 1.08rem;
} }
/* =========================
Links
========================= */
a {
color: var(--primary);
transition: 0.3s ease;
}
a:hover {
color: var(--primary-hover);
}
/* =========================
Footer
========================= */
footer {
background-color: var(--white);
}
footer a {
text-decoration: none;
color: var(--text-light);
font-weight: 500;
}
footer a:hover {
color: var(--primary);
} }