* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d3c61;
    --secondary: #1a5c8a;
    --accent: #c0392b;
    --dark: #1a252f;
    --light: #e8eef2;
    --white: #ffffff;
    --gray: #5a6c7d;
}

[data-theme="dark"] {
    --primary: #5dade2;
    --secondary: #3498db;
    --accent: #e74c3c;
    --dark: #ffffff;
    --light: #2c3e50;
    --white: #1a252f;
    --gray: #ffffff;
}

body {
    background-color: var(--white);
    transition: background-color 0.3s ease;
    color: var(--dark);
}

[data-theme="dark"] body {
    background-color: #1a252f;
    color: #ffffff;
}

[data-theme="dark"] .services,
[data-theme="dark"] .contact {
    background: #2c3e50;
}

[data-theme="dark"] .values,
[data-theme="dark"] .testimonials {
    background: #34495e;
}

[data-theme="dark"] .service-card::before,
[data-theme="dark"] .value-card::before {
    background: rgba(26, 37, 47, 0.85);
}

[data-theme="dark"] .testimonial::before {
    background: rgba(44, 62, 80, 0.90);
}

[data-theme="dark"] footer {
    background: #0f1419;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] p,
[data-theme="dark"] a {
    color: #ffffff !important;
}

[data-theme="dark"] .services h2,
[data-theme="dark"] .values h2,
[data-theme="dark"] .testimonials h2,
[data-theme="dark"] .contact h2 {
    color: #ffffff !important;
}

[data-theme="dark"] .values-intro {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .testimonial-text {
    color: #ffffff !important;
}

[data-theme="dark"] .author-info h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .author-info p {
    color: #e0e0e0 !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .back-to-top {
    background: var(--secondary);
}

[data-theme="dark"] .back-to-top:hover {
    background: var(--primary);
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

nav {
    background: transparent;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

nav.scrolled {
    background: #000000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-switcher {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: absolute;
    right: 2rem;
    top: 0.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    height: 24px;
    width: 24px;
}

.theme-toggle:hover {
    transform: scale(1.15);
}

.theme-toggle .sun-icon {
    display: none;
    font-size: 0.95rem;
}

.theme-toggle .moon-icon {
    display: inline;
    font-size: 0.85rem;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: inline;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

.language-switcher a {
    display: flex;
    align-items: center;
}

.language-switcher img {
    height: 16px;
    width: auto;
    transition: opacity 0.3s, transform 0.3s;
    position: relative;
    top: 2px;
    vertical-align: middle;
}

.language-switcher img:hover {
    opacity: 0.8;
    transform: scale(1.15);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #e8eef2 !important;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #5dade2 !important;
}

.hero {
    background-image: url('/images/hero-background.jpg');
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 200px 2rem 150px;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 60, 97, 0.20) 0%, rgba(26, 92, 138, 0.20) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    margin-top: 0;
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s backwards;
    position: relative;
    z-index: 2;
}

.cta-buttons a {
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    /* Mobile Touch Optimierung */
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

.services {
    background: #cce7f5;
}

.services h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: var(--white);
    min-height: 400px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 60, 97, 0.70);
    z-index: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card:nth-child(1) {
    background-image: url('/images/IAM-Advisory.jpg');
}

.service-card:nth-child(2) {
    background-image: url('/images/Communication.jpg');
}

.service-card:nth-child(3) {
    background-image: url('/images/FractionalCxO.jpg');
}

.service-card:nth-child(4) {
    background-image: url('/images/CyberSecurityExpertise.jpg');
}

.service-card:nth-child(5) {
    background-image: url('/images/SalesDevelopment.jpg');
}

.service-card:nth-child(6) {
    background-image: url('/images/IAM-ProjectManagement.jpg');
}

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

.service-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--white);
}

.service-card .service-focus {
    color: var(--white);
    font-weight: bold;
}

.service-card .highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.service-card ul.service-highlights {
    color: var(--white);
}

.service-card ul.service-highlights li {
    color: var(--white);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.values {
    background: var(--light);
}

.values h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.values-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: var(--white);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 60, 97, 0.70);
    z-index: 1;
}

.value-card > * {
    position: relative;
    z-index: 2;
}

.value-card:nth-child(1) {
    background-image: url('/images/Vertrauen.jpg');
}

.value-card:nth-child(2) {
    background-image: url('/images/Ehrgeizig.jpg');
}

.value-card:nth-child(3) {
    background-image: url('/images/Flexibilitaet.jpg');
}

.value-card:nth-child(4) {
    background-image: url('/images/Zuverlaessigkeit.jpg');
}

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

.value-card h3 {
    color: var(--white);
    margin: 1rem 0;
    font-size: 1.3rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card p {
    color: var(--white);
    text-align: left;
}

.value-icon {
    font-size: 3rem;
    color: var(--white);
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.testimonials {
    background: var(--light);
}

.testimonials h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    background-image: url('/images/goldmedaillie.jpg');
    background-size: cover;
    background-position: center;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(200, 230, 245, 0.90);
    z-index: 1;
}

.testimonial > * {
    position: relative;
    z-index: 2;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.contact {
    background: #cce7f5;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-info {
    font-size: 1.2rem;
    margin: 2rem 0;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p, .footer-section a {
    color: var(--light);
    text-decoration: none;
    line-height: 1.8;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

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

    .language-switcher {
        right: 5rem;
        top: 1rem;
    }

    .hero {
        min-height: 500px;
        padding: 150px 1rem 100px;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
        text-align: center;
        min-height: 48px; /* iOS empfohlene Mindest-Touch-Größe */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-right {
        flex-direction: column;
        width: 100%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 5rem;
        top: 50%;
        transform: translateY(-10%);
        z-index: 1000;
        font-size: 2rem;
        padding: 0.1rem 0.3rem;
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 6px;
    }

    .services-grid, .values-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 2rem 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .logo img {
        height: 80px !important;
    }

    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .values-grid, .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.highlight {
    background: linear-gradient(120deg, rgba(41, 128, 185, 0.2) 0%, rgba(41, 128, 185, 0.2) 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* About/Ueber Pages */
.content-section {
    background: var(--white);
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.content-section h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
}

.content-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.content-section ul li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.content-section ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.highlight-box {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    margin: 2rem 0;
}

.cta-section {
    background: #cce7f5;
    text-align: center;
    padding: 3rem 2rem;
}

[data-theme="dark"] .content-section {
    background: #1a252f;
}

[data-theme="dark"] .content-section h2,
[data-theme="dark"] .content-section h3 {
    color: #5dade2 !important;
}

[data-theme="dark"] .content-section p,
[data-theme="dark"] .content-section li {
    color: #ffffff !important;
}

[data-theme="dark"] .highlight-box {
    background: #2c3e50;
    border-left-color: #5dade2;
}

[data-theme="dark"] .cta-section {
    background: #2c3e50;
}

/* IAM Structural Clarity landing page CTA box */
.contact-cta { max-width: 800px; margin: 2.5rem 0 0; }
.contact-cta .btn-primary { background: var(--primary); color: var(--white); border: 2px solid var(--primary); }
.contact-cta .btn-primary:hover { filter: brightness(0.95); }
