/* Reset und Grundlagen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Astrofotografie Farbpalette */
:root {
    --astro-blue: #2D66B6;
    --astro-magenta: #BC49A5;
    --astro-blue-light: #4A8AD4;
    --astro-magenta-light: #D66CC4;
    --astro-gradient: linear-gradient(135deg, var(--astro-blue), var(--astro-magenta));
    --astro-gradient-hover: linear-gradient(135deg, var(--astro-blue-light), var(--astro-magenta-light));
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
}

/* ===== STERNENHINTERGRUND ===== */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%; /* Größer für Parallax-Bewegung */
    will-change: transform;
}

.star {
    position: absolute;
    border-radius: 50%;
    /* Hintergrund und Animation werden dynamisch gesetzt */
}

/* Nebel-Ebene */
.nebula-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Sternschnuppen-Ebene */
.shooting-star-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Lens Flare Ebene */
.lens-flare-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ===== GRUNDLAGEN ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
    position: relative;
}

/* Inhalt über den Sternen */
header, main, footer, .hero {
    position: relative;
    z-index: 1;
}

/* Performance-Optimierungen für Animationen */
.project-card,
.project-image img {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative; /* Wichtig für Dropdown-Positionierung */
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--astro-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    /* Schimmer/Glow-Effekt */
    text-shadow: 0 0 3px #8b5cf680, 0 0 6px #22d3ee40;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    /* Desktop: Immer sichtbar */
    transform: none;
    opacity: 1;
    visibility: visible;
    position: static;
    background: transparent;
    box-shadow: none;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--astro-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--astro-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section mit Slideshow */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    pointer-events: none; /* Nicht klickbar wenn nicht aktiv */
}

.slide.fast-transition {
    transition: opacity 0.3s ease-in-out;
}

.slide.active {
    opacity: 1;
    pointer-events: auto; /* Nur aktiver Slide ist klickbar */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.02);
}

.slide-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    color: white;
    text-align: left;
}

.slide-info h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.prev-btn, .next-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(45, 102, 182, 0.8);
    transform: scale(1.1);
}

