/* General Styles */


@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/nunito-v32-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/nunito-v32-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/nunito-v32-latin-700.woff2') format('woff2');
}


:root {
    --color-dark-blue: rgb(33, 53, 85);
    --color-medium-blue: rgb(62, 88, 121);
    --color-light-brown: rgb(216, 196, 182);
    --color-off-white: rgb(245, 239, 231);
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--color-dark-blue);
    background-color: var(--color-off-white);
    overflow-x: hidden; /* Prevent horizontal scroll due to skew */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--color-dark-blue);
}

p {
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    background-color: var(--color-dark-blue); /* Changed to dark blue */
    padding: 15px 0;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    /* This ensures the transform animation is smooth */
    transition: transform 0.3s ease-in-out;
}

.navbar-hidden {
    /* This class moves the navbar 100% of its own height upwards, hiding it */
    transform: translateY(-100%);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    height: 60px; /* Adjust as needed */
    /* margin-top: 10px; */
    /* If logo is dark, you might need a white version, or apply filter: invert(1) */
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.navbar nav a {
    color: var(--color-off-white); /* Changed to off-white for dark background */
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: var(--color-light-brown); /* Hover color */
}

/* Section Styling for Angles */
.angled-section {
    position: relative;
    overflow: hidden; /* Crucial for containing skewed pseudo-elements */
    z-index: 1; /* Ensure sections stack correctly */
}

/* Angled divider for Hero */
.hero-section {
    background-color: var(--color-dark-blue); /* Changed to dark blue */
    padding-bottom: 0; /* Adjusted for pseudo-element */
    position: relative;
    z-index: 2; /* Ensure hero content is above the angle */
}

.hero-section .hero-content-wrapper {
    padding-top: 30px;  
    padding-bottom: 80px;
}


.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Overlap slightly to prevent pixel gap */
    left: 0;
    width: 100%;
    height: 150px; /* Adjust height for angle intensity */
    background-color: var(--color-light-brown); /* Color of the next section */
    transform: skewY(-4deg); /* Adjust angle as needed */
    transform-origin: bottom right;
    z-index: -1; /* Place behind content */
}

/* About Section */
.about-section {
    background-color: var(--color-light-brown);
    padding-top: 50px; /* Adjust for angle overlap */
    padding-bottom: 0; /* Adjusted for pseudo-element */
    position: relative;
    z-index: 1;
}

.about-section .about-content-wrapper {
    padding-bottom: 80px;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 0;
    width: 100%;
    
    height: 150px; /* Adjust height for angle intensity */
    background-color: var(--color-off-white); /* Color of the next section */
    transform: skewY(-4deg); /* Reverse angle to create "wave" effect */
    transform-origin: bottom left;
    z-index: -1;
}

/* Services Section (Main) */
.services-section {
    background-color: var(--color-off-white);
    padding-top: 00px; /* Adjust for angle overlap */
    padding-bottom: 00px; /* Retain original padding for text/image */
    position: relative;
    z-index: 1;
    overflow: hidden;
}
/* No ::after for services-section itself, the angle comes from the next section */


/* Services Grid Section */
.services-grid-section {
    background-color: var(--color-off-white);
    padding-top: 0; /* Adjusted for next angle */
    padding-bottom: 50px; /* Adjusted for pseudo-element */
    position: relative;
    z-index: 1;
}

.services-grid-section .grid-content-wrapper {
    padding-bottom: 80px;
}

.services-grid-section::after {
    content: '';
    position: absolute;
   
    bottom: -150px;
    left: 0;
    width: 100%;
    height: 150px; /* Adjust height for angle intensity */
    background-color: var(--color-medium-blue); /* Color of the next section */
    transform: skewY(-4deg); /* Angle to match design */
    transform-origin: bottom left;
    z-index: -1;
}

/* References Section */
.references-section {
    background-color: var(--color-medium-blue);
    padding-top: 0px; /* CHANGED: Added padding for angle overlap */
    padding-bottom: 150px; /* Adjusted for pseudo-element */
    position: relative;
    z-index: 1;
    text-align: center; /* ADDED: Center heading */
}

.references-section .references-content-wrapper {
    padding-bottom: 80px;
}

.references-section h2 {
    color: var(--color-off-white);
    font-size: 2.5em;
    margin-bottom: 50px;
}

