First Implementation

This commit is contained in:
caroschulte02-alt
2026-05-13 01:03:48 +02:00
parent 590ff7d916
commit a32b59825e
+40 -33
View File
@@ -1,59 +1,66 @@
/* 1. Einheitliche Schriftart für alle Nav-Elemente */ /* 1. Gemeinsame Hintergrundfarbe für Header & Footer */
nav, nav a, nav input, nav button { /* Hinweis: Falls dein Footer eine andere Klasse hat, musst du diese ggf. ergänzen */
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; nav, footer {
font-size: 15px; background-color: #1e293b; /* Modernes, dunkles Navy-Blau */
color: #ffffff;
} }
/* 2. Gemeinsame Basis für alle Buttons (Größe & Form) */ /* 2. Schriftart für die gesamte Navigation */
nav {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
padding: 15px 20px;
}
/* 3. Button-Design (Navigationselemente) */
nav a { nav a {
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
padding: 10px 20px; /* Einheitliche Höhe und Breite */
border-radius: 6px; /* Modernere, leicht abgerundete Ecken */ /* Dein gewünschtes Blau - jetzt etwas kräftiger/moderner */
background-color: #3b82f6;
color: #ffffff;
/* Abstände & Rundungen */
padding: 10px 18px;
border-radius: 8px;
font-weight: 600; font-weight: 600;
transition: all 0.2s ease-in-out; font-size: 0.95rem;
margin: 0 5px;
margin: 0 6px;
transition: all 0.2s ease;
} }
/* 3. Farbschema: Dunkelblau & Akzente */ /* Hover-Effekt: Etwas heller glühen */
nav a:hover {
/* Die normalen Inhalts-Buttons (Informatik, Mathe etc.) */ background-color: #60a5fa;
nav a:not(.login):not(.register) { transform: translateY(-2px); /* Kleiner "Lift"-Effekt */
background-color: #334155; /* Elegantes Schieferblau */
color: #f8fafc;
} }
nav a:not(.login):not(.register):hover { /* 4. Spezial-Buttons (Anmelden & Registrieren) */
background-color: #475569; /* Anmelden: Transparent mit Rahmen, um sich abzuheben */
transform: translateY(-1px);
}
/* Der Anmelden-Button (Dezent) */
nav a.login { nav a.login {
background-color: transparent; background-color: transparent;
color: #334155; border: 2px solid #ffffff;
border: 2px solid #334155;
padding: 8px 18px; /* Ausgleich für die Border-Dicke */
} }
nav a.login:hover { nav a.login:hover {
background-color: #f1f5f9; background-color: rgba(255, 255, 255, 0.1);
} }
/* Der Registrieren-Button (Der Haupt-Akzent) */ /* Registrieren: Ein leuchtendes Blau oder Weiß für maximalen Kontrast */
nav a.register { nav a.register {
background-color: #2563eb; /* Ein klares, modernes Blau */ background-color: #ffffff;
color: white; color: #1e293b;
box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
} }
nav a.register:hover { nav a.register:hover {
background-color: #1d4ed8; background-color: #f1f5f9;
box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
} }
/* 4. Barrierefreiheit (Fokus-Zustand) */ /* 5. Barrierefreiheit */
nav a:focus { nav a:focus {
outline: 3px solid #60a5fa; outline: 3px solid #fbbf24; /* Kontrastreicher Fokus-Ring */
outline-offset: 3px; outline-offset: 3px;
} }