First Implementation #2

Closed
caroline.slt wants to merge 17 commits from design01 into dev
Showing only changes of commit dfb5076032 - Show all commits
+92 -153
View File
@@ -1,179 +1,118 @@
* {
box-sizing: border-box;
}
:root {
--bg: #f1f5f9; /* etwas weniger „blau-stichig“, ruhiger Hintergrund */
--white: #ffffff;
/* =========================
Farben
========================= */
/* Navigation: dunkler für besseren Kontrast */
--nav: #0f172a;
--nav-hover: #1e293b;
:root {
--bg: #eef2f7;
--white: #ffffff;
/* Primary: etwas dunkler für besseren Kontrast auf Weiß */
--primary: #1d4ed8;
--primary-hover: #1e40af;
--nav: #1e293b;
--nav-hover: #334155;
/* Text: deutlich dunkler (wichtig für Accessibility) */
--text: #0f172a;
--text-light: #334155;
--primary: #2563eb;
--primary-hover: #1d4ed8;
/* Border: etwas stärker sichtbar */
--border: #cbd5e1;
}
--text: #1e293b;
--text-light: #64748b;
/* =========================
Body
========================= */
--border: #dbe4ee;
}
body {
font-family: "Segoe UI", Arial, sans-serif;
background-color: var(--bg);
color: var(--text);
}
/* =========================
Body
========================= */
/* =========================
Header / Nav
========================= */
body {
font-family: "Segoe UI", Arial, sans-serif;
background-color: var(--bg);
color: var(--text);
}
header,
nav {
background-color: var(--nav);
}
/* =========================
Header
========================= */
/* =========================
Links
========================= */
header {
background-color: var(--nav);
}
a {
color: var(--primary);
transition: 0.25s ease;
}
/* =========================
Logo / Bild
========================= */
a:hover {
color: var(--primary-hover);
text-decoration: underline; /* wichtig für Screenreader + Klarheit */
}
header img {
object-fit: cover;
background-color: white;
border-radius: 14px;
}
/* =========================
Navigation Links
========================= */
/* =========================
Navigation
========================= */
nav a {
color: #f8fafc;
border-radius: 10px;
}
nav {
background-color: var(--nav);
}
nav a:hover {
background-color: var(--nav-hover);
color: #ffffff;
}
nav a {
text-decoration: none;
color: #f1f5f9;
font-weight: 600;
border-radius: 10px;
transition: 0.3s ease;
}
/* =========================
Buttons
========================= */
nav a:hover {
background-color: var(--nav-hover);
color: white;
}
button {
background-color: var(--primary);
color: white;
border-radius: 12px;
font-weight: 600;
transition: 0.25s ease;
}
/* =========================
Suchfeld
========================= */
/* klarer Hover-Kontrast */
input[type="text"],
input[type="search"] {
border: 1px solid var(--border);
background-color: white;
font-size: 1rem;
border-radius: 12px;
}
button:hover {
background-color: var(--primary-hover);
transform: translateY(-2px);
}
input:focus {
border-color: var(--primary);
}
/* Tastatur-Fokus (SEHR wichtig für Accessibility) */
/* =========================
Buttons
========================= */
button:focus,
nav a:focus,
input:focus {
outline: 3px solid #93c5fd;
outline-offset: 2px;
}
button {
background-color: var(--primary);
color: white;
border: none;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
/* =========================
Inputs
========================= */
border-radius: 12px;
input[type="text"],
input[type="search"] {
border: 1px solid var(--border);
border-radius: 12px;
background-color: white;
color: var(--text);
}
transition: 0.25s ease;
}
/* =========================
Texte
========================= */
/* Hover Bewegung */
button:hover {
background-color: var(--primary-hover);
transform: translateY(-2px);
}
/* Klick-Effekt */
button:active {
transform: translateY(0px);
}
/* =========================
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);
}
/* =========================
Footer
========================= */
footer {
background-color: var(--white);
}
footer a {
text-decoration: none;
color: var(--text-light);
font-weight: 500;
}
footer a:hover {
color: var(--primary);
p {
color: var(--text-light);
line-height: 1.8;
font-size: 1.08rem;
}
}