.references-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 150px; /* Adjust height for angle intensity */
    background-color: var(--color-dark-blue); /* CHANGED: Color of the Contact section */
    transform: skewY(-4deg); /* Angle to match design */
    transform-origin: bottom right;
    z-index: -1;
}
/* Contact Section */
.contact-section {
    background-color: var(--color-dark-blue);
    padding-top: 100px; /* CHANGED: Added padding for angle overlap */
    padding-bottom: 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.contact-section .container{
    width: 60%;
}

.contact-section h2 {
    color: var(--color-off-white);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.contact-section p {
    color: var(--color-off-white);
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* Original styles below */

/* Hero Section Content */
.hero-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--color-off-white); /* Changed to off-white */
}

.hero-content p {
    font-size: 1.2em;
    color: var(--color-off-white); /* Changed to off-white */
}

.hero-image {
    flex: 1;
    min-height: 500px;
    width: 100%;
    /* Use the new hero image */
    background: url('images/illustration.webp') no-repeat center center/contain;
}

@media (max-width: 992px) {
    .hero-image {
        background: none !important;
        min-height: 0;
        height: 0;
    }
}



/* About Section Content */
.about-section .container {
    display: flex;
    /* align-items: center; */
    align-items: flex-start;
    gap: 40px;
}

.about-image {
    flex: .5;
    
}
.about-image img{
    min-height: 200px;
    max-height: 250px;
    /* background: url('images/photo.jpg') no-repeat center center/contain; */

}

.about-content {
    flex: 1;
    font-size: 1.2em;
    color: var(--color-dark-blue);
}
.about-content p{
    /* font-weight: 600; */
    font-size: 1.3rem;
}
.about-image .author {
    font-weight: 600;
    margin-top: 0px;
    width: 250px;
    text-align: center;
    line-height: 1;
}

.about-content {
    flex: 1;
    font-size: 1.2em;
    color: var(--color-dark-blue);
}
.about-content p{
    /* font-weight: 600; */
    font-size: 1.3rem;
}

/* Services Section Content */
.services-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

.services-text {
    flex: 1;
}

.services-text h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.services-text p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--color-dark-blue);
}
.services-main-image {
    flex: none; /* CHANGED */
    width: 50%; /* CHANGED */
    max-width: 800px; /* ADDED */
    margin: 40px auto; /* ADDED: Center the image */
    margin-right: -150px;
    min-height: 500px;
    background: url('images/display.webp') no-repeat center center/contain;
}
.service-image {
    height: 100px;
    align-items: top;
    display: flex
;
    justify-content: center;
}
/* Services Grid Section Content */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    /* background-color: #fff; */
    padding: 30px;
    border-radius: 8px;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.05); */
}

/* Specific icons for service items as background-images on the pseudo elements */
.service-item {
    position: relative; /* For icon positioning */
    padding-top: 90px; /* Make space for icon */
}
.service-item img{
    max-width: 100px;
    height: auto;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
    width: 60px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* .service-item:nth-child(1)::before { background-image: url('audio-icon.png'); }
.service-item:nth-child(2)::before { background-image: url('video-icon.png'); }
.service-item:nth-child(3)::before { background-image: url('web-icon.png'); }
.service-item:nth-child(4)::before { background-image: url('print-icon.png'); } */

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.95em;
    color: var(--color-dark-blue);
}

/* References Section Content */
.references-section h2 {
    color: var(--color-off-white);
    font-size: 3em;
    margin-bottom: 30px;
}

