First Implementation
This commit is contained in:
+34
-153
@@ -1,183 +1,64 @@
|
||||
/* ====================================
|
||||
RESET
|
||||
==================================== */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* ====================================
|
||||
BODY
|
||||
1. SCHRIFT & HINTERGRUND
|
||||
==================================== */
|
||||
body {
|
||||
/* Deine gewünschte Schriftart */
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
|
||||
/* Hintergrundfarbe der Seite */
|
||||
background-color: #eef2ff;
|
||||
|
||||
/* Standard-Textfarbe */
|
||||
color: #1f2937;
|
||||
|
||||
line-height: 1.6;
|
||||
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
#eef2ff,
|
||||
#f8fafc
|
||||
);
|
||||
|
||||
min-height: 100vh;
|
||||
|
||||
/* sorgt dafür, dass Footer unten bleibt */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* ====================================
|
||||
NAVIGATION
|
||||
2. BUTTON STYLING (Links als Buttons)
|
||||
==================================== */
|
||||
nav {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
|
||||
padding: 1.5rem;
|
||||
|
||||
background: white;
|
||||
box-shadow: 0 3px 10px rgba(0,0,0,0.08);
|
||||
}
|
||||
|
||||
nav div a {
|
||||
display: block;
|
||||
nav a {
|
||||
/* Macht aus dem Link eine Box */
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
|
||||
background: #2563eb;
|
||||
color: white;
|
||||
/* Farben */
|
||||
background-color: #2563eb;
|
||||
color: #ffffff;
|
||||
|
||||
padding: 0.9rem 1.4rem;
|
||||
|
||||
border-radius: 30px;
|
||||
/* Abstände & Form */
|
||||
padding: 0.8rem 1.5rem;
|
||||
border-radius: 8px;
|
||||
|
||||
/* Schrift im Button */
|
||||
font-weight: bold;
|
||||
font-size: 1rem;
|
||||
|
||||
transition: all 0.3s ease;
|
||||
/* Sanfter Übergang beim Drüberfahren */
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
nav div a:hover,
|
||||
nav div a:focus {
|
||||
background: #1d4ed8;
|
||||
transform: translateY(-2px);
|
||||
|
||||
outline: 3px solid #f59e0b;
|
||||
outline-offset: 2px;
|
||||
/* Hover-Effekt für die Buttons */
|
||||
nav a:hover {
|
||||
background-color: #1d4ed8;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* ====================================
|
||||
MAIN
|
||||
==================================== */
|
||||
main {
|
||||
flex: 1;
|
||||
|
||||
max-width: 900px;
|
||||
margin: 3rem auto;
|
||||
padding: 2rem;
|
||||
|
||||
background: white;
|
||||
|
||||
border-radius: 20px;
|
||||
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.08);
|
||||
}
|
||||
|
||||
/* ====================================
|
||||
ÜBERSCHRIFT
|
||||
3. FARBEN FÜR ÜBERSCHRIFTEN
|
||||
==================================== */
|
||||
h1 {
|
||||
text-align: center;
|
||||
color: #1e3a8a;
|
||||
margin-bottom: 2rem;
|
||||
|
||||
font-size: 2.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ====================================
|
||||
BILD
|
||||
==================================== */
|
||||
img {
|
||||
display: block;
|
||||
margin: 0 auto 2rem auto;
|
||||
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
/* ====================================
|
||||
TEXT
|
||||
4. EINFACHER TEXT (p)
|
||||
==================================== */
|
||||
p {
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
/* ====================================
|
||||
FOOTER
|
||||
==================================== */
|
||||
footer {
|
||||
background: #1e293b;
|
||||
|
||||
padding: 1.5rem;
|
||||
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 2rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
footer a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
footer a:hover,
|
||||
footer a:focus {
|
||||
text-decoration: underline;
|
||||
|
||||
outline: 2px solid white;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* ====================================
|
||||
RESPONSIVE TABLET
|
||||
==================================== */
|
||||
@media (max-width: 768px) {
|
||||
nav {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
main {
|
||||
margin: 1rem;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* ====================================
|
||||
RESPONSIVE HANDY
|
||||
==================================== */
|
||||
@media (max-width: 480px) {
|
||||
body {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
nav div a {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
footer {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
color: #374151;
|
||||
max-width: 800px;
|
||||
margin: 1rem auto;
|
||||
}
|
||||
Reference in New Issue
Block a user