* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Logos */
.logo, .logo-mobile, .logo-start {
    display: none;
}

@media (max-width: 769px) {
    .logo-mobile {
        display: block;
    }
}

#logo-mobile-picture {
    width: 40px;
}

#logo-mobile-picture-startpage {
    width: 300px;
}

#logo-picture-startpage {
    width: 500px;
}

/* Header / Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #dc2626;
    cursor: pointer;
}

    .logo img {
        height: 40px;
        width: auto;
    }

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

    .nav-links a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: color 0.3s ease;
    }

.success-message {
    display: none;
    background: var(--message-bg, #10b981); /* Standard: grün */
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
}

/* Rote Variante für Fehler/Alert */
.success-message--error {
    --message-bg: #dc2626;
}

/* Cookie Banner */
#cookieBanner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #5c5c5c;
    padding: 10px 20px;
    color: #ffffff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1000;
}

    #cookieBanner p {
        margin: 0;
        flex: 1 1 100%;
    }

#cookieButtons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

    #cookieButtons button {
        padding: 6px 12px;
        border: none;
        border-radius: 5px;
        color: white;
        cursor: pointer;
    }

#acceptCookies {
    background: #dc2626;
}

#declineCookies {
    background: #c3c6c8;
}

@media (max-width: 480px) {
    #cookieBanner {
        flex-direction: column;
        align-items: flex-start;
    }

    #cookieButtons {
        flex-direction: column;
        width: 100%;
    }

        #cookieButtons button {
            width: 100%;
            margin: 3px 0;
        }
}

.nav-links a:hover,
.nav-links a.active {
    color: #dc2626;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

    .mobile-menu span {
        width: 25px;
        height: 3px;
        background: #333;
        margin: 3px 0;
        transition: 0.3s;
    }

main {
    margin-top: 70px;
}

.page {
    display: none;
}

    .page.active {
        display: block;
    }

#Über-uns-talk {
    color: #dc2626;
}

.hero {
    height: 90vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="print" patternUnits="userSpaceOnUse" width="100" height="100"><rect width="100" height="100" fill="%23f8f9fa"/><circle cx="50" cy="50" r="20" fill="%23dc2626" opacity="0.1"/></pattern></defs><rect width="1200" height="800" fill="url(%23print)"/></svg>') center/cover;
        opacity: 0.1;
    }

.hero-content {
    max-width: 100%;
    z-index: 1;
    position: relative;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

    .cta-button:hover {
        background: #b91c1c;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    }

.services-overview {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

    .services-overview h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 60px;
        color: #333;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
    justify-items: center;
}

.services-grid-container{
    justify-content: center;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    width: 250px;
}

    .service-card:hover {
        transform: translateY(-5px);
    }

.service-icon {
    width: 60px;
    height: 60px;
    background: #dc2626;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px; 
    background-color: transparent;
    flex: 0 0 auto;
}

/* Runde Icons: ganze Bildinhalte anzeigen */
.service-icon--round {
    width: 60px;
    height: 60px;
    border-radius: 50% !important;    /* rund */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;    /* optional: Fallback-Hintergrund */
    padding: 6px;                      /* Abstand zum Rand, verhindert optisches Abschneiden */
    box-sizing: border-box;
}

.service-icon--round img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;               /* gesamtes Bild sichtbar, skaliert */
    display: block;
}

/* Footer form styles */
.footer-section form {
    margin-top: 10px;
}

.footer-section input {
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 8px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    border-radius: 3px;
}

    .footer-section input::placeholder {
        color: #bbb;
    }

.footer-section button {
    background-color: #c00;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .footer-section button:hover {
        background-color: #900;
    }

/* Layout / Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

/* Service sections */
.service-section {
    margin-bottom: 80px;
    padding: 60px 0;
    border-bottom: 1px solid #e5e5e5;
}

    .service-section:last-child {
        border-bottom: none;
    }

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.service-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Konsolidierte Service-Image-Definition (nur einmal behalten) */
.service-image {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

    .service-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, #dc2626 0%, #b91c1c 100%);
        opacity: 0.1;
    }

/* Utility: Hintergrundbild vollständig ausfüllen */
.service-image--bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
}

