/* Global Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Globale Stile */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a; 
    color: #f0f0f0; 
    line-height: 1.6;
    overflow-x: hidden; /* Verhindert horizontales Scrollen, das fixed Elemente beeinflussen kann */
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    color: #4a90e2; /* Dezente Akzentfarbe */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6aa3e9;
    text-shadow: 0 0 5px rgba(106, 163, 233, 0.5); /* Leichter Schein-Effekt */
}

h1, h2, h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

h1 {
    font-size: 2.8em;
    letter-spacing: -1px; /* Etwas enger für einen modernen Look */
}

h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 50px; /* Etwas mehr Abstand */
    font-weight: 500; /* Etwas leichter für einen modernen Look */
    letter-spacing: -0.5px;
}

h2 i {
    margin-right: 10px;
    font-size: 0.9em; /* Icons in Überschriften etwas kleiner */
    color: #4a90e2;
}

h3 {
    font-size: 1.5em;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: #2c2c2c; /* Etwas hellerer Dunkelgrauton für den Header */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3); /* Etwas stärkerer Schatten */
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #f0f0f0;
    display: flex; /* Für Icon und Text nebeneinander */
    align-items: center;
    gap: 0.5em;
}

.logo i {
    margin-right: 10px; /* Abstand zwischen Icon und Text */
    color: #4a90e2; /* Akzentfarbe für das Logo-Icon */
}

nav ul#primary-navigation { /* Targeting the main navigation list */
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Ensures desktop navigation is visible and horizontal */
    flex-direction: row; /* Explicitly row for desktop */
    gap: 2rem;
}

nav ul#primary-navigation li {
    margin-left: 10px; /* Reduzierter Abstand, da Buttons mehr Platz einnehmen */
}

nav ul#primary-navigation li:first-child {
    margin-left: 0;
}

nav ul#primary-navigation li a {
    font-size: 0.95em; /* Leicht angepasste Schriftgröße für Buttons */
    font-weight: 500;
    position: relative; 
    padding: 0.5em 1.1em; /* Padding für Button-Optik */
    background-color: #3a3a3a; /* Hintergrundfarbe für Buttons */
    color: #f0f0f0;
    border-radius: 6px; /* Abgerundete Ecken für Buttons */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, background 0.2s;
    text-decoration: none; /* Sicherstellen, dass keine Unterstreichung vorhanden ist */
    display: inline-block; /* Damit Padding und andere Block-Eigenschaften greifen */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav ul#primary-navigation li a:hover, nav ul#primary-navigation li a:focus {
    background-color: #23242a; /* Akzentfarbe beim Hover/Fokus */
    color: #ffffff;
    transform: translateY(-2px); /* Leichter Lift-Effekt */
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

/* Entferne den alten ::after Hover-Effekt für Navigationslinks */
nav ul li a::after {
    display: none; 
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0.5em;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    background: #fff;
    height: 3px;
    width: 28px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -9px; }
.hamburger::after  { top: 9px; }

.mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px,5px);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px,-5px);
}

/* --- Fix: Mobile Navigation only fixed and full width on small screens --- */
@media (max-width: 900px) {
    nav ul#primary-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: none;
        background: #202124;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem 1.5rem;
        gap: 1.5rem;
        box-shadow: 0 0 16px rgba(0,0,0,0.25);
        transform: translateY(-100%);
        transition: transform 0.3s cubic-bezier(.4,2,.6,1);
        z-index: 1001;
        display: none;
    }
    nav ul#primary-navigation.open {
        transform: translateY(0);
        display: flex;
    }
}

@media (min-width: 901px) {
    nav ul#primary-navigation {
        position: static;
        width: auto;
        max-width: 100%;
        background: none;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 2rem;
        box-shadow: none;
        transform: none;
        display: flex;
    }
}

/* Hero Sektion */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%); /* Subtiler linearer Gradient im Hintergrund */
    text-align: center;
    padding: 100px 0 120px 0; /* Mehr Padding unten */
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    color: #ffffff;
    margin-bottom: 20px;
    display: flex; /* Added for word animation */
    flex-wrap: wrap; /* Added for word animation */
    justify-content: center; /* Added for word animation */
}

.animated-headline span {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    margin: 0 5px; /* Adjust spacing between words */
    display: inline-block; /* Ensure transform works */
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    color: #cccccc;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards; /* Stellt sicher, dass der Zustand vor der Animation nicht sichtbar ist */
}

