/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: rgb(139, 51, 44);
    --secondary-color: rgb(43, 22, 27);
    --text-color: #333;
    --bg-color: #fff;
    --border-width: 2px;
    --section-padding: 60px 0;
    --h2-size: 1.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 0; /* Removed for transparent header */
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-size: 16px;
}

.small-text {
    font-size: 0.9rem;
}
.medium-text {
    font-size: 1.1rem;
}
.large-text {
    font-size: 1.3rem;
}
.x-large-text {
    font-size: 1.5rem;
}
h1, h2, h3 {
    font-weight: 700;
    font-family: 'DM Serif Display';
}

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

/* Service Overview Styles */
.service-overview {
    padding-inline:  0;
    padding-top: 2.5em;
    padding-bottom: 3.5em;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: .7em;
    text-align: center;
    color: var(--text-color);
}

.service-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.service-box {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s;
    min-width: 18rem;
    text-align: center;
}

.footer-container {
    padding-inline: 2em;
}

.footer-social {
    display: flex;
    justify-content: flex-start;
    gap: 1em;
    padding: 10px 0px;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
}

.footer-social a:last-of-type {
    transform: translateY(-4px);
}

@media (max-width: 768px) {
.desktop {
  display : none !important;
}
.service-box {
    background-color: #fff;
    padding: 38px 16px;
    min-width: 20rem;
    border-radius: 1px;
    border-bottom: 1px solid rgb(42 22 27 / 10%);
    box-shadow: none;
    max-height: fit-content;
    transition: transform 0.3s;
    text-align: center;
    }
}

/* Contact form */
#contact-form {
    background-color: #fff;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 51, 44, 0.1);
}

input.error, textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#formFeedback {
    margin-top: 1rem;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}

.contact-info h2 {
    color: #cc3a30;
    margin-bottom: 1rem;
    font-size: 2.7rem;
}