.slide-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--astro-blue);
    transform: scale(1.3);
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--astro-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-button.primary {
    background: var(--astro-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(45, 102, 182, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(45, 102, 182, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.cta-button.secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* About Section */
.about {
    padding: 8rem 0;
    background: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.about-text {
    background: rgba(15, 15, 20, 0.45);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: var(--astro-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(20, 20, 25, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--astro-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #9ca3af;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    font-size: 0.9rem;
}

/* Gallery Page Styles */
.gallery-page {
    padding-top: 80px;
}

.page-header {
    background: transparent;
    padding: 6rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--astro-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(45, 102, 182, 0.3);
}

.page-header p {
    font-size: 1.3rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: inline-block;
}

.gallery-content {
    padding: 4rem 0;
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Immer drei Spalten */
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.project-card {
    background: rgba(20, 20, 25, 0.45);
    backdrop-filter: blur(18px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

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

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    z-index: 10;
}

.project-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1; /* Quadratische Kacheln */
}

.project-image img {
    width: 100%;
    height: 100%; /* Füllt das Quadrat vollständig */
    object-fit: cover; /* Gleichmäßiger Crop an den Seiten */
    object-position: center; /* Zentrierter Zuschnitt */
    display: block;
    transition: transform 0.5s ease;
}

/* View Count Badge */
.view-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.view-count i {
    font-size: 0.8rem;
    color: #22d3ee;
}

.project-card:hover .view-count {
    opacity: 1;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.85);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.project-info p {
    color: #d1d5db;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.click-count {
    margin-top: 0.5rem;
    opacity: 0.7;
}

.click-count small {
    font-size: 0.8rem;
    color: #9ca3af;
}

.click-count i {
    margin-right: 0.3rem;
    color: var(--astro-blue);
}

/* Entfernt: Pfeil-Overlay/Link-Icon, da gesamte Kachel klickbar ist */

.load-more {
    text-align: center;
    margin-top: 4rem;
}

.loading-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
    font-style: italic;
}

.loading-message p {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Active Navigation */
.nav-link.active {
    color: var(--astro-blue);
}

.nav-link.active::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Projekte Section */
.projects {
    padding: 8rem 0;
    background: transparent;
    position: relative;
}

.projects h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: var(--astro-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #9ca3af;
    border: 2px solid #374151;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    color: #ffffff;
    border-color: var(--astro-blue);
    background: var(--astro-gradient);
    box-shadow: 0 5px 15px rgba(45, 102, 182, 0.3);
}

/* ==================== ERWEITERTE FILTER-CONTAINER ==================== */
.filter-container {
    margin-bottom: 2rem;
    background: rgba(12, 12, 18, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    user-select: none;
}

.filter-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.filter-header i:first-child {
    color: var(--astro-blue);
    font-size: 1rem;
}

.filter-header span {
    flex: 1;
    font-weight: 500;
    color: #fff;
}

.filter-arrow {
    transition: transform 0.3s ease;
    color: #888;
}

.filter-header.open .filter-arrow {
    transform: rotate(180deg);
}

.filter-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.filter-panel.open {
    max-height: 600px;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-section {
    margin-bottom: 1.25rem;
}

.filter-section:last-of-type {
    margin-bottom: 1rem;
}

.filter-section label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(30, 30, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--astro-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(45, 102, 182, 0.2);
}

.filter-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    padding: 0.5rem 1rem;
    background: rgba(30, 30, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #aaa;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover {
    border-color: var(--astro-blue);
    color: #fff;
}

.filter-chip.active {
    background: var(--astro-gradient);
    border-color: transparent;
    color: #fff;
}

.filter-dropdowns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

/* View Toggle (Objekte/Projekte) */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem;
    border-radius: 8px;
}

.view-toggle-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.view-toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.view-toggle-btn.active {
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
    color: #fff;
    font-weight: 500;
}

.view-toggle-btn i {
    font-size: 0.85rem;
}

.filter-reset {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #aaa;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-reset:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    color: #888;
    font-size: 0.9rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #444;
}

.no-results p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--astro-blue);
}

/* Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.project img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.project:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.overlay p {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.project-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

.view-btn {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    background: var(--astro-gradient);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 102, 182, 0.4);
}

/* Kontakt Section */
.contact {
    padding: 6rem 0;
    background: transparent;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--astro-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact p {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(55, 65, 81, 0.7);
    transform: translateY(-3px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--astro-blue);
}

/* Footer */
footer {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    border-top: 1px solid rgba(55, 65, 81, 0.5);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    color: #9ca3af;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(55, 65, 81, 0.6);
    backdrop-filter: blur(5px);
    color: #9ca3af;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--astro-blue);
    color: white;
    transform: translateY(-3px);
}

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

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--astro-blue);
    transform: scale(1.2);
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 300;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf Tablets */
        padding: 0 0.5rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%; /* Direkt unter dem Header */
        right: 0;
        width: auto;
        min-width: 200px;
        max-width: 280px;
        background: rgba(15, 15, 20, 0.98);
        backdrop-filter: blur(10px);
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(45, 102, 182, 0.2);
        
        /* Animation: von oben einklappen */
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s ease-out,
                    opacity 0.25s ease-out,
                    visibility 0.25s ease-out;
        
        z-index: 9999;
        overflow: hidden;
    }

    .nav-menu.active {
        transform: scaleY(1) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        /* Keine Animation auf li - immer sichtbar */
    }
    
    .nav-link {
        font-size: 1rem;
        display: block;
        padding: 0.875rem 1.5rem;
        color: #ffffff;
        transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    }

    .nav-link:hover {
        background: rgba(45, 102, 182, 0.15);
        color: var(--astro-blue);
        padding-left: 1.75rem;
    }

    .nav-link::after {
        display: none; /* Unterstriche im Dropdown entfernen */
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 10001;
        padding: 10px;
        border-radius: 8px;
        transition: background 0.2s ease;
    }

    .hamburger:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .hamburger span {
        width: 24px;
        height: 2px;
        background: #ffffff;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

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

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

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

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 2rem;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
    
    .slide-info {
        padding: 2rem 1rem 1rem;
    }
    
    .slide-info h3 {
        font-size: 1.8rem;
    }
    
    .slideshow-controls {
        padding: 0 0.5rem;
        display: none; /* Pfeile auf Mobile verstecken - stattdessen Swipe */
    }
    
    .prev-btn, .next-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1.2rem;
    }
    
    /* Slideshow auf Mobile: zentriert mit max. Seitenverhältnis */
    .hero {
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent;
        overflow: visible;
    }

    .slideshow-container {
        width: 100%;
        /* Max 2:3 Seitenverhältnis (Breite:Höhe), darüber hinaus einfach zentrieren */
        height: 100vw;/* Quadratisch; für 3:2-> min(100vw * 1.33, 100vh);*/
        max-height: 100vh;
        position: relative;
        overflow: visible;
    }

    .slide-wrapper {
        overflow: hidden;
    }
    
    /* Punkte gleiten stufenlos unter das Bild wenn genug Platz da ist.
       Wenn Hero (100vh) deutlich höher als Slideshow (100vw) → Punkte unter dem Bild.
       Wenn Hero ≈ Slideshow (Querformat/Quadrat) → Punkte bleiben im Bild.
       clamp(-2rem, 50vw - 50vh + 1rem, 1rem) berechnet das fließend. */
    .slide-indicators {
        position: absolute;
        bottom: clamp(-2rem, calc(50vw - 50vh + 1rem), 1rem);
        left: 50%;
        transform: translateX(-50%);
        transition: bottom 0.3s ease;
    }
    
    .slide {
        background-attachment: scroll; /* Fixed funktioniert nicht gut auf Mobile */
    }
    
    .slide-info {
        bottom: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .slide-info h3 {
        font-size: 1.2rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr; /* 1 Spalte auf Mobile */
        gap: 2rem;
        padding: 0;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    footer .container {
        text-align: center;
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-overlay {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .slide-info h3 {
        font-size: 1.5rem;
    }
    
    .slide-info p {
        font-size: 1rem;
    }
    
    .slideshow-controls {
        display: none; /* Verstecke Pfeile auf sehr kleinen Bildschirmen */
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    /* Filter Mobile Styles */
    .filter-dropdowns {
        grid-template-columns: 1fr;
    }
    
    .filter-chip {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .filter-header {
        padding: 0.875rem 1rem;
    }
    
    .filter-panel.open {
        padding: 0.75rem 1rem 1rem;
    }
}