.hero .subtitle {
    font-size: 1.2em;
    margin-bottom: 40px; /* Mehr Abstand nach dem Untertitel */
    max-width: 600px;
    color: #cccccc;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
    margin-left: auto; /* Hinzugefügt für Zentrierung */
    margin-right: auto; /* Hinzugefügt für Zentrierung */
}

.hero-benefits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Abstand zwischen den Benefit-Punkten */
    margin-bottom: 50px; /* Abstand zum CTA-Button */
    animation: fadeInUp 1s ease-out 1s;
    animation-fill-mode: backwards;
}

.hero-benefits span {
    display: flex;
    align-items: center;
    font-size: 1em;
    color: #bbbbbb;
}

.hero-benefits i {
    color: #4a90e2; /* Akzentfarbe für die Icons */
    margin-right: 8px;
    font-size: 1.3em;
}

.cta-button {
    background-color: #4a90e2;
    color: #ffffff;
    padding: 15px 35px; /* Etwas mehr Padding */
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Box-Shadow zur Transition hinzugefügt */
    display: inline-block;
    animation: zoomIn 1s ease-out 1s;
    animation-fill-mode: backwards;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3); /* Schatten für den Button */
    margin-right: 15px; /* Abstand zum sekundären CTA */
}

.cta-button:hover {
    background-color: #357abd;
    color: #ffffff;
    transform: scale(1.05) translateY(-2px); /* Leichte Anhebung beim Hover */
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.5); /* Stärkerer Schatten beim Hover */
}

.secondary-cta {
    background-color: transparent;
    color: #cccccc;
    padding: 13px 30px; /* Etwas weniger Padding als Haupt-CTA */
    border-radius: 5px;
    font-size: 1.05em; /* Etwas kleiner als Haupt-CTA */
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: 2px solid #555555; /* Dezenter Rand */
    animation: zoomIn 1s ease-out 1.2s; /* Leichte Verzögerung */
    animation-fill-mode: backwards;
}

.secondary-cta:hover {
    background-color: #333333;
    color: #ffffff;
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button, .secondary-cta {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cta-button {
    margin-bottom: 15px;
}

/* Services Sektion */
.services {
    padding: 80px 0;
    background-color: #22252a; /* New: Cooler dark shade */
    position: relative; /* Für Pseudo-Elemente, falls benötigt */
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #4a90e2;
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #2c3038; /* Adjusted to fit new section bg */
    padding: 35px 30px; /* Etwas mehr Padding */
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; /* Added border-color */
    border: 1px solid #3a3f4c; /* Adjusted border */
}

.service-item:hover {
    transform: translateY(-12px); /* Stärkerer Lift-Effekt */
    box-shadow: 0 12px 25px rgba(0,0,0,0.4), 0 0 15px rgba(74, 144, 226, 0.3); /* Added accent glow */
    background-color: #333842; /* Leichte Aufhellung beim Hover */
    border-color: #4a90e2; /* Highlight border on hover */
}

.service-icon {
    font-size: 2.8em; /* Größe der Font Awesome Icons */
    margin-bottom: 25px; /* Mehr Abstand */
    color: #4a90e2; /* Hauptakzentfarbe für Service-Icons */
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1); /* Icon leicht vergrößern beim Hover über das Item */
}

.service-item h3 {
    color: #4a90e2;
    margin-bottom: 10px;
    display: flex; /* For arrow alignment */
    justify-content: center; /* For arrow alignment */
    align-items: center; /* For arrow alignment */
}

.details-arrow {
    margin-left: 10px;
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
}

.service-item:hover .details-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Why Us Sektion */
.why-us {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #1e1e1e 100%); /* Subtiler Gradient */
}

.why-us ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.why-us li {
    background-color: #2c2c2c;
    padding: 25px; /* Mehr Padding */
    margin-bottom: 20px; /* Mehr Abstand */
    border-radius: 8px; /* Etwas rundere Ecken */
    display: flex;
    align-items: flex-start; /* Icons und Text oben ausrichten */
    transition: background-color 0.3s ease, transform 0.3s ease, border-left-color 0.3s ease;
    border-left: 5px solid transparent; /* Für Hover-Effekt */
}

.why-us li:hover {
    background-color: #383838;
    transform: translateX(5px); /* Leichte Verschiebung nach rechts */
    border-left-color: #4a90e2; /* Akzentfarbe am linken Rand */
}

.why-us-icon {
    font-size: 1.8em; /* Größe der Font Awesome Icons */
    margin-right: 20px; /* Mehr Abstand */
    color: #4a90e2; /* Hauptakzentfarbe für Why-Us-Icons */
    width: auto; /* Zurücksetzen von vorherigen img-Styles */
    height: auto; /* Zurücksetzen von vorherigen img-Styles */
    filter: none; /* Zurücksetzen von vorherigen img-Styles */
    padding-top: 3px; /* Feinjustierung der vertikalen Ausrichtung */
}

.why-us li div {
    flex: 1; /* Damit der Text den restlichen Platz einnimmt */
}

/* About Us Sektion */
.about-us {
    padding: 80px 0 100px 0; /* Mehr Padding unten */
    background-color: #1c1e22; /* New: Distinct dark shade */
}

.about-us-content {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 40px;
    max-width: 900px; 
    margin: 40px auto 0 auto; /* Zentriert den Inhaltsblock selbst und fügt oberen Abstand hinzu */
}

.about-us-image {
    flex-basis: 300px; 
    display: flex; /* Added for centering placeholder */
    justify-content: center; /* Added for centering placeholder */
    align-items: center; /* Added for centering placeholder */
}

.image-placeholder {
    width: 200px; 
    height: 200px; 
    background-color: #2c2c2c;
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5em; 
    color: #4a90e2;
    border: 3px solid #4a90e2; /* Added border */
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3); /* Added shadow */
}

