/* Local Font Definition */
@font-face {
    font-family: 'UnifrakturMaguntia';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('UnifrakturMaguntia'),
         url('../fonts/unifrakturmaguntia/unifrakturmaguntia-v22-latin-regular.woff2') format('woff2');
}

/* CSS-Variablen für bessere Wartbarkeit und Theme-Support */
:root {
    --color-primary: #1e5ba8;
    --color-primary-dark: #0d5fa3;
    --color-primary-darker: #164a8f;
    --color-secondary: #4CAF50;
    --color-secondary-dark: #45a049;
    --color-secondary-darker: #3d8b40;
    --color-text: #2c2c2c;
    --color-text-light: #666;
    --color-text-lighter: #888;
    --color-text-lightest: #999;
    --color-bg: #f0f9f4;
    --color-bg-light: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --color-gold: #ffd700;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
    
    --border-radius-sm: 8px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 25px;
    --border-radius-full: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reduced Motion für Barrierefreiheit */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1e5ba8;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 5px 0;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--color-gold, #ffd700);
    outline-offset: 2px;
}

/* Verbesserte Focus-Styles für Barrierefreiheit */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-primary, #1e5ba8);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary, #1e5ba8);
    outline-offset: 2px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text, #2c2c2c);
    background: var(--color-bg, #f0f9f4);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: var(--scrollbar-width, 0);
    height: 100vh;
    background-image: image-set(
        url('../images/straussdorf_juni_2020.webp') type('image/webp'),
        url('../images/straussdorf_juni_2020.JPG') type('image/jpeg')
    );
    background-image: -webkit-image-set(
        url('../images/straussdorf_juni_2020.webp') type('image/webp'),
        url('../images/straussdorf_juni_2020.JPG') type('image/jpeg')
    );
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    will-change: opacity;
    z-index: -1;
    mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 30%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0) 90%);
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 30%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0) 90%);
    transition: right 0s;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 91, 168, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.nav.visible {
    transform: translateY(0);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: white;
    font-family: 'UnifrakturMaguntia', cursive, serif;
    font-weight: 400;
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.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(7px, -6px);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1e5ba8;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 91, 168, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    font-size: 1.5rem;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #0d5fa3;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(30, 91, 168, 0.5);
}

.hero {
    background: transparent;
    color: white;
    padding: 2rem 2rem 4rem;
    text-align: center;
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
}

/* Wetteranimations-Container */
.weather-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 30%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0) 90%);
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 30%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0) 90%);
}

/* Test-Button für Animationen */
.weather-test-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    padding: 0.6rem 1rem;
    background: rgba(30, 91, 168, 0.85);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.weather-test-btn:hover {
    background: rgba(30, 91, 168, 1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.weather-test-btn:active {
    transform: scale(0.98);
}

/* Regentropfen */
.rain-drop {
    position: absolute;
    width: 3px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(174, 194, 224, 0.3), rgba(174, 194, 224, 0.8));
    animation: rainFall linear infinite;
    opacity: 0.9;
}

@keyframes rainFall {
    0% {
        top: -20px;
        opacity: 0.9;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        top: 110vh;
        opacity: 0;
    }
}

/* Schneeflocken */
.snow-flake {
    position: absolute;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.8rem;
    animation: snowFall linear infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(200, 220, 255, 0.6);
}

@keyframes snowFall {
    0% {
        top: -10%;
        opacity: 0.95;
    }
    90% {
        opacity: 0.95;
    }
    100% {
        top: 110vh;
        opacity: 0;
    }
}

/* Nebel */
.fog-layer {
    position: absolute;
    width: 200%;
    height: 100vh;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0) 0%,
        rgba(200, 200, 200, 0.4) 25%,
        rgba(200, 200, 200, 0.6) 50%,
        rgba(200, 200, 200, 0.4) 75%,
        rgba(255, 255, 255, 0) 100%);
    animation: fogMove 20s ease-in-out infinite;
}

.fog-layer:nth-child(2) {
    animation-duration: 15s;
    animation-delay: -5s;
    opacity: 0.7;
}

