* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

section {
    max-width: 1200px;
    padding: 4rem 20px;
    margin: 0 auto;
    height: 100%;
}

a {
    text-decoration: none;
    color: #000;
}

a span {
    color: rgb(16, 162, 182);
}

.active {
    color: #c0392b;
}

.nav-links a.active {
    color: #e74c3c !important;
    font-weight: 700;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.scroll-animate {
    opacity: 0;
}

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(-20px);
}

.sticky-nav.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

body.subpage .sticky-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    position: sticky;
    background: #ffffff;
}

.nav-logo {
    font-weight: bold;
    font-size: 1.3rem;
    color: #3498db;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding: 0;
    max-width: 100%;
}

.hero-logo-container {
    position: absolute;
    top: 40px;
    left: 5%;
    z-index: 20;
}

.hero-logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.logo-placeholder {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(2) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../images/flurKindertagesstaette.jpeg');
}

.slide:nth-child(3) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../images/BodenNachher.jpeg');
}

.hero-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: white;
    z-index: 10;
    max-width: 100%;
    max-height: auto;
    overflow-y: hidden;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    color: #000;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, opacity 0.3s;
    border-radius: 4px;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    overflow-y: hidden;
}

.service-card {
    background: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.service-card i, .service-card svg {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.references-section {
    max-width: 100%;
    padding: 80px 0;
    background-color: #f0f3f4;
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 60vh;
    min-height: 400px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.image-before, .image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-after {
    width: 50%;
    z-index: 2;
    overflow: hidden;
}

.image-before img, .image-after img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-after img {
    width: 1200px;
}

.scroller {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 100%;
    cursor: ew-resize;
    z-index: 5;
}

.scroller-button {
    width: 40px;
    height: 40px;
    position: absolute;
    background: #3498db;
    color: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.thumbnails-container {
    max-width: 1000px;
    margin: 30px auto 0 auto;
    padding: 0 20px;
}

.thumbnails-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.thumbnails-scroll::-webkit-scrollbar {
    height: 8px;
}

.thumbnails-scroll::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.thumbnails-scroll::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s, border 0.3s, transform 0.3s;
    border: 3px solid transparent;
    flex-shrink: 0;
}

.thumb.active {
    opacity: 1;
    border-color: #3498db;
    transform: scale(1.05);
}

.thumb:hover {
    opacity: 0.8;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.subpage-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2rem;
    min-height: 100vh;
}

.subpage-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-section {
    max-width: 100%;
    padding: 80px 0 0 0;
}

.map-container {
    width: 100%;
    height: 400px;
    background: #e5e9ec;
    margin-bottom: 40px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    z-index: 10;
}

.map-placeholder p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 20px;
}

.map-placeholder button, .cookie-box button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.map-placeholder button:hover, .cookie-box button:hover {
    background-color: #2980b9;
}

.contact-info-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.info-box i, .info-box svg {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 15px;
}

.info-box p {
    font-size: 1.1rem;
}

.cookie-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background-color 0.3s;
}

.cookie-icon:hover {
    transform: scale(1.1);
    background-color: #3498db;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

body.subpage .scroll-top {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background-color: #2c3e50;
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.cookie-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.cookie-box h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.cookie-box p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #555;
}

.cookie-box a {
    color: #3498db;
    text-decoration: none;
}

.cookie-box a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-buttons .btn-deny {
    background-color: #e74c3c;
}

.cookie-buttons .btn-deny:hover {
    background-color: #c0392b;
}

footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left .footer-links {
    margin-bottom: 10px;
}

.footer-left a {
    color: #bdc3c7;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}

.footer-left a:hover {
    color: white;
}

.footer-left p {
    font-size: 0.9rem;
    color: #95a5a6;
}

.footer-right {
    display: none;
}

.footer-right a {
    color: white;
    font-size: 1.8rem;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: #3498db;
}

.hamburger-toggle {
    display: none;
    border: none;
    font-size: 1.8rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
    transition: color 0.3s;
}

.hamburger-toggle:hover {
    color: #3498db;
}

.content404 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    height: 74vh;
}

.content404 h1 {
    font-size: 4rem;
    font-weight: bolder;
}

.home-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.home-button:hover {
    background-color: #2C3E50;
}