.about-us-text {
    flex: 1; 
    max-width: 650px; /* Leicht erhöht für etwas mehr Breite bei Bedarf */
    text-align: center; 
    background-color: #282a2e; /* New: Background for text block */
    padding: 30px; /* New: Padding for text block */
    border-radius: 8px; /* New: Rounded corners for text block */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* New: Subtle shadow */
}

.about-us p {
    margin: 0 auto 30px auto; /* Zentriert den Absatz und fügt größeren unteren Abstand hinzu */
    font-size: 1.1em; 
    line-height: 1.7; 
    color: #cccccc; /* Sicherstellen, dass der Text hell genug ist */
}

.company-values {
    display: flex;
    justify-content: space-around; /* Distribute items evenly */
    align-items: flex-start; /* Align items to the top */
    margin-top: 40px; /* Increased margin-top */
    gap: 20px; /* Add gap between items */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.value-item {
    display: flex;
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center; /* Center items horizontally */
    text-align: center;
    flex-basis: 160px; /* Slightly adjusted */
    padding: 20px; /* Adjusted padding */
    background-color: #2f3135; /* New: Adjusted background for value items */
    border-radius: 8px;
    border: 1px solid #3c3e42; /* New: Adjusted border */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.value-item:hover {
    transform: translateY(-8px); /* Adjusted hover transform */
    box-shadow: 0 10px 20px rgba(0,0,0,0.35); /* Adjusted shadow */
    background-color: #393b3f; /* Darker hover for items */
}

.value-item i {
    font-size: 2em; /* Icon size */
    color: #4a90e2; /* Icon color */
    margin-bottom: 10px; /* Space between icon and text */
}

.value-item span {
    font-size: 1em;
    font-weight: 500;
    color: #f0f0f0;
}

/* Technology Sektion */
.technology {
    padding: 80px 0;
    background-color: #161618; /* Slightly darker for more contrast */
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px; 
    margin: 40px auto 0 auto; 
}

.tech-item {
    background-color: #202022; /* Darker card background */
    padding: 30px;
    padding-top: 40px; /* More space for top border effect */
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease, background-color 0.3s ease;
    border: 1px solid #333333; /* Darker default border */
    border-top: 3px solid transparent; /* Placeholder for hover effect */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.35); 
    background-color: #28282a; 
    border-top-color: #4a90e2; /* Accent color top border on hover */
}

.tech-item i {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #4a90e2;
    transition: transform 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.1);
}

.tech-item h3 {
    color: #4a90e2;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.tech-item p {
    font-size: 0.95em;
    color: #bbbbbb;
    line-height: 1.5;
}

/* Contact Sektion */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    text-align: center;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-details p i {
    margin-right: 10px;
    color: #4a90e2;
    width: 20px; /* Feste Breite für bessere Ausrichtung */
    text-align: center;
}

