Redesign frontend with hero section, auth modal, and animations
- Replace header auth inputs with Bootstrap modal (Login/Register tabs) - Add hero section with dark gradient, decorative grid lines, teal glows - Floating search card with strong shadow inside hero - Add card entrance animation (fadeSlideUp) with staggered nth-child delays - Add skeleton loader shown while events are fetching - Add empty state components with emoji icon and description - Remove all alert() calls, replace with inline DOM error messages - Add CSS custom properties for consistent design tokens - Add Inter font, modern typography scale - Document input validation under OWASP A03 in README
This commit is contained in:
1 parent
ae3692697b
commit
53f9691376
5 files changed
+1378
-359
No files matched your search
+348
-52
@@ -1,55 +1,351 @@
|
||||
/* =========================
|
||||
EVENT CARD COMPONENT
|
||||
EVENT-KARTE
|
||||
Moderne Karte mit Hover-Effekt und farbigem Akzent-Streifen oben
|
||||
========================= */
|
||||
.event-card {
|
||||
background: var(--color-surface);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-card);
|
||||
padding: 1.25rem 1.25rem 1rem;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
box-shadow: var(--shadow-sm);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
/* Erscheinungsanimation beim Einblenden ins DOM */
|
||||
animation: fadeSlideUp 0.38s ease both;
|
||||
will-change: opacity, transform;
|
||||
|
||||
transition: transform 0.22s ease, box-shadow 0.22s ease;
|
||||
}
|
||||
|
||||
/* Gestaffelte Verzögerung für die ersten 9 Karten im Grid */
|
||||
#event-list .event-card:nth-child(1),
|
||||
#saved-list .event-card:nth-child(1) { animation-delay: 0.03s; }
|
||||
#event-list .event-card:nth-child(2),
|
||||
#saved-list .event-card:nth-child(2) { animation-delay: 0.07s; }
|
||||
#event-list .event-card:nth-child(3),
|
||||
#saved-list .event-card:nth-child(3) { animation-delay: 0.11s; }
|
||||
#event-list .event-card:nth-child(4),
|
||||
#saved-list .event-card:nth-child(4) { animation-delay: 0.15s; }
|
||||
#event-list .event-card:nth-child(5),
|
||||
#saved-list .event-card:nth-child(5) { animation-delay: 0.19s; }
|
||||
#event-list .event-card:nth-child(6),
|
||||
#saved-list .event-card:nth-child(6) { animation-delay: 0.23s; }
|
||||
#event-list .event-card:nth-child(7),
|
||||
#saved-list .event-card:nth-child(7) { animation-delay: 0.27s; }
|
||||
#event-list .event-card:nth-child(8),
|
||||
#saved-list .event-card:nth-child(8) { animation-delay: 0.31s; }
|
||||
#event-list .event-card:nth-child(9),
|
||||
#saved-list .event-card:nth-child(9) { animation-delay: 0.35s; }
|
||||
|
||||
/* Farbiger Akzent-Streifen oben – zeigt Kategorie-Zugehörigkeit */
|
||||
.event-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
|
||||
border-radius: var(--radius-card) var(--radius-card) 0 0;
|
||||
}
|
||||
|
||||
/* Hover-Effekt nur auf Geräten mit Hover-Unterstützung (kein unbeabsichtigtes Verhalten auf Touch) */
|
||||
@media (hover: hover) {
|
||||
.event-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
}
|
||||
|
||||
/* =========================
|
||||
KARTEN-INHALT
|
||||
========================= */
|
||||
|
||||
.event-card {
|
||||
background: white;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 10px;
|
||||
padding: 1rem;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
/* Hover only on devices that support it */
|
||||
@media (hover: hover) {
|
||||
.event-card:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
/* Title */
|
||||
.event-card__title {
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
/* Date */
|
||||
.event-card__date {
|
||||
color: gray;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Venue */
|
||||
.event-card__venue {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
FORM ELEMENT IMPROVEMENTS
|
||||
========================= */
|
||||
|
||||
button,
|
||||
input {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
button:focus,
|
||||
input:focus {
|
||||
outline: 2px solid #007bff;
|
||||
}
|
||||
/* Titel */
|
||||
.event-card__title {
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-text);
|
||||
margin: 0.375rem 0 0.5rem;
|
||||
line-height: 1.4;
|
||||
/* Lange Titel auf 2 Zeilen begrenzen */
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Datum & Uhrzeit – in Akzentfarbe für schnelle Lesbarkeit */
|
||||
.event-card__date {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-accent-dark);
|
||||
margin: 0 0 0.3rem;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
/* Veranstaltungsort */
|
||||
.event-card__venue {
|
||||
font-size: 0.8rem;
|
||||
color: var(--color-text-muted);
|
||||
margin: 0 0 1rem;
|
||||
/* Icon-ähnlicher Stil durch leichten Einzug */
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
BUTTON-GRUPPE IN KARTE
|
||||
Trennlinie separiert Inhalt von Aktionen
|
||||
========================= */
|
||||
.event-card .d-flex.gap-2 {
|
||||
border-top: 1px solid var(--color-border);
|
||||
padding-top: 0.875rem;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
EINLADUNGSFORMULAR (Inline)
|
||||
Erscheint direkt in der Karte beim Klick auf "Einladen"
|
||||
========================= */
|
||||
.invite-form {
|
||||
border-top: 1px solid var(--color-border);
|
||||
padding-top: 0.75rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.invite-form input[type="text"] {
|
||||
font-size: 0.85rem;
|
||||
border: 1.5px solid var(--color-border);
|
||||
border-radius: var(--radius-xs);
|
||||
padding: 0.4rem 0.75rem;
|
||||
height: 36px;
|
||||
width: 100%;
|
||||
font-family: inherit;
|
||||
background: var(--color-bg);
|
||||
color: var(--color-text);
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.invite-form input[type="text"]:focus {
|
||||
border-color: var(--color-accent);
|
||||
box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
|
||||
outline: none;
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.invite-form input[type="text"].is-invalid {
|
||||
border-color: var(--color-danger);
|
||||
}
|
||||
|
||||
/* =========================
|
||||
STATUSMELDUNG IN KARTE
|
||||
Temporäre Bestätigungs- oder Fehlermeldung (verschwindet nach 3s)
|
||||
========================= */
|
||||
.card-message {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
border-radius: var(--radius-xs);
|
||||
padding: 0.35rem 0.6rem;
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.03);
|
||||
}
|
||||
|
||||
/* =========================
|
||||
EINLADUNGS-KARTE (My Invitations)
|
||||
========================= */
|
||||
.invitation-card {
|
||||
background: var(--color-surface);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-card);
|
||||
padding: 1.25rem;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.invitation-card p {
|
||||
margin: 0 0 0.75rem;
|
||||
font-size: 0.95rem;
|
||||
color: var(--color-text);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.invitation-card p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
AUTH MODAL
|
||||
========================= */
|
||||
.auth-modal-content {
|
||||
border: none;
|
||||
border-radius: var(--radius-card);
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.auth-modal-header {
|
||||
background: var(--color-header);
|
||||
padding: 1.25rem 1.5rem;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.auth-modal-title {
|
||||
color: #ffffff;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.auth-modal-body {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
/* Tabs */
|
||||
.auth-tabs {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
border-bottom: 2px solid var(--color-border);
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.auth-tab-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
margin-bottom: -2px;
|
||||
padding: 0.5rem 1.25rem;
|
||||
font-family: inherit;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
color: var(--color-text-muted);
|
||||
cursor: pointer;
|
||||
transition: color var(--transition), border-color var(--transition);
|
||||
}
|
||||
|
||||
.auth-tab-btn:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.auth-tab-btn.active {
|
||||
color: var(--color-accent);
|
||||
border-bottom-color: var(--color-accent);
|
||||
}
|
||||
|
||||
/* Formularfelder im Modal */
|
||||
.auth-label {
|
||||
display: block;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: var(--color-text);
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
.auth-input {
|
||||
border: 1.5px solid var(--color-border) !important;
|
||||
border-radius: var(--radius-sm) !important;
|
||||
font-family: inherit;
|
||||
font-size: 0.9rem;
|
||||
height: 42px;
|
||||
color: var(--color-text);
|
||||
background: var(--color-bg) !important;
|
||||
transition: border-color var(--transition), box-shadow var(--transition);
|
||||
}
|
||||
|
||||
.auth-input:focus {
|
||||
border-color: var(--color-accent) !important;
|
||||
box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15) !important;
|
||||
outline: none;
|
||||
background: var(--color-surface) !important;
|
||||
}
|
||||
|
||||
.auth-error {
|
||||
font-size: 0.85rem;
|
||||
color: var(--color-danger);
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
/* Primärer Modal-Button (teal) */
|
||||
.btn-accent {
|
||||
background: var(--color-accent);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
font-family: inherit;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
height: 42px;
|
||||
cursor: pointer;
|
||||
transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
|
||||
}
|
||||
|
||||
.btn-accent:hover {
|
||||
background: var(--color-accent-dark);
|
||||
color: #fff;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
|
||||
}
|
||||
|
||||
.btn-accent:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* Registrierungs-Erfolgsmeldung */
|
||||
.register-success {
|
||||
background: rgba(16, 185, 129, 0.07);
|
||||
border: 1px solid rgba(16, 185, 129, 0.25);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 1rem;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
/* Passwort-Anzeige nach Registrierung */
|
||||
.password-display {
|
||||
background: var(--color-surface);
|
||||
border: 1.5px solid var(--color-border);
|
||||
border-radius: var(--radius-xs);
|
||||
padding: 0.6rem 1rem;
|
||||
text-align: center;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.password-display code {
|
||||
font-size: 1.375rem;
|
||||
font-weight: 700;
|
||||
color: var(--color-accent);
|
||||
letter-spacing: 0.15em;
|
||||
}
|
||||
|
||||
/* Hinweistext unter Passwort */
|
||||
.text-muted-custom {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* =========================
|
||||
GLOBALE FORMULAR-VERBESSERUNGEN
|
||||
Mindest-Klickfläche (WCAG) und Focus-Ring
|
||||
========================= */
|
||||
button {
|
||||
min-height: 36px;
|
||||
}
|
||||
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
min-height: 36px;
|
||||
}
|
||||
|
||||
/* Sichtbarer Fokus-Ring für Tastatur-Navigation (WCAG A) */
|
||||
button:focus-visible,
|
||||
input:focus-visible,
|
||||
select:focus-visible,
|
||||
a:focus-visible {
|
||||
outline: 2px solid var(--color-accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
+378
-59
@@ -1,16 +1,52 @@
|
||||
/* =========================
|
||||
RESET & BASE
|
||||
INTER FONT (Google Fonts)
|
||||
========================= */
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
|
||||
|
||||
* {
|
||||
/* =========================
|
||||
CSS CUSTOM PROPERTIES (Design Tokens)
|
||||
========================= */
|
||||
:root {
|
||||
--color-bg: #f1f5f9;
|
||||
--color-surface: #ffffff;
|
||||
--color-header: #0f172a;
|
||||
--color-accent: #0d9488;
|
||||
--color-accent-light: #14b8a6;
|
||||
--color-accent-dark: #0f766e;
|
||||
--color-text: #1e293b;
|
||||
--color-text-muted: #64748b;
|
||||
--color-border: #e2e8f0;
|
||||
--color-danger: #ef4444;
|
||||
--color-success: #10b981;
|
||||
|
||||
--radius-xs: 6px;
|
||||
--radius-sm: 10px;
|
||||
--radius-md: 14px;
|
||||
--radius-card: 18px;
|
||||
|
||||
--shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
|
||||
--shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
|
||||
--shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
|
||||
--shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
|
||||
|
||||
--transition: 0.2s ease;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
RESET & BASIS
|
||||
========================= */
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f9f9f9;
|
||||
color: #333;
|
||||
font-family: 'Inter', Arial, sans-serif;
|
||||
background-color: var(--color-bg);
|
||||
color: var(--color-text);
|
||||
line-height: 1.6;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
img {
|
||||
@@ -19,105 +55,388 @@ img {
|
||||
}
|
||||
|
||||
/* =========================
|
||||
GLOBAL LAYOUT
|
||||
KARTEN-ERSCHEINUNGS-ANIMATION
|
||||
Wird auf Event-Karten angewendet wenn sie ins DOM kommen
|
||||
========================= */
|
||||
|
||||
main {
|
||||
padding: 1rem;
|
||||
@keyframes fadeSlideUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(22px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
section {
|
||||
margin-bottom: 2rem;
|
||||
/* Shimmer-Animation für Skeleton-Karten (transform statt background-position → GPU-composited) */
|
||||
@keyframes shimmer {
|
||||
from { transform: translateX(-100%); }
|
||||
to { transform: translateX(200%); }
|
||||
}
|
||||
|
||||
/* =========================
|
||||
HEADER
|
||||
HEADER – Dunkel & Sticky
|
||||
========================= */
|
||||
|
||||
.site-header {
|
||||
background-color: #3dd0a9;
|
||||
color: #222; /* fixed contrast */
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
background-color: var(--color-header);
|
||||
padding: 0.75rem 0;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 200;
|
||||
box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 2px 16px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
/* =========================
|
||||
SEARCH SECTION
|
||||
========================= */
|
||||
|
||||
.event-search h2 {
|
||||
margin-bottom: 0.5rem;
|
||||
.site-logo {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 800;
|
||||
color: var(--color-accent-light);
|
||||
margin: 0;
|
||||
letter-spacing: -0.04em;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.search__controls {
|
||||
.site-header .nav-link {
|
||||
color: rgba(255,255,255,0.65);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
padding: 0.375rem 0.75rem;
|
||||
border-radius: var(--radius-xs);
|
||||
transition: color var(--transition), background var(--transition);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.site-header .nav-link:hover {
|
||||
color: #fff;
|
||||
background: rgba(255,255,255,0.08);
|
||||
}
|
||||
|
||||
/* Anmeldebereich – nur noch Buttons */
|
||||
#auth-area {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
EVENTS LIST
|
||||
========================= */
|
||||
|
||||
.events h2 {
|
||||
margin-bottom: 1rem;
|
||||
.header-btn-outline {
|
||||
background: transparent;
|
||||
border: 1.5px solid rgba(255,255,255,0.25);
|
||||
border-radius: var(--radius-xs);
|
||||
color: rgba(255,255,255,0.8);
|
||||
font-weight: 500;
|
||||
font-size: 0.875rem;
|
||||
padding: 0.4rem 1rem;
|
||||
cursor: pointer;
|
||||
transition: border-color var(--transition), color var(--transition);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#event-list {
|
||||
.header-btn-outline:hover {
|
||||
border-color: rgba(255,255,255,0.55);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.header-btn-accent {
|
||||
background: var(--color-accent);
|
||||
border: none;
|
||||
border-radius: var(--radius-xs);
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
font-size: 0.875rem;
|
||||
padding: 0.4rem 1rem;
|
||||
cursor: pointer;
|
||||
transition: background var(--transition);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.header-btn-accent:hover {
|
||||
background: var(--color-accent-dark);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Nutzerbereich (eingeloggt) */
|
||||
#user-area {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
}
|
||||
|
||||
#user-name {
|
||||
color: rgba(255,255,255,0.85);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
HAUPTINHALT
|
||||
========================= */
|
||||
main {
|
||||
min-height: calc(100vh - 200px);
|
||||
}
|
||||
|
||||
/* =========================
|
||||
HERO-BEREICH (Suchsektion)
|
||||
Volle Breite, dunkler Gradient-Hintergrund
|
||||
========================= */
|
||||
.hero {
|
||||
background:
|
||||
radial-gradient(ellipse 70% 80% at 15% 60%, rgba(13,148,136,0.15) 0%, transparent 60%),
|
||||
radial-gradient(ellipse 50% 60% at 85% 20%, rgba(20,184,166,0.08) 0%, transparent 55%),
|
||||
linear-gradient(155deg, #0f172a 0%, #1a2744 45%, #0c1a2c 100%);
|
||||
padding: 4.5rem 0 3.5rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Dekoratives Gitternetz-Muster im Hintergrund */
|
||||
.hero::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image:
|
||||
linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
|
||||
background-size: 40px 40px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hero__text {
|
||||
text-align: center;
|
||||
margin-bottom: 2.5rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.hero__title {
|
||||
font-size: clamp(2.25rem, 5vw, 3.5rem);
|
||||
font-weight: 800;
|
||||
color: #ffffff;
|
||||
letter-spacing: -0.04em;
|
||||
margin: 0 0 0.625rem;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
/* Teal Akzent auf dem letzten Wort */
|
||||
.hero__title span {
|
||||
color: var(--color-accent-light);
|
||||
}
|
||||
|
||||
.hero__subtitle {
|
||||
font-size: 1.05rem;
|
||||
color: rgba(255,255,255,0.5);
|
||||
margin: 0;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
/* Suchkarte – schwebend über dem Hero-Hintergrund */
|
||||
.hero .search {
|
||||
background: rgba(255,255,255,0.98);
|
||||
border: none;
|
||||
border-radius: var(--radius-card);
|
||||
padding: 1.5rem 1.75rem;
|
||||
box-shadow:
|
||||
0 30px 80px rgba(0,0,0,0.4),
|
||||
0 8px 30px rgba(0,0,0,0.25),
|
||||
0 0 0 1px rgba(255,255,255,0.1);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
SUCHFORMULAR
|
||||
========================= */
|
||||
.search__controls {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.625rem;
|
||||
}
|
||||
|
||||
.search__controls .form-control,
|
||||
.search__controls input[type="date"],
|
||||
.search__controls select {
|
||||
background: var(--color-bg);
|
||||
border: 1.5px solid var(--color-border);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--color-text);
|
||||
font-family: inherit;
|
||||
font-size: 0.9rem;
|
||||
padding: 0.55rem 0.9rem;
|
||||
height: 42px;
|
||||
transition: border-color var(--transition), box-shadow var(--transition);
|
||||
}
|
||||
|
||||
.search__controls .form-control:focus,
|
||||
.search__controls input[type="date"]:focus,
|
||||
.search__controls select:focus {
|
||||
border-color: var(--color-accent);
|
||||
box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
|
||||
outline: none;
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.search__controls label {
|
||||
color: var(--color-text-muted);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#load-events {
|
||||
background: var(--color-accent);
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
color: #fff;
|
||||
font-family: inherit;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
padding: 0 1.5rem;
|
||||
height: 42px;
|
||||
cursor: pointer;
|
||||
transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#load-events:hover {
|
||||
background: var(--color-accent-dark);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 14px rgba(13,148,136,0.35);
|
||||
}
|
||||
|
||||
#load-events:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* =========================
|
||||
SECTION (EVENTS / SAVED / INVITATIONS)
|
||||
========================= */
|
||||
.events-section {
|
||||
padding: 2.5rem 0 1rem;
|
||||
}
|
||||
|
||||
.events-section h2 {
|
||||
font-size: 1.375rem;
|
||||
font-weight: 700;
|
||||
color: var(--color-text);
|
||||
margin: 0 0 1.5rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
EVENT-GRID
|
||||
========================= */
|
||||
#event-list,
|
||||
#saved-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
#invitation-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
max-width: 640px;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
EMPTY STATE
|
||||
========================= */
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: 3.5rem 1rem;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.empty-state__icon {
|
||||
font-size: 3rem;
|
||||
margin-bottom: 1rem;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.empty-state__text {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-text);
|
||||
margin: 0 0 0.375rem;
|
||||
}
|
||||
|
||||
.empty-state__sub {
|
||||
font-size: 0.9rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
SKELETON LOADER
|
||||
Shimmer via ::after Pseudo-Element + transform (GPU-composited)
|
||||
========================= */
|
||||
.skeleton-card {
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--radius-card);
|
||||
border: 1px solid var(--color-border);
|
||||
min-height: 180px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.skeleton-card::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
transparent 0%,
|
||||
rgba(255, 255, 255, 0.65) 50%,
|
||||
transparent 100%
|
||||
);
|
||||
transform: translateX(-100%);
|
||||
animation: shimmer 1.6s ease-in-out infinite;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
FOOTER
|
||||
========================= */
|
||||
.site-footer {
|
||||
background-color: var(--color-header);
|
||||
color: rgba(255,255,255,0.35);
|
||||
font-size: 0.85rem;
|
||||
padding: 1.75rem 0;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
padding: 1rem;
|
||||
margin-top: 2rem;
|
||||
font-size: 0.9rem;
|
||||
color: #777;
|
||||
.site-footer p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
TABLET (>=768px)
|
||||
TABLET (≥768px)
|
||||
========================= */
|
||||
|
||||
@media (min-width: 768px) {
|
||||
|
||||
.search__controls {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.search__controls input,
|
||||
.search__controls select {
|
||||
flex: 1;
|
||||
min-width: 120px;
|
||||
}
|
||||
#city-input { flex: 2; min-width: 160px; }
|
||||
#date-from,
|
||||
#date-to { flex: 1; min-width: 130px; }
|
||||
#category-input { flex: 0 0 160px; }
|
||||
|
||||
.search__controls button {
|
||||
flex: 0 0 auto;
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
#event-list {
|
||||
#event-list,
|
||||
#saved-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* =========================
|
||||
DESKTOP (>=1024px)
|
||||
DESKTOP (≥1024px)
|
||||
========================= */
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
|
||||
#event-list {
|
||||
#event-list,
|
||||
#saved-list {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user