First Implementation

This commit is contained in:
caroschulte02-alt
2026-05-13 01:29:17 +02:00
parent 68b6ecdfc3
commit dfb5076032
+92 -153
View File
@@ -1,179 +1,118 @@
* { * {
box-sizing: border-box; :root {
} --bg: #f1f5f9; /* etwas weniger „blau-stichig“, ruhiger Hintergrund */
--white: #ffffff;
/* ========================= /* Navigation: dunkler für besseren Kontrast */
Farben --nav: #0f172a;
========================= */ --nav-hover: #1e293b;
:root { /* Primary: etwas dunkler für besseren Kontrast auf Weiß */
--bg: #eef2f7; --primary: #1d4ed8;
--white: #ffffff; --primary-hover: #1e40af;
--nav: #1e293b; /* Text: deutlich dunkler (wichtig für Accessibility) */
--nav-hover: #334155; --text: #0f172a;
--text-light: #334155;
--primary: #2563eb; /* Border: etwas stärker sichtbar */
--primary-hover: #1d4ed8; --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 { header,
font-family: "Segoe UI", Arial, sans-serif; nav {
background-color: var(--bg); background-color: var(--nav);
color: var(--text); }
}
/* ========================= /* =========================
Header Links
========================= */ ========================= */
header { a {
background-color: var(--nav); color: var(--primary);
} transition: 0.25s ease;
}
/* ========================= a:hover {
Logo / Bild color: var(--primary-hover);
========================= */ text-decoration: underline; /* wichtig für Screenreader + Klarheit */
}
header img { /* =========================
object-fit: cover; Navigation Links
background-color: white; ========================= */
border-radius: 14px;
}
/* ========================= nav a {
Navigation color: #f8fafc;
========================= */ border-radius: 10px;
}
nav { nav a:hover {
background-color: var(--nav); background-color: var(--nav-hover);
} color: #ffffff;
}
nav a { /* =========================
text-decoration: none; Buttons
color: #f1f5f9; ========================= */
font-weight: 600;
border-radius: 10px;
transition: 0.3s ease;
}
nav a:hover { button {
background-color: var(--nav-hover); background-color: var(--primary);
color: white; color: white;
} border-radius: 12px;
font-weight: 600;
transition: 0.25s ease;
}
/* ========================= /* klarer Hover-Kontrast */
Suchfeld
========================= */
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;
}
input:focus { /* Tastatur-Fokus (SEHR wichtig für Accessibility) */
border-color: var(--primary);
}
/* ========================= button:focus,
Buttons nav a:focus,
========================= */ input:focus {
outline: 3px solid #93c5fd;
outline-offset: 2px;
}
button { /* =========================
background-color: var(--primary); Inputs
color: white; ========================= */
border: none;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
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 */ p {
button:hover { color: var(--text-light);
background-color: var(--primary-hover); line-height: 1.8;
transform: translateY(-2px); font-size: 1.08rem;
} }
/* 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);
} }