ogerl commited on
Commit
6544185
·
verified ·
1 Parent(s): af3ca37

Doku-Seite (Projekt-Dokumentation)

Browse files
Files changed (1) hide show
  1. style.css +168 -17
style.css CHANGED
@@ -1,28 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
9
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
 
 
16
  }
 
 
17
 
 
 
 
 
 
 
18
  .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  }
 
 
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
 
 
28
  }
 
1
+ /* ============================================================
2
+ Einfache Webseite — gemeinsames Stylesheet (alle Seiten)
3
+ ============================================================ */
4
+ :root {
5
+ --bg: #f7f8fa;
6
+ --surface: #ffffff;
7
+ --text: #22272e;
8
+ --muted: #5f6b7a;
9
+ --accent: #2f6fed;
10
+ --accent-dark: #1d55c9;
11
+ --accent-soft: #e8f0fe;
12
+ --border: #e3e7ee;
13
+ --radius: 12px;
14
+ --shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
15
+ }
16
+
17
+ * { box-sizing: border-box; }
18
+
19
  body {
20
+ margin: 0;
21
+ font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
22
+ line-height: 1.6;
23
+ color: var(--text);
24
+ background: var(--bg);
25
+ display: flex;
26
+ flex-direction: column;
27
+ min-height: 100vh;
28
  }
29
 
30
+ /* ---------- Header + Navigation ---------- */
31
+ .site-header {
32
+ background: var(--surface);
33
+ border-bottom: 1px solid var(--border);
34
  }
35
+ .site-header .inner {
36
+ max-width: 960px;
37
+ margin: 0 auto;
38
+ padding: 14px 20px;
39
+ display: flex;
40
+ align-items: center;
41
+ justify-content: space-between;
42
+ gap: 16px;
43
+ }
44
+ .brand {
45
+ font-weight: 700;
46
+ font-size: 1.1rem;
47
+ color: var(--text);
48
+ text-decoration: none;
49
+ }
50
+ .brand span { color: var(--accent); }
51
+
52
+ nav ul {
53
+ list-style: none;
54
+ display: flex;
55
+ gap: 4px;
56
+ margin: 0;
57
+ padding: 0;
58
+ }
59
+ nav a {
60
+ display: block;
61
+ padding: 8px 14px;
62
+ border-radius: 8px;
63
+ color: var(--muted);
64
+ text-decoration: none;
65
+ font-weight: 500;
66
+ }
67
+ nav a:hover { background: var(--bg); color: var(--text); }
68
+ nav a.active { background: var(--accent-soft); color: var(--accent-dark); }
69
+
70
+ /* ---------- Main ---------- */
71
+ main {
72
+ flex: 1;
73
+ width: 100%;
74
+ max-width: 960px;
75
+ margin: 0 auto;
76
+ padding: 40px 20px;
77
+ }
78
+
79
+ h1 { font-size: 2rem; margin: 0 0 8px; }
80
+ h2 { font-size: 1.4rem; margin: 32px 0 12px; }
81
+ .lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; }
82
 
83
+ /* ---------- Hero ---------- */
84
+ .hero {
85
+ background: linear-gradient(135deg, var(--accent-soft), var(--bg));
86
+ border: 1px solid var(--border);
87
+ border-radius: var(--radius);
88
+ padding: 40px 32px;
89
+ margin-bottom: 32px;
90
  }
91
+ .hero h1 { margin-bottom: 12px; }
92
+ .hero p { margin: 0 0 20px; color: var(--muted); max-width: 56ch; }
93
 
94
+ /* ---------- Cards ---------- */
95
+ .cards {
96
+ display: grid;
97
+ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
98
+ gap: 16px;
99
+ }
100
  .card {
101
+ background: var(--surface);
102
+ border: 1px solid var(--border);
103
+ border-radius: var(--radius);
104
+ padding: 20px;
105
+ box-shadow: var(--shadow);
106
+ display: flex;
107
+ flex-direction: column;
108
+ gap: 8px;
109
+ }
110
+ .card h3 { margin: 0; font-size: 1.05rem; }
111
+ .card p { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
112
+ .card .more {
113
+ color: var(--accent);
114
+ text-decoration: none;
115
+ font-weight: 600;
116
+ }
117
+ .card .more:hover { text-decoration: underline; }
118
+
119
+ /* ---------- Buttons ---------- */
120
+ .btn {
121
+ display: inline-block;
122
+ background: var(--accent);
123
+ color: #fff;
124
+ font-weight: 600;
125
+ padding: 10px 20px;
126
+ border-radius: 8px;
127
+ text-decoration: none;
128
+ border: none;
129
+ cursor: pointer;
130
+ font-size: 1rem;
131
+ }
132
+ .btn:hover { background: var(--accent-dark); }
133
+
134
+ /* ---------- Artikel (Blog-Beiträge) ---------- */
135
+ .article {
136
+ background: var(--surface);
137
+ border: 1px solid var(--border);
138
+ border-radius: var(--radius);
139
+ padding: 32px;
140
+ box-shadow: var(--shadow);
141
+ }
142
+ .article time { color: var(--muted); }
143
+ .article p { margin: 0 0 16px; }
144
+ .back {
145
+ display: inline-block;
146
+ margin-bottom: 20px;
147
+ color: var(--accent);
148
+ text-decoration: none;
149
+ font-weight: 600;
150
+ }
151
+ .back:hover { text-decoration: underline; }
152
+
153
+ /* ---------- Footer ---------- */
154
+ .site-footer {
155
+ background: var(--surface);
156
+ border-top: 1px solid var(--border);
157
+ margin-top: 40px;
158
+ }
159
+ .site-footer .inner {
160
+ max-width: 960px;
161
+ margin: 0 auto;
162
+ padding: 16px 20px;
163
+ display: flex;
164
+ justify-content: space-between;
165
+ gap: 12px;
166
+ flex-wrap: wrap;
167
+ color: var(--muted);
168
+ font-size: 0.9rem;
169
  }
170
+ .site-footer a { color: var(--accent); text-decoration: none; }
171
+ .site-footer a:hover { text-decoration: underline; }
172
 
173
+ /* ---------- Mobil ---------- */
174
+ @media (max-width: 600px) {
175
+ .site-header .inner { flex-direction: column; }
176
+ h1 { font-size: 1.6rem; }
177
+ .hero { padding: 28px 20px; }
178
+ .article { padding: 20px; }
179
  }