/* ============================================
   DriveLens — Professional Design System
   ============================================ */

:root {
    --color-bg: #060708;
    --color-bg-elevated: #0e1014;
    --color-surface: rgba(16, 18, 22, 0.72);
    --color-surface-hover: rgba(22, 25, 31, 0.88);
    --color-border: rgba(255, 255, 255, 0.07);
    --color-border-strong: rgba(255, 255, 255, 0.12);
    --color-accent: #e11d2e;
    --color-accent-hover: #c41828;
    --color-accent-soft: rgba(225, 29, 46, 0.12);
    --color-accent-glow: rgba(225, 29, 46, 0.35);
    --color-text: #f0f2f5;
    --color-text-secondary: #9aa3b2;
    --color-text-muted: #6b7380;
    --color-success: #22c55e;
    --color-info: #3b82f6;
    --color-warning: #f59e0b;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Oswald', 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
    --header-height: 72px;
    --container-max: 1280px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(225, 29, 46, 0.12), transparent 60%),
        url('/assets/images/background.jpg') center / cover no-repeat;
    opacity: 0.18;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 7, 8, 0.4) 100%);
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-transform: uppercase;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    margin-bottom: 32px;
    color: var(--color-text);
}

.section-title-left {
    text-align: left;
}

/* ---- Layout ---- */
main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: calc(var(--header-height) + 24px) 24px 48px;
    min-height: calc(100vh - 200px);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Site navigation header ---- */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(6, 7, 8, 0.82);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    will-change: transform;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), background var(--transition);
}

header.site-header.header-hidden {
    transform: translateY(calc(-100% - 1px));
}

header.site-header.header-compact .header-container {
    padding-top: 10px;
    padding-bottom: 10px;
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: padding var(--transition);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    transition: color var(--transition);
}

.site-logo:hover {
    color: var(--color-accent);
}

.site-logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-accent), #991b1b);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    box-shadow: 0 4px 12px var(--color-accent-glow);
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links > a {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-links > a:hover,
.nav-links > a.active {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-links > a.active {
    color: var(--color-accent);
}

.btn-fotograf-werden {
    background: var(--color-accent-soft) !important;
    color: var(--color-accent) !important;
    border: 1px solid rgba(225, 29, 46, 0.25);
}

.btn-fotograf-werden:hover {
    background: rgba(225, 29, 46, 0.22) !important;
    transform: translateY(-1px);
}

/* Dropdowns */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
}

.dropdown-btn {
    background: transparent;
    color: var(--color-text-secondary);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-btn:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
}

.dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    min-width: 220px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    border: 1px solid var(--color-border-strong);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.user-menu.active .user-menu-panel,
.notif-menu.active .notif-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: var(--color-text);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    transition: all var(--transition);
}

.dropdown-content a i {
    width: 16px;
    color: var(--color-text-muted);
}

.dropdown-content a:hover {
    background: var(--color-accent-soft);
    padding-left: 20px;
}

.dropdown-content a:hover i {
    color: var(--color-accent);
}

.dropdown-content hr {
    margin: 4px 0;
    border: none;
    border-top: 1px solid var(--color-border);
}

/* User menu */
.user-menu-trigger {
    gap: 10px;
}

.user-menu-trigger-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-menu-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid var(--color-border-strong);
    flex-shrink: 0;
    background: #f3f4f6;
}

.user-menu-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-chevron {
    font-size: 11px;
    opacity: 0.65;
    transition: transform var(--transition);
}

.user-menu.active .user-menu-chevron,
.notif-menu.active .notif-menu-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--color-accent);
}

.user-menu-header,
.user-menu-label {
    display: none;
}

.user-menu-footer {
    display: block;
    border-top: 1px solid var(--color-border);
    margin-top: 4px;
    padding-top: 4px;
}

.user-menu-section + .user-menu-section {
    border-top: 1px solid var(--color-border);
}

.user-menu-logout {
    color: #f87171 !important;
}

.user-menu-logout i {
    color: #f87171 !important;
}

.user-menu-logout:hover {
    background: rgba(248, 113, 113, 0.1) !important;
}

/* Notifications */
.notifications-dropdown {
    position: relative;
}

.notifications-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
}

.notif-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 17px;
    cursor: pointer;
    padding: 8px 12px;
    position: relative;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.notif-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--color-accent);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    min-width: 18px;
    font-weight: 700;
    font-family: var(--font-body);
}

