First Implementation
This commit is contained in:
+61
-46
@@ -1,64 +1,79 @@
|
|||||||
/* ====================================
|
/* 1. SCHRIFTART & HINTERGRUND */
|
||||||
1. SCHRIFT & HINTERGRUND
|
|
||||||
==================================== */
|
|
||||||
body {
|
body {
|
||||||
/* Deine gewünschte Schriftart */
|
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
background-color: #f0f4f8; /* Heller, sauberer Hintergrund */
|
||||||
/* Hintergrundfarbe der Seite */
|
color: #333;
|
||||||
background-color: #eef2ff;
|
|
||||||
|
|
||||||
/* Standard-Textfarbe */
|
|
||||||
color: #1f2937;
|
|
||||||
|
|
||||||
line-height: 1.6;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 20px;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ====================================
|
/* 2. BUTTONS (in der Nav) */
|
||||||
2. BUTTON STYLING (Links als Buttons)
|
|
||||||
==================================== */
|
|
||||||
nav a {
|
nav a {
|
||||||
/* Macht aus dem Link eine Box */
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
background-color: #2563eb; /* Blau */
|
||||||
/* Farben */
|
color: white;
|
||||||
background-color: #2563eb;
|
padding: 10px 20px;
|
||||||
color: #ffffff;
|
border-radius: 5px;
|
||||||
|
|
||||||
/* Abstände & Form */
|
|
||||||
padding: 0.8rem 1.5rem;
|
|
||||||
border-radius: 8px;
|
|
||||||
|
|
||||||
/* Schrift im Button */
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 1rem;
|
transition: background 0.3s;
|
||||||
|
|
||||||
/* Sanfter Übergang beim Drüberfahren */
|
|
||||||
transition: background-color 0.3s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hover-Effekt für die Buttons */
|
|
||||||
nav a:hover {
|
nav a:hover {
|
||||||
background-color: #1d4ed8;
|
background-color: #1d4ed8; /* Dunkleres Blau bei Hover */
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ====================================
|
/* 3. RESPONSIVE NAVIGATION */
|
||||||
3. FARBEN FÜR ÜBERSCHRIFTEN
|
nav {
|
||||||
==================================== */
|
background-color: white;
|
||||||
h1 {
|
padding: 1rem;
|
||||||
color: #1e3a8a;
|
display: flex;
|
||||||
text-align: center;
|
justify-content: center;
|
||||||
|
gap: 15px;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ====================================
|
@media (max-width: 600px) {
|
||||||
4. EINFACHER TEXT (p)
|
nav {
|
||||||
==================================== */
|
flex-direction: column; /* Stapelt Buttons auf Handys */
|
||||||
p {
|
align-items: center;
|
||||||
color: #374151;
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
width: 80%; /* Buttons werden auf Handy breiter */
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 4. CONTENT BEREICH (Main) */
|
||||||
|
main {
|
||||||
|
flex: 1;
|
||||||
|
padding: 20px;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: 1rem auto;
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 5. RESPONSIVE FOOTER */
|
||||||
|
footer {
|
||||||
|
background-color: #1e293b; /* Dunkles Grau/Blau */
|
||||||
|
color: white;
|
||||||
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer a {
|
||||||
|
color: #fbbf24; /* Akzentfarbe für Links im Footer */
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
footer {
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user