@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Montserrat:wght@600;700&display=swap');

/* --- Root Variables --- */
:root {
    --primary-color: #FF7A00;
    --accent-color: #333;
    --text-color: #1a1a1a;
    --subtle-text: #4a4a4a;
    --bg-light: #f5f5f5;
    --white: #fff;
    --border-color: #e0e0e0;
    --font-family-body: 'Roboto', sans-serif;
    --font-family-heading: 'Montserrat', sans-serif;
    --color-success: #155724;
    --color-error: #721c24;
}

/* --- Global Reset & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 87px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 96px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-family-heading);
    color: var(--accent-color);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 24px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 40px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 20px;
    color: var(--subtle-text);
}

.highlight,
.highlight.emoji,
.emoji {
    color: var(--primary-color);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #e66c00;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.2);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e66c00;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    color: var(--white);
}

/* KORRIGIERT: !important-Selektor entfernt, um Icon-Farben zu steuern */
.fas,
.fab,
.fa-solid,
.fa-brands {
    color: var(--primary-color);
}

.fa-solid.fa-check-circle {
    color: var(--primary-color);
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--white);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header.header-scrolled {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    transition: transform 0.3s ease;
}

.nav {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
    align-items: center;
}

.nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav ul li a {
    font-weight: 500;
    color: var(--subtle-text);
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav ul li.active_nav a {
    color: var(--primary-color) !important;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav ul li a:not(.btn):hover::after {
    width: 100%;
}

.nav ul li a.btn::after {
    display: none;
}

.nav ul li a.btn {
    color: var(--white);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* KORRIGIERT: Feste padding-top entfernt und flex-direction hinzugefügt für bessere Ausrichtung */
.nav.is-open {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Änderung: Menüinhalt oben ausrichten */
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    background-color: var(--white);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-top: 100px;
    /* Hinzugefügt, um den Inhalt unter dem Header zu positionieren */
}

.nav.is-open {
    transform: translateX(0);
}

.nav.is-open ul {
    flex-direction: column;
    text-align: center;
}

.nav.is-open ul li {
    margin: 24px 0;
}

/* --- Hero Section (Homepage) --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.avif') no-repeat center center/cover;
    background-attachment: fixed;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 0 24px;
}

.hero-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-content.is-loaded {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.5;
    color: #e0e0e0;
}

/* --- Main Content Sections --- */
.value-grid,
.steps-grid,
.testimonial-grid {
    display: grid;
    gap: 40px;
}

.value-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-item .step-number {
    display: inline-block;
    width: 64px;
    height: 64px;
    line-height: 64px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.testimonial-item {
    border: 1px solid var(--border-color);
}

.testimonial-item .quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--subtle-text);
}

.testimonial-item .author {
    font-weight: 600;
    margin-top: 20px;
    display: block;
    color: var(--text-color);
}

.icon,
.fas,
.fab {
    transition: transform 0.3s ease-out;
    color: var(--primary-color);
}

.card:hover .icon,
.card:hover .fas,
.card:hover .fab {
    transform: scale(1.1);
}

/* --- Forms --- */
.form-style {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

.form-button {
    width: 100%;
}

.form-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}

.form-message.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.form-message.success {
    background-color: #d4edda;
    color: var(--color-success);
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: var(--color-error);
    border: 1px solid #f5c6cb;
}

/* --- Footer --- */
.footer {
    background-color: var(--accent-color);
    color: #f5f5f5;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo img {
    height: 60px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #b0b0b0;
    margin-bottom: 24px;
}

.footer-heading {
    color: var(--white);
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #d0d0d0;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: var(--primary-color);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    font-size: 1.5rem;
    color: var(--white);
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
    transform: translateY(-4px);
    color: var(--primary-color);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* --- Dynamic Animations (Initial State) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* --- FAQ Page Styling --- */
.page-title {
    text-align: center;
}

.intro-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
    border-radius: 10px;
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.accordion-main-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.accordion-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.accordion-toggle-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-toggle-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.accordion-content p {
    padding-bottom: 24px;
    padding-left: 56px;
}

/* --- Careers Page Styling --- */
.career-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/courier.avif');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    color: var(--white);
    padding: 120px 24px;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.career-hero .container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.career-hero .container.animate-on-load {
    opacity: 1;
    transform: translateY(0);
}

.career-hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 16px;
}

.career-hero .intro-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #e0e0e0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.benefit-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: block;
}

.benefit-card h3,
.benefit-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.application-form .intro-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.file-upload {
    position: relative;
    display: block;
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload label {
    display: block;
    padding: 12px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: var(--subtle-text);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload label:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

/* --- B2B Page Styling --- */
.b2b-hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/b2b-hero.avif');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
    position: relative;
    overflow: hidden;
}

.b2b-hero-section h1 {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.b2b-hero-section .intro-text {
    color: #e0e0e0;
}

.steps-grid-b2b .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.two-column-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.two-column-layout .about-us-text {
    flex: 1;
}

.two-column-layout .image-container {
    flex: 1;
    text-align: center;
}

.two-column-layout .responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.logo-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Impressum & Privacy Page Styling --- */
.page-section .container {
    background-color: var(--white);
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.page-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.content-block {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.content-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-block h2,
.content-block h3 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.content-block ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-block ul li {
    margin-bottom: 8px;
    color: var(--subtle-text);
}

.content-block a {
    color: var(--primary-color);
    font-weight: 500;
}

.privacy-intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.15rem;
    color: var(--subtle-text);
    line-height: 1.6;
}

/* --- File Name Display --- */
.file-name-display {
    font-size: 0.9em;
    color: var(--subtle-text);
    margin-top: 5px;
    padding-left: 5px;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .section-padding {
        padding: 50px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-section {
        height: auto;
        padding: 100px 24px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .header .logo img {
        height: 35px;
    }

    .nav ul {
        display: none;
    }

    .header .nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 300px;
        background-color: var(--white);
        padding-top: 80px;
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .header .nav.is-open {
        transform: translateX(0);
    }

    .header .nav ul {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .hamburger {
        display: flex;
    }

    .value-grid,
    .steps-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .value-grid-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }

    .value-grid-wrapper .value-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
    }

    .value-grid-wrapper .card {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: center;
    }

    .footer {
        padding-top: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .footer-brand,
    .footer-links-group,
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links-group,
    .footer-contact {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 40px;
    }

    .footer-contact {
        border-bottom: none;
    }

    .footer-socials {
        justify-content: center;
    }

    .career-hero {
        height: auto;
        padding: 100px 24px;
    }

    .career-hero h1 {
        font-size: 2.5rem;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    .benefit-card {
        padding: 30px 20px;
    }

    .benefit-card .icon {
        font-size: 2.5rem;
    }

    .two-column-layout {
        flex-direction: column;
        gap: 30px;
    }

    .about-us-text,
    .contact-form-container {
        margin-bottom: 40px;
    }

    .contact-form-container {
        margin-left: 0;
    }

    .page-section .container {
        padding: 30px;
    }

    .page-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
        word-break: break-word;
    }

    .content-block {
        margin-bottom: 30px;
    }

    .content-block h2 {
        font-size: 1.5rem;
    }

    /* B2B Page Specific Fixes */
    .b2b-hero-section {
        height: auto;
        padding: 120px 24px;
    }

    .b2b-hero-section h1 {
        font-size: 2.5rem;
    }
}

/* --- Responsive Fixes for FAQ Page --- */
@media (max-width: 576px) {
    .accordion-header h3 {
        font-size: 1.2rem;
        /* Etwas größere Schrift für Standard-Mobile */
    }
}

@media (max-width: 400px) {
    .accordion-header h3 {
        font-size: 1rem;
        /* Noch kleinere Schrift für sehr kleine Bildschirme */
    }
}

.fas,
.fab,
.fa-solid,
.fa-brands {
    color: var(--primary-color) !important;
}

.fa-paper-plane, .fa-whatsapp {
    color: #fff !important;
}
