First Implementation
This commit is contained in:
+236
-47
@@ -1,63 +1,252 @@
|
|||||||
/* ====================================
|
/* =========================
|
||||||
PUNKT 3: NAVIGATIONSELEMENTE (UPDATE LOGO)
|
Allgemeine Einstellungen
|
||||||
==================================== */
|
========================= */
|
||||||
|
|
||||||
/* 1. Header & Footer Farbabstimmung */
|
* {
|
||||||
nav, footer {
|
margin: 0;
|
||||||
background-color: #1e293b; /* Das gewünschte dunkle Navy-Blau */
|
padding: 0;
|
||||||
color: #ffffff;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 2. Das Logo (Spezial-Button) */
|
html {
|
||||||
nav a.logo {
|
font-size: 16px;
|
||||||
display: inline-flex;
|
scroll-behavior: smooth;
|
||||||
align-items: center;
|
|
||||||
background-color: transparent; /* Kein Hintergrund für das Logo */
|
|
||||||
padding: 5px;
|
|
||||||
margin-right: 20px; /* Mehr Platz zu den anderen Buttons */
|
|
||||||
transition: transform 0.2s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Logo-Bild vergrößern */
|
body {
|
||||||
nav a.logo img {
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
height: 50px; /* Hier die Größe steuern (vorher meist ca. 30px) */
|
line-height: 1.6;
|
||||||
width: auto;
|
background-color: #f4f6f9;
|
||||||
|
color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Layout
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width: 90%;
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: auto;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Header
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
header {
|
||||||
|
background: #1e3a5f;
|
||||||
|
color: white;
|
||||||
|
padding: 20px 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Navigation
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
nav {
|
||||||
|
background: #16324f;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
list-style: none;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav li {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
padding: 15px 20px;
|
||||||
|
color: white;
|
||||||
nav a.logo:hover {
|
|
||||||
transform: scale(1.05); /* Dezentes Vergrößern beim Hover */
|
|
||||||
background-color: transparent; /* Verhindert, dass der Hover-Effekt der normalen Buttons greift */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 3. Die restlichen Navigations-Buttons */
|
|
||||||
nav a:not(.logo) {
|
|
||||||
display: inline-block;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: #3b82f6; /* Dein blaues Design */
|
transition: background 0.3s ease;
|
||||||
color: #ffffff;
|
}
|
||||||
padding: 10px 18px;
|
|
||||||
|
nav a:hover,
|
||||||
|
nav a:focus {
|
||||||
|
background: #28527a;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Hauptbereich
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
main {
|
||||||
|
padding: 40px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Flexbox-Layout */
|
||||||
|
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
gap: 20px;
|
||||||
|
align-items: stretch;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
flex: 1 1 300px;
|
||||||
|
background: white;
|
||||||
|
padding: 20px;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Bilder / Medien
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
img,
|
||||||
|
video {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
font-family: sans-serif;
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 0.95rem;
|
|
||||||
margin: 0 5px;
|
|
||||||
transition: all 0.2s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nav a:not(.logo):hover {
|
/* =========================
|
||||||
background-color: #60a5fa;
|
Tabellen
|
||||||
transform: translateY(-2px);
|
========================= */
|
||||||
|
|
||||||
|
.table-wrapper {
|
||||||
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 4. Spezial-Buttons (Anmelden & Registrieren) */
|
table {
|
||||||
nav a.login {
|
width: 100%;
|
||||||
background-color: transparent !important;
|
border-collapse: collapse;
|
||||||
border: 2px solid #ffffff;
|
background: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav a.register {
|
th,
|
||||||
background-color: #ffffff !important;
|
td {
|
||||||
color: #1e293b !important;
|
padding: 12px;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
background-color: #1e3a5f;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Buttons
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
button,
|
||||||
|
.btn {
|
||||||
|
background-color: #1e3a5f;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 18px;
|
||||||
|
border-radius: 6px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover,
|
||||||
|
.btn:hover {
|
||||||
|
background-color: #28527a;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Footer
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
footer {
|
||||||
|
background: #1e3a5f;
|
||||||
|
color: white;
|
||||||
|
text-align: center;
|
||||||
|
padding: 20px;
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Accessibility
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
a:focus,
|
||||||
|
button:focus {
|
||||||
|
outline: 3px solid #ffbf47;
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Responsive Design
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
/* Tablets */
|
||||||
|
|
||||||
|
@media (max-width: 992px) {
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
font-size: 1.7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Smartphones */
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
padding: 15px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
font-size: 1.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
text-align: center;
|
||||||
|
border-top: 1px solid rgba(255,255,255,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width: 95%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Große Bildschirme */
|
||||||
|
|
||||||
|
@media (min-width: 1400px) {
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
max-width: 1400px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user