button[type="submit"] {
    align-self: center;
    min-width: 150px;
    margin-top: 1rem;
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 404 Error Page Styles */
.error-page {
    padding: 80px 0;
    background-color: #fff;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .cta-button {
    min-width: 180px;
    margin: 0.5rem;
}

@media (max-width: 768px) {
    .error-number {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-description {
        font-size: 1.1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .cta-button {
        width: 100%;
        max-width: 250px;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    input, textarea {
        font-size: 0.9rem;
    }
    
    form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-info h2 {
        font-size: 1.5rem;
    }
}
.success, .error {
    margin-top: 1rem;
    font-weight: bold;
}

.success { color: rgb(61, 158, 61); }
.error { color: var(--primary-color); }


@media (min-width: 769px) {
.mobile {
    display: none !important;
 }
}

.service-box:hover {
    transform: translateY(-10px);
}

.service-box h3 {
    font-size: calc(var(--h2-size) + 0.2em);
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
    font-family: auto;
}
.service-box p {
    font-weight: 100;
    letter-spacing: -0.1px;
    line-height: 1.5;
    break-after: auto;
}

.service-box ul {
    padding-left: 20px;
}

.service-box ul li {
    margin-bottom: 10px;
    color: #555;
}

/* Certificates Styles */
.certificates {
    padding: 80px 0;
    background-color: #fff;
}

.main-certificates {
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
}

.certificate {
    text-align: center;
}

.certificate-placeholder {
    width: 200px;
    height: 150px;
    background-color: #f8f9fa;
    border: 2px solid #e63946;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #999;
    font-weight: bold;
}

.certificate p {
    font-weight: 600;
    color: #333;
}

.secondary-certificates {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.certificate.small .certificate-placeholder {
    width: 120px;
    height: 90px;
    font-size: 0.9rem;
}

/* Mobile Slider für Service Übersicht */
.service-slider {
    display: none;
}

/* Buttons and CTAs */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border: var(--border-width) solid var(--primary-color);
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: .5px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.cta-container {
    margin-top: 30px;
    text-align: center;
}

.cta-button.inverted{
    display: inline-block;
    background-color: rgb(43, 22, 27);
    color: white;
    border: var(--border-width) solid rgb(43, 22, 27);
    padding: 7px 50px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 400;
    letter-spacing: .5px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-button.inverted:hover {
    background-color: transparent;
    color: var(--secondary-color)
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0;
}

.sticky-header.transparent {
    background-color: transparent;
    box-shadow: none;
    color: white !important;
}
.sticky-header.transparent ul > li > a {
    color: white !important;
}


.sticky-header.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.sticky-header .container {
    padding: 15px 20px;
}

.logo {
    text-align: center;
    flex-grow: 1;
    max-width: max-content;
}

.logo img {
    height: 55px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }
}

.hero-text-span {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    font-family: system-ui;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    display: inline-block;
}


/* Desktop Navigation */
.desktop-nav, .main-nav {
    display: block;
}

.main-nav ul, .desktop-nav ul {
    display: flex;
    list-style: none;
    color: white;
}

.main-nav ul li, .desktop-nav ul li {
    margin-left: 20px;
    line-height: 1;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    font-size: 30px;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* Mobile Side Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: right 0.3s ease;
    padding: 50px 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: .5px solid rgb(0 0 0 / 11%);
}
.mobile-menu ul li:last-child {
    border: none;
}


.mobile-menu ul li a {
     color: var(--primary-color);
    text-decoration: none;
    font-family: 'Poppins';
    font-size: 1.2em;
    text-transform: uppercase;
    line-height: 1.5;
    /* border-bottom: 1px solid #e4e4e478; */
    /* text-underline-offset: 1rem; */
    font-weight: 500;
    display: block;
    font-weight: 900;;
}


.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.menu-toggle span, 
.menu-toggle span::before, 
.menu-toggle span::after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
}

.menu-toggle span::before {
    bottom: 8px;
}

.menu-toggle span::after {
    top: 8px;
}

/* Mobile Navigation */
.mobile-menu {
    margin-left: 20px;
}

.main-nav ul li a, .desktop-nav ul li a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    color: var(--text-color);
}

.main-nav ul li:last-child a {
    padding: .5em 1em;
    background: var(--primary-color);
    border-radius: 1px;
    color: var(--bg-color);
}

.main-nav ul li a:hover, .desktop-nav ul li a:hover {
    color: var(--primary-color);
}
.desktop-nav ul li:last-child:hover {
    color: white;
}

@media (min-width: 769px) {
    .hero-image {
        display: flex;
        justify-content: flex-end;
    }
}
@media (max-width: 768px) {
/* Header Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
    color: white !important;    
}
}

.desktop-nav ul li {
    margin-left: 30px;
}

.desktop-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.desktop-nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.desktop-nav ul li a:hover {
    color: var(--primary-color);
}

.desktop-nav ul li a:hover:after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 60px 20px 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu nav ul {
    list-style: none;
}

.mobile-menu nav ul li {
    margin-bottom: 20px;
}

.mobile-menu nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Banner */
.hero-banner {
    background: url('../images/live-bg.png') no-repeat center center/cover;
    background-color: var(--primary-color);
    padding: 130px 0 80px;
    min-height: 35rem;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0px 5rem;
    flex-direction: row-reverse
}

.hero-logo {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: fit-content;
    height: fit-content;
    width: fit-content;
}

.hero-text {
    flex: 1 1 50%;
    padding: 0 20px;
}

.large-logo {
    width: 80%;
    max-width: 300px;
}

.hero-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
    letter-spacing: normal;
}

.hero-banner .subtitle {
    font-size: var(--h2-size);
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-banner .subtext {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Section Page Banner */
.section-page-banner {
    background: rgb(43 22 27 / 80%);
    color: white;
    height: 18rem;
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    justify-content: start;
}

@media (max-width: 768px) {
.section-page-banner {
    justify-content: center;
 }
}
.section-page-banner::after {
    content: "";
    position: absolute;
    width: 100%;
    background: url('../images/page-bg.jpg') no-repeat center center/cover;
    color: red;
    height: 18rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    z-index: -1;
}


.section-banner-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
}

.section-page-banner h2 {
    font-size: 2.1rem;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 1px;;
}

.section-page-banner .subtitle {
    font-size: 1.2rem;
    text-align: left;
    color: whrgba(255, 255, 255, 0.832);
    margin-bottom: 20px;
    display: none;
}

/* Page Banner */
.page-banner {
    background-color: rgb(177, 46, 37);
    color: white;
    height: 127px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.banner-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
}

.page-banner h2 {
    font-size: 2.1rem;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 1px;;
}

.page-banner .subtitle {
    font-size: 1.2rem;
    text-align: left;
    color: whrgba(255, 255, 255, 0.832);
    margin-bottom: 20px;
    display: none;
}

/* About Page Sections */
/* Section 1: DiReD - Your First Choice */
.about-section-1 {
    width: 100%;
}

.about-section-1-content {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.about-section-1-image {
    width: 40%;
    height: auto;
}

.about-section-1-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-section-1-text {
    width: 60%;
    background-color: rgb(204, 58, 48);
    color: white;
    padding: 65px 85px;
}

.about-section-1-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-section-1-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-family: system-ui;
    font-weight: 200;
}

/* Section 2: Academics / Goal */
.about-section-2 {
    padding: var(--section-padding);
}

.about-section-2 h2 {
    font-size: 2.4rem;
    margin: 40px 0 20px;
}

.about-section-2 h2:first-child {
    margin-top: 0;
}

.about-section-2 p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.quote-container {
    display: flex;
    align-items: center;
    margin-top: 40px;
    padding: 30px;
    border-radius: 8px;
}

.quote-image {
    flex: 0 0 200px;
}

.quote-image img {
    width: 100%;
    height: auto;
}

.quote-text {
    flex: 1;
    padding-left: 30px;
    text-align: center;
}

.quote-text p {
    font-size: 1.1rem;
}

.quote-source {
    font-weight: bold;
    margin-top: 10px;
}

/* Section 3: Have a Project on Mind? */
.about-section-3 {
    margin-bottom: 0;
}

.project-section {
    display: flex;
    flex-direction: row;
}

.project-text {
    flex: 0 0 40%;
    background-color: var(--primary-color);
    color: white;
    padding-inline: 40px;
    padding-top: 4em;
    padding-bottom: 2em;
    transform: translateY(-55px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-text h2 {
    font-size: 27px;
    margin-bottom: 20px;
}

.project-text p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.project-image {
    flex: 0 0 60%;
}

.project-image img {
    width: 100%;
    height: 88.5%;
    object-fit: cover;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: white;
    border: var(--border-width) solid white;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.arrow {
    margin-left: 8px;
}

.flourish-section {
    min-height: 15rem;
    margin-bottom: 0;
    background-color: rgb(51, 30, 30);
    color: white;
    padding: 0 0;
    margin-top: 0;
}

.flourish-section .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.flourish-section h2 {
    font-size: 2.2rem;
    flex: 0 0 50%;
    padding-right: 30px;
}

.flourish-section p {
    flex: 0 0 50%;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 25rem;
    }
    .hero-content {
        flex-direction: column;
        padding: 0;
    }
    
    .hero-logo, .hero-text {
        flex: 1 1 100%;
        padding: 20px;
    }
    
    .hero-logo {
        margin-bottom: 30px;
    }
    
    .hero-text {
        text-align: center;
        padding-top: 0;
    }
    
    /* DEI Services Mobile */
    .dei-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .dei-column {
        padding: 20px;
    }
    
    .dei-column h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        white-space: nowrap;
    }
    
    .dei-services-list li {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .dei-services-list li strong {
        font-size: 0.95rem;
    }
    
    .target-audience {
        font-size: 0.85rem;
    }
    
    /* Certificates Mobile */
    .main-certificates {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .certificate-item {
        max-width: 100%;
        width: 100%;
    }
    
    .certificate-image {
        min-height: 150px;
    }
    
    .partner-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .partner-item {
        max-width: 100%;
        width: 100%;
    }
    
    .partner-logo {
        min-height: auto;
    }
    
    /* Mobile styles for About page */
    .about-section-1-content {
        flex-direction: column;
    }
    
    .about-section-1-image {
        width: 100%;
        order: 1;
    }
    
    .about-section-1-text {
        width: 100%;
        order: 2;
        padding: 40px 20px;
    }
    
    .quote-container {
        flex-direction: column;
    }
    
    .quote-image {
        margin-bottom: 20px;
    }
    
    .quote-text {
        padding-left: 0;
    }
    
    .project-section {
        flex-direction: column;
    }
    
    .project-text {
        flex: none;
        width: 100%;
        order: 1;
        padding: 40px 20px;
    }
    
    .project-image {
        flex: none;
        width: 100%;
        order: 2;
    }
    
    .flourish-section .container {
        flex-direction: column;
    }
    
    .flourish-section h2, 
    .flourish-section p {
        flex: none;
        width: 100%;
        padding-right: 0;
    }
    
    .flourish-section h2 {
        margin-bottom: 20px;
    }
    
    /* Increase text size for better readability on mobile */
    .about-section-1-text p,
    .about-section-2 p,
    .project-text p,
    .flourish-section p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Increase vertical spacing on mobile */
    .about-section-2 {
        padding: 50px 0;
    }
    
    .about-section-2 h2 {
        margin-top: 40px;
    }
    
    /* Mobile Service Übersicht */
    .service-container {
        display: none;
    }
    
    .service-slider {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 20px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .service-slider::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .service-slider .service-box {
        display: inline-block;
        width: 80%;
        white-space: normal;
        margin-right: 15px;
        min-width: fit-content;
        transform: translate(-5px, 0px);
        border: none;
    }
    /*
    .service-slider .service-box::before {
        content: '';
        position: absolute;
        top: 3.2%;
        left: 78%;
        width: 0;
        height: 0px;
        padding: 4.2px 22px;
        margin-left: 20px;
        background: rgb(139 51 44 / 37%);

    }
    .service-slider .service-box:nth-child(2):before {
        top: 2.2%;
    }
    .service-slider .service-box::after {
        content: '';
        position: absolute;
        top: 0%;
        left: 95%;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 14px solid transparent;
        border-left: 30px solid rgb(139 51 44 / 37%);

    }
    */
    .section-title {
        margin-bottom: 0em;
        font-size: calc(var(--h2-size) + 1.1rem);
    }

    /* Mobile Zertifikate */
    .main-certificates {
        flex-direction: column;
        align-items: center;
    }
    
    .certificate {
        margin-bottom: 30px;
    }
    
    .secondary-certificates {
        justify-content: center;
    }
    
    .certificate.small {
        margin: 10px;
    }
}

/* Main content */
main {
    margin-bottom: 0;
    overflow-y: hidden;
}

.section {
    padding: var(--section-padding);
}

.section h2 {
    margin-bottom: 30px;
    font-size: 36px;
    text-align: center;
    color: var(--primary-color);
}

/* About Section */
.about-us {
    background: var(--primary-color);
    padding-block: 3.2em;
}
.about-section {
    background-color: var(--primary-color);
    color: white;
}

.about-section h2 {
    color: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.about-image {
    flex: 1 1 50%;
    padding: 0 0;
}

.about-image img {
    width: 100%;
    max-width: 27rem;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 0 2px #000000;
}
.about-text h2 {
    color: white;
    font-size: calc(var(--h2-size) + 1.2rem);
    margin-bottom: 10px;
}
.about-text {
    flex: 1 1 50%;
    padding: 0 20px;
    color: rgb(235, 232, 232);
}

.about-usp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 35px 0;
    gap: 2.5em;
    color: white;
}
.usp-item h3 {
    margin-bottom: 10px;
    font-size: calc(var(--h2-size) + 3px);
    line-height: 1;
    text-decoration: underline;
    color: white;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    text-decoration-color: #ffffff;
}
.usp-item p {
    color: rgba(255, 255, 255, 0.925);
    font-weight: 300;
    font-family: sans-serif;
    line-height: 1.3;
}
@media (max-width: 768px) {
.service-overview {
    padding-bottom: 0;
}
    .about-text h2 {
        color: white;
        font-size: calc(var(--h2-size) + 1.5em);
        margin-bottom: 15px;
        letter-spacing: -.9px;
    }
    .about-usp {
        padding: 30px 0;
        gap: 2em;
}
    .about-content .mobile {
        padding-inline: 1.0
    }
}

.trust-logos {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.trust-logo {
    flex: 0 0 30%;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px;
    text-align: center;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        flex: 1 1 100%;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .trust-logos {
        flex-direction: column;
    }
    
    .trust-logo {
        margin-bottom: 15px;
    }
}

.section p {
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 30px;
    border: var(--border-width) solid var(--primary-color);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--primary-color);
}

/* DEI Services Section */
.dei-services {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
}

.dei-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
}

.dei-column {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: fit-content;
}

.dei-column h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: white;
    text-align: center;
    font-weight: 600;
    padding-bottom: 0;
    white-space: nowrap;
}

.dei-title {
    color: white;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

@media (min-width: 768px) {
    .dei-title {
        font-size: calc(var(--h2-size) + 1.5rem);
    }
}

.dei-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dei-services-list li {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    border-left: 3px solid rgba(255, 255, 255, 0.209);
    transition: background-color 0.3s ease;
}

.dei-services-list li:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.dei-services-list li strong {
    display: block;
    color: white;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.target-audience {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 5px;
}

/* Certificates Section */
.certificates-section {
    margin-top: 50px;
    padding: 0 0;
    background-color: #fff;
}

.main-certificates {
    display: flex;
    justify-content: space-around;
    margin-bottom: 65px;
    gap: 30px;
}

.certificate-item {
    text-align: center;
    flex: 1;
    max-width: 300px;
}

.certificate-image {
    margin-bottom: 20px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-img {
    width: 100%;
    height: auto;
    max-height: 15rem;
    object-fit: contain;
}

.certificate-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.certificate-item p {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Partner Organizations */
.partner-organizations {
    margin-top: 40px;
}

.partner-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
}

.partner-item {
    text-align: center;
    flex: 1;
    max-width: 320px;
}

.partner-logo {
    margin-bottom: 15px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

.partner-img {
    width: 70%;
    height: auto;
    max-height: none;
    object-fit: contain;
}


.partner-item p {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.partner-item small {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 5px;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #f9f9f9;
    padding: 30px;
    border: var(--border-width) solid var(--primary-color);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

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

.service-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--primary-color);
}

/* Contact form */
form {
    max-width: 600px;
    margin: 40px auto 0;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: var(--border-width) solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    font-family: inherit;
}

/* Footer */
footer {
    bottom: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: 40px 0 20px;
    min-height: fit-content;
}

@media (max-width: 767px) {
    footer {
    min-height: 38em;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--primary-color);
}


.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-logo {
    align-items: flex-start;
    display: flex;
    justify-content: flex-start;
}
.footer-logo img {
    max-width: max-content;
    max-height: max-content;
    width: 35%;
    height: auto;
}

@media (max-width: 740px) {
    .footer-social {
        justify-content: center;
    }
}

.footer-links-horizontal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 2.7em;
    padding: 0.5rem 0;
}

.footer-links-horizontal li {
    color: #000000a1;
    font-family: sans-serif;
    line-height: 1.5;
    letter-spacing: normal;
}

/* Stil für die Links */
.footer-links-horizontal a {
    text-decoration: none;
    color: #000000a1;
    font-family: sans-serif;
    line-height: 1.5;
    letter-spacing: normal;
    font-size: calc(var(--h2-size) / 1.40);
    font-weight: 100;
    -webkit-font-smoothing: antialiased;
}

/* Hover-Effekt für die Links */
.footer-links-horizontal a:hover {
    color: var(--primary-color);
}

.footer-column h2,h3 {
    font-size: 25px;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    text-decoration-color: rgb(139 51 44 / 81%) !important;
    margin-bottom: 5px;
    /*text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 4px;*/
    font-family: inherit;
}

.footer-bottom {
   text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgb(81 24 20 / 6%);
}

.footer-bottom p {
    border-top: 1px solid transparent;
    color: rgb(0, 0, 0, .3);
    font-family: system-ui;
    font-weight: 100;
    font-size: 10px;
}

/* Responsive styles */
@media (max-width: 900px) {
    .footer-links-horizontal {
        gap: 1.5em;
        padding: 0.5rem 0.5rem;
    }

    .footer-logo {
        justify-content: center;
    }
    .footer-content {
      justify-items: center;
}
    .footer-column{
        text-align: center;
    }
    .footer-links-horizontal li {
            text-align: center;
    }
    .footer-column h3 {
        text-align: center;
    }
    .feature-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-links-horizontal a {
        color: #000000f3;
        font-size: 15px;
        padding: 5px 0;
        text-align: center;
}
    .footer-logo img {
        width: 45%;
    }
}

@media (max-width: 787px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        color: var(--primary-color);
        font-weight: 900;
        margin-top: 5px;
    }
    
    .logo {
        text-align: left;
    }
    
    .feature-grid,
    .services-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0em;
    }
    
    .hero-banner h1 {
        font-size: 36px;
    }
    
    .hero-banner .subtitle {
        font-size: 20px;
    }
    
    .section h2 {
        font-size: 30px;
    }

    .hero-content {
        align-items: center;
        flex-direction: column-reverse;
        flex-wrap: wrap;
        transform: translateY(1.5rem);
    }
    .hero-text p {
        display: none;
    }
    .hero-image {
        display: flex;
        justify-content: center;
    }
    .hero-image img {
        height: auto;
        max-width: fit-content;
        width: 100%;
    }
}


.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 2em 0px;
    gap: 2em;
}
.why-choose-padding {
    padding-inline: 4.5em;
}

.why-content h2 {
   font-size: calc(var(--h2-size) + 1rem);
   margin-bottom: 0em;
}

.why-content p {
    font-size: 1.2rem;
    margin-left: 5px;
    color: rgba(51, 30, 30, 0.897);
    font-weight: 300;
    line-height: 1.5;
    font-family: sans-serif;
}
.why-content p:last-child {
    margin-bottom: 1em;
}

.margin-block {
    margin-block: 2.2em;
}

.align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.why-grid .why-item h3 {
    margin-bottom: 12px;
    line-height: 1.2;
    font-size: calc(var(--h2-size) - 2px);
    font-family: 'Poppins', sans-serif;
    letter-spacing:  -.5px;
    color: var(--primary-color);
    white-space: nowrap;
}
.why-grid .why-item p {
    font-size: 1rem;
    line-height: 1.4;
    color: rgb(51, 30, 30);
    font-weight: 300;
    font-family: sans-serif;
}
@media  (max-width: 990px) {
    .margin-block {
        margin-block: 1em;
    }
    .why-grid {
        grid-template-columns: 1fr 1fr;
        padding: 2em 0;
        row-gap: 2em;
        column-gap: 2em;
    }
    .why-choose-padding {
        padding-inline: 1em;
    }
    .why-grid .why-item h3 {
        font-size: calc(var(--h2-size) - 0.3em);
        white-space: nowrap;
    }

.page-banner {
    color: white;
    height: 180px;
    display: flex;
    align-items: center;
    }
}

.diversity-content {
    margin-top: 7em;
}
.container.diversity-container {
    background: var(--secondary-color);
    min-height: max-content;
     padding-inline: 4em;
}

@media (max-width: 900px) {
.container.diversity-container {
    padding-inline: 1em;
}
.project-text {
    transform: none;
}
.project-section {
    margin-top: 4em;
    flex-direction: column;
    gap: 0;
    transform: translateY(-50px);
    }
}
@media (max-width: 800px) {
    .project-image img {
    height: 89.8%;
    }
}
@media (max-width: 780px) {
    .project-image img {
    height: 91.5%;
    }
}



.service-grid {
    display: grid;
    gap: 1em;
}

.banner-container {
    padding: 1em 1em;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}

@media screen and (min-width: 990px) {
    .banner-container {
        padding: 1em 3em;
    }
}

.banner-container h1 {
   font-size: calc(var(--h2-size) + 2rem);
    /* font-family: inherit; */
    letter-spacing: 0px;
    font-weight: 800;
}


@media (max-width: 768px) {
    .banner-container h1 {
        font-size: calc(var(--h2-size) + 1.1rem);
        line-height: 1.2;
        /* font-family: inherit; */
        letter-spacing: 0px;
        font-weight: 800;
        margin-bottom: 1.5em;
        letter-spacing: 1.5px;
    }

    .certificate-img {
        width: 100%;
        height: auto;
        max-height: 19rem;
        margin-block: 0.5em;
    }
    .certificate-item {
        max-width: 250px;
        border: 1px solid #e0e0e0;
    }
}