:root {
    --primary-color: #ff69b4;
    --secondary-color: #4a90e2;
    --background-color: #f5f5f5;
    --text-color: #333;
    --accent-color: #ffd700;
    --success-color: #4caf50;
    --error-color: #f44336;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    padding-top: 170px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #ff69b4, #4a90e2);
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50l-10-10 10-10 10 10-10 10zm0 20l-10-10 10-10 10 10-10 10z' stroke='rgba(255,255,255,0.1)' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    opacity: 0.5;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.language-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: white;
}

.lang-btn.active {
    background: #333;
    color: white;
}

.main-title {
    text-align: center;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin: 0;
    position: relative;
    z-index: 1;
}

.main-title span {
    display: none;
}

.main-title span.active {
    display: block;
    animation: titleFloat 0.5s ease-out;
}

@keyframes titleFloat {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header styling */
header {
    padding: 20px;
    text-align: center;
    background-color: var(--bg-color);
}

/* Logo styling */
.logo-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.site-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .site-logo {
        max-width: 180px;
    }
}

/* Domain Banner */
.domain-banner {
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.domain-logo {
    height: 120px;
    width: auto;
    max-width: 100%;
    /* Fixiere das doppelte Logo Problem */
    object-fit: contain;
    object-position: top center;
}

/* Logo sizes for different screen widths */
@media (min-width: 1920px) {
    .domain-logo {
        height: 180px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .domain-logo {
        height: 140px;
    }
}

/* Language Navigation */
.language-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: white;
}

.lang-btn.active {
    background: #333;
    color: white;
}

/* Filter Styles */
.filters {
    margin: 2rem auto;
    padding: 0 1rem;
    max-width: 1200px;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 0.5rem;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

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

/* Mobile Styles */
@media (max-width: 768px) {
    .filter-container {
        gap: 0.8rem;
        padding: 1rem 0.5rem;
    }
    
    .filter-btn {
        padding: 1rem 1.5rem;
        min-width: 140px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .filter-container {
        gap: 1rem;
    }
    
    .filter-btn {
        width: calc(50% - 0.5rem);
        min-width: unset;
        padding: 1.2rem 1rem;
    }
}

/* Search Box Styles */
.search-box {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
}

/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        padding: 10px;
        gap: 10px;
    }
}

.image-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.image-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
    margin: -1rem -1rem 0;
    width: calc(100% + 2rem);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.image-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.image-card p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.8;
    flex-grow: 1;
    line-height: 1.5;
}

.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0 1rem 1rem;
    margin-top: auto;
}

.download-btn,
.print-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 180px;
    font-size: 1rem;
    min-width: 140px;
}

.download-btn::before,
.print-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%);
    background-size: 250% 100%;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.download-btn:hover,
.print-btn:hover {
    transform: scale(1.05);
}

.download-btn:hover::before,
.print-btn:hover::before {
    transform: translateX(100%);
}

.download-btn i,
.print-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.download-btn:hover i,
.print-btn:hover i {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .button-container {
        flex-direction: column;
    }
    
    .download-btn,
    .print-btn {
        max-width: none;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .button-container {
        flex-direction: column;
        gap: 1rem;
    }

    .download-btn,
    .print-btn {
        width: 100%;
        padding: 1.2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .button-container {
        padding: 1rem;
    }

    .download-btn,
    .print-btn {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 12rem);
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
}

/* Navigation buttons */
.nav-btn,
.close-lightbox {
    position: fixed;
    background: rgba(255, 105, 180, 0.95);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2010;
    padding: 0;
    margin: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    -webkit-tap-highlight-color: transparent;
}

/* Navigation buttons specific styles */
.nav-btn {
    top: 50%;
    transform: translateY(-50%);
    width: 4rem;
    height: 4rem;
}

.nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 105, 180, 1);
}

.nav-btn.prev {
    left: 1rem;
}

.nav-btn.next {
    right: 1rem;
}

.nav-btn i {
    font-size: 2rem;
    line-height: 1;
    width: auto;
    height: auto;
}

/* Close button specific styles */
.close-lightbox {
    top: 1rem;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
}

.close-lightbox:hover {
    transform: scale(1.1);
    background: rgba(255, 105, 180, 1);
}

