Social_Cooking/css/my_profil.css
viiivo c3bea2817c feat: Enhance profile page with tab navigation and event management features
Fix Event anmeldung und abmeldung Button.

12h vor Event beginn wird Adresse angezeigt.
2026-04-10 18:05:46 +02:00

381 lines
7.6 KiB
CSS

.profile-page {
/* Reserve a large safe zone below sticky nav so title/actions are never covered. */
margin-top: 0;
padding-top: 6.5rem;
margin-bottom: var(--space-8);
}
/* Kopfbereich mit Titel und Logout-Aktion. */
.profile-hero {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: var(--space-4);
margin-bottom: var(--space-5);
}
.profile-kicker {
margin: 0;
color: var(--olive);
font-size: 1rem;
font-weight: 500;
letter-spacing: var(--ls-label);
}
#profile-headline {
margin: 0.4rem 0;
color: var(--brown);
font-size: clamp(2rem, 4.4vw, 2.8rem);
}
.profile-subline {
margin: 0;
max-width: 48rem;
}
.profile-logout {
border: none;
cursor: pointer;
}
.profile-grid {
display: grid;
grid-template-columns: 1fr;
gap: var(--space-4);
}
.profile-tabs {
display: inline-flex;
flex-wrap: wrap;
gap: var(--space-2);
}
.profile-tab {
border: 2px solid var(--olive);
border-radius: var(--radius-md);
background: var(--butter);
color: var(--black);
padding: 0.45rem 1rem;
min-height: 2.5rem;
font-family: "Jost", sans-serif;
font-size: 1rem;
font-weight: 500;
letter-spacing: var(--ls-ui);
cursor: pointer;
transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.profile-tab:hover,
.profile-tab:focus-visible {
background: #faf8e8;
}
.profile-tab.is-active {
border-color: transparent;
background: var(--olive);
color: var(--white);
}
/* Konsistentes Karten-Layout fuer alle Profilsektionen. */
.profile-panel {
background: rgba(255, 255, 255, 0.88);
border-radius: var(--radius-lg);
box-shadow: 0 3px 12px rgba(102, 52, 13, 0.1);
padding: var(--space-5);
}
.panel-head {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-3);
}
.panel-title {
margin: 0;
color: var(--brown);
font-size: 1.8rem;
}
.panel-count {
min-width: 2rem;
padding: 0.1rem 0.65rem;
border-radius: var(--radius-pill);
background: var(--olive-light);
color: var(--black);
font-size: 0.95rem;
font-weight: 600;
text-align: center;
}
.profile-card-list {
display: grid;
gap: var(--space-2);
}
/* Einzelne Eventkarte fuer "Meine Events" und "Meine Anmeldungen". */
.profile-event-card {
border: 1px solid rgba(107, 107, 5, 0.25);
border-radius: var(--radius-md);
padding: var(--space-3);
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--space-3);
}
.profile-event-card-clickable {
cursor: pointer;
transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.profile-event-card-clickable:hover {
box-shadow: 0 6px 16px rgba(102, 52, 13, 0.14);
transform: translateY(-1px);
}
.profile-event-title {
margin: 0;
color: var(--black);
font-family: "Jost", sans-serif;
font-size: 1.25rem;
font-weight: 600;
}
.profile-event-meta {
margin: 0.3rem 0 0;
font-size: 0.95rem;
color: var(--olive);
}
.profile-event-address-block {
margin-top: 0.55rem;
padding: 0.6rem 0.75rem;
border-radius: var(--radius-sm);
border-left: 4px solid var(--tomato);
background: rgba(232, 237, 209, 0.65);
}
.profile-event-address-label {
margin: 0;
color: var(--olive);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: var(--ls-label);
text-transform: uppercase;
}
.profile-event-address {
margin: 0.2rem 0 0;
font-size: 0.95rem;
color: var(--black);
font-weight: 600;
line-height: 1.35;
}
.profile-event-link {
flex-shrink: 0;
color: var(--blue);
font-weight: 500;
text-decoration: none;
}
.profile-event-link:hover,
.profile-event-link:focus-visible {
text-decoration: underline;
text-underline-offset: 3px;
}
.profile-event-actions {
display: flex;
align-items: center;
gap: var(--space-2);
}
.profile-unregister-btn {
border: none;
border-radius: var(--radius-md);
background: var(--tomato);
color: var(--butter-light);
padding: 0.45rem 0.95rem;
font-family: "Jost", sans-serif;
font-size: 0.95rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-cancel-btn {
border: none;
border-radius: var(--radius-md);
background: var(--tomato);
color: var(--butter-light);
padding: 0.45rem 0.95rem;
font-family: "Jost", sans-serif;
font-size: 0.95rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-cancel-btn:hover,
.profile-cancel-btn:focus-visible {
background: var(--tomato-dark);
transform: translateY(-1px);
box-shadow: 0 4px 10px rgba(188, 74, 52, 0.28);
}
.profile-cancel-btn:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(188, 74, 52, 0.25);
}
.profile-unregister-btn:hover,
.profile-unregister-btn:focus-visible {
background: var(--tomato-dark);
transform: translateY(-1px);
box-shadow: 0 4px 10px rgba(188, 74, 52, 0.28);
}
.profile-unregister-btn:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(188, 74, 52, 0.25);
}
.profile-empty {
margin: 0;
color: var(--black);
}
.profile-empty-state {
text-align: center;
padding: 2.4rem 1.3rem;
border: 2px solid var(--olive-light);
border-radius: var(--radius-lg);
background: rgba(255, 255, 255, 0.92);
box-shadow: 0 3px 12px rgba(102, 52, 13, 0.08);
}
.profile-empty-kicker {
margin: 0 0 0.5rem;
color: var(--olive);
font-size: 0.8rem;
font-weight: 600;
letter-spacing: var(--ls-label);
text-transform: uppercase;
}
.profile-empty-state h3 {
margin: 0;
font-size: 1.5rem;
color: var(--brown);
}
.profile-empty-state p {
margin: 0.65rem auto 1rem;
max-width: 36rem;
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-3);
}
.form-group {
margin-bottom: var(--space-3);
}
.form-group label {
display: block;
margin-bottom: 0.35rem;
font-size: 0.95rem;
font-weight: 500;
}
.form-group input {
width: 100%;
border: 1px solid #d8d8d8;
border-radius: var(--radius-sm);
background: var(--white);
padding: 0.7rem 0.85rem;
font-size: 1rem;
}
.form-group input:focus {
outline: 2px solid rgba(107, 107, 5, 0.35);
outline-offset: 1px;
}
.input-hint {
margin: 0.4rem 0 0;
font-size: 0.9rem;
color: #535353;
}
.input-error {
margin-top: 0.35rem;
color: var(--error);
font-size: 0.85rem;
display: none;
}
.form-group.has-error .input-error {
display: block;
}
.form-group.has-error input {
border-color: var(--error);
}
.profile-feedback {
margin: 0.75rem 0 0;
font-size: 0.95rem;
color: var(--olive);
min-height: 1.3rem;
}
.profile-cta-row {
display: flex;
gap: var(--space-2);
margin-top: var(--space-3);
}
.profile-button-secondary {
background: var(--tomato);
}
.profile-button-secondary:hover {
background: var(--tomato-dark);
}
@media (max-width: 48rem) {
.profile-page {
padding-top: 5.5rem;
}
.profile-hero {
flex-direction: column;
align-items: stretch;
}
.profile-logout {
width: max-content;
}
.form-grid {
grid-template-columns: 1fr;
}
.profile-event-card {
flex-direction: column;
align-items: flex-start;
}
.profile-event-actions {
width: 100%;
justify-content: flex-start;
flex-wrap: wrap;
}
}