.notif-content {
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    width: 360px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-strong);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}

.notif-header h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.notif-header-actions {
    display: flex;
    gap: 12px;
}

.mark-read, .clear-all {
    font-size: 11px;
    color: var(--color-accent);
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid var(--color-border);
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
    background: var(--color-accent-soft);
}

.notif-icon {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.notif-message {
    flex: 1;
    font-size: 12px;
    line-height: 1.45;
}

.notif-time {
    font-size: 10px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.notif-dismiss {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.notif-dismiss:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
}

.notif-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.notif-loading {
    text-align: center;
    padding: 36px 20px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.notif-loading i {
    color: var(--color-accent);
    margin-right: 8px;
}

.notif-trigger-label,
.notif-trigger-count,
.notif-menu-chevron {
    display: none;
}

.notif-trigger-inner {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

/* Mobile menu */
.menu-icon {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
}

.menu-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-accent);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--color-accent-glow);
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 8px 24px var(--color-accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-accent);
    color: var(--color-text);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-small {
    padding: 8px 18px;
    font-size: 12px;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    box-shadow: none;
}

.btn-accent-soft {
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.btn-accent-soft:hover {
    background: rgba(225, 29, 46, 0.22);
    box-shadow: none;
}

/* ---- Hero (Homepage) ---- */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 32px 72px;
    margin-bottom: 64px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background:
        radial-gradient(ellipse at top, rgba(225, 29, 46, 0.12) 0%, transparent 60%),
        var(--color-surface);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #c8cdd4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 17px;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-transform: none;
    font-family: var(--font-body);
    letter-spacing: 0;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.hero--split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    text-align: left;
    align-items: center;
    padding: 48px 40px 44px;
}

.hero--split .hero-content {
    margin: 0;
    max-width: none;
}

.hero-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    min-height: 280px;
}

.hero-mosaic__item {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md, 12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    animation: heroMosaicIn 0.5s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.07s);
}

.hero-mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.hero-mosaic__item:hover img {
    transform: scale(1.06);
}

@keyframes heroMosaicIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-search {
    margin-bottom: 18px;
}

.hero-events {
    margin-bottom: 20px;
}

.hero-events__label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.hero-events__scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    margin: 0 -2px;
    scrollbar-width: thin;
}

.hero-events__scroll::-webkit-scrollbar {
    height: 6px;
}

.hero-events__scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.hero-event-chip {
    flex: 0 0 auto;
    min-width: min(100%, 240px);
    max-width: 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.28);
    color: var(--color-text);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.hero-event-chip strong {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.hero-event-chip:hover {
    border-color: rgba(225, 29, 46, 0.45);
    background: rgba(225, 29, 46, 0.08);
    transform: translateY(-2px);
}

.hero-events__hint,
.hero-events__empty {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.hero-events .hero-buttons {
    margin-top: 4px;
    margin-bottom: 14px;
    justify-content: flex-start;
}

.hero--split .hero-events__label {
    justify-content: flex-start;
}

@media (min-width: 769px) {
    .hero-events__scroll {
        flex-wrap: wrap;
        overflow: visible;
        scroll-snap-type: none;
        padding-bottom: 4px;
    }

    .hero-event-chip {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        max-width: none;
    }
}

.hero-search__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.35);
}

.hero-search__inner i {
    color: var(--color-accent);
}

.hero-search__inner input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 16px;
    outline: none;
}

.hero-search__hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.hero-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.hero-quick-link:hover {
    border-color: rgba(225, 29, 46, 0.45);
    color: #fff;
}

.hero-quick-link em {
    font-style: normal;
    opacity: 0.65;
    font-size: 11px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fotograf-onboarding {
    margin: 0 0 28px;
    padding: 22px 24px;
    border-radius: var(--radius-lg, 18px);
    border: 1px solid rgba(225, 29, 46, 0.25);
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.08), rgba(6, 7, 8, 0.55));
}

.fotograf-onboarding__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.fotograf-onboarding__head h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.fotograf-onboarding__head p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

.fotograf-onboarding__progress {
    width: 120px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 8px;
}

.fotograf-onboarding__progress span {
    display: block;
    height: 100%;
    background: var(--color-accent);
    border-radius: inherit;
}

.fotograf-onboarding__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.fotograf-onboarding__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}

.fotograf-onboarding__item.is-done {
    opacity: 0.72;
}

