First Implementation

This commit is contained in:
caroschulte02-alt
2026-05-13 01:30:41 +02:00
parent dfb5076032
commit e7bc5a5709
+136 -67
View File
@@ -1,118 +1,187 @@
* { * {
:root { box-sizing: border-box;
--bg: #f1f5f9; /* etwas weniger „blau-stichig“, ruhiger Hintergrund */ }
/* =========================
Farben (HIGH CONTRAST)
========================= */
:root {
--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;
} }
/* ========================= /* =========================
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 / 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); Navigation
text-decoration: underline; /* wichtig für Screenreader + Klarheit */ ========================= */
}
/* ========================= nav {
Navigation Links 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 {
background-color: var(--nav-hover); background-color: var(--nav-hover);
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
========================= */ ========================= */
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);
}
/* =========================
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);
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);
} }