.social-media {
    margin-top: 30px;
}

.social-media a {
    margin: 0 15px;
    display: inline-block;
    font-size: 1.8em; /* Größe der Social Media Icons */
    color: #cccccc; /* Grundfarbe für Social Media Icons */
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.social-media a:hover {
    color: #4a90e2; /* Akzentfarbe beim Hover */
    transform: scale(1.2) rotate(5deg); /* Leichte Drehung beim Hover */
    text-shadow: 0 0 8px rgba(74, 144, 226, 0.7); /* Schein-Effekt mit Akzentfarbe */
}

/* Footer */
footer {
    background-color: #2c2c2c;
    color: #aaaaaa;
    padding: 30px 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Für kleinere Bildschirme */
}

footer p {
    margin: 5px 0;
}

footer p i {
    margin-right: 5px;
    color: #4a90e2;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    display: flex;
}

footer ul li {
    margin-left: 20px;
}

footer ul li a {
    color: #aaaaaa;
    position: relative; /* Für Hover-Effekt */
    padding-bottom: 3px;
}

footer ul li a i {
    margin-right: 8px;
    font-size: 0.9em;
}

footer ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #f0f0f0;
    transition: width 0.3s ease-out;
}

footer ul li a:hover::after {
    width: 100%;
}

/* Sprachumschalter im Footer */
.lang-switcher-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}
.lang-switcher-footer .lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2em;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s, box-shadow 0.2s;
    outline: none;
    box-shadow: none;
}
.lang-switcher-footer .lang-btn[aria-pressed="true"],
.lang-switcher-footer .lang-btn:focus {
    background: #4a90e2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(74,144,226,0.15);
}
.lang-switcher-footer .lang-btn:hover {
    background: #357abd;
    color: #fff;
}
.flag-icon {
    font-size: 1.3em;
    vertical-align: middle;
}
.lang-switcher-footer.minimal {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin: 8px 0 0 0;
}
.lang-switcher-footer.minimal .lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15em;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    outline: none;
    box-shadow: none;
    min-width: 28px;
    min-height: 28px;
    line-height: 1;
}
.lang-switcher-footer.minimal .lang-btn[aria-pressed="true"],
.lang-switcher-footer.minimal .lang-btn:focus {
    background: #222;
    color: #4a90e2;
}
.lang-switcher-footer.minimal .lang-btn:hover {
    background: #333;
    color: #4a90e2;
}
.lang-switcher-footer.minimal button[aria-pressed="true"],
.language-switcher button[aria-pressed="true"] {
    background: #4a90e2;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(74,144,226,0.15);
    outline: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}
.lang-switcher-footer.minimal button[aria-pressed="false"],
.language-switcher button[aria-pressed="false"] {
    background: none;
    color: inherit;
    font-weight: normal;
}
.flag-icon {
    font-size: 1em;
    vertical-align: middle;
}
/* Entferne Header-Sprachumschalter falls noch vorhanden */
.lang-switcher { display: none !important; }

/* Back to top button */
.back-to-top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #4a90e2;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex; /* To center icon */
    align-items: center; /* To center icon */
    justify-content: center; /* To center icon */
    font-size: 1.5em;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1001; /* Above other content but below modals if any */
}

.back-to-top-button:hover {
    background-color: #357abd;
    transform: scale(1.1);
    color: #ffffff; /* Ensure color remains white on hover */
}