.fotograf-onboarding__check {
    color: var(--color-accent);
    width: 18px;
    text-align: center;
}

.fotograf-onboarding__label {
    flex: 1;
}

.event-organizer-share {
    margin: 28px 0;
    padding: 22px;
    border-radius: var(--radius-lg, 18px);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
}

.event-organizer-share h3 {
    margin: 0 0 8px;
}

.event-organizer-share__lead {
    margin: 0 0 16px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.event-organizer-share__block {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.event-organizer-share__block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.event-organizer-share__text {
    margin: 0;
    white-space: pre-wrap;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.event-qr-share {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.event-qr-share h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-qr-share h4 i {
    color: var(--color-accent);
}

.event-qr-share__lead {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.event-qr-share__grid {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.event-qr-share__code-wrap {
    flex: 0 0 auto;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
}

.event-qr-share__code {
    width: 168px;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-qr-share__code canvas,
.event-qr-share__code img {
    display: block;
    max-width: 100%;
    height: auto;
}

.event-qr-share__meta {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-qr-share__url-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.event-qr-share__url {
    flex: 1 1 180px;
    font-size: 13px;
    color: var(--color-text-secondary);
    word-break: break-all;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.photo-viewer-favorite {
    margin-top: 8px;
}

.photo-viewer-favorite .js-photo-favorite.is-active {
    border-color: rgba(225, 29, 46, 0.55);
    color: #ff6b7a;
}

.photo-viewer-similar-reason {
    display: block;
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.photo-comments-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 11px;
}

.error-page-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    max-width: 560px;
    margin: 0 auto 24px;
}

.error-page-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
}

.error-page-links a i {
    font-size: 1.25rem;
    color: var(--color-accent);
}

.fotos-suche-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.fotos-suche-mode-toggle button {
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-secondary);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
}

.fotos-suche-mode-toggle button.is-active {
    border-color: rgba(225, 29, 46, 0.5);
    background: rgba(225, 29, 46, 0.12);
    color: #fff;
}

.fotos-suche-filter.is-simple .fotos-suche-filter-grid--secondary,
.fotos-suche-filter.is-simple .fotos-suche-filter-section--advanced {
    display: none;
}

.fotos-suche-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.nav-login-hint {
    font-style: normal;
    opacity: 0.65;
    font-size: 11px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.04em;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ---- Feature cards ---- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.feature {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

a.feature {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.feature:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.feature:hover {
    border-color: rgba(225, 29, 46, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(225, 29, 46, 0.2);
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    background: var(--color-accent-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-accent);
}

.feature h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.feature p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.55;
    text-transform: none;
    font-family: var(--font-body);
    letter-spacing: 0;
    font-weight: 400;
}

/* ---- Homepage: action guide ---- */
.home-actions {
    margin-bottom: 72px;
}

.home-actions-eyebrow {
    display: block;
    text-align: center;
}

.home-actions-lead {
    text-align: center;
    max-width: 560px;
    margin: -12px auto 40px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    text-transform: none;
    font-family: var(--font-body);
    letter-spacing: 0;
    font-weight: 400;
}

.home-actions-lead--compact {
    margin-bottom: 28px;
}

/* ---- Homepage: photo awards (details in photo-awards.css) ---- */
.home-awards {
    margin-bottom: 72px;
}

.home-awards .section-title {
    text-align: center;
}

.home-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-action-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 26px 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.home-action-card:hover {
    border-color: rgba(225, 29, 46, 0.28);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.home-action-card__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.home-action-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-accent);
    background: var(--color-accent-soft);
}

.home-action-card--events .home-action-card__icon {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.14);
}

.home-action-card--map .home-action-card__icon {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.14);
}

.home-action-card--upload .home-action-card__icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.14);
}

.home-action-card__for {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.home-action-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--color-text);
}

.home-action-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    flex: 1;
}

.home-action-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-transform: none;
    font-family: var(--font-body);
    letter-spacing: 0;
    font-weight: 400;
}

.home-action-list li:last-child {
    margin-bottom: 0;
}

.home-action-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 11px;
    color: var(--color-accent);
}

.home-action-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.categories-section {
    margin-top: 16px;
    margin-bottom: 8px;
}

.section-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.upcoming-section {
    margin-top: 56px;
}

/* ---- Category pills ---- */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 64px;
}

.category-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.category-card:hover {
    background: var(--color-accent-soft);
    border-color: rgba(225, 29, 46, 0.3);
    color: var(--color-text);
    transform: translateY(-2px);
}

