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

:root {
    --bg: #050508;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text: #f4f4f6;
    --muted: #a8a8b3;
    --accent: #c8f542;
    --accent-dim: #9bc22a;
    --danger: #ff6b7a;
    --radius: 16px;
    --font: "DM Sans", system-ui, sans-serif;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.browse-view img,
.profile-grid img,
.profile-hero-cover-img,
.profile-avatar--photo img,
.member-cat-photo img,
.my-photo img,
.admin-item img,
[data-photo-preview],
.photo-drop-preview {
    -webkit-touch-callout: none;
    touch-callout: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(200, 245, 66, 0.12), transparent),
        radial-gradient(circle at 90% 80%, rgba(120, 80, 255, 0.08), transparent);
    z-index: -1;
}

@media (prefers-reduced-motion: no-preference) {
    .bg-glow {
        animation: ambience-drift 16s ease-in-out infinite alternate;
    }
}

.container {
    width: min(1100px, 92vw);
    margin-inline: auto;
}

.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--radius);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 8, 12, 0.82);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    min-height: 64px;
}

.header-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.brand-logo {
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.brand-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.site-nav-group {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.site-nav-group--actions {
    gap: 0.35rem;
    padding: 0.25rem 0.35rem 0.25rem 0.25rem;
}

.site-nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.site-nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav-link--btn {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

.site-nav-cta {
    white-space: nowrap;
}

.btn-pwa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(200, 245, 66, 0.45);
    background: linear-gradient(135deg, rgba(200, 245, 66, 0.16), rgba(200, 245, 66, 0.08));
    color: #e8ff9a;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    max-width: 100%;
}

.btn-pwa:hover {
    background: linear-gradient(135deg, rgba(200, 245, 66, 0.28), rgba(200, 245, 66, 0.12));
    border-color: rgba(200, 245, 66, 0.65);
    color: var(--accent);
}

.btn-pwa-text {
    line-height: 1.2;
    text-align: left;
}

.icon-pwa-install {
    flex-shrink: 0;
    color: var(--accent);
}

.btn-pwa .icon-phone {
    flex-shrink: 0;
    color: var(--accent);
}

.pwa-help-icon {
    display: flex;
    justify-content: center;
    margin: 0 0 0.75rem;
}

.pwa-help-icon .icon-phone {
    color: var(--accent);
}

.btn-pwa[hidden] {
    display: none !important;
}

.icon-pwa-install--large {
    display: block;
    margin: 0 auto 0.75rem;
    color: var(--accent);
}

.pwa-help-steps .auth-modal-lead {
    text-align: left;
    margin-bottom: 0.65rem;
}

.icon-phone--large {
    display: block;
    margin: 0 auto 0.75rem;
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-toggle-icon {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.nav-toggle-icon::before {
    top: -6px;
}

.nav-toggle-icon::after {
    top: 6px;
}

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

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

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.15s;
}

.nav a:hover {
    color: var(--text);
}

/* legacy .nav – falls noch verwendet */

.main {
    padding: 2rem 0 4rem;
}

.hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    max-width: 640px;
    margin-inline: auto;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--accent);
    margin: 0 0 1rem;
    font-weight: 600;
}

.hero-text {
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    max-width: 720px;
    margin-inline: auto;
}

.hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    width: min(920px, 100%);
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

@media (max-width: 680px) {
    .hero-actions {
        grid-template-columns: 1fr;
    }
}

.hero-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem 0.95rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 12, 18, 0.92);
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
    overflow: hidden;
    min-height: 5.5rem;
}

.hero-cta:hover {
    transform: translateY(-3px);
}

