:root {
    --header: #252730;         /* Logo-Farbe */
    --primary: #FF8B3D;        /* Orange aus Logo */
    --primary-dark: #E67A2C;   /* Dunkleres Orange für Hover */
    --secondary: #2F3239;      /* Hellerer Ton der Logo-Farbe */
    --text-light: #FFFFFF;
    --text-dark: #252730;
    --background: #F5F7FA;
    --card-bg: #FFFFFF;
    --border-light: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    background: var(--header);
    padding: 0 2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    height: 70px;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.logo {
    height: 70px;
    width: auto;
    padding: 0;
    margin: 0;
    z-index: 1002;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
    margin-right: 10px;
}

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

/* Page Title */
.page-title {
    text-align: center;
    padding-top: 120px;
    margin-bottom: 3rem;
}

/* Mobile Navigation */
@media screen and (max-width: 1280px) {
    .menu-toggle {
        display: flex !important; /* Force display with !important */
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--header);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        z-index: 1001;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex !important; /* Force display with !important */
    }

    .nav-links a {
        padding: 0.8rem 0;
        text-align: center;
        width: 100%;
        border-radius: 4px;
    }

    .nav-links a:hover {
        background-color: var(--secondary);
    }
}

/* Hero Section */
.hero {
    min-height: 70vh;
    background: linear-gradient(rgba(37, 39, 48, 0.95), rgba(47, 50, 57, 0.95));
    display: flex;
    align-items: center;
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    color: var(--text-light);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content h1:last-of-type {
    margin-top: 2rem;
}

/* Mobile Anpassungen für Hero Section */
@media screen and (max-width: 1280px) {
    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2.3rem;
        margin-bottom: 1.3rem;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 80px 0 40px 0;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }

    .button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-content {
        padding: 1rem;
    }
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    background: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
}

.service-content h2 {
    color: var(--header);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    line-height: 1.2;
}

.service-content p {
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Services and History */
.services-history {
    margin-bottom: 4rem;
}

.services-history h2 {
    margin-bottom: 1.5rem;
}

.services-image {
    width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
    overflow: hidden;
}

.services-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Anpassungen */
@media screen and (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .services {
        padding: 3rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        max-width: 100%;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .service-content p {
        font-size: 1rem;
    }

    .service-card img {
        height: 180px;
    }
}

@media screen and (max-width: 480px) {
    .services {
        padding: 2rem 1rem;
    }

    .service-content {
        padding: 1.2rem;
    }

    .service-card img {
        height: 160px;
    }
}

/* Approach Section */
.approach-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin: 4rem 0;
    align-items: start;
}

.approach-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.approach-content h3 {
    margin-bottom: 1rem;
    color: var(--header);
}

.approach-content div {
    margin-bottom: 2rem;
}

/* Profile Section */
.profile-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin: 4rem 0;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-image {
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-name-container {
    float: left;
    width: 400px;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.name {
    margin-top: 0.5rem;
}

.name h2 {
    margin: 0;
    font-size: 1.2rem;
}

.name p {
    margin: 0.2rem 0 0 0;
    color: var(--text-dark);
}

.text-content {
    overflow: hidden;
}

.text-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* Value Section */
.value-section {
    text-align: center;
    margin: 4rem 0;
    padding: 4rem 0;
    background: var(--background);
}

.value-points {
    margin-top: 2rem;
}

.value-points h3 {
    margin: 1.5rem 0 0.5rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--header), var(--secondary));
    color: var(--text-light);
    padding: 5rem 2rem;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 139, 61, 0.3);
}

/* Mobile Anpassungen für CTA */
@media screen and (max-width: 768px) {
    .cta {
        padding: 3rem 1.5rem;
    }

    .cta h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        width: 80%; /* Breite auf mobilen Geräten begrenzen */
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .cta {
        padding: 2.5rem 1rem;
    }

    .cta h2 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .button {
        padding: 0.7rem 1.8rem;
        width: 90%;
    }
}

