/* 
   ====================================================
   WOW! - World of Web Style Sheet
   Farben aus dem Firmenlogo extrahiert:
   - Primary Dark Blue:  #004b8d (Logoschrift & dunkle Brücken-Figur)
   - Accent Medium Blue: #5b92c4 (Mittlerer Brückenbogen)
   - Soft Light Blue:    #a0c0df (Helle Figur & feiner Subtitle)
   - Background Tint:    #f3f7fa (Sehr sanftes Eisblau für Hintergründe)
   ==================================================== 
*/

:root {
    --brand-dark: #004b8d;
    --brand-medium: #5b92c4;
    --brand-light: #a0c0df;
    --brand-bg: #f3f7fa;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: #e2e8f0; /* Hintergrund außerhalb der zentrierten Box */
    line-height: 1.6;
}

/* ====================================================
   Desktop-Container mit seitlicher Abgrenzung
   ==================================================== */
.page-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.navbar {
    background-color: var(--white);
    border-bottom: 2px solid var(--brand-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 75, 141, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    max-height: 55px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--brand-dark);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #003768;
    box-shadow: 0 4px 12px rgba(0, 75, 141, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-outline:hover {
    background-color: var(--brand-dark);
    color: var(--white);
}

.btn-nav {
    background-color: var(--brand-medium);
    color: var(--white) !important;
    padding: 8px 18px;
}

.btn-nav:hover {
    background-color: var(--brand-dark);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--brand-bg) 0%, #eaf2f8 100%);
    padding: 90px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-logo {
    margin-bottom: 25px;
}

/* Zentrales Hero-Logo (Urfassung) */
.hero-logo img {
    max-height: 260px;
    width: auto;
    max-width: 90%;
    display: inline-block;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--brand-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 35px auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Abschnitte allgemein */
section {
    padding: 90px 0;
}

section h2 {
    font-size: 2.2rem;
    color: var(--brand-dark);
    text-align: center;
    margin-bottom: 12px;
}

.section-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}

/* Services / Über uns */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 35px 25px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    border-top: 4px solid var(--brand-medium);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-top-color: var(--brand-dark);
}

.icon-box {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--brand-dark);
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* ====================================================
   Portfolio Karussell-Slider Styling
   ==================================================== */
.portfolio {
    background-color: var(--brand-bg);
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.portfolio-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 15px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-slider::-webkit-scrollbar {
    display: none;
}

.portfolio-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 300px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 75, 141, 0.12);
}

.portfolio-img-wrapper {
    width: 100%;
    height: 190px;
    background-color: var(--brand-light);
    overflow: hidden;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover img {
    transform: scale(1.04);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.portfolio-link {
    color: var(--brand-medium);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.portfolio-link:hover {
    color: var(--brand-dark);
}

/* Navigations-Pfeile */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: var(--white);
    color: var(--brand-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: var(--brand-dark);
    color: var(--white);
    border-color: var(--brand-dark);
}

.slider-arrow.prev {
    left: -22px;
}

.slider-arrow.next {
    right: -22px;
}

/* Kontakt Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.contact-info {
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
}

.contact-info h3 {
    color: var(--brand-dark);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.contact-sub {
    color: var(--brand-medium);
    font-weight: 600;
    margin-bottom: 25px;
}

.contact-detail {
    margin-bottom: 16px;
    font-size: 1rem;
}

.contact-detail strong {
    color: var(--brand-dark);
    display: block;
    margin-bottom: 2px;
}

.contact-detail a {
    color: var(--brand-medium);
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--brand-bg);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-medium);
    background-color: var(--white);
}

/* Captcha Styling */
.captcha-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--brand-dark);
}

.captcha-group input {
    max-width: 220px;
}

/* Rechtliche Informationsseiten (Impressum & Datenschutz) */
.legal-page {
    padding: 60px 0;
    min-height: 70vh;
    text-align: left;
}

.legal-page .container {
    margin-left: 0;
    max-width: 900px;
}

.legal-page h1 {
    color: var(--brand-dark);
    margin-bottom: 25px;
    font-size: 2.2rem;
    text-align: left;
}

.legal-page h2 {
    color: var(--brand-dark);
    text-align: left;
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-page h3 {
    color: var(--brand-medium);
    text-align: left;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-page p, 
.legal-page ul, 
.legal-page ol {
    text-align: left;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Footer */
footer {
    background-color: var(--brand-dark);
    color: var(--white);
    padding: 35px 0;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--brand-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 850px) {
    .page-wrapper {
        box-shadow: none;
        border-left: none;
        border-right: none;
        max-width: 100%;
    }

    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }

    .nav-links {
        margin-top: 15px;
        gap: 15px;
    }

    .hero-logo img {
        max-height: 180px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .portfolio-card {
        flex: 0 0 calc(100% - 10px);
    }

    .slider-arrow {
        display: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 25px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}