/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #8BC34A;
    --accent-color: #FF9800;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
    
    /* Dark Mode Variablen */
    --bg-dark: #121212;
    --bg-dark-secondary: #1f1f1f;
    --bg-dark-card: #2c2c2c;
    --text-dark-primary: #e0e0e0;
    --text-dark-secondary: #bdbdbd;
    --shadow-dark: 0 2px 10px rgba(0,0,0,0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav {
    padding: 1rem 0;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: var(--bg-light);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.dark-mode-toggle:hover .toggle-icon {
    transform: rotate(15deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234CAF50" width="1200" height="600"/><circle fill="%238BC34A" cx="200" cy="150" r="80" opacity="0.7"/><circle fill="%23FF9800" cx="800" cy="400" r="120" opacity="0.5"/><circle fill="%23FFC107" cx="1000" cy="200" r="60" opacity="0.6"/></svg>');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.hero-stat .stat-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-cta {
    background: linear-gradient(135deg, var(--accent-color), #FF5722);
    color: white;
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

/* Mail Button */
.contact-email {
    text-align: center;
    margin: 1rem 0;
}

.btn-mail {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
    background-size: 200% 200%;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-mail:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

.btn-mail .btn-icon {
    font-size: 1.1rem;
    animation: mailFloat 2s ease-in-out infinite;
}

.btn-mail .btn-text {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Kuula Gradient Button */
.kuula-direct-link {
    text-align: center;
    margin: 2rem 0;
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-gradient:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-gradient:active {
    transform: translateY(-1px);
}

.btn-gradient .btn-icon {
    font-size: 1.2rem;
    animation: float 2s ease-in-out infinite;
}

.btn-gradient .btn-text {
    flex: 1;
}

.btn-gradient .btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-gradient:hover .btn-arrow {
    transform: translate(3px, -3px);
}

.btn-gradient-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-gradient-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-gradient-green {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 50%, #4CAF50 100%);
    background-size: 200% 200%;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.btn-gradient-green:hover {
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

.btn-gradient-orange {
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 50%, #FF9800 100%);
    background-size: 200% 200%;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.btn-gradient-orange:hover {
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.4);
}

.btn-text {
    background: transparent;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-text:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Seasons Section */
.seasons {
    padding: 4rem 0;
}

.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.season-card {
    height: 200px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.season-card:hover {
    transform: scale(1.05);
}

.season-card.spring {
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc8 100%);
}

.season-card.summer {
    background: linear-gradient(135deg, #ffd54f 0%, #ffcc02 100%);
}

.season-card.autumn {
    background: linear-gradient(135deg, #ffab40 0%, #ff8f00 100%);
}

.season-card.winter {
    background: linear-gradient(135deg, #b3e5fc 0%, #81d4fa 100%);
}

.season-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1.5rem;
}

.season-content h3 {
    margin-bottom: 0.5rem;
}

.season-months {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Philosophy Section */
.philosophy {
    padding: 4rem 0;
    background: var(--bg-light);
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.philosophy-text h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.philosophy-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-light);
}

.philosophy-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.point {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.point-icon {
    font-size: 1.5rem;
}

.image-placeholder {
    background: #f0f0f0;
    border-radius: var(--radius);
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
}

.image-placeholder span {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Tour Header */
.tour-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header-content .lead {
    font-size: 1.2rem;
    margin: 1rem 0 2rem 0;
    opacity: 0.9;
    line-height: 1.6;
}

.tour-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    display: block;
}

/* Tour Viewer */
.tour-viewer {
    padding: 3rem 0;
    background: var(--bg-light);
}

.viewer-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.tour-controls-top {
    margin-bottom: 2rem;
}

.tour-controls-top h2 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.8rem;
}

.tour-controls-top p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.tour-container {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tour-container .ku-embed {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: calc(var(--radius) - 1rem);
    display: block;
    margin: 0 auto;
}

.tour-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0.6;
    font-size: 0.9rem;
}

.kuula-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 3px;
    opacity: 0.7;
}

.kuula-icon:hover {
    opacity: 1;
}

/* Help Section */
.tour-help {
    padding: 3rem 0;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.help-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
}

.help-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.help-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.help-card p {
    line-height: 1.6;
    color: var(--text-light);
}

/* Info Box */
.tour-info {
    padding: 2rem 0;
}

.info-box {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
}

.info-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.info-box li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.info-box li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact-section {
    margin: 2rem 0;
}

.contact-section h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.2rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-btn {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.email-btn:hover {
    border-color: #4285f4;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(52, 168, 83, 0.05));
}

.info-btn:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.05), rgba(255, 193, 7, 0.05));
}

.location-btn:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(139, 195, 74, 0.05));
}

.contact-icon {
    font-size: 1.8rem;
    min-width: 2.5rem;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.email-btn .contact-icon {
    transition: transform 0.3s ease;
}

.email-btn:hover .contact-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4,
.footer-section h5 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
}

.footer-section h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.footer-section p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.footer-philosophy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.philosophy-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.philosophy-point span:first-child {
    font-size: 1.1rem;
}

.footer .contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer .contact-btn {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer .contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.footer .contact-icon {
    font-size: 1.2rem;
    min-width: 1.5rem;
}

.footer .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer .contact-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer .contact-value {
    font-size: 0.9rem;
    font-weight: 500;
}

.external-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.footer-nav a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-stats {
    margin-top: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius);
    transition: background 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stat-item .stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.tech-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

.footer-actions {
    display: flex;
    gap: 1rem;
}

.footer-dark-toggle,
.scroll-to-top {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.footer-dark-toggle:hover,
.scroll-to-top:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.scroll-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.cookie-text p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--text-dark);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: #f0f0f0;
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: var(--radius);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category h4 {
    margin: 0;
    color: var(--text-dark);
}

.required-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 25px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(25px);
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Legal Pages */
.legal-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content {
    padding: 3rem 0;
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.legal-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.legal-card h3,
.legal-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.legal-card h4 {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.contact-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cookie-info,
.external-services {
    margin: 1.5rem 0;
}

.cookie-item,
.service-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.cookie-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-type {
    font-weight: 600;
    color: var(--primary-color);
}

.cookie-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

.service-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.service-item a:hover {
    text-decoration: underline;
}

.rights-list {
    list-style: none;
    padding: 0;
}

.rights-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.rights-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.rights-list li:last-child {
    border-bottom: none;
}

.cookie-settings-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--primary-color);
}

.cookie-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes mailFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(5deg); }
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --text-dark: #e0e0e0;
    --text-light: #bdbdbd;
    --bg-light: #1f1f1f;
    --white: #2c2c2c;
    --shadow: 0 2px 10px rgba(0,0,0,0.3);
}

[data-theme="dark"] body {
    background: var(--bg-dark);
    color: var(--text-dark-primary);
}

[data-theme="dark"] .header {
    background: var(--bg-dark-secondary);
    box-shadow: var(--shadow-dark);
}

[data-theme="dark"] .nav-menu a {
    color: var(--text-dark-primary);
}

[data-theme="dark"] .nav-menu a:hover,
[data-theme="dark"] .nav-menu a.active {
    color: var(--primary-color);
}

[data-theme="dark"] .dark-mode-toggle {
    background: var(--bg-dark-card);
    border-color: #444;
    color: #fff;
}

[data-theme="dark"] .dark-mode-toggle .toggle-icon::after {
    content: "☀️";
}

[data-theme="dark"] .dark-mode-toggle .toggle-icon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle::after {
    content: "☀️";
    font-size: 1.2rem;
}

[data-theme="dark"] .hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .help-card,
[data-theme="dark"] .legal-card {
    background: var(--bg-dark-card);
    color: var(--text-dark-primary);
    box-shadow: var(--shadow-dark);
}

[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .help-card h3,
[data-theme="dark"] .legal-card h3,
[data-theme="dark"] .legal-card h4 {
    color: var(--text-dark-primary);
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .help-card p {
    color: var(--text-dark-secondary);
}

[data-theme="dark"] .tour-header {
    background: linear-gradient(135deg, #333 0%, #444 100%);
}

[data-theme="dark"] .tour-viewer {
    background: var(--bg-dark-secondary);
}

[data-theme="dark"] .tour-container {
    background: var(--bg-dark-card);
    box-shadow: var(--shadow-dark);
}

[data-theme="dark"] .tour-controls-top h2 {
    color: var(--text-dark-primary);
}

[data-theme="dark"] .tour-controls-top p {
    color: var(--text-dark-secondary);
}

[data-theme="dark"] .season-card.spring {
    background: linear-gradient(135deg, #2d5a2d 0%, #3d6b3d 100%);
}

[data-theme="dark"] .season-card.summer {
    background: linear-gradient(135deg, #5a4a2d 0%, #6b5a3d 100%);
}

[data-theme="dark"] .season-card.autumn {
    background: linear-gradient(135deg, #5a3d2d 0%, #6b4d3d 100%);
}

[data-theme="dark"] .season-card.winter {
    background: linear-gradient(135deg, #2d3d5a 0%, #3d4d6b 100%);
}

[data-theme="dark"] .philosophy {
    background: var(--bg-dark-secondary);
}

[data-theme="dark"] .philosophy-text h2 {
    color: var(--text-dark-primary);
}

[data-theme="dark"] .philosophy-text p {
    color: var(--text-dark-secondary);
}

[data-theme="dark"] .image-placeholder {
    background: var(--bg-dark-card);
    color: #666;
}

[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .contact-btn {
    background: var(--bg-dark-card);
    color: var(--text-dark-primary);
    box-shadow: var(--shadow-dark);
}

[data-theme="dark"] .contact-label {
    color: var(--text-dark-secondary);
}

[data-theme="dark"] .contact-value {
    color: var(--text-dark-primary);
}

[data-theme="dark"] .btn-mail {
    background: linear-gradient(135deg, #3367d6 0%, #2d8a2f 50%, #f9ab00 100%);
    box-shadow: 0 6px 20px rgba(51, 103, 214, 0.3);
}

[data-theme="dark"] .btn-mail:hover {
    box-shadow: 0 8px 25px rgba(51, 103, 214, 0.4);
}

[data-theme="dark"] .btn-gradient {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 50%, #5a6fd8 100%);
    box-shadow: 0 8px 25px rgba(90, 111, 216, 0.3);
}

[data-theme="dark"] .btn-gradient:hover {
    box-shadow: 0 12px 35px rgba(90, 111, 216, 0.4);
}

[data-theme="dark"] .cookie-modal-content {
    background: var(--bg-dark-card);
    color: var(--text-dark-primary);
}

[data-theme="dark"] .cookie-modal-header {
    border-bottom-color: #444;
}

[data-theme="dark"] .cookie-modal-footer {
    border-top-color: #444;
}

[data-theme="dark"] .cookie-category {
    background: var(--bg-dark-secondary);
    border-color: #444;
}

[data-theme="dark"] .close-btn:hover {
    background: #444;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .viewer-wrapper {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex !important;
    }
    
    .nav-right {
        gap: 0.5rem;
    }
    
    .dark-mode-toggle {
        width: 40px;
        height: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .seasons-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
    }
    
    .tour-header {
        padding: 2rem 0;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .tour-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .tour-container .ku-embed {
        height: 300px;
    }
    
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .contact-btn {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .contact-icon {
        font-size: 1.5rem;
        min-width: 2rem;
    }
    
    .btn-mail {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
    
    .btn-mail .btn-text {
        font-size: 0.85rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .legal-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-controls {
        flex-direction: column;
        align-items: center;
    }
    
    [data-theme="dark"] .nav-menu {
        background: var(--bg-dark-secondary);
        box-shadow: var(--shadow-dark);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .tour-container .ku-embed {
        height: 250px;
    }
    
    .btn-mail .btn-text {
        font-size: 0.8rem;
    }
    
    .contact-btn {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .btn-gradient {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .tour-header {
        padding: 1rem 0;
    }
    
    .tour-container .ku-embed {
        height: 200px;
    }
    
    .hero {
        min-height: 60vh;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .tour-container {
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }
}

/* Print Styles */
@media print {
    .tour-container,
    .help-grid,
    .tour-powered,
    .cookie-banner,
    .dark-mode-toggle,
    .nav-toggle {
        display: none;
    }
    
    .info-box {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Lightbox für Tour-Seite ausblenden */
.tour-page #lightbox,
.tour-page #lightbox-img {
    display: none !important;
}

/* Smooth Transitions */
body,
.header,
.feature-card,
.help-card,
.tour-container,
.dark-mode-toggle,
.contact-btn,
.legal-card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}



/* Galerie Preview */
.gallery-preview {
    padding: 4rem 0;
    background: var(--white);
}

.preview-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.gallery-more {
    text-align: center;
    margin-top: 2rem;
}

/* Bild Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.3);
}

.modal-nav.prev {
    left: -60px;
}

.modal-nav.next {
    right: -60px;
}

/* Dark Mode */
[data-theme="dark"] .gallery-preview {
    background: var(--bg-dark-secondary);
}

[data-theme="dark"] .gallery-item {
    box-shadow: var(--shadow-dark);
}

/* Mobile */
@media (max-width: 768px) {
    .preview-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .modal-nav {
        display: none; /* Touch-Navigation stattdessen */
    }
}






/* Galerie Header */
.gallery-header {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.gallery-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.gallery-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.gallery-stats .stat {
    text-align: center;
}

.gallery-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
}

/* Galerie Controls */
.gallery-controls {
    background: var(--bg-light);
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: white;
    border: 2px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.sort-controls select {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    background: white;
    font-size: 0.9rem;
}

.search-box input {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    width: 250px;
    font-size: 0.9rem;
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Breadcrumb */
.breadcrumb {
    margin: 2rem 0 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Galerie Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .card-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.zoom-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.view-text {
    font-size: 1rem;
    font-weight: 500;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FF5722;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
}

.card-info {
    padding: 1.5rem;
}

.image-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.image-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.action-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: calc(var(--radius) / 2);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Pagination */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination-info {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Erweiterte Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
}

.gallery-lightbox.show {
    display: flex;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.8);
    color: white;
}

.lightbox-title {
    font-size: 1.2rem;
    font-weight: 500;
}

.lightbox-controls {
    display: flex;
    gap: 1rem;
}

.lightbox-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

.lightbox-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.8);
    color: white;
}

.image-info {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
}

.lightbox-actions {
    display: flex;
    gap: 1rem;
}

.lightbox-action-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.lightbox-action-btn:hover {
    background: var(--secondary-color);
}

.gallery-back {
    text-align: center;
    margin: 3rem 0;
}

/* Dark Mode */
[data-theme="dark"] .gallery-controls {
    background: var(--bg-dark-secondary);
    border-bottom-color: #444;
}

[data-theme="dark"] .gallery-card {
    background: var(--bg-dark-card);
    box-shadow: var(--shadow-dark);
}

[data-theme="dark"] .image-title {
    color: var(--text-dark-primary);
}

[data-theme="dark"] .image-meta {
    color: var(--text-dark-secondary);
}

[data-theme="dark"] .action-btn {
    background: var(--bg-dark-secondary);
    border-color: #555;
    color: var(--text-dark-primary);
}

[data-theme="dark"] .page-btn {
    background: var(--bg-dark-card);
    border-color: #555;
    color: var(--text-dark-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .gallery-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .lightbox-nav.prev {
        left: 1rem;
    }
    
    .lightbox-nav.next {
        right: 1rem;
    }
    
    .pagination-controls {
        gap: 0.25rem;
    }
    
    .page-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}



/* Gallery More Button Fix */
.gallery-more {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
}

.gallery-more .btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow);
}

.gallery-more .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

/* Dark Mode */
[data-theme="dark"] .gallery-more .btn-outline {
    background: var(--bg-dark-card);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .gallery-more .btn-outline:hover {
    background: var(--primary-color);
    color: white;
}



/* Verbesserte Button Styles */
.btn-outline {
    background: white !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-outline:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-outline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Gallery More Section */
.gallery-more {
    background: var(--bg-light);
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #e0e0e0;
}

/* Dark Mode Button Fix */
[data-theme="dark"] .gallery-more {
    background: var(--bg-dark-secondary);
    border-color: #444;
}

[data-theme="dark"] .btn-outline {
    background: var(--bg-dark-card) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--primary-color) !important;
    color: white !important;
}



/* Galerie Header */
.galerie-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.galerie-header .header-content {
    max-width: 800px;
    margin: 0 auto;
}

.galerie-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.galerie-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.galerie-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.galerie-stats .stat {
    text-align: center;
}

.galerie-stats .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: bold;
    color: #FFD700;
}

.galerie-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Galerie Controls */
.galerie-controls {
    background: var(--bg-light);
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.controls-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.filter-section h3,
.sort-section h3,
.view-section h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-section select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    background: white;
    font-size: 0.9rem;
}

.view-buttons {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.view-btn:hover,
.view-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Galerie Grid */
.hauptgalerie {
    padding: 3rem 0;
}

.galerie-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.galerie-grid.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.galerie-grid.masonry-view {
    columns: 4;
    column-gap: 1.5rem;
}

.galerie-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.galerie-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    background: white;
}

.galerie-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.item-image {
    position: relative;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galerie-grid.list-view .item-image img {
    height: 150px;
}

.galerie-grid.masonry-view .galerie-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.galerie-grid.masonry-view .item-image img {
    height: auto;
    min-height: 200px;
}

.galerie-item:hover .item-image img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.galerie-item:hover .item-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    width: 100%;
}

.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0.8;
}

.item-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.item-meta {
    font-size: 0.85rem;
    opacity: 0.9;
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.favorite-btn .heart {
    font-size: 1.2rem;
    color: #ff4757;
}

.favorite-btn.favorited .heart {
    content: '♥';
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 3rem;
}

.spinner {
    font-size: 3rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 4rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 1rem;
}

.no-results h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Galerie Modal */
.galerie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
}

.galerie-modal.show {
    display: flex;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.8);
    color: white;
}

.modal-title h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-title p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.action-btn,
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background 0.3s ease;
}

.action-btn:hover,
.close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.close-btn {
    font-size: 1.5rem;
}

.modal-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
    left: 2rem;
}

.modal-nav.next {
    right: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.8);
    color: white;
}

.image-info {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
}

.modal-thumbnails {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    overflow-x: auto;
}

/* Pagination */
.pagination-section {
    background: var(--bg-light);
    padding: 2rem 0;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.page-btn {
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Dark Mode */
[data-theme="dark"] .galerie-controls {
    background: var(--bg-dark-secondary);
    border-bottom-color: #444;
}

[data-theme="dark"] .filter-btn,
[data-theme="dark"] .view-btn,
[data-theme="dark"] .sort-section select {
    background: var(--bg-dark-card);
    border-color: #444;
    color: var(--text-dark-primary);
}

[data-theme="dark"] .galerie-item {
    background: var(--bg-dark-card);
    box-shadow: var(--shadow-dark);
}

[data-theme="dark"] .pagination-section {
    background: var(--bg-dark-secondary);
}

[data-theme="dark"] .page-btn {
    background: var(--bg-dark-card);
    border-color: #444;
    color: var(--text-dark-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .galerie-header h1 {
        font-size: 2rem;
    }
    
    .galerie-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .controls-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .galerie-grid.grid-view {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .galerie-grid.masonry-view {
        columns: 2;
    }
    
    .item-image img {
        height: 200px;
    }
    
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .modal-nav.prev {
        left: 1rem;
    }
    
    .modal-nav.next {
        right: 1rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-actions {
        gap: 0.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}