-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
196 lines (163 loc) · 3.16 KB
/
style.css
File metadata and controls
196 lines (163 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
/* Farbvariablen zentral definiert */
:root {
--primary-color: #0077b6;
--secondary-color: #023e8a;
--bg-color: #f1f1f1;
--card-bg: #ffffff;
--accent: #00b4d8;
}
.footer {
text-align: center;
color: #023e8a;
}
/* Reset für alle Elemente */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--bg-color);
color: #333;
line-height: 1.6; /* bessere Lesbarkeit */
}
/* Navigationsleiste oben */
.mainnav {
display: flex;
justify-content: center;
background-color: var(--secondary-color);
padding: 10px;
}
.mainnav a {
color: white;
text-decoration: none;
padding: 10px 20px;
margin: 0 5px;
}
.wrapper {
text-align: center;
}
h1.mainnav {
color: #ff7d00;
}
.impressum {
font-weight: bold;
font-size: 20px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.mainnav a:hover {
background-color: var(--primary-color);
border-radius: 5px;
}
header {
background: linear-gradient(to left, var(--secondary-color), var(--bg-color));
color: white;
padding: 30px 20px;
text-align: center;
position: relative;
}
.animated-title {
display: inline-block;
position: relative;
animation: moveRightLeft 4s ease-in-out infinite;
}
@keyframes moveRightLeft {
0%, 100% {
transform: translateX(0);
}
50% {
transform: translateX(50px);
}
}
header h1 {
font-size: 2.5em;
margin-bottom: 15px;
color: #ff7d00;
}
header img {
width: 100%;
max-height: 300px;
object-fit: cover;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
main {
display: flex;
flex-wrap: wrap;
gap: 20px;
padding: 30px 20px;
max-width: 1200px;
margin: auto;
}
.sidebar {
flex: 1 1 250px;
background-color: var(--card-bg);
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
animation: fadeIn 1s ease forwards;
}
.sidebar h2 {
color: var(--secondary-color);
margin-bottom: 15px;
}
.sidebar ul {
list-style: none;
}
.sidebar li {
margin-bottom: 10px;
}
.sidebar a {
text-decoration: none;
color: var(--primary-color);
transition: color 0.2s ease;
}
.sidebar a:hover {
color: var(--accent);
text-decoration: underline;
}
.content {
flex-grow: 3;
flex-shrink: 1;
flex-basis: 600px;
}
article {
background-color: var(--card-bg);
padding: 20px;
margin-bottom: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
opacity: 0;
animation: fadeIn 1s ease forwards;
animation-delay: 0.5s;
}
article:nth-child(2) {
animation-delay: 1s;
}
article h2 {
color: var(--secondary-color);
margin-bottom: 10px;
}
article p {
color: #444;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Mobile Darstellung */
@media (max-width: 768px) {
main {
flex-direction: column;
}
.content, .sidebar {
flex: 1 1 100%;
}
}