.category-card i {
    color: var(--color-accent);
    font-size: 12px;
}

.category-card h3 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: inherit;
}

/* ---- Event cards ---- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.event-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-6px);
    border-color: rgba(225, 29, 46, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(225, 29, 46, 0.2);
}

.event-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.event-type-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.event-card h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--color-text);
    text-transform: none;
    letter-spacing: 0.01em;
    font-family: var(--font-body);
    font-weight: 600;
}

.event-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-meta i {
    width: 14px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.event-card .btn {
    margin-top: 16px;
    align-self: flex-start;
}

.event-card.empty {
    text-align: center;
    color: var(--color-text-muted);
    justify-content: center;
    align-items: center;
    min-height: 160px;
}

/* ---- CTA ---- */
.cta-box {
    text-align: center;
    padding: 64px 40px;
    background:
        radial-gradient(ellipse at bottom, rgba(225, 29, 46, 0.15) 0%, transparent 60%),
        var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-xl);
    margin-top: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.cta-box h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    text-transform: none;
    font-family: var(--font-body);
    letter-spacing: 0;
    font-weight: 400;
}

/* ---- Forms ---- */
.form-container {
    max-width: 440px;
    margin: 48px auto;
    background: var(--color-surface);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-md);
}

.form-container h1 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 32px;
    color: var(--color-text);
}

.auth-form label:not(.auth-consent) {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: none;
    font-family: var(--font-body);
    letter-spacing: 0;
}

.auth-form label:not(.auth-consent) i {
    color: var(--color-text-muted);
    width: 14px;
}

.auth-form input:not([type="checkbox"]) {
    width: 100%;
    padding: 13px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 16px;
    transition: border-color var(--transition);
}

.auth-form input:not([type="checkbox"]):focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(0, 0, 0, 0.5);
}

/* Passwort-Feld mit Anzeigen-Button */
.auth-form .password-field {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    margin-bottom: 16px;
}

.auth-form .password-field input {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    padding-right: 48px;
    margin-bottom: 0;
}

.auth-form .password-field .pw-reveal-btn {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    margin: 0 4px 0 0;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    line-height: 1;
    font-size: 15px;
    box-shadow: none;
    transform: none;
    transition: color var(--transition), background var(--transition);
}

.auth-form .password-field .pw-reveal-btn:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.08);
    transform: none;
    box-shadow: none;
}

.auth-form button[type="submit"] {
    width: 100%;
    margin-top: 8px;
}

.auth-social {
    margin-bottom: 20px;
}

.google-signin-button {
    display: flex;
    justify-content: center;
}

