Files
webprogrammierung/css/main.css
T
caroschulte02-alt 590ff7d916 First Implementation
2026-05-13 01:01:53 +02:00

59 lines
1.4 KiB
CSS

/* 1. Einheitliche Schriftart für alle Nav-Elemente */
nav, nav a, nav input, nav button {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 15px;
}
/* 2. Gemeinsame Basis für alle Buttons (Größe & Form) */
nav a {
display: inline-block;
text-decoration: none;
padding: 10px 20px; /* Einheitliche Höhe und Breite */
border-radius: 6px; /* Modernere, leicht abgerundete Ecken */
font-weight: 600;
transition: all 0.2s ease-in-out;
margin: 0 5px;
}
/* 3. Farbschema: Dunkelblau & Akzente */
/* Die normalen Inhalts-Buttons (Informatik, Mathe etc.) */
nav a:not(.login):not(.register) {
background-color: #334155; /* Elegantes Schieferblau */
color: #f8fafc;
}
nav a:not(.login):not(.register):hover {
background-color: #475569;
transform: translateY(-1px);
}
/* Der Anmelden-Button (Dezent) */
nav a.login {
background-color: transparent;
color: #334155;
border: 2px solid #334155;
padding: 8px 18px; /* Ausgleich für die Border-Dicke */
}
nav a.login:hover {
background-color: #f1f5f9;
}
/* Der Registrieren-Button (Der Haupt-Akzent) */
nav a.register {
background-color: #2563eb; /* Ein klares, modernes Blau */
color: white;
box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}
nav a.register:hover {
background-color: #1d4ed8;
box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}
/* 4. Barrierefreiheit (Fokus-Zustand) */
nav a:focus {
outline: 3px solid #60a5fa;
outline-offset: 3px;
}