Clean up CSS to use global stylesheet, fix carousel, add impressum page and footer to all pages, update login styles

This commit is contained in:
Estelle Köhler committed 2026-04-03 16:54:16 +02:00
1 parent a456caa24a
commit 6d3f699ea4
10 files changed
+534 -592

No files matched your search

+136 -152
View File
@@ -1,97 +1,37 @@
/* Grundlegende Resets */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* ===========================================
LOGIN_SIGNUP.CSS — Styles for login & signup
Global styles (reset, variables, body, nav,
typography) are in stylesheet_global.css
=========================================== */
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Header Styles */
.header {
background-color: white;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
padding: 15px 30px;
display: flex;
justify-content: space-between;
align-items: center;
}
/* --- Page layout --- */
.header-logo {
font-size: 24px;
font-weight: bold;
color: #0084ff;
text-decoration: none;
letter-spacing: 1px;
}
.header-buttons {
display: flex;
gap: 15px;
align-items: center;
}
.header-btn {
padding: 10px 20px;
border: none;
border-radius: 4px;
font-size: 14px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
display: inline-block;
}
.header-btn-secondary {
background-color: transparent;
color: #0084ff;
border: 2px solid #0084ff;
}
.header-btn-secondary:hover {
background-color: #0084ff;
color: white;
}
.header-btn-primary {
background-color: #0084ff;
color: white;
}
.header-btn-primary:hover {
background-color: #0073e6;
}
/* Main content wrapper */
.main-content {
display: flex;
justify-content: center;
align-items: center;
flex: 1;
padding: 20px;
padding: var(--space-4);
}
.container {
background-color: white;
border-radius: 8px;
background-color: var(--white);
border-radius: var(--radius-lg);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
max-width: 1000px;
width: 100%;
display: flex;
gap: 20px;
gap: var(--space-4);
overflow: hidden;
}
/* --- Image section --- */
.image-section {
flex: 1;
background-color: #e8f4f8;
background-color: var(--butter-light);
display: flex;
align-items: center;
justify-content: center;
@@ -104,6 +44,9 @@ body {
object-fit: cover;
}
/* --- Form section --- */
.form-section {
flex: 1;
padding: 40px;
@@ -112,112 +55,130 @@ body {
justify-content: center;
}
/* Formularelemente */
h1 {
color: #333;
margin-bottom: 20px;
color: var(--black);
margin-bottom: var(--space-4);
text-align: center;
}
.info-box {
background-color: #e8f4f8;
border-left: 4px solid #0084ff;
padding: 15px;
margin-bottom: 30px;
border-radius: 4px;
font-size: 14px;
color: #333;
line-height: 1.5;
}
/* --- Form elements --- */
.form-group {
margin-bottom: 20px;
margin-bottom: var(--space-4);
}
label {
display: block;
margin-bottom: 6px;
color: #333;
font-weight: bold;
font-size: 14px;
margin-bottom: var(--space-1);
color: var(--black);
font-weight: 600;
font-size: 0.9rem;
}
input[type="text"],
input[type="email"],
input[type="password"] {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
padding: var(--space-2);
border: 2px solid var(--olive-light);
border-radius: var(--radius-md);
font-size: 0.9rem;
font-family: var(--font-main);
transition: border-color 0.3s ease;
font-family: Arial, sans-serif;
background: var(--white);
color: var(--black);
}
input:focus {
outline: none;
border-color: #0084ff;
box-shadow: 0 0 5px rgba(0, 132, 255, 0.3);
border-color: var(--olive);
box-shadow: 0 0 5px rgba(107, 107, 5, 0.25);
}
button {
button[type="submit"] {
width: 100%;
padding: 12px;
background-color: #0084ff;
color: white;
padding: var(--space-2);
background-color: var(--olive);
color: var(--white);
border: none;
border-radius: 4px;
font-size: 16px;
font-weight: bold;
border-radius: var(--radius-pill);
font-size: 1rem;
font-weight: 700;
font-family: var(--font-main);
cursor: pointer;
transition: background-color 0.3s ease;
margin-top: 10px;
transition: background-color 0.3s ease, transform 0.2s ease;
margin-top: var(--space-2);
}
button:hover {
background-color: #0073e6;
button[type="submit"]:hover {
background-color: var(--olive-dark);
transform: translateY(-1px);
}
button:active {
background-color: #0063cc;
button[type="submit"]:active {
background-color: var(--olive-dark);
transform: translateY(0);
}
/* Hilfstexte & Fehler */
.signup-hint, .login-hint {
/* --- Info box --- */
.info-box {
background-color: var(--butter-light);
border-left: 4px solid var(--olive);
padding: var(--space-3);
margin-bottom: var(--space-6);
border-radius: 4px;
font-size: 0.9rem;
color: var(--black);
line-height: 1.5;
}
/* --- Hints & errors --- */
.signup-hint,
.login-hint {
text-align: center;
margin-top: 20px;
color: #666;
font-size: 14px;
margin-top: var(--space-4);
color: var(--black);
font-size: 0.9rem;
}
.signup-hint a, .login-hint a {
color: #0084ff;
.signup-hint a,
.login-hint a {
color: var(--olive);
text-decoration: none;
font-weight: bold;
font-weight: 600;
transition: color 0.3s ease;
}
.signup-hint a:hover, .login-hint a:hover {
.signup-hint a:hover,
.login-hint a:hover {
text-decoration: underline;
color: var(--olive-dark);
}
.error-message {
color: #d32f2f;
font-size: 13px;
color: var(--tomato);
font-size: 0.8rem;
margin-top: 5px;
display: none;
}
.form-group.has-error input {
border-color: #d32f2f;
box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
border-color: var(--tomato);
box-shadow: 0 0 5px rgba(212, 75, 36, 0.3);
}
.form-group.has-error .error-message {
display: block;
}
/* Modal / Popup Styles */
/* --- Modal / Popup --- */
.modal {
display: none;
position: fixed;
@@ -242,9 +203,9 @@ button:active {
}
.modal-content {
background-color: white;
background-color: var(--white);
padding: 40px;
border-radius: 8px;
border-radius: var(--radius-lg);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
max-width: 500px;
width: 90%;
@@ -259,12 +220,12 @@ button:active {
.modal-header {
position: relative;
margin-bottom: 20px;
margin-bottom: var(--space-4);
}
.modal-header h2 {
color: #0084ff;
font-size: 24px;
color: var(--olive);
font-size: 1.5rem;
}
.close-btn {
@@ -272,7 +233,7 @@ button:active {
right: 0;
top: 0;
font-size: 28px;
color: #999;
color: var(--black);
background: none;
border: none;
cursor: pointer;
@@ -284,19 +245,57 @@ button:active {
}
.modal-body {
color: #333;
font-size: 16px;
color: var(--black);
font-size: 1rem;
line-height: 1.6;
margin-bottom: 30px;
margin-bottom: var(--space-6);
}
.modal-footer {
display: flex;
gap: 10px;
gap: var(--space-2);
justify-content: center;
}
/* Responsive Anpassungen */
.btn-primary {
padding: var(--space-2) var(--space-5);
background-color: var(--olive);
color: var(--white);
border: none;
border-radius: var(--radius-pill);
font-size: 1rem;
font-weight: 700;
font-family: var(--font-main);
cursor: pointer;
transition: background-color 0.3s ease;
}
.btn-primary:hover {
background-color: var(--olive-dark);
}
/* --- Footer --- */
.footer {
display: flex;
justify-content: center;
align-items: center;
padding: var(--space-3) var(--space-5);
border: none;
margin-top: 40px;
}
.footer__link {
color: var(--black);
text-decoration: underline;
font-size: 0.8rem;
font-weight: 400;
}
/* --- Responsive --- */
@media (max-width: 768px) {
.container {
flex-direction: column;
@@ -305,19 +304,4 @@ button:active {
.image-section {
min-height: 300px;
}
.header {
flex-direction: column;
gap: 15px;
}
.header-buttons {
width: 100%;
flex-direction: column;
}
.header-btn {
width: 100%;
text-align: center;
}
}