First Implementation #2

Closed
caroline.slt wants to merge 17 commits from design01 into dev
Showing only changes of commit e7bc5a5709 - Show all commits
+104 -35
View File
@@ -1,21 +1,28 @@
* { * {
box-sizing: border-box;
}
/* =========================
Farben (HIGH CONTRAST)
========================= */
:root { :root {
--bg: #f1f5f9; /* etwas weniger „blau-stichig“, ruhiger Hintergrund */ --bg: #f1f5f9;
--white: #ffffff; --white: #ffffff;
/* Navigation: dunkler für besseren Kontrast */ /* Navigation dunkler für mehr Kontrast */
--nav: #0f172a; --nav: #0f172a;
--nav-hover: #1e293b; --nav-hover: #1e293b;
/* Primary: etwas dunkler für besseren Kontrast auf Weiß */ /* kräftigeres Blau */
--primary: #1d4ed8; --primary: #1d4ed8;
--primary-hover: #1e40af; --primary-hover: #1e40af;
/* Text: deutlich dunkler (wichtig für Accessibility) */ /* Text deutlich dunkler */
--text: #0f172a; --text: #0b1220;
--text-light: #334155; --text-light: #1f2937;
/* Border: etwas stärker sichtbar */ /* klarere Borders */
--border: #cbd5e1; --border: #cbd5e1;
} }
@@ -30,35 +37,37 @@
} }
/* ========================= /* =========================
Header / Nav Header
========================= */ ========================= */
header, header {
nav {
background-color: var(--nav); background-color: var(--nav);
} }
/* ========================= /* =========================
Links Logo / Bild
========================= */ ========================= */
a { header img {
color: var(--primary); object-fit: cover;
transition: 0.25s ease; background-color: white;
} border-radius: 14px;
a:hover {
color: var(--primary-hover);
text-decoration: underline; /* wichtig für Screenreader + Klarheit */
} }
/* ========================= /* =========================
Navigation Links Navigation
========================= */ ========================= */
nav {
background-color: var(--nav);
}
nav a { nav a {
color: #f8fafc; text-decoration: none;
color: #f8fafc; /* heller für starken Kontrast */
font-weight: 600;
border-radius: 10px; border-radius: 10px;
transition: 0.3s ease;
} }
nav a:hover { nav a:hover {
@@ -66,6 +75,24 @@
color: #ffffff; color: #ffffff;
} }
/* =========================
Suchfeld
========================= */
input[type="text"],
input[type="search"] {
border: 1px solid var(--border);
background-color: white;
font-size: 1rem;
border-radius: 12px;
color: var(--text);
}
input:focus {
border-color: var(--primary);
outline: 3px solid #93c5fd;
}
/* ========================= /* =========================
Buttons Buttons
========================= */ ========================= */
@@ -73,37 +100,48 @@
button { button {
background-color: var(--primary); background-color: var(--primary);
color: white; color: white;
border-radius: 12px; border: none;
font-size: 1rem;
font-weight: 600; font-weight: 600;
cursor: pointer;
border-radius: 12px;
transition: 0.25s ease; transition: 0.25s ease;
} }
/* klarer Hover-Kontrast */ /* Hover Bewegung */
button:hover { button:hover {
background-color: var(--primary-hover); background-color: var(--primary-hover);
transform: translateY(-2px); transform: translateY(-2px);
} }
/* Tastatur-Fokus (SEHR wichtig für Accessibility) */ /* Tastatur-Fokus (wichtig für Accessibility) */
button:focus, button:focus,
nav a:focus, nav a:focus {
input:focus {
outline: 3px solid #93c5fd; outline: 3px solid #93c5fd;
outline-offset: 2px; outline-offset: 2px;
} }
/* ========================= /* =========================
Inputs Hauptinhalt
========================= */ ========================= */
input[type="text"], main {
input[type="search"] { background-color: var(--white);
border: 1px solid var(--border); border-radius: 24px;
border-radius: 12px; }
background-color: white;
color: var(--text); /* =========================
Überschriften
========================= */
h1 {
color: var(--primary);
font-size: 3.5rem;
}
h2 {
color: var(--primary);
} }
/* ========================= /* =========================
@@ -115,4 +153,35 @@
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);
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);
} }