.back-to-top-button.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    header .container {
        flex-direction: row; /* Logo und Toggle nebeneinander */
        justify-content: space-between; /* Platz zwischen Logo und Toggle */
        align-items: center;
    }

    .logo {
        margin-bottom: 0; /* Kein unterer Rand mehr, da nebeneinander */
    }

    .hero {
        padding: 60px 0;
        min-height: auto;
    }

    .hero h1 {
        font-size: 1.8em; /* Kleinere Schriftgröße für die Headline */
    }

    .hero .subtitle {
        font-size: 1em;
    }

    .hero-benefits {
        flex-direction: column; /* Untereinander auf kleinen Bildschirmen */
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .hero-benefits span {
        font-size: 0.95em;
    }

    .cta-button, .secondary-cta {
        padding: 12px 25px;
        font-size: 1em;
        display: block; /* Volle Breite für Buttons */
        width: calc(100% - 50px); /* Volle Breite minus Padding */
        margin-left: auto;
        margin-right: auto;
    }

    .cta-button {
        margin-bottom: 15px; /* Abstand zwischen den Buttons */
    }


    .service-grid {
        grid-template-columns: 1fr; /* Einspaltig auf kleinen Bildschirmen */
    }

    .why-us li {
        flex-direction: column;
        text-align: center;
        padding: 14px 10px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    .why-us-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .about-us-content {
        gap: 30px;
    }

    .about-us-text {
        padding: 20px;
    }

    .company-values {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .value-item {
        flex-basis: auto; /* Automatische Breite */
        width: 80%; /* Begrenzte Breite für bessere Lesbarkeit */
        max-width: 250px;
    }
    
    .technology-grid {
        grid-template-columns: 1fr;
    }

    .contact-details p {
        font-size: 1em;
    }

    .social-media a {
        font-size: 1.6em;
        margin: 0 10px;
    }

    footer .container {
        flex-direction: column;
    }

    footer ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap; /* Umbruch für Footer-Links */
    }

    footer ul li {
        margin: 5px 10px;
    }

    .back-to-top-button {
        right: 10px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    h1 {
        font-size: 1.8em;
    }
    .hero h1 { /* Spezifischer für Hero-Headline */
        font-size: 1.6em;
    }

    nav ul {
        inset: 0 0 0 15%; /* Menü nimmt mehr Platz ein */
    }

    .hero .subtitle {
        font-size: 0.9em;
    }
    
    .cta-button, .secondary-cta {
        font-size: 0.9em;
        padding: 10px 20px;
    }

    .service-item, .tech-item {
        padding: 25px 20px;
    }
    .service-item h3, .tech-item h3 {
        font-size: 1.3em;
    }

    .about-us-text p {
        font-size: 1em;
    }
    .value-item span {
        font-size: 0.9em;
    }

    .back-to-top-button {
        right: 6px;
        bottom: 8px;
        width: 36px;
        height: 36px;
        font-size: 1em;
    }
}

/* Explicitly hide mobile-nav-toggle on screens larger than 768px */
@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none !important;
    }
}

/* --- Fix: Legal Pages Layout --- */
.legal-page {
    background-color: #121212;
    color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}
.legal-header {
    background-color: #202020;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-align: center;
}
.legal-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
}
.legal-header .logo-link {
    font-size: 1.8em;
    font-weight: bold;
    color: #f0f0f0;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}
.legal-header .logo-link i {
    margin-right: 10px;
    color: #4a90e2;
}
.legal-header .logo-link:hover {
    color: #4a90e2;
}
.legal-header h1 {
    color: #ffffff;
    font-size: 2.4em;
    margin: 0;
}
.legal-content {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 800px;
    margin: 0 auto;
}
.legal-content section {
    background-color: #1e1e1e;
    padding: 25px 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.legal-content h2 {
    font-size: 1.8em;
    color: #4a90e2;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}
.legal-content p, .legal-content ul {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #cccccc;
}
.legal-content ul {
    padding-left: 20px;
}
.legal-content li {
    margin-bottom: 8px;
}
.legal-content a {
    color: #6aa3e9;
    font-weight: 500;
}
.legal-content a:hover {
    text-decoration: underline;
    color: #8cb9ef;
}
.back-link-container {
    text-align: center;
    margin-top: 40px;
}
.cta-button-small {
    background-color: #4a90e2;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25);
}
.cta-button-small i {
    margin-right: 8px;
}
.cta-button-small:hover {
    background-color: #357abd;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}
.legal-footer {
    background-color: #2c2c2c;
    color: #aaaaaa;
    padding: 25px 0;
    text-align: center;
    margin-top: 40px;
}
@media (max-width: 900px) {
    .legal-content {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    .legal-content section {
        padding: 20px;
        margin-bottom: 20px;
    }
    .legal-header .logo-link {
        font-size: 1.6em;
        margin-bottom: 10px;
    }
    .legal-header h1 {
        font-size: 1.8em;
    }
}
@media (max-width: 480px) {
    .legal-content {
        padding-top: 10px;
        padding-bottom: 20px;
        max-width: 98vw;
    }
    .legal-content section {
        padding: 12px 6px;
    }
    .legal-header h1 {
        font-size: 1.2em;
    }
}