@keyframes fogMove {
    0%, 100% {
        left: -50%;
    }
    50% {
        left: 0%;
    }
}

/* Sonnenlicht-Partikel */
.sun-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 223, 0, 0.8) 0%, rgba(255, 223, 0, 0) 70%);
    border-radius: 50%;
    animation: sunParticle 4s ease-in-out infinite;
    filter: blur(2px);
}

@keyframes sunParticle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

/* Herbstblätter */
.autumn-leaf {
    position: absolute;
    font-size: 2rem;
    animation: leafFall linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes leafFall {
    0% {
        top: -10%;
        transform: rotate(0deg) translateX(0);
        opacity: 0.8;
    }
    25% {
        transform: rotate(90deg) translateX(20px);
    }
    50% {
        transform: rotate(180deg) translateX(0);
    }
    75% {
        transform: rotate(270deg) translateX(-20px);
    }
    100% {
        top: 110vh;
        transform: rotate(360deg) translateX(0);
        opacity: 0;
    }
}

/* Frühlingsblüten */
.spring-blossom {
    position: absolute;
    font-size: 1.8rem;
    animation: blossomFall linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes blossomFall {
    0% {
        top: -10%;
        transform: rotate(0deg) translateX(0);
        opacity: 0.9;
    }
    50% {
        transform: rotate(180deg) translateX(15px);
    }
    100% {
        top: 110vh;
        transform: rotate(360deg) translateX(-15px);
        opacity: 0;
    }
}

.hero::before {
    content: none;
}

.hero::after {
    content: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'UnifrakturMaguntia', cursive, serif;
    font-size: 5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.hero .tagline {
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    background: white;
    box-shadow: none;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 1rem 0;
}

.section:first-child {
    padding-top: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #1e5ba8;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.section-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #1e5ba8;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(30, 91, 168, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: none;
    color: #1e5ba8;
}

.card h3 {
    color: #1e5ba8;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card p {
    color: #555;
    line-height: 1.6;
}

.highlight-box {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
}

/* Event Cards Styling */
.event-card {
    padding: 1.5rem;
    border-radius: 10px;
}

.event-card-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-date {
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile optimization */
@media (max-width: 600px) {
    .event-card-content {
        flex-direction: column;
        align-items: stretch;
    }

    .event-date {
        text-align: left;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    .event-card.white-bg .event-date {
        border-top-color: rgba(0, 0, 0, 0.1);
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.stat-item {
    padding: 1.5rem;
}

.stat-item a {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.stat-item a:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.5rem;
    color: #1e5ba8;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.stat-item a:hover .stat-label {
    color: #1e5ba8;
}

.map-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.map-container h2 {
    color: #1e5ba8;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    height: 450px;
}

.map-skeleton {
    width: 100%;
    height: 450px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* Google Maps Consent Overlay */
.map-consent {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    position: relative;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.map-consent-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #1e5ba8;
}

.map-consent h3 {
    color: #1e5ba8;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.map-consent p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.map-consent-btn {
    background: linear-gradient(135deg, #1e5ba8 0%, #0d5fa3 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 91, 168, 0.3);
}

.map-consent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 91, 168, 0.4);
}

.map-consent-btn:active {
    transform: translateY(0);
}

.map-consent small {
    display: block;
    margin-top: 1rem;
    color: #999;
    font-size: 0.85rem;
}

.map-consent small a {
    color: #1e5ba8;
    text-decoration: none;
}

.map-consent small a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .map-consent {
        padding: 2rem 1.5rem;
        height: 400px;
    }

    .map-consent-icon {
        font-size: 3rem;
    }

    .map-consent h3 {
        font-size: 1.2rem;
    }
}

.cta-section {
    background: linear-gradient(135deg, #1e5ba8 0%, #0d5fa3 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 15px;
    margin: 3rem 0;
    box-shadow: 0 8px 25px rgba(30, 91, 168, 0.3);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    background: white;
    color: #1e5ba8;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #1e5ba8;
}

.info-item strong {
    color: #1e5ba8;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.links-section {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.links-section h2 {
    color: #1e5ba8;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.link-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #1e5ba8;
}

.link-category h3 {
    color: #1e5ba8;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.link-category ul {
    list-style: none;
    padding: 0;
}

.link-category li {
    margin-bottom: 0.8rem;
}

.link-category a {
    color: #2c2c2c;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.link-category a:hover {
    color: #1e5ba8;
    text-decoration: underline;
}

.link-category a[target="_blank"]::after {
    content: "\2197";
    margin-left: 0.3rem;
    font-size: 0.85em;
    opacity: 0.6;
}

/* Gewerbe Overlay */
.gewerbe-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.gewerbe-overlay.active {
    display: flex;
}

.gewerbe-overlay-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
    text-align: center;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gewerbe-overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.gewerbe-overlay-close:hover {
    background: #f0f0f0;
    color: #333;
}

.gewerbe-overlay h3 {
    color: #1e5ba8;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.gewerbe-overlay p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.gewerbe-overlay-email {
    display: inline-block;
    background: linear-gradient(135deg, #1e5ba8 0%, #0d5fa3 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
}

.gewerbe-overlay-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 91, 168, 0.3);
}

footer {
    background: linear-gradient(135deg, #0d5fa3 0%, #1e5ba8 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    opacity: 0.9;
}

footer a {
    color: white;
    opacity: 0.9;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links {
    margin-top: 1rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    cursor: pointer;
}

/* Visitor Counter Styles */
.visitor-counter {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.visitor-counter-icon {
    font-size: 1rem;
}

.visitor-count {
    font-weight: 600;
    color: #ffd700;
}

/* Legal Overlay Styles */
.legal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-overlay.active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.legal-overlay-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    padding: 3rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.legal-overlay.active .legal-overlay-content {
    transform: scale(1);
}

.legal-overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #1e5ba8;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.legal-overlay-close:hover {
    background: #0d5fa3;
    transform: rotate(90deg);
}

.legal-overlay-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    margin-right: -3rem;
    padding-right: 3rem;
}

.legal-overlay h2 {
    color: #1e5ba8;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.legal-overlay h3 {
    color: #0d5fa3;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.legal-overlay p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #2c2c2c;
}

.legal-overlay a {
    color: #1e5ba8;
    text-decoration: none;
}

.legal-overlay a:hover {
    text-decoration: underline;
}

/* Weather Widget */
.weather-widget {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #e3f2fd;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.weather-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.weather-widget.temp-cold::before {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
}

.weather-widget.temp-cool::before {
    background: linear-gradient(135deg, #00BCD4, #4CAF50);
}

.weather-widget.temp-mild::before {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.weather-widget.temp-warm::before {
    background: linear-gradient(135deg, #FFC107, #FF9800);
}

.weather-widget.temp-hot::before {
    background: linear-gradient(135deg, #FF9800, #FF5722);
}

.weather-widget > * {
    position: relative;
    z-index: 1;
}

.weather-widget:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.weather-alert {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: pulseAlert 2s ease-in-out infinite;
}

@keyframes pulseAlert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.weather-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-icon-large {
    font-size: 3rem;
    line-height: 1;
}

.weather-info {
    display: flex;
    flex-direction: column;
}

.weather-location {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e5ba8;
    line-height: 1;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-trend {
    font-size: 1.8rem;
    line-height: 1;
}

.weather-minmax {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.weather-description {
    font-size: 0.95rem;
    color: #888;
}

.weather-details {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.weather-detail {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    color: #666;
}

.weather-detail-icon {
    font-size: 1.4rem;
}

.weather-expanded {
    margin-top: 1.5rem;
    padding-top: 0;
    border-top: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.weather-widget.expanded .weather-expanded {
    max-height: 2000px;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    opacity: 1;
    transform: translateY(0);
}

.weather-expand-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    opacity: 1;
    max-height: 100px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s ease,
                color 0.2s ease;
}

.weather-expand-hint:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

.weather-widget.expanded .weather-expand-hint {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    padding: 0;
}

.weather-widget.expanded .weather-close-btn {
    opacity: 1;
    max-height: 100px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.weather-close-btn {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: #1e5ba8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.2s ease;
}

.weather-close-btn:hover {
    background: #164a8f;
    transform: translateY(-1px);
}

.weather-close-btn:active {
    transform: translateY(0);
}

.weather-sun-times {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0;
}

.weather-sun-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.weather-sun-icon {
    font-size: 1.8rem;
}

.weather-sun-info {
    display: flex;
    flex-direction: column;
}

.weather-sun-label {
    font-size: 0.85rem;
    color: #888;
}

.weather-sun-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c2c2c;
}

.weather-days-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.weather-day-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e3f2fd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e5ba8;
    transition: all 0.2s ease;
}

.weather-day-btn:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.weather-day-btn.active {
    background: #1e5ba8;
    color: white;
    border-color: #1e5ba8;
}

.weather-forecast-container {
    position: relative;
    padding: 0 50px;
    margin: 1rem 0;
}

.weather-forecast {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.75rem;
    padding: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
}

.weather-forecast::before,
.weather-forecast::after {
    content: '';
    margin: auto;
}

.weather-forecast::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.weather-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #2c2c2c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    pointer-events: none;
}

.weather-scroll-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.weather-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.weather-scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.weather-scroll-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.weather-scroll-btn-left {
    left: 5px;
}

.weather-scroll-btn-right {
    right: 5px;
}

.weather-forecast-day {
    background: #f8f9fa;
    padding: 1rem 0.75rem;
    border-radius: 8px;
    text-align: center;
    flex: 0 0 110px;
    scroll-snap-align: start;
}

.weather-forecast-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.weather-forecast-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.weather-forecast-temp {
    font-size: 1rem;
    color: #2c2c2c;
    font-weight: 600;
}

.weather-forecast-rain {
    font-size: 0.85rem;
    color: #1e88e5;
    margin-top: 0.25rem;
}

.weather-updated {
    text-align: center;
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 1rem;
}

.weather-loading {
    text-align: center;
    padding: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.weather-error {
    text-align: center;
    padding: 0.5rem;
    color: #999;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .weather-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .weather-widget {
        padding: 1.25rem;
    }

    .weather-icon-large {
        font-size: 2.5rem;
    }

    .weather-temp {
        font-size: 2rem;
    }

    .weather-details {
        width: 100%;
        justify-content: space-around;
        gap: 0.75rem;
    }

    .weather-detail {
        font-size: 0.9rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .weather-detail-icon {
        font-size: 1.5rem;
    }

    .weather-sun-times {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .weather-forecast {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .weather-forecast-day {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        text-align: left;
        padding: 0.75rem;
        gap: 1rem;
    }

    .weather-forecast-date {
        min-width: 80px;
    }

    .weather-forecast-icon {
        font-size: 2.5rem;
        margin: 0;
    }

    .weather-forecast-temp {
        text-align: right;
    }

    .legal-overlay-content {
        padding: 2rem 1.5rem;
        max-height: 90vh;
    }

    .legal-overlay h2 {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .section-btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    .map-wrapper iframe {
        height: 300px;
    }

    .nav-content {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(30, 91, 168, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }

    .btn {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* Lightbox Overlay */
.image-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.image-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: move;
    transition: transform 0.2s ease;
}

.zoom-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10001;
}

.zoom-btn {
    background: white;
    color: black;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.zoom-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.zoom-btn:active {
    transform: scale(0.95);
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: #ffffff;
    color: #000;
}

/* Dark Mode Support (vorbereitet für zukünftige Nutzung) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --accent-color: #4CAF50;
    }
}

/* Print Styles */
@media print {
    .nav,
    .scroll-top,
    .hamburger,
    .weather-widget,
    footer {
        display: none !important;
    }
    
    body::before {
        display: none;
    }
    
    .hero {
        page-break-after: avoid;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
