/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Visually Hidden for Screen Readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Design Themes - Classic (Standard) */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #737373;
    --accent-color: #ffffff;
    --text-color: #4e5152;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --transition: all 0.3s ease;
    --gradient-start: #1a1a1a;
    --gradient-end: #737373;
    --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    
    /* Performance Optimierungen */
    --will-change-transform: transform;
    --will-change-opacity: opacity;
    
    /* Accessibility: Color Contrast (WCAG AA compliant) */
    --text-on-dark: #ffffff; /* 21:1 contrast on #1a1a1a */
    --text-on-light: #1a1a1a; /* 16.5:1 contrast on #ffffff */
    --link-color: #2563eb; /* 4.5:1 contrast minimum */
}

/* Modern Theme */
[data-theme="modern"] {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #ffffff;
    --text-color: #1e293b;
    --bg-light: #f1f5f9;
    --bg-dark: #0f172a;
    --gradient-start: #2563eb;
    --gradient-end: #7c3aed;
    --card-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

/* Minimal Theme */
[data-theme="minimal"] {
    --primary-color: #000000;
    --secondary-color: #666666;
    --accent-color: #ffffff;
    --text-color: #333333;
    --bg-light: #ffffff;
    --bg-dark: #000000;
    --gradient-start: #000000;
    --gradient-end: #333333;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--accent-color);
    font-size: 16px;
    min-height: 100vh;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - UI/UX Best Practices */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.875rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 0.625rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-brand a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-brand a:hover {
    transform: scale(1.05);
}

.nav-brand .logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav-brand a:hover .logo {
    transform: scale(1.1);
}

.nav-brand .brand-text {
    display: inline-block;
}

@media (max-width: 768px) {
    .nav-brand .logo {
        height: 32px;
    }
    
    .nav-brand .brand-text {
        font-size: 0.9rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    min-height: 44px;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
}

.nav-menu a:hover::before {
    width: calc(100% - 2rem);
}

.nav-menu a:active {
    transform: scale(0.98);
}

.nav-menu a.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent-color);
    font-weight: 600;
}

.nav-menu a.active::before {
    width: calc(100% - 2rem);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Design Switcher */
.design-switcher {
    position: relative;
}

.design-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--accent-color);
    font-size: 1.2rem;
    touch-action: manipulation;
}

.design-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.design-options {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 150px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.design-switcher.active .design-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.design-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--accent-color);
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.design-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.design-option.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    touch-action: manipulation;
    border-radius: 8px;
    transition: background 0.25s ease;
    position: relative;
    z-index: 10001;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle:active {
    transform: scale(0.95);
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--accent-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--accent-color);
    text-align: center;
    overflow: hidden;
    /* Performance */
    will-change: transform;
    contain: layout style paint;
}

.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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    min-height: 44px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    touch-action: manipulation;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 5rem 0;
    }
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    line-height: 1.2;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.25rem;
    color: var(--text-color);
}

.about-quote {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 1.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Team Section */
.team {
    background: var(--accent-color);
}

.team-member {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.team-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.team-role {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-description {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-color);
}

/* Page Hero (for subpages) */
.page-hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--accent-color);
    padding: 8rem 0 4rem;
    margin-top: 70px;
    text-align: center;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
    opacity: 0.7;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    opacity: 0.95;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

/* Service Details Page */
.service-details {
    padding: 4rem 0;
}

.service-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* CTA Section */
.cta-section {
    background: var(--bg-dark);
    color: var(--accent-color);
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 700;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

/* Services Section */
.services {
    background: var(--bg-light);
}

/* Services Overview on Homepage */
.services-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    min-width: 0; /* Wichtig für Grid-Items mit Text-Overflow */
    width: 100%;
    box-sizing: border-box;
}

.service-overview-card {
    background: var(--accent-color);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-overview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-overview-card:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.service-overview-card h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
    line-height: 1.3;
}

.service-overview-card > p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
}

.service-preview-list {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    padding: 0;
}

.service-preview-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
    font-size: 1rem;
}

.service-preview-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-overview-card .btn {
    margin-top: auto;
    align-self: center;
}

.service-category {
    margin-bottom: 4rem;
}

.service-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    color: var(--primary-color);
    margin-bottom: 2rem;
    margin-top: 3rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.service-category:first-of-type .category-title {
    margin-top: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.service-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform;
    contain: layout style paint;
    overflow: hidden;
}