/* Privacy Content */
.privacy-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 90px;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    background: var(--background);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    line-height: 1.8;
}

.privacy-content h1 {
    color: var(--header);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
}

.privacy-content h2 {
    color: var(--header);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.privacy-content h3 {
    color: var(--header);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
}

.privacy-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.privacy-content ul, .privacy-content ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.privacy-content a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.privacy-seal {
    display: block;
    max-width: 200px;
    margin: 2rem auto;
}

/* Verbesserte Abschnittstruktur */
.privacy-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

/* Footer */
footer {
    background: var(--header);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1rem;
}

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

/* Chatbot */
.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.chatbot-icon {
    width: 30px;
    height: 30px;
    fill: white;
}

.chatbot-iframe {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 400px;
    height: 80vh; /* Standardmäßig 80% der Viewport-Höhe */
    max-height: 800px; /* Maximale Höhe begrenzen */
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
    z-index: 1001;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .approach-section,
    .profile-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .nav-links {
        gap: 1.5rem;
    }
    
    .image-name-container {
        float: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 2rem auto;
    }
    
    .privacy-content {
        padding: 1rem;
    }

    .privacy-content h1 {
        font-size: 2rem;
    }

    .privacy-content h2 {
        font-size: 1.6rem;
    }

    .privacy-content h3 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .chatbot-iframe {
        width: calc(100% - 40px);
        height: 70vh; /* Höhe von 70% der Viewport-Höhe auf mobilen Geräten */
    }
}

/* Branch Teaser */
.branch-teaser {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 3rem 2rem;
    margin-top: -2rem; /* Überlappung mit Hero-Section */
    position: relative;
    z-index: 2;
}

.branch-teaser-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
}

.branch-teaser h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.branch-teaser p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.branch-teaser-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.button-outline {
    background: transparent;
    border: 2px solid var(--text-light);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .branch-teaser {
        padding: 2.5rem 1.5rem;
    }
    
    .branch-teaser h2 {
        font-size: 1.8rem;
    }
    
    .branch-teaser p {
        font-size: 1.1rem;
    }
    
    .branch-teaser-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .button-outline {
        width: 80%;
        max-width: 300px;
    }
}
/* Next Branch Section */
.next-branch {
    margin-top: -50px;
    padding: 50px 0;
    background-color: #f8f8f8;
}

.next-branch-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.next-branch-text {
    flex: 1;
    padding-right: 40px;
}

.next-branch-form {
    flex: 1;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.next-branch-title {
    margin-top: -0.5em;
}

/* Mobile Styles - verbessert für Smartphones */
@media (max-width: 768px) {
    .next-branch {
        padding: 10px 0;
    }
    
    .next-branch-content {
        flex-direction: column;
        padding: 0 5px;
    }

    .next-branch-text {
        padding-right: 0;
        margin-bottom: 20px;
     }

    .next-branch-form {
        width: 100%;
        padding: 0px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    /* Entfernt den negativen Margin für den Titel auf mobilen Geräten */
    .next-branch-title {
        margin-top: 0;
    }
    
    /* Stellt sicher, dass alle Eingabefelder die volle Breite nutzen */
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        width: 100%;
        box-sizing: border-box;
    }
}



/* Form Success and Error Messages */
.form-success {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #e6f7e6;
    border-left: 4px solid #28a745;
    color: #155724;
    border-radius: 4px;
}

.form-error {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
    border-radius: 4px;
}
.button-white {
    background: var(--text-light);
    color: var(--primary);
    border: 2px solid var(--text-light);
}

.button-white:hover {
    background: var(--text-light);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}
/* Pulse-Animation für den Chatbot-Button */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 139, 61, 0.7);
    }
    
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(255, 139, 61, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 139, 61, 0);
    }
}

.pulse-animation {
    animation: pulse 1.5s ease-in-out 2;
}
