First Implementation

This commit is contained in:
caroschulte02-alt
2026-05-13 01:30:41 +02:00
parent dfb5076032
commit e7bc5a5709
+185 -116
View File
@@ -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 */ Farben (HIGH CONTRAST)
--nav: #0f172a; ========================= */
--nav-hover: #1e293b;
:root {
/* Primary: etwas dunkler für besseren Kontrast auf Weiß */ --bg: #f1f5f9;
--primary: #1d4ed8; --white: #ffffff;
--primary-hover: #1e40af;
/* Navigation dunkler für mehr Kontrast */
/* Text: deutlich dunkler (wichtig für Accessibility) */ --nav: #0f172a;
--text: #0f172a; --nav-hover: #1e293b;
--text-light: #334155;
/* kräftigeres Blau */
/* Border: etwas stärker sichtbar */ --primary: #1d4ed8;
--border: #cbd5e1; --primary-hover: #1e40af;
}
/* Text deutlich dunkler */
/* ========================= --text: #0b1220;
Body --text-light: #1f2937;
========================= */
/* klarere Borders */
body { --border: #cbd5e1;
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);
header, color: var(--text);
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); header img {
text-decoration: underline; /* wichtig für Screenreader + Klarheit */ 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); nav a {
color: #ffffff; text-decoration: none;
} color: #f8fafc; /* heller für starken Kontrast */
font-weight: 600;
/* ========================= border-radius: 10px;
Buttons 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; /* =========================
} Suchfeld
========================= */
/* klarer Hover-Kontrast */
input[type="text"],
button:hover { input[type="search"] {
background-color: var(--primary-hover); border: 1px solid var(--border);
transform: translateY(-2px); background-color: white;
} font-size: 1rem;
border-radius: 12px;
/* Tastatur-Fokus (SEHR wichtig für Accessibility) */ color: var(--text);
}
button:focus,
nav a:focus, input:focus {
input:focus { border-color: var(--primary);
outline: 3px solid #93c5fd; outline: 3px solid #93c5fd;
outline-offset: 2px; }
}
/* =========================
/* ========================= Buttons
Inputs ========================= */
========================= */
button {
input[type="text"], background-color: var(--primary);
input[type="search"] { color: white;
border: 1px solid var(--border); border: none;
border-radius: 12px; font-size: 1rem;
background-color: white; font-weight: 600;
color: var(--text); cursor: pointer;
}
border-radius: 12px;
/* ========================= transition: 0.25s ease;
Texte }
========================= */
/* Hover Bewegung */
p { button:hover {
color: var(--text-light); background-color: var(--primary-hover);
line-height: 1.8; transform: translateY(-2px);
font-size: 1.08rem; }
}
/* Tastatur-Fokus (wichtig für Accessibility) */
button:focus,
nav a:focus {
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);
} }