/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a90e2;
    --accent-color: #6bb6ff;
    --orange-accent: #ff6b35;
    --orange-light: #ff8a5b;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    --gradient-orange: linear-gradient(135deg, var(--orange-accent), var(--orange-light));
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    z-index: 999;
    transition: var(--transition-fast);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.nav-logo:hover {
    text-decoration: none;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
}

.nav-logo .logo:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--orange-accent);
    letter-spacing: 0.3px;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-orange);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Standardmäßig versteckt in Desktop-Ansicht */
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 99999 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    margin: 5px;
    isolation: isolate;
}

/* Hero Section */
.hero {
    min-height: 75vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 0 0;
    margin: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    background-size: cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 40px 20px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 65vh;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(45deg, #6bb6ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-style: italic;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--text-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-header-image {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition-fast);
    position: relative;
    z-index: 3;
}

.hero-header-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: rgba(107, 182, 255, 0.2);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.15);
    bottom: 10%;
    left: -5%;
    animation-delay: 4s;
}

/* Section Styles */
section {
    padding: 80px 0;
}

section.hero {
    padding: 100px 0 0 0 !important;
}

section.about {
    padding: 60px 0 80px 0 !important;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-orange);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
    padding: 60px 0 80px 0;
    margin: 0;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 91, 0.05));
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text {
    max-width: 100%;
}

.about-text p {
    margin-bottom: 1.8rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.about-text p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
}

.mission-box {
    background: var(--gradient-orange);
    color: var(--text-white);
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.mission-box * {
    color: var(--text-white) !important;
}

.mission-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(1.5);
}

.mission-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    color: var(--text-white);
}

.mission-box p {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-white);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    border-left: 4px solid var(--orange-accent);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 107, 53, 0.02) 100%);
    transition: var(--transition-fast);
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }
.feature-item:nth-child(4) { animation-delay: 0.8s; }

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-left-color: var(--primary-color);
}

.feature-item:hover::before {
    background: linear-gradient(135deg, transparent 0%, rgba(44, 90, 160, 0.05) 100%);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-orange);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition-fast);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.feature-item:hover .feature-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--text-white);
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Services Section */
.services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.service-category {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 1;
}

.service-category:hover::before {
    opacity: 0.05;
}

.service-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.service-list {
    list-style: none;
    position: relative;
    z-index: 2;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.service-list li:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

.service-list i {
    color: var(--orange-accent);
    font-size: 1rem;
}

.specializations {
    text-align: center;
}

.specializations h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.spec-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.spec-tag {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
}

.spec-tag:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-light);
}

/* Team Section */
.team {
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-member {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.member-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.team-member:hover .member-overlay {
    opacity: 0;
    display: none;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-social {
    display: none;
    gap: 1rem;
}

.member-social a {
    display: none;
}

.member-info {
    padding: 2rem;
    text-align: center;
}

.member-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.member-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.member-desc {
    font-style: italic;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition-fast);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-light);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.info-text h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-text p, .info-text a {
    color: var(--text-light);
    text-decoration: none;
}

.info-text a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1rem;
    color: var(--text-light);
    transition: var(--transition-fast);
    pointer-events: none;
    background: var(--bg-white);
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    position: static;
    font-size: 0.9rem;
    pointer-events: auto;
    background: none;
    padding: 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--orange-accent);
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--orange-accent);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--orange-accent);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal-links span {
    color: rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition-fast);
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-logo {
        flex-direction: row;
        gap: 0.8rem;
        align-items: center;
    }
    
    .nav-logo .logo {
        height: 35px;
    }
    
    .logo-text {
        align-items: flex-start;
    }
    
    .logo-title {
        font-size: 0.75rem;
        line-height: 1;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
        line-height: 1;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        min-height: auto;
        padding: 2rem 20px;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .hero-header-image {
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .about::before {
        width: 120px;
        height: 120px;
    }

    .mission-box {
        margin-top: 2rem;
        padding: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .spec-tags {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
    }

    /* Mobile Anpassungen für rechtliche Seiten */
    .legal-page {
        padding-top: 80px;
        padding-bottom: 30px;
        padding-left: 0;
        padding-right: 0;
        overflow-x: hidden;
    }

    .legal-content {
        padding: 1rem 0.5rem;
        margin: 0 0.5rem;
        max-width: calc(100vw - 1rem);
        width: calc(100vw - 1rem);
        box-sizing: border-box;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .legal-content h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .legal-section {
        margin-bottom: 2rem;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .legal-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .legal-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        margin-top: 1.2rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .legal-section p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    .legal-section ul {
        padding-left: 1.2rem;
        margin-bottom: 1rem;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .legal-section li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    .legal-section a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .back-link {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .back-link .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .feature-item,
    .service-category {
        padding: 1.5rem;
    }

    /* Zusätzliche Anpassungen für rechtliche Seiten auf sehr kleinen Bildschirmen */
    .legal-content {
        padding: 1rem 0.8rem;
        margin: 0 0.5rem;
        max-width: calc(100% - 1rem);
        border-radius: 10px;
    }

    .legal-content h1 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
        line-height: 1.2;
    }

    .legal-content h1::after {
        width: 60px;
        height: 3px;
    }

    .legal-section {
        margin-bottom: 2rem;
    }

    .legal-section h2 {
        font-size: 1.2rem;
        margin-bottom: 0.7rem;
        line-height: 1.3;
    }

    .legal-section h3 {
        font-size: 1rem;
        margin-bottom: 0.7rem;
        margin-top: 1rem;
        line-height: 1.3;
    }

    .legal-section p {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: 0.9rem;
    }

    .legal-section ul {
        padding-left: 1.2rem;
        margin-bottom: 0.9rem;
    }

    .legal-section li {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.4rem;
    }

    .back-link {
        margin-top: 1.5rem;
        padding-top: 1.2rem;
    }

    .back-link .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Legal Pages Styles */
.legal-page {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
    background: var(--bg-light);
    overflow-x: hidden;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legal-content h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.legal-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.legal-section h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    text-align: left;
}

.legal-section ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.legal-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.back-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.back-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition-fast);
    transform-origin: center;
    position: relative;
}

/* ================================
   COOKIE BANNER STYLES
   ================================ */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), #1e4a87);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid var(--accent-color);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.cookie-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    animation: cookieBounce 2s infinite;
}

@keyframes cookieBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.cookie-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn-accept {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.cookie-btn-accept:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.cookie-btn-settings {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--bg-light);
}

.cookie-modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 1rem 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.1);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-category h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-grow: 1;
}

.cookie-category p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .cookie-slider {
    background-color: var(--primary-color);
}

input:focus + .cookie-slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

input:disabled + .cookie-slider {
    background-color: var(--primary-color);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid var(--bg-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    .cookie-modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cookie-switch {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-text h3 {
        font-size: 1.1rem;
    }

    .cookie-text p {
        font-size: 0.9rem;
    }

    .cookie-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}