First Implementation
This commit is contained in:
+161
-92
@@ -1,118 +1,187 @@
|
|||||||
* {
|
* {
|
||||||
:root {
|
box-sizing: border-box;
|
||||||
--bg: #f1f5f9; /* etwas weniger „blau-stichig“, ruhiger Hintergrund */
|
}
|
||||||
--white: #ffffff;
|
|
||||||
|
|
||||||
/* Navigation: dunkler für besseren Kontrast */
|
/* =========================
|
||||||
--nav: #0f172a;
|
Farben (HIGH CONTRAST)
|
||||||
--nav-hover: #1e293b;
|
========================= */
|
||||||
|
|
||||||
/* Primary: etwas dunkler für besseren Kontrast auf Weiß */
|
:root {
|
||||||
--primary: #1d4ed8;
|
--bg: #f1f5f9;
|
||||||
--primary-hover: #1e40af;
|
--white: #ffffff;
|
||||||
|
|
||||||
/* Text: deutlich dunkler (wichtig für Accessibility) */
|
/* Navigation dunkler für mehr Kontrast */
|
||||||
--text: #0f172a;
|
--nav: #0f172a;
|
||||||
--text-light: #334155;
|
--nav-hover: #1e293b;
|
||||||
|
|
||||||
/* Border: etwas stärker sichtbar */
|
/* kräftigeres Blau */
|
||||||
--border: #cbd5e1;
|
--primary: #1d4ed8;
|
||||||
}
|
--primary-hover: #1e40af;
|
||||||
|
|
||||||
/* =========================
|
/* Text deutlich dunkler */
|
||||||
Body
|
--text: #0b1220;
|
||||||
========================= */
|
--text-light: #1f2937;
|
||||||
|
|
||||||
body {
|
/* klarere Borders */
|
||||||
font-family: "Segoe UI", Arial, sans-serif;
|
--border: #cbd5e1;
|
||||||
background-color: var(--bg);
|
}
|
||||||
color: var(--text);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* =========================
|
/* =========================
|
||||||
Header / Nav
|
Body
|
||||||
========================= */
|
========================= */
|
||||||
|
|
||||||
header,
|
body {
|
||||||
nav {
|
font-family: "Segoe UI", Arial, sans-serif;
|
||||||
background-color: var(--nav);
|
background-color: var(--bg);
|
||||||
}
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
/* =========================
|
/* =========================
|
||||||
Links
|
Header
|
||||||
========================= */
|
========================= */
|
||||||
|
|
||||||
a {
|
header {
|
||||||
color: var(--primary);
|
background-color: var(--nav);
|
||||||
transition: 0.25s ease;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
a:hover {
|
/* =========================
|
||||||
color: var(--primary-hover);
|
Logo / Bild
|
||||||
text-decoration: underline; /* wichtig für Screenreader + Klarheit */
|
========================= */
|
||||||
}
|
|
||||||
|
|
||||||
/* =========================
|
header img {
|
||||||
Navigation Links
|
object-fit: cover;
|
||||||
========================= */
|
background-color: white;
|
||||||
|
border-radius: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
nav a {
|
/* =========================
|
||||||
color: #f8fafc;
|
Navigation
|
||||||
border-radius: 10px;
|
========================= */
|
||||||
}
|
|
||||||
|
|
||||||
nav a:hover {
|
nav {
|
||||||
background-color: var(--nav-hover);
|
background-color: var(--nav);
|
||||||
color: #ffffff;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* =========================
|
nav a {
|
||||||
Buttons
|
text-decoration: none;
|
||||||
========================= */
|
color: #f8fafc; /* heller für starken Kontrast */
|
||||||
|
font-weight: 600;
|
||||||
|
border-radius: 10px;
|
||||||
|
transition: 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
button {
|
nav a:hover {
|
||||||
background-color: var(--primary);
|
background-color: var(--nav-hover);
|
||||||
color: white;
|
color: #ffffff;
|
||||||
border-radius: 12px;
|
}
|
||||||
font-weight: 600;
|
|
||||||
transition: 0.25s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* klarer Hover-Kontrast */
|
/* =========================
|
||||||
|
Suchfeld
|
||||||
|
========================= */
|
||||||
|
|
||||||
button:hover {
|
input[type="text"],
|
||||||
background-color: var(--primary-hover);
|
input[type="search"] {
|
||||||
transform: translateY(-2px);
|
border: 1px solid var(--border);
|
||||||
}
|
background-color: white;
|
||||||
|
font-size: 1rem;
|
||||||
|
border-radius: 12px;
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
/* Tastatur-Fokus (SEHR wichtig für Accessibility) */
|
input:focus {
|
||||||
|
border-color: var(--primary);
|
||||||
|
outline: 3px solid #93c5fd;
|
||||||
|
}
|
||||||
|
|
||||||
button:focus,
|
/* =========================
|
||||||
nav a:focus,
|
Buttons
|
||||||
input:focus {
|
========================= */
|
||||||
outline: 3px solid #93c5fd;
|
|
||||||
outline-offset: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* =========================
|
button {
|
||||||
Inputs
|
background-color: var(--primary);
|
||||||
========================= */
|
color: white;
|
||||||
|
border: none;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
input[type="text"],
|
border-radius: 12px;
|
||||||
input[type="search"] {
|
transition: 0.25s ease;
|
||||||
border: 1px solid var(--border);
|
}
|
||||||
border-radius: 12px;
|
|
||||||
background-color: white;
|
|
||||||
color: var(--text);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* =========================
|
/* Hover Bewegung */
|
||||||
Texte
|
button:hover {
|
||||||
========================= */
|
background-color: var(--primary-hover);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
p {
|
/* Tastatur-Fokus (wichtig für Accessibility) */
|
||||||
color: var(--text-light);
|
button:focus,
|
||||||
line-height: 1.8;
|
nav a:focus {
|
||||||
font-size: 1.08rem;
|
outline: 3px solid #93c5fd;
|
||||||
}
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Hauptinhalt
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
main {
|
||||||
|
background-color: var(--white);
|
||||||
|
border-radius: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Überschriften
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: var(--primary);
|
||||||
|
font-size: 3.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
color: var(--primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Texte
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: var(--text-light);
|
||||||
|
line-height: 1.8;
|
||||||
|
font-size: 1.08rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Links
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: var(--primary);
|
||||||
|
transition: 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: var(--primary-hover);
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Footer
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
footer {
|
||||||
|
background-color: var(--white);
|
||||||
|
}
|
||||||
|
|
||||||
|
footer a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: var(--text-light);
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer a:hover {
|
||||||
|
color: var(--primary);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user