First Implementation

This commit is contained in:
caroschulte02-alt
2026-05-13 01:12:25 +02:00
parent cd1512eadf
commit 45924e6cfb
+213 -145
View File
@@ -1,5 +1,5 @@
/* ========================= /* =========================
Allgemeine Einstellungen Modernes Responsive Design
========================= */ ========================= */
* { * {
@@ -8,27 +8,29 @@
box-sizing: border-box; box-sizing: border-box;
} }
html { :root {
font-size: 16px;
scroll-behavior: smooth; /* Farbpalette */
--primary: #2563eb;
--primary-dark: #1d4ed8;
--background: #f5f7fb;
--surface: #ffffff;
--text: #1e293b;
--text-light: #64748b;
--border: #e2e8f0;
/* Schatten */
--shadow: 0 8px 25px rgba(0,0,0,0.08);
/* Rundungen */
--radius: 16px;
} }
body { body {
font-family: Arial, Helvetica, sans-serif; font-family: "Segoe UI", Arial, sans-serif;
background: var(--background);
color: var(--text);
line-height: 1.6; line-height: 1.6;
background-color: #f4f6f9;
color: #222;
}
/* =========================
Layout
========================= */
.container {
width: 90%;
max-width: 1200px;
margin: auto;
padding: 20px;
} }
/* ========================= /* =========================
@@ -36,47 +38,110 @@ body {
========================= */ ========================= */
header { header {
background: #1e3a5f; background: var(--surface);
color: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
padding: 20px 0; position: sticky;
text-align: center; top: 0;
z-index: 1000;
} }
header h1 { .header-container {
font-size: 2rem; max-width: 1200px;
margin: auto;
padding: 16px 24px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
}
/* Logo */
.logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
} }
/* ========================= /* =========================
Navigation Navigation
========================= */ ========================= */
nav {
background: #16324f;
}
nav ul { nav ul {
list-style: none; list-style: none;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
nav li { display: flex;
margin: 0; align-items: center;
gap: 18px;
} }
nav a { nav a {
display: block;
padding: 15px 20px;
color: white;
text-decoration: none; text-decoration: none;
transition: background 0.3s ease; color: var(--text);
font-weight: 500;
transition: 0.25s ease;
padding: 8px 14px;
border-radius: 10px;
} }
nav a:hover, nav a:hover,
nav a:focus { nav a:focus {
background: #28527a; background: #eff6ff;
color: var(--primary);
}
/* =========================
Suchfeld
========================= */
.search-box {
display: flex;
gap: 10px;
}
.search-box input {
padding: 10px 14px;
border: 1px solid var(--border);
border-radius: 10px;
outline: none; outline: none;
min-width: 220px;
}
.search-box input:focus {
border-color: var(--primary);
}
/* =========================
Buttons
========================= */
.btn {
padding: 10px 18px;
border-radius: 10px;
text-decoration: none;
font-weight: 600;
transition: 0.25s ease;
border: none;
cursor: pointer;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover {
background: var(--primary-dark);
}
.btn-secondary {
background: #eff6ff;
color: var(--primary);
}
.btn-secondary:hover {
background: #dbeafe;
} }
/* ========================= /* =========================
@@ -84,81 +149,69 @@ nav a:focus {
========================= */ ========================= */
main { main {
padding: 40px 0; max-width: 1200px;
margin: 50px auto;
padding: 0 24px;
} }
/* Flexbox-Layout */ /* Hero Section */
.content { .hero {
display: flex; background: linear-gradient(
gap: 20px; 135deg,
align-items: stretch; #2563eb,
flex-wrap: wrap; #3b82f6
);
color: white;
padding: 80px 40px;
border-radius: var(--radius);
text-align: center;
box-shadow: var(--shadow);
margin-bottom: 50px;
}
.hero h1 {
font-size: 3rem;
margin-bottom: 20px;
}
.hero p {
max-width: 800px;
margin: auto;
font-size: 1.1rem;
}
/* =========================
Karten / Inhalte
========================= */
.content-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
} }
.card { .card {
flex: 1 1 300px; background: var(--surface);
background: white; border-radius: var(--radius);
padding: 20px; padding: 28px;
border-radius: 10px; box-shadow: var(--shadow);
box-shadow: 0 3px 10px rgba(0,0,0,0.1); transition: 0.3s ease;
} }
/* ========================= .card:hover {
Bilder / Medien transform: translateY(-5px);
========================= */
img,
video {
max-width: 100%;
height: auto;
border-radius: 8px;
} }
/* ========================= .card h2 {
Tabellen margin-bottom: 14px;
========================= */ color: var(--primary);
.table-wrapper {
overflow-x: auto;
} }
table { .card p {
width: 100%; color: var(--text-light);
border-collapse: collapse;
background: white;
}
th,
td {
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;
} }
/* ========================= /* =========================
@@ -166,11 +219,30 @@ button:hover,
========================= */ ========================= */
footer { footer {
background: #1e3a5f; margin-top: 80px;
color: white; background: var(--surface);
text-align: center; border-top: 1px solid var(--border);
padding: 20px; }
margin-top: 40px;
.footer-container {
max-width: 1200px;
margin: auto;
padding: 24px;
display: flex;
justify-content: center;
gap: 30px;
flex-wrap: wrap;
}
footer a {
text-decoration: none;
color: var(--text-light);
transition: 0.25s ease;
}
footer a:hover {
color: var(--primary);
} }
/* ========================= /* =========================
@@ -178,8 +250,9 @@ footer {
========================= */ ========================= */
a:focus, a:focus,
button:focus { button:focus,
outline: 3px solid #ffbf47; input:focus {
outline: 3px solid #93c5fd;
outline-offset: 2px; outline-offset: 2px;
} }
@@ -187,66 +260,61 @@ button:focus {
Responsive Design Responsive Design
========================= */ ========================= */
/* Tablets */ /* Tablet */
@media (max-width: 992px) { @media (max-width: 900px) {
header h1 { .header-container {
font-size: 1.7rem; flex-direction: column;
align-items: stretch;
} }
nav ul { nav ul {
justify-content: center; justify-content: center;
flex-wrap: wrap;
} }
.content { .search-box {
flex-direction: column; justify-content: center;
}
.hero h1 {
font-size: 2.3rem;
} }
} }
/* Smartphones */ /* Smartphone */
@media (max-width: 600px) { @media (max-width: 600px) {
body { .hero {
font-size: 15px; padding: 50px 25px;
} }
header { .hero h1 {
padding: 15px 10px; font-size: 2rem;
} }
header h1 { .hero p {
font-size: 1.4rem; font-size: 1rem;
} }
nav ul { nav ul {
flex-direction: column; flex-direction: column;
gap: 10px;
} }
nav a { .search-box {
flex-direction: column;
}
.search-box input {
width: 100%;
min-width: unset;
}
.btn {
width: 100%;
text-align: center; 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;
} }
} }