/* ============================================
   POTENTIAL Eventagentur – CSS
   Dark Premium Theme with #00a0d1 Accent
   ============================================ */

/* === Design Tokens === */
:root {
    --color-primary: #00a0d1;
    --color-primary-dark: #0080a8;
    --color-primary-light: #33b3db;
    --color-primary-glow: rgba(0, 160, 209, 0.3);
    --color-primary-subtle: rgba(0, 160, 209, 0.08);

    --color-bg: #0a0a0f;
    --color-bg-elevated: #12121a;
    --color-bg-card: #16161f;
    --color-bg-card-hover: #1c1c28;

    --color-text: #f0f0f5;
    --color-text-secondary: #9898a6;
    --color-text-muted: #5a5a6e;

    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(0, 160, 209, 0.3);

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-glow: 0 0 30px rgba(0, 160, 209, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

.accent {
    color: var(--color-primary);
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-medium);
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 36px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover .logo-img {
    opacity: 0.8;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

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

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

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

.nav-cta {
    background: var(--color-primary) !important;
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: all var(--transition-fast) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--color-primary-light) !important;
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Hero Section === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

@keyframes heroZoom {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1.2);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 15, 0.4) 0%,
            rgba(10, 10, 15, 0.6) 40%,
            rgba(10, 10, 15, 0.85) 80%,
            rgba(10, 10, 15, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--color-border-hover);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 28px;
    background: rgba(0, 160, 209, 0.06);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.hero-line.accent {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-text-secondary);
    max-width: 550px;
    margin: 0 auto 40px;
    font-weight: 300;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-subtle);
}

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

/* === Sections === */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 12px;
}

.section-tag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
}

/* === Services Section === */
.section-services {
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.service-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    margin-bottom: 24px;
    transition: all var(--transition-medium);
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 20px rgba(0, 160, 209, 0.3);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* === About Section === */
.section-about {
    background: var(--color-bg-elevated);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-header {
    text-align: left;
    margin-bottom: 32px;
}

.about-content .section-tag::after {
    left: 0;
    transform: none;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-weight: 300;
}

.about-text strong {
    color: var(--color-text);
    font-weight: 600;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 8px;
    font-weight: 400;
}

/* About visual – 3D floating cards */
.about-visual {
    position: relative;
}

.about-float-scene {
    perspective: 900px;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-float-card {
    position: absolute;
    width: 220px;
    height: 170px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    transform-style: preserve-3d;
}

.about-float-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card 1 – top-left, tilted back-left */
.about-float-card:nth-child(1) {
    top: 20px;
    left: 10%;
    z-index: 2;
    transform: rotateY(18deg) rotateX(-6deg) translateZ(10px);
    animation: float-1 6s ease-in-out infinite;
}

/* Card 2 – top-right, tilted back-right */
.about-float-card:nth-child(2) {
    top: 0;
    right: 5%;
    z-index: 3;
    transform: rotateY(-14deg) rotateX(8deg) translateZ(30px);
    animation: float-2 7s ease-in-out infinite;
}

/* Card 3 – bottom-center-left */
.about-float-card:nth-child(3) {
    bottom: 60px;
    left: 5%;
    z-index: 4;
    transform: rotateY(12deg) rotateX(5deg) translateZ(50px);
    animation: float-3 5.5s ease-in-out infinite;
}

/* Card 4 – bottom-right, closest to viewer */
.about-float-card:nth-child(4) {
    bottom: 30px;
    right: 10%;
    z-index: 5;
    width: 240px;
    height: 185px;
    transform: rotateY(-10deg) rotateX(-4deg) translateZ(60px);
    animation: float-4 6.5s ease-in-out infinite;
}

/* Floating keyframes – each card bobs differently */
@keyframes float-1 {

    0%,
    100% {
        transform: rotateY(18deg) rotateX(-6deg) translateZ(10px) translateY(0);
    }

    50% {
        transform: rotateY(18deg) rotateX(-6deg) translateZ(10px) translateY(-12px);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: rotateY(-14deg) rotateX(8deg) translateZ(30px) translateY(0);
    }

    50% {
        transform: rotateY(-14deg) rotateX(8deg) translateZ(30px) translateY(-16px);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: rotateY(12deg) rotateX(5deg) translateZ(50px) translateY(0);
    }

    50% {
        transform: rotateY(12deg) rotateX(5deg) translateZ(50px) translateY(-10px);
    }
}

@keyframes float-4 {

    0%,
    100% {
        transform: rotateY(-10deg) rotateX(-4deg) translateZ(60px) translateY(0);
    }

    50% {
        transform: rotateY(-10deg) rotateX(-4deg) translateZ(60px) translateY(-14px);
    }
}

/* Hover: card pops to front, flattens, scales up */
.about-float-card:hover {
    z-index: 100 !important;
    transform: rotateY(0deg) rotateX(0deg) translateZ(80px) scale(1.35) !important;
    box-shadow: 0 20px 60px rgba(0, 160, 209, 0.25), 0 0 0 2px var(--color-primary);
    animation: none !important;
}

/* Siblings dim when one is hovered */
.about-float-scene:hover .about-float-card:not(:hover) {
    opacity: 0.5;
    filter: blur(1px);
    animation-play-state: paused;
}

/* === Gallery / Carousel Section === */
.section-gallery {
    background: var(--color-bg);
}

.gallery-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
    transition: none;
}

.gallery-carousel.dragging {
    cursor: grabbing;
}

.gallery-carousel:not(.dragging) {
    cursor: grab;
}

.gallery-slide {
    position: relative;
    flex-shrink: 0;
    width: 420px;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-slide:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.gallery-slide:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    width: fit-content;
}

.gallery-overlay h4 {
    font-size: 1.1rem;
    font-weight: 600;
}


/* === Contact Section === */
.section-contact {
    background: var(--color-bg-elevated);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-content .section-header {
    text-align: left;
    margin-bottom: 40px;
}

.contact-content .section-tag::after {
    left: 0;
    transform: none;
}

.contact-icons-row {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.contact-icon-btn {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.contact-icon-btn svg {
    width: 26px;
    height: 26px;
}

.contact-icon-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb, 100, 180, 255), 0.3);
}

.phone-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--color-surface);
    color: var(--color-text);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.phone-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-border);
}