.btn-google {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-google:hover {
    background: #f8fafc;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-google i {
    color: #4285f4;
    font-size: 16px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: var(--color-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--color-border);
}

.auth-social-note {
    margin: 10px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.auth-social-note a {
    color: var(--color-accent);
    font-weight: 500;
}

.auth-form .auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 20px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--color-text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.auth-form .auth-consent input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 3px 0 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--color-accent);
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.auth-form .auth-consent input[type="checkbox"]:focus {
    outline: 2px solid rgba(225, 29, 46, 0.45);
    outline-offset: 2px;
    background: transparent;
    border: none;
}

.auth-form .auth-consent__text {
    flex: 1;
    min-width: 0;
}

.auth-form .auth-consent__text a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-form .auth-consent__text a:hover {
    text-decoration: underline;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.form-footer a {
    color: var(--color-accent);
    font-weight: 500;
}

/* ---- Alerts ---- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--color-success);
}

.alert.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--color-info);
}

.alert.error {
    background: var(--color-accent-soft);
    border: 1px solid rgba(225, 29, 46, 0.25);
    color: var(--color-accent);
}

/* ---- Profile ---- */
.profile-page .profile-avatar-large {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    border: 3px solid var(--color-accent);
    background: #f3f4f6;
}

/* Profilbilder: helle Fläche — dunkle Logos auf transparentem PNG bleiben sichtbar */
img.user-menu-avatar,
img.user-menu-header-avatar,
img.profile-img,
.set-avatar-preview img,
.profile-avatar-large img,
img.portfolio-avatar,
.msg-conv__avatar img,
.msg-row__avatar img,
.msg-chat__avatar img,
.ef-fotograf-card__avatar img,
img.avatar-img,
.custom-popup .popup-avatar img,
.af-photographer-avatar img {
    background-color: #f3f4f6;
    object-fit: contain;
}

/* ---- Loader ---- */
.loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.page-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(225, 29, 46, 0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: pageSpin 0.8s linear infinite;
}

@keyframes pageSpin {
    to { transform: rotate(360deg); }
}

#pageLoadingOverlay {
    transition: opacity 0.3s ease;
    font-family: var(--font-body);
}

/* ---- Footer ---- */
footer {
    margin-top: 64px;
    border-top: 1px solid var(--color-border);
    background: rgba(6, 7, 8, 0.95);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 48px 24px 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-brand .site-logo {
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 5px 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 12px;
}

.footer-credit {
    font-size: 11px !important;
    opacity: 0.7;
}

.footer-kofi {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill, 999px);
    background: rgba(255, 255, 255, 0.03);
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.footer-kofi i {
    font-size: 13px;
    opacity: 0.85;
}

.footer-kofi:hover {
    color: var(--color-text-secondary);
    border-color: rgba(255, 120, 100, 0.28);
    background: rgba(255, 120, 100, 0.06);
}

.kofi-note {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.kofi-note a {
    color: var(--color-text-secondary);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    text-underline-offset: 3px;
    transition: color var(--transition), text-decoration-color var(--transition);
}

.kofi-note a:hover {
    color: var(--color-accent);
    text-decoration-color: rgba(225, 29, 46, 0.45);
}

.cta-box .kofi-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.user-menu-kofi {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--color-text-muted) !important;
    transition: background var(--transition), color var(--transition);
}

.user-menu-kofi:hover {
    color: var(--color-text-secondary) !important;
    background: rgba(255, 120, 100, 0.06) !important;
}

.user-menu-kofi i {
    width: 16px;
    text-align: center;
    opacity: 0.85;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    font-size: 18px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 640px;
    width: calc(100% - 40px);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: none;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    z-index: 14000;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
}

.cookie-consent p {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-secondary);
    flex: 1;
    min-width: 200px;
}

.cookie-consent button {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
}

.cookie-consent button:hover {
    background: var(--color-accent-hover);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: #2a2e36;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    main {
        padding: calc(var(--header-height) + 16px) 16px 32px;
    }

    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 24px 0 16px;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(10, 12, 16, 0.95);
        backdrop-filter: blur(24px) saturate(1.5);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 12px 32px rgba(0,0,0,0.5);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-links > a {
        width: calc(100% - 32px);
        margin: 0 16px;
        justify-content: flex-start;
        padding: 14px 20px;
        font-size: 15px;
    }

    .btn-fotograf-werden {
        width: calc(100% - 32px) !important;
        margin: 0 16px !important;
        justify-content: center !important;
    }

    .dropdown {
        width: calc(100% - 32px);
        margin: 0 16px;
    }

    .user-menu {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, 0.02);
    }

    .user-menu.active {
        overflow: visible;
    }

    .user-menu::after {
        display: none;
    }

    .dropdown-btn,
    .user-menu-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        font-size: 15px;
        background: transparent;
        border-radius: 0;
    }

    .user-menu.active .user-menu-trigger {
        background: rgba(255, 255, 255, 0.04);
        border-bottom: 1px solid var(--color-border);
    }

    .user-menu-name {
        max-width: none;
        font-weight: 600;
        color: var(--color-text);
    }

    .user-menu-avatar {
        width: 36px;
        height: 36px;
    }

    .user-menu.active .user-menu-chevron {
        transform: rotate(180deg);
        opacity: 1;
        color: var(--color-accent);
    }

    /* Desktop-Hover auf Mobile nur wenn Accordion geschlossen */
    .user-menu:not(.active):hover .dropdown-content,
    .user-menu:not(.active) .dropdown-content:hover,
    .notif-menu:not(.active):hover .notif-content,
    .notif-menu:not(.active) .notif-content:hover {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
        pointer-events: none !important;
    }

    .user-menu:not(.active) .user-menu-panel,
    .notif-menu:not(.active) .notif-menu-panel {
        display: none !important;
    }

    .user-menu-panel,
    .notif-menu-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        margin-top: 0;
        background: transparent;
        border-radius: 0;
        border: none;
        pointer-events: auto;
        transition: none;
    }

    .user-menu.active .user-menu-panel {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: 480px;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        pointer-events: auto !important;
    }

    .user-menu-header {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.03);
        border-bottom: 1px solid var(--color-border);
    }

    .user-menu-header-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(225, 29, 46, 0.35);
        flex-shrink: 0;
    }

    .user-menu-header-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .user-menu-header-text strong {
        font-size: 15px;
        font-weight: 600;
        color: var(--color-text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-menu-role {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--color-accent);
        background: var(--color-accent-soft);
        border: 1px solid rgba(225, 29, 46, 0.2);
        padding: 3px 10px;
        border-radius: var(--radius-pill);
    }

    .user-menu-section {
        padding: 8px 0;
    }

    .user-menu-section + .user-menu-section {
        border-top: 1px solid var(--color-border);
    }

    .user-menu-label {
        display: block;
        padding: 8px 16px 4px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--color-text-muted);
    }

    .dropdown-content a,
    .user-menu-panel a {
        padding: 13px 16px;
        font-size: 15px;
        border-radius: 0;
    }

    .dropdown-content a:hover,
    .user-menu-panel a:hover {
        padding-left: 16px;
        background: rgba(255, 255, 255, 0.04);
    }

    .dropdown-content a i,
    .user-menu-panel a i {
        width: 18px;
        font-size: 14px;
    }

    .user-menu-footer {
        display: block;
        padding: 8px 0 4px;
        border-top: 1px solid var(--color-border);
        margin-top: 4px;
    }

    .user-menu-logout {
        display: flex;
        margin: 0;
    }

    .notifications-dropdown {
        width: calc(100% - 32px);
        margin: 0 16px;
    }

    .notif-menu {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, 0.02);
    }

    .notif-menu::after {
        display: none;
    }

    .notif-trigger-inner,
    .notif-trigger-label,
    .notif-menu-chevron {
        display: inline-flex;
    }

    .notif-trigger-inner {
        gap: 12px;
        min-width: 0;
        flex: 1;
    }

    .notif-trigger-count {
        display: inline-flex;
        margin-left: auto;
        font-size: 11px;
        font-weight: 700;
        color: var(--color-accent);
        background: var(--color-accent-soft);
        border: 1px solid rgba(225, 29, 46, 0.2);
        padding: 3px 10px;
        border-radius: var(--radius-pill);
    }

    .notif-menu-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        font-size: 15px;
        background: transparent;
        border-radius: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .notif-trigger-icon-wrap {
        position: relative;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--color-border-strong);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: var(--color-text);
        font-size: 15px;
    }

    .notif-trigger-icon-wrap .notif-badge {
        top: -4px;
        right: -4px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: 9px;
        line-height: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .notif-trigger-label {
        font-weight: 600;
        color: var(--color-text);
    }

    .notif-menu-chevron {
        font-size: 11px;
        opacity: 0.65;
        transition: transform var(--transition);
        flex-shrink: 0;
    }

    .notif-menu.active .notif-menu-trigger {
        background: rgba(255, 255, 255, 0.04);
        border-bottom: 1px solid var(--color-border);
    }

    .notif-menu.active .notif-menu-chevron {
        transform: rotate(180deg);
        opacity: 1;
        color: var(--color-accent);
    }

    .notif-menu:not(.active):hover .notif-content,
    .notif-menu:not(.active) .notif-content:hover {
        display: none !important;
    }

    .notif-content,
    .notif-menu-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        max-width: none;
        box-shadow: none;
        margin-top: 0;
        background: transparent;
        border-radius: 0;
        border: none;
        pointer-events: auto;
        transition: none;
    }

    .notif-menu.active .notif-menu-panel {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: column;
        max-height: 420px;
        overflow: hidden;
        pointer-events: auto !important;
    }

    .notif-menu.active .notif-header {
        flex-shrink: 0;
    }

    .notif-menu.active .notif-list {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .notif-header-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .notif-header h4 {
        font-size: 13px;
    }

    .hero {
        margin-bottom: 48px;
        border-radius: var(--radius-lg);
    }

    .hero--split {
        grid-template-columns: 1fr;
    }

    .hero-mosaic {
        display: none;
    }

    .cta-box .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-box .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 40px;
    }

    .home-actions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-actions {
        margin-bottom: 48px;
    }

    .home-action-card__footer .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .form-container {
        margin: 24px 16px;
        padding: 28px 20px;
    }

    .cta-box {
        padding: 36px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .category-card {
        padding: 8px 14px;
        font-size: 12px;
    }
}
