/* ── Galerie-Hauptseite (index.php) ─────────────────────────────────────────── */
        /* Accessibility: Visually hidden but readable by screen readers */
        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }

        body {
            font-family: var(--font-body);
            background: var(--color-bg);
            color: var(--color-text);
            line-height: 1.6;
            overflow-x: hidden;
            transition: background 0.3s ease, color 0.3s ease;
        }

        /* Alert Messages */
        .alert {
            position: fixed;
            top: 100px;
            right: 20px;
            padding: 1rem 1.5rem;
            border-radius: 8px;
            background: var(--color-surface-elevated);
            border: 1px solid var(--color-border);
            box-shadow: 0 10px 40px rgba(0,0,0,0.5);
            z-index: 2000;
            animation: slideInRight 0.3s ease-out;
            max-width: 400px;
        }

        .alert.success {
            border-color: var(--color-success);
        }

        .alert.error {
            border-color: var(--color-error);
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* Header & Navigation */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--color-border);
            animation: slideDown 0.6s ease-out;
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        [data-theme="light"] header {
            background: rgba(245, 245, 240, 0.95);
        }

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

        nav {
            max-width: 1600px;
            margin: 0 auto;
            padding: 1.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 2rem;
        }

        .logo {
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--color-accent);
            text-decoration: none;
            transition: var(--transition);
        }

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

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
            align-items: center;
        }

        .nav-links a {
            font-family: var(--font-mono);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-muted);
            text-decoration: none;
            transition: var(--transition);
            position: relative;
            cursor: pointer;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--color-accent-warm);
            transition: var(--transition);
        }

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

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        .social-icons {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: center;
            gap: 1.5rem;
        }

        .instagram-link,
        .tesla-link,
        .gitea-link {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-text-muted);
        }

        .instagram-link svg,
        .tesla-link svg,
        .gitea-link svg {
            transition: var(--transition);
        }

        .instagram-link:hover svg {
            stroke: var(--color-accent);
            transform: scale(1.1);
        }

        .tesla-link:hover svg {
            fill: #E82127;
            transform: scale(1.1);
        }

        .gitea-link:hover svg {
            fill: #609926;
            transform: scale(1.1);
        }

        .instagram-link::after,
        .tesla-link::after,
        .gitea-link::after {
            display: none;
        }

        .logout-btn {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            color: var(--color-text);
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            font-family: var(--font-mono);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            transition: var(--transition);
        }

        .logout-btn:hover {
            background: var(--color-surface-elevated);
            border-color: var(--color-accent-warm);
        }

        /* Main Content */
        main {
            padding-top: 80px;
            min-height: 100vh;
        }

        .page {
            display: none;
        }

        .page.active {
            display: block;
        }

        /* Content Sections (Datenschutz, Impressum) */
        .content-section {
            max-width: 900px;
            margin: 8rem auto 4rem;
            padding: 0 2rem;
            animation: fadeInUp 0.8s ease-out;
        }

        .content-container {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 12px;
            padding: 3rem;
        }

        .content-container h1 {
            font-family: var(--font-display);
            font-size: 2.5rem;
            margin-bottom: 2rem;
            color: var(--color-accent);
        }

        .content-container h2 {
            font-family: var(--font-display);
            font-size: 1.75rem;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            color: var(--color-accent);
        }

        .content-container h3 {
            font-size: 1.25rem;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
            color: var(--color-text);
        }

        .content-container h4 {
            font-size: 1.1rem;
            margin-top: 1rem;
            margin-bottom: 0.5rem;
            color: var(--color-text-muted);
        }

        .content-container p {
            margin-bottom: 1rem;
            line-height: 1.8;
            color: var(--color-text);
        }

        .content-container ul {
            margin: 1rem 0 1rem 2rem;
            line-height: 1.8;
        }

        .content-container li {
            margin-bottom: 0.5rem;
        }

        .content-container a {
            color: var(--color-accent-warm);
            text-decoration: none;
            transition: var(--transition);
        }

        .content-container a:hover {
            color: var(--color-accent);
            text-decoration: underline;
        }

        /* Hero Section */
        .hero {
            height: 50vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
        }

        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(circle at 20% 30%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(244, 244, 244, 0.05) 0%, transparent 50%);
            animation: float 8s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0); }
            50% { transform: translate(-20px, 20px); }
        }

        .hero-content {
            text-align: center;
            z-index: 1;
            animation: fadeInUp 1s ease-out 0.3s both;
        }

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

        .hero h1 {
            font-family: var(--font-display);
            font-size: clamp(2rem, 6vw, 4rem);
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 1rem;
            letter-spacing: -0.03em;
        }

        .hero p {
            font-size: clamp(0.9rem, 1.5vw, 1.1rem);
            color: var(--color-text-muted);
            max-width: 600px;
            margin: 0 auto 1.5rem;
            font-weight: 300;
        }

        /* Gallery */
        .gallery-section {
            max-width: 1600px;
            margin: 2rem auto 4rem;
            padding: 0 2rem;
        }

        .filter-wrapper {
            position: relative;
            margin-bottom: 2.5rem;
        }

        /* Fade-Effekt rechts - zeigt an, dass mehr Inhalt verfügbar ist */
        .filter-wrapper::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 60px;
            background: linear-gradient(to right, transparent, var(--color-bg));
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 5;
        }

        .filter-wrapper.has-scroll::after {
            opacity: 1;
        }

        /* Fade-Effekt links - zeigt an, dass man zurück scrollen kann */
        .filter-wrapper::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 60px;
            background: linear-gradient(to left, transparent, var(--color-bg));
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 5;
        }

        .filter-wrapper.has-scroll-left::before {
            opacity: 1;
        }

        .filter-bar {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: flex-start;
            gap: 0.6rem;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
            scroll-behavior: smooth;
        }

        .filter-bar::-webkit-scrollbar {
            display: none;
        }

        /* Initiale Animation, um Scrollbarkeit anzudeuten */
        @media (max-width: 768px) {
            @keyframes swipeHint {
                0%, 100% {
                    transform: translateX(0);
                }
                50% {
                    transform: translateX(-10px);
                }
            }

            .filter-bar.animate-hint {
                animation: swipeHint 1.5s ease-in-out;
            }
        }

        .filter-scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: rgba(26, 26, 26, 0.95);
            border: 1px solid var(--color-border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: var(--transition);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .filter-scroll-btn.visible {
            opacity: 1;
            visibility: visible;
            pointer-events: all;
        }

        .filter-scroll-btn:hover {
            background: var(--color-surface-elevated);
            border-color: var(--color-accent-warm);
        }

        .filter-scroll-btn:hover svg {
            stroke: var(--color-accent);
        }

        .filter-scroll-btn svg {
            transition: var(--transition);
        }

        .filter-scroll-left {
            left: -20px;
        }

        .filter-scroll-right {
            right: -20px;
        }

        .filter-label {
            font-family: var(--font-mono);
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--color-text-muted);
            opacity: 0.6;
            flex-shrink: 0;
            white-space: nowrap;
        }


        .category-filter {
            display: flex;
            gap: 0.5rem;
            flex-wrap: nowrap;
            flex-shrink: 0;
        }

        .filter-btn {
            font-family: var(--font-mono);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            padding: 0.75rem 1.5rem;
            background: var(--color-surface);
            color: var(--color-text-muted);
            border: 1px solid var(--color-border);
            cursor: pointer;
            transition: var(--transition);
            border-radius: 6px;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: var(--color-surface-elevated);
            color: var(--color-accent);
            border-color: var(--color-accent-warm);
        }

        .date-filter {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            flex-wrap: nowrap;
            flex-shrink: 0;
        }

        .date-filter-select {
            font-family: var(--font-mono);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 0.75rem 2.2rem 0.75rem 0.85rem;
            background: var(--color-surface);
            color: var(--color-text-muted);
            border: 1px solid var(--color-border);
            border-radius: 6px;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a0a0a0'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.7rem center;
            transition: border-color 0.2s ease, color 0.2s ease;
            flex-shrink: 0;
        }

        #yearSelect {
            min-width: 7rem;
        }

        #monthSelect {
            min-width: 11rem;
        }

        .date-filter-select:hover,
        .date-filter-select:focus {
            border-color: var(--color-accent-warm);
            color: var(--color-accent);
            outline: none;
        }

        .date-filter-select option {
            background: var(--color-surface-elevated);
            color: var(--color-text);
        }

        #resetFilterBtn {
            padding: 0.75rem;
            min-width: auto;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #resetFilterBtn svg {
            margin: 0;
        }

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

        /* Timeline-Modus: Grid aufheben */
        .gallery.timeline-mode {
            display: block;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin: 3rem 0 2rem;
            padding: 0 2rem;
        }

        .pagination-btn {
            padding: 0.75rem 1.25rem;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 8px;
            color: var(--color-text);
            font-family: var(--font-mono);
            font-size: 0.85rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .pagination-btn:hover:not(:disabled) {
            background: var(--color-surface-elevated);
            border-color: var(--color-accent-warm);
            color: var(--color-accent);
        }

        .pagination-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .pagination-btn.active {
            background: var(--color-accent-warm);
            border-color: var(--color-accent-warm);
            color: var(--color-bg);
        }

        .pagination-info {
            font-family: var(--font-mono);
            font-size: 0.85rem;
            color: var(--color-text-muted);
            padding: 0 1rem;
        }

        .photo-card {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 12px;
            overflow: hidden;
            transition: var(--transition);
            cursor: pointer;
        }

        .photo-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            border-color: var(--color-accent-warm);
        }

        /* ── Skeleton Loader ──────────────────────────────────── */
        @keyframes skeleton-shimmer {
            0%   { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .skeleton-card {
            pointer-events: none;
            cursor: default;
        }

        .skeleton-card:hover {
            transform: none;
            box-shadow: none;
            border-color: var(--color-border);
        }

        .skeleton-img,
        .skeleton-line {
            background: linear-gradient(
                90deg,
                var(--color-surface) 25%,
                var(--color-surface-elevated) 50%,
                var(--color-surface) 75%
            );
            background-size: 200% 100%;
            animation: skeleton-shimmer 1.4s ease-in-out infinite;
        }

        .skeleton-img {
            width: 100%;
            height: 100%;
        }

        .skeleton-line {
            border-radius: 4px;
            height: 13px;
            margin-bottom: 10px;
        }

        .skeleton-title {
            width: 65%;
            height: 15px;
        }

        .skeleton-meta {
            width: 40%;
            height: 11px;
        }

        .photo-card.hidden {
            display: none;
        }

        .photo-wrapper {
            position: relative;
            aspect-ratio: 4/3;
            overflow: hidden;
        }

        .photo-title-row {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .new-badge {
            flex-shrink: 0;
            margin-top: 0.25rem;
            padding: 0.15rem 0.5rem;
            background: var(--color-accent-warm);
            color: #fff;
            font-family: var(--font-mono);
            font-size: 0.6rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-radius: 4px;
            pointer-events: none;
        }

        .video-badge {
            flex-shrink: 0;
            margin-top: 0.25rem;
            padding: 0.15rem 0.5rem;
            background: var(--color-accent-warm);
            color: #fff;
            font-family: var(--font-mono);
            font-size: 0.6rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-radius: 4px;
            pointer-events: none;
        }

        .video-duration {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--color-text-muted);
            margin-top: 0.25rem;
        }

        /* Play-Button Overlay auf Galerie-Karten */
        .play-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            transition: opacity 0.2s;
        }
        .play-overlay svg {
            width: 56px;
            height: 56px;
            filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
            transition: transform 0.2s;
        }
        .photo-card:hover .play-overlay svg {
            transform: scale(1.12);
        }

        /* Video-Player im Modal */
        .modal-video-container {
            width: 100%;
            aspect-ratio: 16/9;
            border-radius: 12px;
            overflow: hidden;
            background: #000;
            margin-bottom: 2rem;
        }
        .modal-video-container iframe,
        .modal-video-container video {
            width: 100%;
            height: 100%;
            border: none;
            display: block;
        }

        /* Play-Overlay im Admin-Grid */
        .play-overlay-admin {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }
        .play-overlay-admin svg {
            width: 40px;
            height: 40px;
        }

        /* Toggle-Buttons Medientyp (manage.php) */
        .media-type-toggle {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }
        .media-type-btn {
            flex: 1;
            padding: 0.7rem 1rem;
            background: var(--color-surface-elevated);
            border: 1px solid var(--color-border);
            border-radius: 8px;
            color: var(--color-text-muted);
            cursor: pointer;
            font-size: 0.95rem;
            transition: var(--transition);
        }
        .media-type-btn.active {
            background: var(--color-accent);
            border-color: var(--color-accent);
            color: #fff;
        }
        .video-source-toggle {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        .video-src-btn {
            flex: 1;
            padding: 0.5rem 0.75rem;
            background: var(--color-surface-elevated);
            border: 1px solid var(--color-border);
            border-radius: 6px;
            color: var(--color-text-muted);
            cursor: pointer;
            font-size: 0.85rem;
            transition: var(--transition);
        }
        .video-src-btn.active {
            border-color: var(--color-accent);
            color: var(--color-accent);
            background: rgba(8,117,195,0.08);
        }
        .form-hint {
            font-size: 0.78rem;
            color: var(--color-text-muted);
            margin-top: 0.3rem;
        }

        .photo-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
            user-select: none;
            -webkit-user-select: none;
            -webkit-user-drag: none;
        }

        /* ── LQIP Blur-Up ──────────────────────────────────────── */
        .lqip-placeholder {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: blur(16px);
            transform: scale(1.06); /* Blur-Rand verstecken */
            transition: opacity 0.3s ease;
            z-index: 0;
        }

        .lqip-main {
            position: relative;
            z-index: 1;
            opacity: 0;
            transition: opacity 0.4s ease, transform var(--transition);
        }

        .lqip-main.lqip-loaded {
            opacity: 1;
        }

        .lqip-main.lqip-loaded ~ .lqip-placeholder {
            opacity: 0;
        }

        .photo-card:hover .photo-wrapper img {
            transform: scale(1.05);
        }

        .photo-info {
            padding: 1.5rem;
        }

        .photo-title {
            font-family: var(--font-display);
            font-size: 1.25rem;
            line-height: 1.4;
            min-height: calc(1.25rem * 1.4 * 2);
            flex: 1;
        }

        .photo-category {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-accent-warm);
            margin-bottom: 1rem;
        }

        .exif-data {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
            font-size: 0.85rem;
            color: var(--color-text-muted);
        }

        /* Login Section */
        .login-section {
            max-width: 500px;
            margin: 8rem auto 4rem;
            padding: 0 2rem;
        }

        .login-card {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 12px;
            padding: 3rem;
        }

        .login-card h2 {
            font-family: var(--font-display);
            font-size: 2rem;
            margin-bottom: 2rem;
            text-align: center;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-family: var(--font-mono);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-muted);
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 0.75rem 1rem;
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            border-radius: 6px;
            color: var(--color-text);
            font-family: var(--font-body);
            font-size: 1rem;
            transition: var(--transition);
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--color-accent-warm);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 100px;
        }

        .btn-primary {
            width: 100%;
            padding: 1rem;
            background: var(--color-accent-warm);
            color: var(--color-bg);
            border: none;
            border-radius: 6px;
            font-family: var(--font-mono);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-primary:hover {
            background: #e09660;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
        }

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Upload Section */
        .upload-section {
            max-width: 800px;
            margin: 8rem auto 4rem;
            padding: 0 2rem;
        }

        .upload-card {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 12px;
            padding: 3rem;
        }

        .upload-card h2 {
            font-family: var(--font-display);
            font-size: 2rem;
            margin-bottom: 2rem;
        }

        .file-input-wrapper {
            position: relative;
            margin-bottom: 2rem;
        }

        .file-input-label {
            display: block;
            padding: 3rem;
            border: 2px dashed var(--color-border);
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .file-input-label:hover {
            border-color: var(--color-accent-warm);
            background: rgba(212, 165, 116, 0.05);
        }

        .file-input-label input[type="file"] {
            display: none;
        }

        .preview-image {
            max-width: 100%;
            max-height: 400px;
            border-radius: 8px;
            margin-top: 1rem;
            display: none;
        }

        .preview-image.active {
            display: block;
        }

        /* Loading Spinner */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid var(--color-border);
            border-top-color: var(--color-accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

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

        /* Modal / Lightbox */
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 2000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal.active {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            opacity: 1;
            overflow-y: auto;
            padding: 2vh 0;
        }

        .modal-content {
            position: relative;
            max-width: 1400px;
            width: 90%;
            background: var(--color-surface);
            border-radius: 16px;
            overflow: visible;
            animation: modalSlideUp 0.4s ease-out;
            margin: auto;
        }

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

        .modal-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            font-size: 2.5rem;
            color: var(--color-accent);
            cursor: pointer;
            z-index: 10;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(26, 26, 26, 0.8);
            border-radius: 50%;
            transition: var(--transition);
            line-height: 1;
        }

        .modal-close:hover {
            background: var(--color-accent-warm);
            color: var(--color-bg);
            transform: rotate(90deg);
        }

        .modal-title-row {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .modal-share-btn {
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .modal-share-btn svg {
            width: 18px;
            height: 18px;
            stroke: var(--color-text-muted);
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            transition: stroke 0.2s ease;
        }

        .modal-share-btn:hover {
            background: rgba(8, 117, 195, 0.12);
        }

        .modal-share-btn:hover svg {
            stroke: var(--color-accent-warm);
        }

        .modal-share-btn.copied svg {
            stroke: var(--color-success);
        }

        .modal-body {
            display: flex;
            flex-direction: column;
            padding: 3rem;
        }

        .modal-image-container {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--color-bg);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 2rem;
        }

        .modal-image-container img {
            width: 100%;
            height: auto;
            display: block;
            max-height: 70vh;
            object-fit: contain;
            user-select: none;
            -webkit-user-select: none;
            -webkit-user-drag: none;
            transform-origin: center center;
            will-change: transform;
            cursor: zoom-in;
        }

        .modal-image-container img.zoomed {
            cursor: grab;
        }

        .modal-image-container img.grabbing {
            cursor: grabbing;
        }

        .modal-zoom-btn {
            position: absolute;
            bottom: 0.6rem;
            right: 0.6rem;
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.25);
            background: rgba(0,0,0,0.45);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.2s;
            padding: 0;
            z-index: 2;
        }
        .modal-zoom-btn:hover { opacity: 1; }
        .modal-zoom-btn svg { width: 14px; height: 14px; }

        .modal-focus-btn {
            position: absolute;
            bottom: 0.6rem;
            right: 3.2rem;
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.25);
            background: rgba(0,0,0,0.45);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.2s, background 0.2s, border-color 0.2s;
            padding: 0;
            z-index: 2;
        }
        .modal-focus-btn:hover { opacity: 1; }
        .modal-focus-btn.active {
            opacity: 1;
            background: rgba(255, 210, 0, 0.25);
            border-color: rgba(255, 210, 0, 0.7);
            color: rgb(255, 210, 0);
        }
        .modal-focus-btn svg { width: 14px; height: 14px; }

        .modal-focus-point {
            position: absolute;
            width: 44px;
            height: 44px;
            display: none;
            pointer-events: none;
            transform: translate(-50%, -50%);
            z-index: 3;
        }
        .modal-focus-point::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 2px solid rgba(255, 210, 0, 0.9);
            box-shadow: 0 0 0 1px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(0,0,0,0.3);
        }
        .modal-focus-point::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 6px;
            height: 6px;
            background: rgba(255, 210, 0, 0.9);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
        }

        .modal-info {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .modal-category {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: var(--color-accent-warm);
        }

        .modal-title {
            font-family: var(--font-display);
            font-size: 2rem;
            line-height: 1.2;
            margin: 0;
        }

        .modal-description {
            position: relative;
            padding: 1.25rem 1.5rem 1.25rem 2rem;
            margin: 0;
            border-left: 3px solid var(--color-accent-warm);
            background: rgba(8, 117, 195, 0.06);
            border-radius: 0 8px 8px 0;
            color: var(--color-text-muted);
            font-style: italic;
            line-height: 1.8;
        }

        .modal-description::before {
            content: '\201C';
            position: absolute;
            top: 0.6rem;
            left: 0.6rem;
            font-family: var(--font-display);
            font-size: 1.8rem;
            line-height: 1;
            color: var(--color-accent-warm);
            opacity: 0.5;
            font-style: normal;
        }

        .modal-actions {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }

        .modal-icon-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.875rem;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 6px;
            cursor: pointer;
            transition: var(--transition);
            color: var(--color-text-muted);
            text-decoration: none;
            font-family: var(--font-mono);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .modal-icon-btn:hover {
            border-color: var(--color-accent-warm);
            color: var(--color-text);
            background: var(--color-surface-elevated);
        }

        .modal-icon-btn svg {
            width: 16px;
            height: 16px;
            opacity: 0.7;
            transition: var(--transition);
        }

        .modal-icon-btn:hover svg {
            opacity: 1;
        }

        /* ── Wetter-Badge ──────────────────────────────────────────────────────── */
        .modal-weather {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-family: var(--font-mono);
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-muted);
        }

        .modal-weather svg {
            flex-shrink: 0;
            opacity: 0.65;
        }

        .modal-exif-row {
            padding-top: 1.5rem;
            border-top: 1px solid var(--color-border);
        }


        .modal-map-wrapper {
            margin-top: 1.5rem;
            border-top: 1px solid var(--color-border);
            padding-top: 1.5rem;
        }

        .modal-map-label {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-muted);
            margin-bottom: 0.4rem;
        }

        .modal-location-row {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-bottom: 0.75rem;
        }

        .modal-geo-location {
            display: none;
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--color-text-muted);
        }

        .modal-geo-location.loading {
            display: block;
            opacity: 0.3;
        }

        .modal-geo-location.loading::after {
            content: '· · ·';
        }

        .modal-geo-location.loaded {
            display: block;
            opacity: 1;
        }

        .modal-geo-location.loaded::before {
            content: '📍 ';
        }

        /* ── Ähnliche Fotos ────────────────────────────────── */
        .modal-similar {
            display: none;
            padding: 1.5rem 3rem 2rem;
            border-top: 1px solid var(--color-border);
        }

        .modal-similar-title {
            font-family: var(--font-mono);
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-muted);
            margin-bottom: 1rem;
        }

        .modal-similar-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.75rem;
        }

        .modal-similar-item {
            position: relative;
            aspect-ratio: 4/3;
            overflow: hidden;
            border-radius: 6px;
            cursor: pointer;
            border: 1px solid var(--color-border);
            background: none;
            padding: 0;
            transition: border-color 0.2s;
        }

        .modal-similar-item:hover {
            border-color: var(--color-accent);
        }

        .modal-similar-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

        .modal-similar-item:hover img {
            transform: scale(1.05);
        }

        .modal-similar-label {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 0.5rem 0.6rem 0.4rem;
            background: linear-gradient(transparent, rgba(0,0,0,0.75));
            font-size: 0.75rem;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .modal-similar-item:hover .modal-similar-label {
            opacity: 1;
        }

        .modal-map-container {
            position: relative;
            width: 100%;
            height: 200px;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--color-border);
        }

        .modal-map-container iframe {
            width: 100%;
            height: 100%;
            border: none;
            display: block;
        }

        .modal-map-consent {
            position: absolute;
            inset: 0;
            background: var(--color-surface);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            padding: 1.5rem;
            text-align: center;
            z-index: 2;
        }

        .modal-map-consent p {
            font-family: var(--font-body);
            font-size: 0.82rem;
            color: var(--color-text-muted);
            line-height: 1.5;
            margin: 0;
        }

        .modal-map-consent-btn {
            background: var(--color-accent-warm);
            color: #fff;
            border: none;
            padding: 0.5rem 1.2rem;
            border-radius: 6px;
            font-family: var(--font-mono);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: var(--transition);
        }

        .modal-map-consent-btn:hover {
            opacity: 0.85;
        }

        /* Nav Actions (Theme Toggle + Burger Wrapper) */
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-shrink: 0;
        }

        /* Theme Toggle */
        .theme-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: none;
            border: 1px solid var(--color-border);
            border-radius: 50%;
            cursor: pointer;
            color: var(--color-text-muted);
            transition: var(--transition);
            flex-shrink: 0;
            margin-left: 0.75rem;
        }

        .theme-toggle:hover {
            color: var(--color-text);
            border-color: var(--color-text-muted);
        }

        /* Burger Menu */
        .burger {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 44px;
            height: 44px;
            cursor: pointer;
            background: none;
            border: none;
            gap: 5px;
            z-index: 1001;
            position: relative;
        }

        .burger span {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--color-text);
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        .burger.active span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .burger.active span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }

        .burger.active span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        /* About Page */
        .about-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: start;
            max-width: 1100px;
            margin: 0 auto;
            padding: 5rem 2rem;
        }

        .about-image-wrapper {
            position: relative;
        }

        .about-image-placeholder {
            width: 100%;
            aspect-ratio: 3 / 4;
            background: var(--color-surface);
            border: 2px dashed var(--color-border);
            border-radius: 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            color: var(--color-text-muted);
            font-family: var(--font-mono);
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .about-image-placeholder svg {
            opacity: 0.3;
        }

        .about-image-accent {
            position: absolute;
            top: -12px;
            left: -12px;
            width: 60px;
            height: 60px;
            border-top: 3px solid var(--color-accent-warm);
            border-left: 3px solid var(--color-accent-warm);
            pointer-events: none;
        }

        .about-image-accent-br {
            position: absolute;
            bottom: -12px;
            right: -12px;
            width: 60px;
            height: 60px;
            border-bottom: 3px solid var(--color-accent-warm);
            border-right: 3px solid var(--color-accent-warm);
            pointer-events: none;
        }

        .about-content h1 {
            font-family: var(--font-display);
            font-size: 2.8rem;
            font-weight: 700;
            color: var(--color-accent);
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }

        .about-content .about-subtitle {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: var(--color-accent-warm);
            margin-bottom: 2rem;
        }

        .about-content p {
            font-family: var(--font-body);
            font-size: 1.05rem;
            line-height: 1.9;
            color: var(--color-text-muted);
            margin-bottom: 1.5rem;
        }

        .about-content p:last-of-type {
            margin-bottom: 2.5rem;
        }

        .about-hobbies {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .about-hobby {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            padding: 0.6rem 1.1rem;
            border-radius: 30px;
            font-family: var(--font-mono);
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-muted);
            transition: var(--transition);
        }

        .about-hobby:hover {
            border-color: var(--color-accent-warm);
            color: var(--color-accent);
        }

        .about-hobby svg {
            width: 16px;
            height: 16px;
            stroke: var(--color-accent-warm);
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .filter-scroll-btn {
                display: none;
            }

            .filter-wrapper {
                padding: 0;
            }

            /* Stärkere Fade-Effekte auf Mobile für bessere Sichtbarkeit */
            .filter-wrapper::after {
                width: 40px;
                background: linear-gradient(to right, transparent 0%, rgba(10, 10, 10, 0.8) 50%, var(--color-bg) 100%);
            }

            .filter-wrapper::before {
                width: 40px;
                background: linear-gradient(to left, transparent 0%, rgba(10, 10, 10, 0.8) 50%, var(--color-bg) 100%);
            }

            .filter-bar {
                padding-right: 30px;
                padding-left: 5px;
            }

            .modal-body {
                padding: 2rem;
            }

            .modal-similar {
                padding: 1.25rem 2rem 1.5rem;
            }

            .modal-similar-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .modal-similar-label {
                opacity: 1;
            }

            .modal-image-container img {
                max-height: 50vh;
            }

            .modal-title {
                font-size: 1.5rem;
            }

            .modal-title-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .modal-actions {
                width: 100%;
                justify-content: flex-start;
            }


            .content-container {
                padding: 2rem;
            }

            .content-container h1 {
                font-size: 2rem;
            }

            .gallery {
                grid-template-columns: 1fr;
            }

            .pagination {
                gap: 0.25rem;
                margin: 2rem 0 1rem;
                padding: 0 1rem;
            }

            .pagination-btn {
                padding: 0.5rem 0.75rem;
                font-size: 0.75rem;
            }

            .pagination-info {
                font-size: 0.75rem;
                padding: 0 0.5rem;
            }

            .nav-links {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: var(--color-bg);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 2rem;
                opacity: 0;
                pointer-events: none;
                transform: translateX(100%);
                transition: all 0.35s ease;
                z-index: 1000;
            }

            .nav-links.open {
                opacity: 1;
                pointer-events: all;
                transform: translateX(0);
            }

            .nav-links a {
                font-size: 1.1rem;
            }

            .burger {
                display: flex;
            }

            .nav-actions .social-icons {
                display: none;
            }

            .about-wrapper {
                grid-template-columns: 1fr;
                gap: 2.5rem;
                padding: 3rem 1.5rem;
            }

            .about-image-wrapper {
                max-width: 320px;
                margin: 0 auto;
                width: 100%;
            }

            .about-content h1 {
                font-size: 2rem;
            }

            .login-card,
            .upload-card {
                padding: 2rem;
            }
        }
        /* Scroll to Top */
        .scroll-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 44px;
            height: 44px;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transform: translateY(12px);
            transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, border-color 0.2s ease, background 0.2s ease;
            z-index: 500;
            -webkit-tap-highlight-color: transparent;
        }

        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .scroll-to-top:hover {
            background: var(--color-surface-elevated);
            border-color: var(--color-accent-warm);
        }

        .scroll-to-top svg {
            width: 18px;
            height: 18px;
            stroke: var(--color-text-muted);
            transition: stroke 0.2s ease;
        }

        .scroll-to-top:hover svg {
            stroke: var(--color-accent-warm);
        }

        /* ── Karte Page ──────────────────────────────────────────────────────────── */
        .map-section {
            position: relative;
            min-height: calc(100vh - 80px);
            display: flex;
            flex-direction: column;
        }

        .map-header {
            padding: 3rem 2rem 1.5rem;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
            box-sizing: border-box;
            animation: fadeInUp 0.8s ease-out;
        }

        .map-title {
            font-family: var(--font-display);
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 700;
            letter-spacing: -0.03em;
            margin-bottom: 0.5rem;
            color: var(--color-accent);
        }

        .map-subtitle {
            font-family: var(--font-mono);
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--color-text-muted);
        }

        /* Consent Overlay */
        .map-consent-overlay {
            position: absolute;
            inset: 0;
            background: var(--color-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            padding: 2rem;
            animation: fadeInUp 0.5s ease-out;
        }

        .map-consent-card {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 16px;
            padding: 3rem;
            max-width: 480px;
            width: 100%;
            text-align: center;
            box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
        }

        .map-consent-icon {
            color: var(--color-accent-warm);
            margin-bottom: 1.5rem;
            display: flex;
            justify-content: center;
        }

        .map-consent-title {
            font-family: var(--font-display);
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--color-accent);
            margin-bottom: 1rem;
        }

        .map-consent-text {
            font-family: var(--font-body);
            font-size: 0.9rem;
            line-height: 1.8;
            color: var(--color-text-muted);
            margin-bottom: 2rem;
        }

        .map-consent-actions {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .map-consent-btn {
            background: var(--color-accent-warm);
            color: #fff;
            border: none;
            padding: 0.875rem 2.5rem;
            border-radius: 8px;
            font-family: var(--font-mono);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
            max-width: 240px;
        }

        .map-consent-btn:hover {
            opacity: 0.88;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(8, 117, 195, 0.35);
        }

        .map-consent-link {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--color-text-muted);
            text-decoration: none;
            transition: color 0.2s ease;
            cursor: pointer;
        }

        .map-consent-link:hover {
            color: var(--color-accent-warm);
        }

        /* Karten-Container */
        .map-container-wrapper {
            flex: 1;
            padding: 0 2rem 2rem;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
            box-sizing: border-box;
        }

        #miniMap {
            width: 100%;
            height: 65vh;
            min-height: 400px;
            border-radius: 12px;
            border: 1px solid var(--color-border);
            overflow: hidden;
        }

        /* OSM-Tiles leicht abdunkeln für dark theme */
        .map-tile-layer img {
            filter: brightness(0.85) saturate(0.7);
        }

        /* Zoom-Controls */
        .map-zoom-controls {
            position: absolute;
            top: 12px;
            left: 12px;
            display: flex;
            flex-direction: column;
            gap: 2px;
            z-index: 10;
        }

        .map-zoom-btn {
            width: 30px;
            height: 30px;
            background: var(--color-surface);
            color: var(--color-text);
            border: 1px solid var(--color-border);
            border-radius: 4px;
            font-size: 1.1rem;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s ease, border-color 0.15s ease;
        }

        .map-zoom-btn:hover {
            background: var(--color-surface-elevated);
            border-color: var(--color-accent-warm);
        }

        /* Attribution */
        .map-attribution {
            position: absolute;
            bottom: 6px;
            right: 8px;
            background: rgba(10, 10, 10, 0.8);
            color: var(--color-text-muted);
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 3px;
            z-index: 10;
            pointer-events: auto;
        }

        .map-attribution a {
            color: var(--color-accent-warm);
            text-decoration: none;
        }

        /* Foto-Thumbnail-Marker */
        .photo-marker {
            width: 56px;
            height: 56px;
            border-radius: 50% 50% 50% 0;
            transform: rotate(-45deg);
            background: var(--color-surface);
            border: 2.5px solid var(--color-accent-warm);
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
            cursor: pointer;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .photo-marker:hover {
            border-color: var(--color-accent);
            box-shadow: 0 8px 24px rgba(8, 117, 195, 0.5);
        }

        .photo-marker img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: rotate(45deg) scale(1.45);
            display: block;
            pointer-events: none;
            user-select: none;
            -webkit-user-select: none;
            -webkit-user-drag: none;
        }

        /* Popup */
        .map-popup {
            position: absolute;
            bottom: calc(100% + 10px);
            left: -76px; /* (14px Markeranker) − (90px = 180px/2) */
            width: 180px;
            background: var(--color-surface-elevated);
            border: 1px solid var(--color-border);
            border-radius: 10px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
            overflow: hidden;
            cursor: pointer;
            pointer-events: auto;
            z-index: 10;
        }

        .map-popup-hidden {
            display: none !important;
        }

        .map-popup-thumb {
            width: 100%;
            height: 110px;
            object-fit: cover;
            display: block;
            pointer-events: none;
            user-select: none;
            -webkit-user-select: none;
            -webkit-user-drag: none;
        }

        .map-popup-info {
            padding: 0.65rem 0.85rem 0.75rem;
        }

        .map-popup-title {
            font-family: var(--font-display);
            font-size: 0.85rem;
            color: var(--color-text);
            line-height: 1.3;
            margin-bottom: 0.25rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .map-popup-cat {
            font-family: var(--font-mono);
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-accent-warm);
        }


        /* Cluster-Marker */
        .map-cluster {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--color-accent-warm);
            border: 2.5px solid rgba(255, 255, 255, 0.25);
            color: #fff;
            font-family: var(--font-mono);
            font-size: 0.8rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            pointer-events: auto;
        }
        .map-cluster:hover {
            transform: scale(1.15);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
        }
        .map-cluster-large { width: 56px; height: 56px; font-size: 0.95rem; }
        .map-cluster-xl    { width: 68px; height: 68px; font-size: 1.1rem; }

        /* Leer-Zustand */
        .map-empty-state {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 4rem 2rem;
            text-align: center;
            animation: fadeInUp 0.6s ease-out;
        }

        .map-empty-icon {
            color: var(--color-border);
            margin-bottom: 1.5rem;
        }

        .map-empty-state h2 {
            font-family: var(--font-display);
            font-size: 1.8rem;
            color: var(--color-accent);
            margin-bottom: 0.75rem;
        }

        .map-empty-state p {
            font-size: 1rem;
            color: var(--color-text-muted);
            max-width: 400px;
            line-height: 1.7;
        }

        /* Route-Tooltip */
        .map-route-tooltip {
            position: absolute;
            background: var(--color-surface-elevated);
            border: 1px solid var(--color-border);
            border-radius: 6px;
            padding: 0.3rem 0.65rem;
            font-family: var(--font-mono);
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--color-text);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            pointer-events: none;
            z-index: 20;
            white-space: nowrap;
        }
        .map-route-tooltip-hidden { display: none; }

        @media (max-width: 768px) {
            .map-header {
                padding: 2rem 1.5rem 1rem;
            }

            .map-consent-card {
                padding: 2rem 1.5rem;
            }

            .map-container-wrapper {
                padding: 0 1rem 1.5rem;
            }

            #miniMap {
                height: 55vh;
                min-height: 320px;
                border-radius: 8px;
            }

            .photo-marker {
                width: 44px;
                height: 44px;
            }

            .map-popup {
                width: 150px;
            }

            .map-popup-thumb {
                height: 90px;
            }
        }

        /* ── View-Toggle ─────────────────────────────────────────────────────────── */
        .view-toggle-bar {
            display: flex;
            justify-content: flex-end;
            gap: 0.25rem;
            margin-bottom: 1.25rem;
        }

        .view-toggle-btn {
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 6px;
            cursor: pointer;
            transition: var(--transition);
            color: var(--color-text-muted);
        }

        .view-toggle-btn svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 1.75;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .view-toggle-btn:hover {
            border-color: var(--color-accent-warm);
            color: var(--color-accent);
            background: var(--color-surface-elevated);
        }

        .view-toggle-btn.active {
            border-color: var(--color-accent-warm);
            color: var(--color-accent-warm);
            background: var(--color-surface-elevated);
        }

        /* ── Timeline Feed (alternating) ─────────────────────────────────────────── */
        .timeline-feed {
            position: relative;
            max-width: 900px;
            margin: 0 auto;
        }

        /* Zentrale Linie */
        .timeline-feed::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 2px;
            transform: translateX(-50%);
            background: var(--color-border);
            border-radius: 1px;
        }

        /* Jahr-Block */
        .timeline-year-block {
            margin-bottom: 2.5rem;
        }

        /* Jahr-Heading: zentriert mit großem Marker */
        .timeline-year-heading {
            position: relative;
            text-align: center;
            margin-bottom: 2rem;
            z-index: 1;
        }

        .timeline-year-heading::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 22px;
            height: 22px;
            background: var(--color-bg);
            border: 3px solid var(--color-accent-warm);
            border-radius: 50%;
            z-index: 1;
        }

        .timeline-year-heading span {
            font-family: var(--font-display);
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--color-accent);
            letter-spacing: -0.02em;
            background: var(--color-bg);
            padding: 0 1.5rem;
            position: relative;
            z-index: 2;
        }

        /* Monat-Heading: zentriert mit kleinem Marker */
        .timeline-month-block {
            margin-bottom: 1rem;
        }

        .timeline-month-heading {
            position: relative;
            text-align: center;
            margin-bottom: 1.25rem;
            z-index: 1;
        }

        .timeline-month-heading::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 10px;
            height: 10px;
            background: var(--color-bg);
            border: 2px solid var(--color-text-muted);
            border-radius: 50%;
            z-index: 1;
        }

        .timeline-month-heading span {
            font-family: var(--font-mono);
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: var(--color-text-muted);
            background: var(--color-bg);
            padding: 0 1rem;
            position: relative;
            z-index: 2;
        }

        /* Foto-Eintrag: 3-Spalten-Grid (Inhalt | Dot | Leerseite) */
        .timeline-entry {
            display: grid;
            grid-template-columns: 1fr 3.5rem 1fr;
            grid-template-areas: "content dot spacer";
            margin-bottom: 1.5rem;
            cursor: pointer;
            align-items: start;
        }

        /* Rechte Einträge: Inhalt rechts, Leerseite links */
        .tl-right {
            grid-template-areas: "spacer dot content";
        }

        .timeline-entry-content { grid-area: content; min-width: 0; }
        .timeline-dot            { grid-area: dot; }
        .timeline-entry-spacer   { grid-area: spacer; }

        /* Dot in der Mitte */
        .timeline-dot {
            display: flex;
            justify-content: center;
            padding-top: 1.15rem;
            position: relative;
            z-index: 1;
        }

        .timeline-dot::before {
            content: '';
            width: 12px;
            height: 12px;
            flex-shrink: 0;
            background: var(--color-surface);
            border: 2.5px solid var(--color-accent-warm);
            border-radius: 50%;
            transition: background 0.2s ease, transform 0.2s ease;
        }

        .timeline-entry:hover .timeline-dot::before {
            background: var(--color-accent-warm);
            transform: scale(1.3);
        }

        /* Datum */
        .timeline-date {
            font-family: var(--font-mono);
            font-size: 0.67rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-muted);
            margin-bottom: 0.4rem;
        }

        .tl-left .timeline-date  { text-align: right; }
        .tl-right .timeline-date { text-align: left; }

        /* Karte */
        .timeline-card {
            display: flex;
            min-width: 0;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 10px;
            overflow: hidden;
            transition: border-color 0.25s ease, box-shadow 0.25s ease;
        }

        /* Linke Einträge: Bild auf der rechten Seite der Karte */
        .tl-left .timeline-card {
            flex-direction: row-reverse;
        }

        .timeline-entry:hover .timeline-card {
            border-color: var(--color-accent-warm);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        }

        .timeline-card-img {
            flex-shrink: 0;
            width: 120px;
            height: 90px;
            overflow: hidden;
        }

        .timeline-card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.35s ease;
            user-select: none;
            -webkit-user-select: none;
            -webkit-user-drag: none;
        }

        .timeline-entry:hover .timeline-card-img img {
            transform: scale(1.06);
        }

        .timeline-card-info {
            flex: 1;
            padding: 0.75rem 0.9rem;
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            min-width: 0;
        }

        /* Linke Einträge: Text rechtsbündig */
        .tl-left .timeline-card-info {
            text-align: right;
            align-items: flex-end;
        }

        .timeline-card-title {
            font-family: var(--font-display);
            font-size: 0.95rem;
            color: var(--color-text);
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        .timeline-card-category {
            font-family: var(--font-mono);
            font-size: 0.62rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-accent-warm);
        }

        .timeline-card-desc {
            font-size: 0.8rem;
            color: var(--color-text-muted);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Mobile: Linie links, alle Einträge einspaltig */
        @media (max-width: 700px) {
            .timeline-feed {
                padding-left: 2.5rem;
            }

            .timeline-feed::before {
                left: 10px;
                transform: none;
            }

            .timeline-year-heading,
            .timeline-month-heading {
                text-align: left;
            }

            .timeline-year-heading::before {
                left: -2.5rem;
                transform: translateY(-50%);
            }

            .timeline-month-heading::before {
                left: -2.25rem;
                transform: translateY(-50%);
            }

            .timeline-year-heading span,
            .timeline-month-heading span {
                padding: 0;
                background: transparent;
            }

            .timeline-entry {
                grid-template-columns: 1fr;
                position: relative;
            }

            .timeline-entry,
            .tl-left,
            .tl-right {
                grid-template-areas: "content";
            }

            .timeline-dot,
            .timeline-entry-spacer {
                display: none;
            }

            .timeline-entry::before {
                content: '';
                position: absolute;
                left: -2.2rem;
                top: 1.1rem;
                width: 8px;
                height: 8px;
                background: var(--color-surface);
                border: 2px solid var(--color-accent-warm);
                border-radius: 50%;
                transition: background 0.2s ease;
            }

            .timeline-entry:hover::before {
                background: var(--color-accent-warm);
            }

            .tl-left .timeline-card { flex-direction: row; }
            .tl-left .timeline-date { text-align: left; }
            .tl-left .timeline-card-info {
                text-align: left;
                align-items: flex-start;
            }

            .timeline-card-img {
                width: 90px;
                height: 72px;
            }

            .timeline-card-info {
                padding: 0.65rem 0.75rem;
            }
        }

        /* ── Featured-Hero ────────────────────────────────────────────────────── */
        #featuredSection {
            margin-bottom: 2.5rem;
        }

        .featured-hero {
            display: grid;
            grid-template-columns: 3fr 2fr;
            border: 1px solid var(--color-border);
            border-radius: 12px;
            overflow: hidden;
            background: var(--color-surface);
        }

        .featured-hero-image-wrap {
            overflow: hidden;
            aspect-ratio: 4 / 3;
            cursor: pointer;
        }

        .featured-hero-image-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }

        .featured-hero-image-wrap:hover img {
            transform: scale(1.04);
        }

        .featured-hero-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 2.5rem 2rem;
            gap: 0.8rem;
        }

        .featured-hero-label {
            font-family: var(--font-mono);
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            color: var(--color-accent-warm);
        }

        .featured-hero-title {
            font-family: var(--font-display);
            font-size: 2rem;
            font-weight: 400;
            line-height: 1.2;
            color: var(--color-text);
        }

        .featured-hero-category {
            font-family: var(--font-mono);
            font-size: 0.7rem;
            letter-spacing: 0.1em;
            color: var(--color-text-muted);
        }

        .featured-hero-description {
            font-family: var(--font-body);
            font-size: 0.88rem;
            color: var(--color-text-muted);
            line-height: 1.65;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .featured-hero-btn {
            margin-top: 0.4rem;
            align-self: flex-start;
            background: var(--color-accent-warm);
            color: #fff;
            border: none;
            padding: 0.6rem 1.25rem;
            border-radius: 6px;
            font-family: var(--font-mono);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: var(--transition);
        }

        .featured-hero-btn:hover {
            background: #0664a8;
        }

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

            .featured-hero-image-wrap {
                aspect-ratio: 16 / 9;
            }

            .featured-hero-info {
                padding: 1.5rem;
            }

            .featured-hero-title {
                font-size: 1.5rem;
            }
        }

        /* ── Belichtungsdreieck ──────────────────────────────────────────────────── */
        .modal-exposure-triangle {
            flex: 0 0 auto;
        }

        .et-heading {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-muted);
            margin-bottom: 0.25rem;
        }

        .et-svg {
            display: block;
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
            overflow: visible;
            font-family: var(--font-mono), monospace;
        }

        .et-outer {
            fill: none;
            stroke: var(--color-border);
            stroke-width: 1.5;
            stroke-dasharray: 5 4;
            stroke-linejoin: round;
        }

        .et-axis {
            stroke: var(--color-border);
            stroke-width: 0.75;
            opacity: 0.4;
        }

        .et-inner {
            fill: var(--color-accent-warm);
            fill-opacity: 0.15;
            stroke: var(--color-accent-warm);
            stroke-width: 2;
            stroke-linejoin: round;
            animation: etAppear 0.55s ease 0.15s both;
        }

        @keyframes etAppear {
            from { opacity: 0; }
            to   { opacity: 1; }
        }

        .et-vdot {
            fill: var(--color-border);
            opacity: 0.6;
        }

        .et-cdot {
            fill: var(--color-border);
            opacity: 0.5;
        }

        .et-idot {
            fill: var(--color-accent-warm);
            animation: etAppear 0.55s ease 0.3s both;
        }

        .et-lname {
            font-size: 9px;
            fill: var(--color-text-muted);
            letter-spacing: 0.06em;
        }

        .et-lval {
            font-size: 11.5px;
            fill: var(--color-accent);
            font-weight: 700;
        }