/* Contact Section Content */
.contact-section h2 {
    color: var(--color-off-white);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.contact-section p {
    color: var(--color-off-white);
    font-size: 1.5em;
    margin-bottom: 30px;
}

.email-link {
    display: inline-flex;
    align-items: center;
    background-color: transparent; /* CHANGED: No background */
    color: var(--color-off-white); /* CHANGED: White text */
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1em; /* ADDED: To match design */
    transition: color 0.3s ease;
}

.email-link:hover {
    background-color: transparent; /* CHANGED */
    color: var(--color-light-brown); /* CHANGED: Hover color */
    text-decoration: underline; /* ADDED */
}

.email-link::before {
    content: '✉'; /* Email icon */
    margin-right: 10px;
    font-size: 1.2em;
}
/* Footer */
footer {
    background-color: var(--color-dark-blue); /* CHANGED: Match Contact section */
    color: var(--color-off-white); /* CHANGED: White text */
    padding: 0 0 40px 0; /* CHANGED: Adjusted padding */
    text-align: center;
    font-size: 0.9em;
    /* opacity: 0.7; ADDED: To make it slightly faded */
}
footer p{
margin: 0px;
}

footer a {
    color: var(--color-off-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

footer a:hover {
    color: var(--color-light-brown);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section .container,
    .about-section .container,
    .services-section .container {
        flex-direction: column;
        text-align: center;
    }
.services-main-image{
    margin-right: 0px;
    margin: auto;
}
    .hero-image, .about-image, .services-main-image {
        order: -1; /* Move images above text on smaller screens */
        margin-bottom: 0px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .services-text h2 {
        font-size: 2em;
    }

    /* Adjust pseudo-element heights/angles for smaller screens if needed */
    .hero-section::after,
    .about-section::after,
    .services-grid-section::after,
    .references-section::after {
        height: 80px; /* Reduce angle height on smaller screens */
        /* transform: skewY(calc(var(--angle-direction) * 2deg)); Less extreme angle */
    }
    .about-section::after{
        bottom: -80px;
    }
    .services-grid-section::after{
        bottom: -80px;
    }

    .about-section .container{
        align-items: center; 
    }

    .contact-section .container{
        width: 80%;
    }
    .services-main-image{
        width: 80%; /* Adjust width for smaller screens */
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .navbar nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .about-content p, .services-text p {
        font-size: 1em;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
    .service-item {
        padding: 20px;
    }
    .contact-section{
        padding-top: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section .hero-content-wrapper,
    .about-section .about-content-wrapper,
    .services-section,
    .services-grid-section .grid-content-wrapper,
    .references-section .references-content-wrapper,
    .contact-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .services-text h2, .references-section h2, .contact-section h2 {
        font-size: 1.8em;
    }

    .email-link {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}




/* ------------------ */

@media (max-width: 992px) {
    .hero-image {
        background: none !important;
        min-height: 0;
        height: 0;
    }

    .hero-section .hero-content-wrapper {
        padding-top: 0px;
        padding-bottom: 110px;
    }

    .about-image {
        display: none;
    }

    .about-section {
        padding-top: 0px; 
    }

    .services-main-image {
        margin: 50px auto 0 auto; /* weniger Abstand, unten 0 */
        min-height: 200px; /* vorher 500px – anpassen nach Geschmack */
    }
}


/* --- Service Grid Layout Fix --- */
@media (max-width: 1200px) and (min-width: 769px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr); /* genau 2 Spalten */
    justify-items: center;
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr; 
  }
}



/* Einheitliches, mittig ausgerichtetes Logo-Grid */
.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px 60px; /* Abstand zwischen Logos – je nach Geschmack anpassen */
    text-align: center;
}

.logos-grid img {
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    max-height: 70px;
    width: auto;
    aspect-ratio: 3 / 1; /* sorgt für gleichmäßige Flächen */
    background: transparent;
    padding: 5px; /* etwas optischer Abstand */
}

/* --- Feinanpassungen je Logo (auf Basis deines Screenshots) --- */
.logos-grid img[src*="kunde_01"] { /* WK */
    max-height: 65px;
}

.logos-grid img[src*="kunde_02"] { /* Klett */
    max-height: 55px;
}

.logos-grid img[src*="kunde_03"] { /* Bildungsmedien */
    max-height: 65px;
}

.logos-grid img[src*="kunde_04"] { /* Didacta */
    max-height: 45px;
}

.logos-grid img[src*="kunde_05"] { /* Cornelsen */
    max-height: 50px;
}

.logos-grid img[src*="kunde_06"] { /* Bildungsklick */
    max-height: 45px;
}

.logos-grid img[src*="kunde_07"] { /* Westermann */
    max-height: 65px;
}

.logos-grid img[src*="kunde_08"] { /* Europa */
    max-height: 55px;
}




/* Nur auf der Impressum-Seite */
#impressum .legal-section::after {
    background-color: var(--color-dark-blue);
}



/* Legal / Impressum Section */
.legal-section {
    background-color: var(--color-light-brown);
    padding-top: 50px;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

/* Angle am unteren Rand (wie bei anderen Sektionen) */
.legal-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--color-off-white);
    transform: skewY(-4deg);
    transform-origin: bottom left;
    z-index: -1;
}

/* Inhalt */
.legal-section .container {
    display: flex;
    justify-content: center;
}

.legal-content-wrapper {
    width: 100%;
}

.legal-content {
    flex: 1;
    font-size: 1.1em;
    color: var(--color-dark-blue);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    margin-bottom: 50px; 

}

.legal-content h2, 
.legal-content h3 {
    color: var(--color-dark-blue);
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content a {
    color: var(--color-dark-blue);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-medium-blue);
}

/* Responsive */
@media (max-width: 992px) {
    .legal-section {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .legal-content {
        font-size: 1em;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .legal-section {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .legal-content {
        font-size: 0.95em;
    }
}



/* ------------------ */




/* --- Firefox Fix: Logos minimal größer darstellen --- */
@-moz-document url-prefix() {
  .logos-grid img[src*="kunde_02"], /* Klett */
  .logos-grid img[src*="kunde_08"]  /* Europa */
  {
    transform: scale(1.5); /* leicht vergrößern um 50 % */
  }
}
