First Implementation
This commit is contained in:
+95
-234
@@ -1,6 +1,3 @@
|
|||||||
/* =========================
|
|
||||||
Modernes Responsive Design
|
|
||||||
========================= */
|
|
||||||
|
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -8,27 +5,23 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
/* Farben */
|
||||||
|
|
||||||
/* Farbpalette */
|
:root {
|
||||||
--primary: #2563eb;
|
--primary: #2563eb;
|
||||||
--primary-dark: #1d4ed8;
|
--primary-dark: #1d4ed8;
|
||||||
--background: #f5f7fb;
|
--background: #f4f7fb;
|
||||||
--surface: #ffffff;
|
--surface: #ffffff;
|
||||||
--text: #1e293b;
|
--text: #1e293b;
|
||||||
--text-light: #64748b;
|
--text-light: #64748b;
|
||||||
--border: #e2e8f0;
|
--border: #dbe3ec;
|
||||||
|
|
||||||
/* Schatten */
|
|
||||||
--shadow: 0 8px 25px rgba(0,0,0,0.08);
|
|
||||||
|
|
||||||
/* Rundungen */
|
|
||||||
--radius: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Grundlayout */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Segoe UI", Arial, sans-serif;
|
font-family: "Segoe UI", Arial, sans-serif;
|
||||||
background: var(--background);
|
background-color: var(--background);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
@@ -38,180 +31,136 @@ body {
|
|||||||
========================= */
|
========================= */
|
||||||
|
|
||||||
header {
|
header {
|
||||||
background: var(--surface);
|
background-color: var(--surface);
|
||||||
|
padding: 18px 40px;
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
z-index: 1000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-container {
|
|
||||||
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 ul {
|
nav {
|
||||||
list-style: none;
|
background-color: var(--surface);
|
||||||
|
padding: 15px 40px;
|
||||||
display: flex;
|
border-bottom: 1px solid var(--border);
|
||||||
align-items: center;
|
|
||||||
gap: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nav a {
|
nav a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
transition: 0.25s ease;
|
margin-right: 20px;
|
||||||
padding: 8px 14px;
|
padding: 10px 16px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
transition: 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav a:hover,
|
nav a:hover {
|
||||||
nav a:focus {
|
background-color: #e8f0ff;
|
||||||
background: #eff6ff;
|
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* =========================
|
/* =========================
|
||||||
Suchfeld
|
Überschriften
|
||||||
========================= */
|
========================= */
|
||||||
|
|
||||||
.search-box {
|
h1 {
|
||||||
display: flex;
|
font-size: 3rem;
|
||||||
gap: 10px;
|
margin-bottom: 20px;
|
||||||
|
color: var(--primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-box input {
|
h2 {
|
||||||
padding: 10px 14px;
|
font-size: 1.8rem;
|
||||||
border: 1px solid var(--border);
|
margin-bottom: 15px;
|
||||||
border-radius: 10px;
|
color: var(--primary-dark);
|
||||||
outline: none;
|
|
||||||
min-width: 220px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-box input:focus {
|
h3 {
|
||||||
border-color: var(--primary);
|
margin-bottom: 10px;
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Hauptinhalt
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
main {
|
||||||
|
background-color: var(--surface);
|
||||||
|
margin: 40px;
|
||||||
|
padding: 40px;
|
||||||
|
border-radius: 18px;
|
||||||
|
box-shadow: 0 10px 30px rgba(0,0,0,0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Texte */
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-bottom: 18px;
|
||||||
|
color: var(--text-light);
|
||||||
|
font-size: 1.05rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
Links
|
||||||
|
========================= */
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: var(--primary);
|
||||||
|
transition: 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: var(--primary-dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* =========================
|
/* =========================
|
||||||
Buttons
|
Buttons
|
||||||
========================= */
|
========================= */
|
||||||
|
|
||||||
.btn {
|
button {
|
||||||
padding: 10px 18px;
|
background-color: var(--primary);
|
||||||
border-radius: 10px;
|
color: white;
|
||||||
text-decoration: none;
|
|
||||||
font-weight: 600;
|
|
||||||
transition: 0.25s ease;
|
|
||||||
border: none;
|
border: none;
|
||||||
|
padding: 12px 22px;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 1rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary {
|
button:hover {
|
||||||
background: var(--primary);
|
background-color: var(--primary-dark);
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-primary:hover {
|
|
||||||
background: var(--primary-dark);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-secondary {
|
|
||||||
background: #eff6ff;
|
|
||||||
color: var(--primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-secondary:hover {
|
|
||||||
background: #dbeafe;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* =========================
|
/* =========================
|
||||||
Hauptbereich
|
Suchfeld
|
||||||
========================= */
|
========================= */
|
||||||
|
|
||||||
main {
|
input[type="text"],
|
||||||
max-width: 1200px;
|
input[type="search"] {
|
||||||
margin: 50px auto;
|
|
||||||
padding: 0 24px;
|
padding: 10px 14px;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 1rem;
|
||||||
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hero Section */
|
input:focus {
|
||||||
|
outline: none;
|
||||||
.hero {
|
border-color: var(--primary);
|
||||||
background: linear-gradient(
|
|
||||||
135deg,
|
|
||||||
#2563eb,
|
|
||||||
#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
|
Bilder
|
||||||
========================= */
|
========================= */
|
||||||
|
|
||||||
.content-grid {
|
img {
|
||||||
display: grid;
|
border-radius: 14px;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
box-shadow: 0 5px 20px rgba(0,0,0,0.08);
|
||||||
gap: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
background: var(--surface);
|
|
||||||
border-radius: var(--radius);
|
|
||||||
padding: 28px;
|
|
||||||
box-shadow: var(--shadow);
|
|
||||||
transition: 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card:hover {
|
|
||||||
transform: translateY(-5px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.card h2 {
|
|
||||||
margin-bottom: 14px;
|
|
||||||
color: var(--primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.card p {
|
|
||||||
color: var(--text-light);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* =========================
|
/* =========================
|
||||||
@@ -219,102 +168,14 @@ main {
|
|||||||
========================= */
|
========================= */
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
margin-top: 80px;
|
background-color: var(--surface);
|
||||||
background: var(--surface);
|
|
||||||
border-top: 1px solid var(--border);
|
border-top: 1px solid var(--border);
|
||||||
}
|
padding: 25px;
|
||||||
|
text-align: center;
|
||||||
.footer-container {
|
margin-top: 40px;
|
||||||
max-width: 1200px;
|
|
||||||
margin: auto;
|
|
||||||
padding: 24px;
|
|
||||||
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 30px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
footer a {
|
footer a {
|
||||||
|
margin: 0 10px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--text-light);
|
|
||||||
transition: 0.25s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer a:hover {
|
|
||||||
color: var(--primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* =========================
|
|
||||||
Accessibility
|
|
||||||
========================= */
|
|
||||||
|
|
||||||
a:focus,
|
|
||||||
button:focus,
|
|
||||||
input:focus {
|
|
||||||
outline: 3px solid #93c5fd;
|
|
||||||
outline-offset: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* =========================
|
|
||||||
Responsive Design
|
|
||||||
========================= */
|
|
||||||
|
|
||||||
/* Tablet */
|
|
||||||
|
|
||||||
@media (max-width: 900px) {
|
|
||||||
|
|
||||||
.header-container {
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: stretch;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav ul {
|
|
||||||
justify-content: center;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-box {
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero h1 {
|
|
||||||
font-size: 2.3rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Smartphone */
|
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
|
||||||
|
|
||||||
.hero {
|
|
||||||
padding: 50px 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero h1 {
|
|
||||||
font-size: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero p {
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav ul {
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-box {
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-box input {
|
|
||||||
width: 100%;
|
|
||||||
min-width: unset;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn {
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user