.close-lightbox i {
    font-size: 1.8rem;
    line-height: 1;
    width: auto;
    height: auto;
}

/* Mobile styles */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 1rem;
    }

    .lightbox img {
        max-height: calc(100vh - 10rem);
    }

    .nav-btn {
        width: 4.5rem;
        height: 4.5rem;
        background: rgba(255, 105, 180, 0.95);
        touch-action: manipulation;
    }

    .nav-btn.prev {
        left: 0.5rem;
    }

    .nav-btn.next {
        right: 0.5rem;
    }

    .nav-btn i {
        font-size: 2.2rem;
    }

    .nav-btn:active {
        transform: translateY(-50%) scale(0.95);
        background: rgba(255, 105, 180, 1);
    }

    .close-lightbox {
        width: 4rem;
        height: 4rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .close-lightbox i {
        font-size: 2rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-btn, .close-lightbox {
        opacity: 0.95;
        background: rgba(255, 105, 180, 0.95);
    }
    
    .nav-btn:active, .close-lightbox:active {
        opacity: 1;
        background: rgba(255, 105, 180, 1);
    }

    /* Prevent text selection during touch */
    .lightbox * {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .main-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    body {
        padding-top: 0;
    }
    
    .search-box {
        max-width: 90%;
        margin: 0 auto 1.5rem;
    }
    
    .language-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .lang-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    
    body {
        padding-top: 0;
    }
    
    .search-box input {
        padding: 0.6rem 2rem 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    header {
        padding: 1.5rem 1rem 2rem;
    }

    .main-title {
        font-size: 1.6rem;
    }
}

/* Gallery grid adjustments */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px;
    }
}

/* Responsive logo size */
@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
        margin: 10px 0;
        font-weight: 600;
    }

    .header-title {
        font-size: 1.4rem;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .header-title {
        font-size: 1.2rem;
    }
}

/* Language specific content */
[class*="title-"] {
    display: none !important;
}

[class*="title-"].active {
    display: block !important;
}

.footer-section p [class*="title-"].active {
    display: inline-block !important;
}

/* Footer Styles */
footer {
    background-color: white;
    padding: 3rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    margin-bottom: 2rem;
    padding: 1rem;
}

.footer-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section p {
    line-height: 1.6;
    color: #666;
}

[class^="title-"] {
    display: none;
}

[class^="title-"].active {
    display: inline-block;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-section {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
}

/* Print styles */
@media print {
    @page {
        size: landscape;
        margin: 0;
    }
    
    body {
        margin: 0;
        padding: 0;
    }
    
    header, footer, .search-box, .filters, .gallery {
        display: none !important;
    }
    
    .print-content {
        display: block !important;
        width: 100vw;
        height: 100vh;
        object-fit: contain;
    }
    
    .print-content img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Hide navigation buttons on touch devices */
@media (hover: none) and (pointer: coarse) {
    .nav-btn {
        display: none;
    }
}

/* Header background */
header {
    background: linear-gradient(135deg, #FF69B4 0%, #8A2BE2 100%);
    padding: 1rem 0;
    margin: 0;
    position: relative;
    text-align: center;
}

/* Remove white line */
header {
    background: linear-gradient(135deg, #FF69B4 0%, #8A2BE2 100%);
    padding: 0;
    margin: 0;
    position: relative;
}

/* Ensure no gaps */
body {
    margin: 0;
    padding: 0;
}

main {
    margin: 0;
    padding: 20px;
}

/* Scroll to top button */
.scroll-top-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff69b4;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

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

.scroll-top-button svg {
    width: 24px;
    height: 24px;
}

.scroll-top-button:active {
    transform: scale(0.95);
}

/* Show scroll button only on mobile/tablet */
@media (hover: none) and (pointer: coarse) {
    .scroll-top-button {
        display: flex;
    }
}

/* Lightbox buttons */
.lightbox-buttons {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem;
}

.lightbox-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    min-width: 160px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.lightbox-btn:hover {
    transform: scale(1.05);
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lightbox-btn i {
    font-size: 1.2rem;
}

@media (max-width: 480px) {
    .lightbox-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .lightbox-btn {
        width: 100%;
        max-width: 280px;
    }
}