.service-card h3,
.service-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-card:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.service-number {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.service-card h3 {
    font-size: 1.375rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    margin-top: 0;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    font-weight: 600;
    line-height: 1.3;
    flex-grow: 0;
    max-width: 100%;
    overflow: hidden;
}

.service-card p {
    line-height: 1.7;
    color: var(--text-color);
    margin-top: 0;
    flex-grow: 1;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
}

/* Quote Section */
.quote {
    background: var(--bg-dark);
    color: var(--accent-color);
    text-align: center;
}

.quote blockquote {
    font-size: clamp(1.125rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 1.25rem;
    font-style: italic;
    quotes: """ """;
}

.quote blockquote::before {
    content: open-quote;
}

.quote blockquote::after {
    content: close-quote;
}

.quote cite {
    font-size: 1.25rem;
    opacity: 0.8;
    font-style: normal;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-item h3 {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 0.25rem 0;
    display: inline-block;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.contact-link:hover {
    border-bottom-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--accent-color);
    padding: 2rem 0;
    text-align: center;
}

.footer-brand {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer p {
    color: var(--accent-color);
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    /* Accessibility: Ensure sufficient contrast */
    font-weight: 500;
}

.footer a:hover,
.footer a:focus {
    opacity: 1;
    border-bottom-color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.footer-nav {
    margin-top: 1rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a:focus {
    opacity: 1;
    border-bottom-color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Legal Pages */
.legal-page {
    padding: 80px 0 2rem;
    min-height: 100vh;
}

.legal-page h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.legal-page section {
    margin-bottom: 0.75rem;
    padding: 0;
}

.legal-page h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    margin-top: 0.75rem;
}

.legal-page section:first-of-type h2 {
    margin-top: 0;
}

.legal-page h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    margin-top: 0.75rem;
}

.legal-page h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    margin-top: 0.75rem;
}

.legal-page p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.legal-page a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--secondary-color);
}

.legal-source {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--secondary-color);
}

/* Interactive Services Showcase */


/* Performance: Pause Animation wenn nicht sichtbar */
@media (prefers-reduced-motion: no-preference) {
    .hotspot-pulse {
        animation: pulse 2s infinite;
    }
}

/* Optimierung: GPU-beschleunigte Transforms */
.service-card,
.hotspot,
.btn,
.nav-menu a {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Service Dropdown Navigation - UI/UX Best Practices */
.nav-item-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.65rem;
    margin-left: 0.375rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    vertical-align: middle;
    opacity: 0.7;
    pointer-events: none; /* Verhindere separate Klicks auf den Pfeil */
}

.nav-item-dropdown:hover .dropdown-arrow,
.nav-item-dropdown:focus-within .dropdown-arrow,
.nav-item-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-dark);
    min-width: 280px;
    list-style: none;
    padding: 0.5rem;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Desktop: Hover & Focus States */
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Active State (für Click-Toggle auf Desktop & Mobile) */
.nav-item-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 8px;
    margin: 0.125rem 0;
    position: relative;
    overflow: hidden;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: rgba(255, 255, 255, 0.12);
    padding-left: 1.5rem;
    transform: translateX(4px);
}

.dropdown-menu a:hover::before,
.dropdown-menu a:focus::before {
    transform: scaleY(1);
}

.dropdown-menu a:active {
    transform: translateX(4px) scale(0.98);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        z-index: 10000;
        padding: 0.75rem 0;
    }
    
    .navbar .container {
        gap: 1rem;
    }
    
    .nav-brand {
        flex: 1;
        min-width: 0;
    }
    
    .nav-brand .brand-text {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 9999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        text-align: center;
        justify-content: center;
        width: 100%;
        min-height: 48px; /* Touch-Target Größe für Mobile */
        padding: 0.875rem 1.5rem;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.15);
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .design-switcher {
        order: -1;
    }

    .design-options {
        right: auto;
        left: 0;
    }

    .nav-toggle {
        display: flex !important;
        z-index: 10001;
        position: relative;
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .service-category {
        margin-bottom: 2.5rem;
    }
    
    /* Subpage responsive styles */
    .page-hero {
        padding: 6rem 0 3rem;
    }
    
    .service-intro {
        margin-bottom: 2rem;
    }
    
    .lead-text {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .category-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile Dropdown - Best Practices */
    .nav-item-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .nav-item-dropdown > a {
        text-align: center;
        justify-content: center;
        width: 100%;
        min-height: 48px; /* Touch-Target Größe für Mobile */
        padding: 0.875rem 1.5rem;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Deaktiviere Hover auf Mobile (nur Click) */
    .nav-item-dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: none;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        padding: 0;
        margin: 0;
        display: none;
        border: none;
        border-radius: 0;
        min-width: auto;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center;
    }
    
    .nav-item-dropdown.active .dropdown-menu {
        display: block !important;
        max-height: 500px !important;
        padding: 0.5rem 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        height: auto !important;
    }
    
    .dropdown-menu li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        list-style: none !important;
    }
    
    .dropdown-menu a {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9375rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 44px !important; /* Touch-Target Größe */
        display: flex !important;
        align-items: center !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        opacity: 1 !important;
        visibility: visible !important;
        color: var(--accent-color) !important;
        text-decoration: none !important;
    }
    
    .dropdown-menu a::before {
        display: none; /* Entferne den linken Indikator auf Mobile */
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        transform: none;
        background: rgba(255, 255, 255, 0.12);
    }
    
    .dropdown-menu a:active {
        background: rgba(255, 255, 255, 0.18);
        transform: scale(0.98);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        min-width: 0; /* Wichtig für Grid-Items mit Text-Overflow */
    }

    .service-card {
        padding: 1.5rem;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }
    
    .service-card h3,
    .service-card p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow: hidden;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

    .hero {
        min-height: 500px;
    }

    .team-member {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-image {
        margin: 0 auto;
        max-width: 250px;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .service-category {
        margin-bottom: 2rem;
    }

    .category-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .services-overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-width: 0;
    }

    .service-card,
    .service-overview-card {
        padding: 1.25rem;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }
    
    .service-card h3,
    .service-card p,
    .service-overview-card h3,
    .service-overview-card p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow: hidden;
    }
    
    .service-overview-card h3 {
        font-size: 1.125rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .design-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Performance Optimierungen für Mobile */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Image Optimization */
img[loading="lazy"] {
    content-visibility: auto;
}

}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .design-switcher,
    .nav-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .service-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