.hero-cta-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.hero-cta-copy strong {
    font-size: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-cta-copy small {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.35;
}

.hero-cta-visual {
    flex-shrink: 0;
    width: 4.5rem;
    height: 3.75rem;
    position: relative;
}

.hero-polaroid {
    position: absolute;
    width: 2.65rem;
    padding: 0.2rem 0.2rem 0.55rem;
    background: #f4f4f6;
    border-radius: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.hero-polaroid-img {
    display: block;
    aspect-ratio: 1;
    border-radius: 1px;
    background: linear-gradient(145deg, #6a8cff, #c8f542);
}

.hero-polaroid--upload {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-4deg);
}

.hero-polaroid--upload .hero-polaroid-img {
    background: linear-gradient(160deg, rgba(200, 245, 66, 0.85), #3a5a20);
}

.hero-polaroid-plus {
    position: absolute;
    right: -0.15rem;
    bottom: 0.35rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--accent);
    color: #050508;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-polaroid-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-polaroid--a {
    left: 0;
    top: 0.35rem;
    transform: rotate(-14deg);
    z-index: 1;
}

.hero-polaroid--a .hero-polaroid-img {
    background: linear-gradient(145deg, #ff9a6c, #ff6b9d);
}

.hero-polaroid--b {
    left: 1.15rem;
    top: 0.1rem;
    transform: rotate(6deg);
    z-index: 3;
}

.hero-polaroid--b .hero-polaroid-img {
    background: linear-gradient(145deg, #7ee8fa, #4a90d9);
}

.hero-polaroid--c {
    left: 2.1rem;
    top: 0.55rem;
    transform: rotate(18deg);
    z-index: 2;
}

.hero-polaroid--c .hero-polaroid-img {
    background: linear-gradient(145deg, #c8f542, #f5d742);
}

.hero-cta--join {
    border-color: rgba(200, 245, 66, 0.35);
    background:
        radial-gradient(ellipse 80% 80% at 0% 50%, rgba(200, 245, 66, 0.12), transparent 55%),
        rgba(12, 12, 18, 0.94);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-cta--join:hover {
    border-color: rgba(200, 245, 66, 0.65);
    box-shadow: 0 12px 32px rgba(200, 245, 66, 0.15);
}

.hero-cta--join .hero-cta-copy strong {
    color: var(--accent);
}

.hero-cta--random {
    border-color: rgba(255, 200, 100, 0.28);
    background:
        radial-gradient(ellipse 90% 80% at 100% 40%, rgba(255, 180, 80, 0.1), transparent 50%),
        rgba(10, 10, 16, 0.94);
    animation: heroRandomGlow 2.8s ease-in-out infinite;
}

.hero-cta--random::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 60%
    );
    transform: translateX(-120%);
    animation: heroRandomShine 3.2s ease-in-out infinite;
    pointer-events: none;
}

.hero-cta--random:hover {
    border-color: rgba(200, 245, 66, 0.55);
    transform: translateY(-3px) scale(1.01);
}

.hero-cta--random .hero-cta-copy strong {
    color: #f5ffe8;
}

/* legacy – alte Pill-Buttons entfernt */


@keyframes heroRandomGlow {
    0%,
    100% {
        box-shadow:
            0 0 18px rgba(200, 245, 66, 0.35),
            0 0 36px rgba(200, 245, 66, 0.12);
    }
    50% {
        box-shadow:
            0 0 32px rgba(200, 245, 66, 0.55),
            0 0 64px rgba(255, 200, 100, 0.2);
    }
}

@keyframes heroRandomShine {
    0%,
    100% {
        transform: translateX(-120%) rotate(8deg);
    }
    45% {
        transform: translateX(120%) rotate(8deg);
    }
}

.page-head h1 {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
}

.page-head p {
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.12s, background 0.12s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0c;
}

.btn-primary:hover {
    background: var(--accent-dim);
}

.btn-primary.btn-unsaved {
    background: #f97316 !important;
    border-color: #fdba74 !important;
    color: #0a0a0c !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.45);
}

.btn-primary.btn-unsaved:hover {
    background: #ea580c !important;
    border-color: #fb923c !important;
}

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

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.filter label {
    color: var(--muted);
    font-size: 0.9rem;
}

select,
textarea,
input[type="email"],
input[type="password"],
input[type="text"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="file"],
input:not([type]) {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.35;
    box-sizing: border-box;
}

select:focus,
textarea:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input:not([type]):focus {
    outline: none;
    border-color: rgba(200, 245, 66, 0.45);
    box-shadow: 0 0 0 3px rgba(200, 245, 66, 0.12);
}

input[disabled],
textarea[disabled],
select[disabled] {
    opacity: 0.72;
    cursor: not-allowed;
}

select:not(.select-native-hidden) {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.35rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23c8f542' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.1rem;
    cursor: pointer;
}

select:not(.select-native-hidden):focus {
    outline: none;
    border-color: rgba(200, 245, 66, 0.45);
    box-shadow: 0 0 0 3px rgba(200, 245, 66, 0.12);
}

select option {
    background: #12121a;
    color: #f4f4f6;
    padding: 0.5rem;
}

.form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form.narrow {
    max-width: 420px;
}

.field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.field {
    width: 100%;
}

.pw-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}

.pw-wrap input {
    flex: 1;
    min-width: 0;
}

.pw-eye {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--muted);
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.pw-eye:hover {
    color: var(--text);
    border-color: rgba(200, 245, 66, 0.35);
    background: rgba(200, 245, 66, 0.08);
}

.pw-eye[aria-pressed="true"] {
    color: var(--accent);
    border-color: rgba(200, 245, 66, 0.45);
}

.form-footer {
    font-size: 0.9rem;
    color: var(--muted);
}

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

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.photo-card {
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, border-color 0.15s;
}

.photo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 245, 66, 0.35);
}

.photo-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.photo-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.85rem;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.rating-pill {
    font-size: 0.8rem;
    font-weight: 600;
}

.rating-pill.muted {
    color: var(--muted);
    font-weight: 500;
}

.empty-state {
    color: var(--muted);
    text-align: center;
    padding: 2rem 1rem;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(200, 245, 66, 0.12);
    border: 1px solid rgba(200, 245, 66, 0.35);
}

.alert-error {
    background: rgba(255, 107, 122, 0.12);
    border: 1px solid rgba(255, 107, 122, 0.35);
}

.alert-info {
    background: rgba(120, 160, 255, 0.12);
    border: 1px solid rgba(120, 160, 255, 0.3);
}

.my-photos-list,
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-photo,
.admin-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1rem;
    align-items: start;
}

