/* =============================
   Basis-Layout & Variablen
   ============================= */
:root {
    --primary-color: #ff0000; /* Rot als Akzentfarbe */
    --dark-color: #ffffff;   /* Haupt-Schriftfarbe: Weiß */
    --light-color: #000000;  /* Haupt-Hintergrund: Schwarz */
    --gray-color: #1a1a1a;   /* Abgesetzte Boxen */
    --card-bg: #ffffff;      /* Weiße Karten für Kontrast */
    --max-width: 1200px;
    --transition-speed: .3s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background: var(--light-color);
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    padding-top: 80px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* =============================
   Top Bar
   ============================= */
.top-bar {
    background-color: var(--gray-color);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-info span {
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--dark-color);
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* =============================
   Navigation
   ============================= */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e3e3e3;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--dark-color);
}

.nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav li {
    position: relative;
}

.nav > li > a {
    padding: 0.5rem 0;
    transition: color var(--transition-speed);
    color: var(--dark-color);
}

.nav > li > a:hover {
    color: var(--primary-color);
}

/* Burger Menü für Mobil */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: transform var(--transition-speed);
}

/* Mega Menü */
.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--light-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1100;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    color: var(--dark-color);
    transition: all var(--transition-speed);
}

.dropdown-content a:hover {
    background: var(--gray-color);
    color: var(--primary-color);
}

/* =============================
   Hero Section
   ============================= */