.contact-icon-btn:hover .phone-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

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

.form-group label {
    position: absolute;
    left: 20px;
    top: 16px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
    background: var(--color-bg);
    padding: 0 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 160, 209, 0.1);
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -8px;
    left: 16px;
    font-size: 0.75rem;
    color: var(--color-primary);
}

.contact-form .btn {
    margin-top: 8px;
    padding: 16px 32px;
    font-size: 1rem;
}

/* === Footer === */
.footer {
    background: var(--color-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.footer-brand .logo-text {
    display: block;
    margin-bottom: 12px;
}

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

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

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

/* === Scroll Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for service cards */
.service-card.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.service-card.reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.service-card.reveal:nth-child(6) {
    transition-delay: 0.5s;
}

/* Gallery carousel has no stagger */

/* === Responsive === */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image-stack {
        height: 400px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-elevated);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right var(--transition-medium);
        border-left: 1px solid var(--color-border);
    }

    .nav-links.open {
        right: 0;
    }

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

    .nav-cta {
        text-align: center;
        width: 100%;
    }

    .section {
        padding: 80px 0;
    }

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

    .gallery-slide {
        width: 340px;
        height: 240px;
    }

    .about-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image-stack {
        height: 350px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .gallery-slide {
        width: 280px;
        height: 200px;
    }

    .about-stats {
        flex-direction: column;
        align-items: center;
    }

    .about-float-scene {
        height: 350px;
        perspective: 600px;
    }

    .about-float-card {
        width: 160px;
        height: 125px;
    }

    .about-float-card:nth-child(4) {
        width: 175px;
        height: 135px;
    }
}

/* === Legal Pages (Impressum, Datenschutz) === */
.legal-page {
    padding: 140px 0 80px;
    min-height: 80vh;
}

.legal-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.legal-page h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.legal-page p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-weight: 300;
    max-width: 750px;
}

.legal-page ul {
    margin: 12px 0 20px 24px;
    color: var(--color-text-secondary);
    font-weight: 300;
    line-height: 1.8;
}

.legal-page a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.legal-page a:hover {
    color: var(--color-primary-light);
}

.legal-back {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

/* === Cookie Consent Banner === */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cookie-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 32px;
}

.cookie-banner h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
}

.cookie-banner p a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.cookie-banner p a:hover {
    color: var(--color-primary-light);
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.cookie-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: all var(--transition-fast);
}

.cookie-option input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.cookie-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.cookie-option input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-option-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 2px;
}

.cookie-option-text span {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.cookie-btn-accept {
    background: var(--color-primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
}

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

.cookie-btn-selected:hover {
    background: var(--color-primary-subtle);
}

.cookie-btn-reject {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.cookie-btn-reject:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text);
}

/* Cookie settings corner button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
}

.cookie-settings-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.cookie-settings-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        padding: 20px 16px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}