/* About / Contact */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

    .about-content p {
        font-size: 1.1rem;
        color: #666;
        line-height: 1.8;
        margin-bottom: 30px;
    }

.contact-form {
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .contact-form h3 {
        text-align: center;
    }

    .contact-form p {
        text-align: center;
    }

.form-group {
    margin-bottom: 30px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 15px;
        border: 2px solid #e5e5e5;
        border-radius: 10px;
        font-size: 1rem;
        transition: border-color 0.3s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #dc2626;
        }

    .form-group textarea {
        height: 120px;
        resize: vertical;
    }

.submit-btn {
    width: 100%;
    background: #dc2626;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .submit-btn:hover {
        background: #b91c1c;
        transform: translateY(-2px);
    }

/* Home images */
.home-images {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

    .home-images h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 60px;
        color: #333;
    }

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.image-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .image-item:hover {
        transform: translateY(-5px);
    }

    .image-item img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

.image-item-content {
    padding: 30px;
}

.image-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    word-wrap: break-word;
    hyphens: auto;
}

.image-item p {
    color: #666;
    line-height: 1.6;
    word-wrap: break-word;
    hyphens: auto;
}

/* About images */
.about-images {
    margin: 30px 0;
    display: block;
}

.about-image--single {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: none;
}

    .about-image--single img {
        width: 100%;
        height: auto;
        display: block;
    }

@media (max-width: 769px) {
    .about-image--single {
        height: 220px;
    }
}

@media (min-width: 769px) {
    .logo {
        display: block;
    }

    .logo-start {
        display: block;
    }
}

/* Contact dropdown */
.contact-dropdown {
    margin-bottom: 40px;
}

    .contact-dropdown label {
        display: block;
        margin-bottom: 10px;
        font-weight: 600;
        color: #333;
    }

    .contact-dropdown select {
        width: 100%;
        padding: 15px;
        border: 2px solid #e5e5e5;
        border-radius: 10px;
        font-size: 1rem;
        background: white;
        cursor: pointer;
        transition: border-color 0.3s ease;
    }

        .contact-dropdown select:focus {
            outline: none;
            border-color: #dc2626;
        }

.contact-description {
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
}

/* Map */
.map-section {
    margin-top: 60px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .map-section h3 {
        text-align: center;
        margin-bottom: 30px;
        color: #333;
    }

.map-container {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

    .map-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, #dc2626 0%, #b91c1c 100%);
        opacity: 0.1;
    }

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 60px 20px 30px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-content: center;
    align-items: start;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

    .footer-section a:hover {
        color: #dc2626;
    }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #555;
    color: #999;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

    .footer-links a {
        color: #ccc;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: #dc2626;
        }

.footer-section {
    text-align: center;
}
/* --- Optimierung für Mobile (max-width: 769px) --- */


/* Responsive Anpassungen */
@media (max-width: 769px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

        .nav-links.active {
            display: flex;
        }

    .mobile-menu {
        display: flex;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Sicherstellen, dass die Service-Karten auf Mobilgeräten untereinander stehen.
       Verwende !important, um die globale repeat(4,1fr) !important zu überschreiben. */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .container {
        padding: 50px 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .logo-mobile {
        display: block;
    }

    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        border-radius: 12px;
    }
    .hero {
        height: auto !important;
        min-height: 100vh;
        padding: 40px 20px 20px 20px; 
    }

    #logo-mobile-picture-startpage {
        width: 100%;
        max-width: 250px; 
        height: auto;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin: 15px 0;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .services-overview {
        padding: 40px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    #announcements-container {
        position: relative; 
        margin-top: 10px;
        width: 100%;
        left: 0;
    }

    .announcement-bar h3 {
        font-size: 0.9rem;
    }
}