.hero {
    background: url('/img/hero.jpg') center/cover no-repeat, linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    color: var(--dark-color);
    padding: 8rem 0;
    display: flex;
    align-items: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hero .container {
    text-align: center;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background var(--transition-speed);
    display: inline-block;
}

.btn:hover {
    background: #e05500;
}

/* =============================
   Services Section
   ============================= */
.services {
    padding: 4rem 0;
    background: var(--gray-color);
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    color: #000;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    text-align: center;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* =============================
   Footer
   ============================= */
.footer {
    background: var(--gray-color);
    color: var(--dark-color);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--dark-color);
    transition: color var(--transition-speed);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.footer-contact p {
    display: flex;
    align-items: center;
}

/* =============================
   Cookie Banner
   ============================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--light-color);
    color: var(--dark-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform var(--transition-speed) ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin-right: 1rem;
    font-size: 0.9rem;
}

.cookie-banner button {
    background: var(--primary-color);
    border: none;
    color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* =============================
   Call-To-Action Button
   ============================= */
.cta-call {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255,0,0,0.6);
    animation: pulse 2s infinite;
    z-index: 11000;
}

.cta-call:hover {
    background: #cc0000;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,0,0,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}

/* =============================
   Responsivität
   ============================= */
@media(max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media(max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        background: var(--light-color);
        flex-direction: column;
        width: 280px;
        height: 100vh;
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-speed) ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav.open {
        right: 0;
    }
    
    .nav > li {
        width: 100%;
    }
    
    .nav > li > a {
        padding: 1rem 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent;
        display: none;
        padding-left: 1rem;
        width: 100%;
    }
    
    .dropdown.open .dropdown-content {
        display: block;
    }
    
    .top-bar {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media(max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
    .row {
        display: block !important;
        width: 100%;
        margin: 0;
    }
    .col {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin: 0 0 2rem 0;
    }
    .card-wrapper, .service-cards, .industry-cases, .tech-categories, .service-levels {
        grid-template-columns: 1fr !important;
        display: block !important;
    }
    .page-header, .service-details, .benefits, .additional-content, .faq {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    h1, h2, h3, h4, h5, h6, p, ul, li {
        word-break: break-word;
        hyphens: auto;
    }
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .contact-info span {
        display: none;
    }
    
    .contact-info span:first-child {
        display: flex;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content h3 {
        font-size: 1.6rem;
    }
    .row,
    .about-content,
    .mission-content,
    .values-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .col {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin: 0 0 2rem 0 !important;
        padding: 0 !important;
    }
    .mission-content *,
    .about-content *,
    .values-content *,
    .row *,
    .col * {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    .lead {
        max-width: 100% !important;
    }
    .card-wrapper,
    .benefits .card-wrapper {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    .card-wrapper .card,
    .benefits .card-wrapper .card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem;
        display: block !important;
    }
    .stats,
    .stats-wrapper,
    .numbers,
    .facts,
    .highlights {
        display: block !important;
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    .stats > div,
    .stats-wrapper > div,
    .numbers > div,
    .facts > div,
    .highlights > div,
    .stat,
    .stat-card,
    .highlight,
    .fact,
    .number-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem;
        display: block !important;
        box-sizing: border-box;
    }
}

@media(max-width: 576px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .cookie-banner p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cta-call {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
}

/* Verbesserte Touch-Interaktionen für mobile Geräte */
@media (hover: none) {
    .nav > li > a:active,
    .btn:active,
    .social-links a:active {
        opacity: 0.7;
    }
    
    .card:active {
        transform: scale(0.98);
    }
}

/* Optimierung für Tablets im Querformat */
@media(min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .nav {
        width: 320px;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================
   Service Pages
   ============================= */
.page-header {
    text-align: center;
    padding: 4rem 0;
    background: var(--gray-color);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.lead {
    font-size: 1.2rem;
    color: var(--dark-color);
    max-width: 800px;
    margin: 0 auto;
}

.service-details {
    padding: 2rem 0;
}

.service-details h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.service-details h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--dark-color);
}

.service-details ul {
    list-style: none;
    margin: 1rem 0;
}

.service-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-details li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.cta-box {
    background: var(--gray-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
}

.cta-box h5 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.benefits {
    padding: 4rem 0;
    background: var(--gray-color);
}

.benefits h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.additional-content {
    padding: 4rem 0;
}

.additional-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.additional-content h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.industry-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tech-category ul {
    list-style: none;
    margin-top: 1rem;
}

.service-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.faq {
    padding: 4rem 0;
    background: var(--gray-color);
}

.faq h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.faq-item {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 8px;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--dark-color);
    line-height: 1.6;
}

/* =============================
   Responsive Styles
   ============================= */
@media(max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .service-details h2 {
        font-size: 1.8rem;
    }
}

@media(max-width: 992px) {
    .page-header {
        padding: 3rem 0;
    }
    
    .service-details {
        padding: 1.5rem 0;
    }
    
    .card-wrapper,
    .industry-cases,
    .tech-categories,
    .service-levels {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .service-details h2 {
        font-size: 1.6rem;
    }
    
    .service-details h3 {
        font-size: 1.3rem;
    }
    
    .card-wrapper,
    .industry-cases,
    .tech-categories,
    .service-levels {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
}

@media(max-width: 576px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .service-details h2 {
        font-size: 1.4rem;
    }
    
    .service-details h3 {
        font-size: 1.2rem;
    }
    
    .cta-box h5 {
        font-size: 1.3rem;
    }
    
    .benefits h2,
    .additional-content h2,
    .faq h2 {
        font-size: 1.6rem;
    }
}

@media (hover: none) {
    .card:hover {
        transform: none;
    }
    
    .card:active {
        transform: translateY(-5px);
    }
}

@media(min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .page-header {
        padding: 2rem 0;
    }
    
    .card-wrapper,
    .industry-cases,
    .tech-categories,
    .service-levels {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hintergrund-Kreise und absolute Elemente responsiv machen */
@media (max-width: 768px) {
    .hero,
    .about,
    .services,
    .cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .hero .container,
    .about .container,
    .services .container,
    .cta-section .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    /* Kreise im Hintergrund */
    [style*="border-radius: 50%"] {
        width: 60vw !important;
        max-width: 300px !important;
        height: 60vw !important;
        max-height: 300px !important;
        left: -30vw !important;
        right: auto !important;
        top: -30vw !important;
        bottom: auto !important;
    }
    /* Grid-Layouts einspaltig */
    .about > .container > div,
    .services > .container > div,
    .about-content,
    .about .container > div,
    .services .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Menü: Dropdown und Navigation mobil optimieren */
@media (max-width: 992px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100vw;
        left: 0;
        position: fixed;
        top: 60px;
        background: var(--light-color);
        height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 2000;
        display: none;
    }
    .nav.open {
        display: flex;
    }
    .menu-toggle {
        display: flex !important;
    }
    .dropdown-content {
        position: static;
        min-width: 100vw;
        box-shadow: none;
        border-radius: 0;
    }
}

/* Verhindere, dass große Elemente über den Bildschirm hinausragen */
section, .container, .about, .services, .cta-section {
    box-sizing: border-box;
    /* max-width: 100vw; */
    /* overflow-x: hidden; */
}

/* Stelle sicher, dass .container auf kleinen Bildschirmen Padding hat */
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* html, body behalten max-width und overflow-x zum Schutz vor horizontalem Scrollen */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* =============================
   Globale Responsivität & Layout
   ============================= */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Container: Immer Padding, keine max-width: 100vw mehr */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* Hintergrund-Kreise und absolute Elemente responsiv */
@media (max-width: 768px) {
  [style*="border-radius: 50%"] {
    width: 60vw !important;
    max-width: 300px !important;
    height: 60vw !important;
    max-height: 300px !important;
    left: -30vw !important;
    right: auto !important;
    top: -30vw !important;
    bottom: auto !important;
  }
}

/* Grids und Flexbox: Immer einspaltig auf kleinen Bildschirmen */
@media (max-width: 900px) {
  .service-cards,
  .card-wrapper,
  .about > .container > div,
  .about-content,
  .about .container > div,
  .services .container > div,
  .stats,
  .stats-wrapper,
  .numbers,
  .facts,
  .highlights,
  .footer-content {
    display: block !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 2rem !important;
  }
  .card, .stat, .stat-card, .highlight, .fact, .number-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 2rem;
    display: block !important;
    box-sizing: border-box;
  }
}

/* Hero, About, Services, CTA: Kein overflow-x, kein max-width außer auf body/html */
.hero, .about, .services, .cta-section, section {
  box-sizing: border-box;
  /* kein max-width, kein overflow-x */
}

/* Navigation: Mobil als Hamburger, keine horizontale Scrollbarkeit */
@media (max-width: 992px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    background: var(--light-color);
    flex-direction: column;
    width: 280px;
    height: 100vh;
    padding: 6rem 2rem 2rem;
    transition: right var(--transition-speed) ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow-x: hidden;
  }
  .nav.open {
    right: 0;
  }
  .menu-toggle {
    display: flex !important;
  }
  .dropdown-content {
    position: static;
    min-width: 100vw;
    box-shadow: none;
    border-radius: 0;
  }
}

/* Buttons: Auf kleinen Bildschirmen volle Breite */
@media (max-width: 576px) {
  .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* Text nie abschneiden */
h1, h2, h3, h4, h5, h6, p, ul, li {
  word-break: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Header fixieren */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: rgba(10,10,10,0.98);
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  transition: background 0.3s, box-shadow 0.3s;
} 