.my-photo img,
.admin-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.status-pending { color: #ffc857; }
.status-approved { color: var(--accent); }
.status-rejected { color: var(--danger); }

.admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.rate-page {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .rate-page {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.rate-image img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
}

.rate-panel {
    padding: 1.5rem;
}

.rate-panel h1 {
    font-size: 1.35rem;
    margin: 0.75rem 0;
}

.stars {
    border: none;
    padding: 0;
    margin: 0 0 1rem;
}

.star-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    cursor: pointer;
}

.star-option input {
    accent-color: var(--accent);
}

.site-footer {
    margin-top: auto;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 0;
    text-align: left;
}

.footer-brand-block {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand {
    font-weight: 700;
    margin: 0;
    font-size: 1rem;
}

.footer-tagline {
    color: var(--muted);
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
}

.footer-meta {
    text-align: right;
    flex-shrink: 0;
}

.footer-domain {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-domain:hover {
    text-decoration: underline;
}

.footer-copy {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.auth-logo {
    width: min(200px, 55vw);
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

.page-head-auth {
    text-align: center;
}

.hero-logo {
    width: min(280px, 78vw);
    height: auto;
    margin: 0 auto 0.75rem;
    display: block;
    filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
}

@media (prefers-reduced-motion: no-preference) {
    .hero-logo {
        animation: hero-logo-float 6s ease-in-out infinite;
    }

    .hero-lead {
        animation: hero-lead-in 0.65s ease-out both;
    }

    .hero-actions {
        animation: hero-lead-in 0.65s ease-out 0.12s both;
    }
}

.pwa-install {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding: 0.85rem;
        background: rgba(8, 8, 12, 0.97);
        border-bottom: 1px solid var(--glass-border);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        z-index: 90;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-header {
        position: sticky;
    }

    .site-header .header-bar {
        position: relative;
    }

    .site-nav-group {
        flex-direction: column;
        align-items: stretch;
        border-radius: 12px;
        padding: 0.35rem;
    }

    .site-nav-link,
    .site-nav-link--btn,
    .site-nav-cta,
    .btn-pwa {
        width: 100%;
        justify-content: center;
    }

    .btn-pwa-text {
        display: inline;
    }

    .brand-logo img {
        width: 48px;
        height: 48px;
    }

    .main {
        padding: 1.25rem 0 3rem;
    }

    .my-photo,
    .admin-item {
        grid-template-columns: 1fr;
    }

    .my-photo img,
    .admin-item img {
        width: 100%;
        height: auto;
        max-height: 220px;
    }

    .filter {
        flex-direction: column;
        align-items: stretch;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .form.narrow {
        max-width: none;
    }

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

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

    .footer-meta {
        text-align: center;
    }
}

@media (min-width: 769px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn:active {
        transform: none;
    }

    .photo-card:hover {
        transform: none;
    }
}

.dev-reset-link {
    margin-top: 1rem;
    word-break: break-all;
}

/* Kategorie-Kacheln */
.category-section {
    margin-bottom: 2rem;
    padding-top: 0.5rem;
}

.category-section-intro {
    text-align: center;
    font-size: clamp(1.45rem, 4.5vw, 2.05rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--text);
    margin: 0 0 1.75rem;
}

@media (prefers-reduced-motion: no-preference) {
    .category-section-intro {
        animation: section-head-in 0.75s ease-out 0.1s both, accent-shimmer 6s ease-in-out 1.2s infinite;
    }

    .category-tiles .category-tile {
        animation: tile-enter 0.55s ease-out both;
    }

    .category-tiles .category-tile:nth-child(1) { animation-delay: 0.06s; }
    .category-tiles .category-tile:nth-child(2) { animation-delay: 0.1s; }
    .category-tiles .category-tile:nth-child(3) { animation-delay: 0.14s; }
    .category-tiles .category-tile:nth-child(4) { animation-delay: 0.18s; }
    .category-tiles .category-tile:nth-child(5) { animation-delay: 0.22s; }
    .category-tiles .category-tile:nth-child(6) { animation-delay: 0.26s; }
    .category-tiles .category-tile:nth-child(7) { animation-delay: 0.3s; }
    .category-tiles .category-tile:nth-child(8) { animation-delay: 0.34s; }
    .category-tiles .category-tile:nth-child(9) { animation-delay: 0.38s; }

    .hero-cta--random {
        animation: random-cta-glow 4s ease-in-out infinite;
    }
}

@keyframes ambience-drift {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.88;
        transform: scale(1.03);
    }
}

@keyframes hero-logo-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

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

@keyframes section-head-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes accent-shimmer {
    0%,
    100% {
        text-shadow: 0 0 0 transparent;
    }
    50% {
        text-shadow: 0 0 28px rgba(200, 245, 66, 0.22);
    }
}

@keyframes tile-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes random-cta-glow {
    0%,
    100% {
        border-color: var(--glass-border);
    }
    50% {
        border-color: rgba(200, 245, 66, 0.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg-glow,
    .hero-logo,
    .hero-lead,
    .hero-actions,
    .category-section-intro,
    .category-tile,
    .hero-cta--random {
        animation: none !important;
    }
}

.category-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .category-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-tile {
    text-align: left;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 12, 18, 0.9);
    border-radius: calc(var(--radius) + 4px);
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

a.category-tile {
    text-decoration: none;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 245, 66, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.category-tile.is-active {
    border-color: rgba(200, 245, 66, 0.65);
    box-shadow: 0 0 0 2px rgba(200, 245, 66, 0.2), 0 16px 40px rgba(0, 0, 0, 0.5);
}

.category-tile-media {
    position: relative;
    display: block;
    flex: 0 0 auto;
    height: 240px;
    overflow: hidden;
    background: #050508;
    transform: translateZ(0);
    transition: transform 0.35s ease;
}

.category-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    vertical-align: top;
}

.category-tile:hover .category-tile-media {
    transform: translateZ(0) scale(1.04);
}

.category-tile-shade {
    display: none;
}

.category-tile-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.35rem;
    padding: 1rem 1.15rem 1.25rem;
    position: relative;
    z-index: 1;
    min-height: 0;
    background: #0c0c12;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.category-tile-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.category-tile-title {
    display: block;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.category-tile-teaser {
    display: block;
    font-size: 0.88rem;
    color: #c8c8d4;
    line-height: 1.5;
    margin-top: 0.15rem;
    flex: 1 1 auto;
}

.category-tile-cta {
    display: block;
    margin-top: auto;
    padding-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
}

.category-tile-desc {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

.category-idea {
    text-align: center;
    padding: 1.35rem 1.25rem;
    margin-bottom: 2rem;
}

.category-idea-text {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 36rem;
    margin-inline: auto;
}

.auth-modal-dialog--compact {
    max-width: 420px;
}

.gender-pick-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.gender-pick-grid--inline {
    flex-direction: row;
    flex-wrap: wrap;
}

.gender-pick-btn {
    width: 100%;
    justify-content: center;
}

.gender-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
}

.gender-radio:has(input:checked) {
    border-color: rgba(200, 245, 66, 0.55);
    background: rgba(200, 245, 66, 0.08);
}

.gender-radio input {
    accent-color: var(--accent);
}

.field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0.5rem 0 0;
}

/* Foto-Slider & Bewertung */
.discover-slider {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.discover-slider-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.discover-slider-title {
    margin: 0;
    font-size: 1.25rem;
}

.discover-slider-stage {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.slider-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.slider-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.slider-figure {
    margin: 0;
    position: relative;
}

.slider-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: min(52vh, 420px);
    padding: 2rem 1.25rem;
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    text-align: center;
}

.slider-placeholder[hidden] {
    display: none !important;
}

.slider-placeholder-text {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    max-width: 18rem;
}

.slider-figure img[hidden] {
    display: none;
}

.slider-figure img {
    width: 100%;
    max-height: min(62vh, 520px);
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
}

.slider-caption {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.slider-avg {
    color: var(--accent);
    font-weight: 600;
}

.rating-widget {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--glass-border);
}

.rating-widget-label {
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.rating-emoji {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.rating-track-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 420px;
    margin: 0 auto 0.35rem;
}

.rating-track {
    flex: 1;
    accent-color: var(--accent);
    height: 8px;
}

.rating-end-label {
    font-size: 0.85rem;
    color: var(--muted);
    min-width: 1.25rem;
}

.rating-scale-hint {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto 0.75rem;
}

.rating-status {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 0.75rem;
}

.rating-ok {
    min-width: 120px;
}

.link-btn,
.nav-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
}

.nav-link-btn {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.92rem;
}

.nav-link-btn:hover {
    color: var(--text);
}

/* Auth-Modals */
body.auth-modal-open {
    overflow: hidden;
}

.auth-modals {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-modals[hidden] {
    display: none !important;
}

.auth-modal {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-modal[hidden] {
    display: none !important;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.auth-modal-dialog {
    position: relative;
    width: min(420px, 100%);
    max-height: min(92vh, 640px);
    overflow: auto;
    padding: 1.5rem 1.35rem 1.35rem;
    text-align: center;
    margin: auto;
}

.auth-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.auth-modal-logo {
    width: min(100px, 28vw);
    height: auto;
    margin: 0 auto 0.5rem;
    display: block;
}

.auth-modal-dialog h2 {
    margin: 0 0 1rem;
}

.auth-modal-lead {
    color: var(--muted);
    font-size: 0.9rem;
    margin: -0.5rem 0 1rem;
}

.auth-form {
    text-align: left;
    padding: 0;
}

@media (max-width: 900px) {
    .category-tiles {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-inline: auto;
    }

    .category-tile {
        min-height: 380px;
    }

    .category-tiles .category-tile:nth-child(odd) {
        border-width: 2px;
        border-color: rgba(200, 245, 66, 0.38);
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(200, 245, 66, 0.08);
    }

    .category-tiles .category-tile:nth-child(even) {
        border-width: 2px;
        border-color: rgba(255, 149, 89, 0.4);
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 149, 89, 0.1);
    }

    .category-tile-title {
        font-size: clamp(1.34rem, 5.2vw, 1.5rem);
        line-height: 1.1;
    }
}

@media (max-width: 768px) {
    .discover-slider-stage {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .slider-nav-prev { order: 2; justify-self: start; }
    .slider-figure { order: 1; }
    .slider-nav-next { order: 2; justify-self: end; }

    .discover-slider-stage {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .slider-figure {
        width: 100%;
    }
}

.wfd-pwa-update {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10070;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: calc(env(safe-area-inset-top, 0px) + 0.7rem) 1rem 0.7rem;
    background: linear-gradient(180deg, rgba(18, 18, 24, 0.98), rgba(10, 10, 14, 0.94));
    border-bottom: 1px solid rgba(180, 255, 80, 0.35);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
    color: #f4f4f6;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.32s ease, opacity 0.32s ease;
    pointer-events: none;
}

.wfd-pwa-update.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.wfd-pwa-update[hidden] {
    display: none !important;
}

.wfd-pwa-update__pulse {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #b4ff50;
    box-shadow: 0 0 0 0 rgba(180, 255, 80, 0.65);
    animation: wfd-pwa-update-pulse 1.1s ease-out infinite;
}

@keyframes wfd-pwa-update-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(180, 255, 80, 0.55);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(180, 255, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(180, 255, 80, 0);
    }
}
