/* Google Fonts werden non-blocking im HTML geladen */


/* Define Cascade Layers */
@layer reset, base, theme, components, utilities;

@layer reset {
  /* Modern CSS reset */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }
  
  body {
    min-block-size: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  img, picture, svg, video {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
  }
  
  input, button, textarea, select {
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul, ol {
    list-style: none;
  }
}

@layer base {
  :root {
    /* Color Space Fallback Helpers */
    --in-oklab: ;
    --in-oklch: ;
  }
  
  @supports (linear-gradient(in oklab, white, black)) {
    :root {
      --in-oklab: in oklab;
      --in-oklch: in oklch;
    }
  }

  :root {
    /* Fonts */
    --font-heading: 'Geist', sans-serif;
    --font-body: 'Geist', sans-serif;

    /* Corporate Color Palette - German Premium Brand Look */
    --bg-main: #1e1e1e;       /* Anthracite */
    --bg-surface: #2a2a2a;    /* Dark Gray */
    --bg-surface-hover: #333333;
    --bg-deep: #141414;       /* Deep Charcoal for footers/dark contrast */
    --text-primary: #ffffff;  /* White */
    --text-secondary: #c0c0c0;/* Muted Gray */
    --text-muted: #808080;    /* Darker Muted */
    
    --brand-yellow: #f4c400;  /* Corporate Accent Yellow */
    --brand-yellow-solid: #d4a900;
    --brand-yellow-glow: rgba(244, 196, 0, 0.15);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.18);
    --glass-bg: rgba(42, 42, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.06);
    
    /* Layout Sizes */
    --max-width: 1200px;
    --header-height-full: 110px;
    --header-height-shrink: 85px;
    
    /* Shadows */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.7);
    
    /* Curves */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    padding-top: var(--header-height-full); /* Offset for sticky header */
    background-image: 
      radial-gradient(circle at 10% 10%, rgba(244, 196, 0, 0.015) 0%, transparent 40%),
      radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    background-attachment: fixed;
  }
}

@layer theme {
  /* High contrast mode adaptations */
  @media (forced-colors: active) {
    :root {
      --bg-main: Canvas;
      --bg-surface: Canvas;
      --text-primary: CanvasText;
      --text-secondary: CanvasText;
      --brand-yellow: Highlight;
      --border-color: CanvasText;
      --glass-bg: Canvas;
      --glass-border: CanvasText;
    }
  }

  /* Support Reduced Motion */
  @property --animation-reduced {
    syntax: "*";
    inherits: false;
    initial-value: none;
  }

  @media (prefers-reduced-motion: reduce) {
    * {
      animation: var(--animation-reduced) !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
  }
}

@layer components {
  /* Header & Navigation */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height-full);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: max(2rem, 5vw);
    border-bottom: 1px solid var(--glass-border);
    background-color: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    transition: height var(--transition-normal), background-color var(--transition-normal);
  }

  /* Scroll-driven animation for Header size reduction */
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes shrink-header {
      from {
        height: var(--header-height-full);
      }
      to {
        height: var(--header-height-shrink);
        background-color: rgba(30, 30, 30, 0.98);
        box-shadow: var(--shadow-md);
      }
    }
    .header {
      animation: shrink-header auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 80px;
    }
  }

  /* Vector Recreated Logo */
  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
  }
  
  .logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height var(--transition-normal);
  }

  /* Scroll-driven animation for Logo shrink */
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes shrink-logo {
      from {
        height: 75px;
      }
      to {
        height: 50px;
      }
    }
    .logo img {
      animation: shrink-logo auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 80px;
    }
  }



  /* Header Navigation Menu */
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
  }
  
  .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-block: 0.4rem;
    transition: color var(--transition-fast);
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-yellow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
  }
  
  .nav-link:hover {
    color: var(--text-primary);
  }
  
  .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  .nav-link.active {
    color: var(--brand-yellow);
  }
  
  .nav-link.active::after {
    transform: scaleX(1);
    transform: scaleX(1);
  }
  
  .nav-link:focus-visible {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 4px;
  }

  /* Dropdown Styles (Desktop) */
  .nav-dropdown {
    position: relative;
    display: inline-block;
  }

  .nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    text-decoration: none;
  }

  .dropdown-icon {
    transition: transform var(--transition-fast);
    pointer-events: none;
  }

  .nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(14, 14, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.75rem 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    text-decoration: none;
    transition: color var(--transition-fast), background-color var(--transition-fast);
  }

  .nav-dropdown-menu a:hover {
    color: var(--brand-yellow);
    background-color: rgba(244, 196, 0, 0.05);
  }


  /* Mega Menu Base */
  .mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: min(92vw, 1100px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .nav-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .mega-menu-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .mega-menu-col-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-yellow);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
  }

  .mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
  }

  .mega-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    transform: translateX(3px);
  }

  .mega-menu-item-icon {
    flex-shrink: 0;
    color: var(--brand-yellow);
    margin-top: 0.1rem;
  }

  .mega-menu-item-content {
    display: flex;
    flex-direction: column;
  }

  .mega-menu-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
  }

  .mega-menu-item:hover .mega-menu-item-title {
    color: var(--brand-yellow);
  }

  .mega-menu-item-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 0.2rem;
  }

  /* Mega Menu Blog Specific */
  .mega-menu-blog {
    width: min(92vw, 850px);
    grid-template-columns: 2fr 1fr;
    gap: 2.2rem;
  }

  .nav-dropdown:hover .mega-menu-blog {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .mega-blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .mega-blog-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    text-decoration: none;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
  }

  .mega-blog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 196, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.03);
  }

  .mega-blog-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-sm);
  }

  .mega-blog-card-meta {
    font-size: 0.7rem;
    color: var(--brand-yellow);
    font-weight: 600;
  }

  .mega-blog-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
  }



  /* Main CTA Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    position: relative;
  }
  
  .btn-primary {
    background-color: var(--brand-yellow);
    color: #000;
    box-shadow: 0 4px 12px rgba(244, 196, 0, 0.2);
  }
  
  .btn-primary:hover:not(:disabled) {
    background-color: var(--brand-yellow-solid);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(244, 196, 0, 0.3);
  }
  
  .btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
  }
  
  .btn-secondary:hover:not(:disabled) {
    background-color: var(--bg-surface-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
  }

  .btn:active:not(:disabled) {
    transform: translateY(0);
  }
  
  .btn:focus-visible {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 4px;
  }

  /* Glass Panels */
  .glass-panel {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  }
  
  .glass-panel:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
  }

  /* Hero Section */
  .hero-section {
    position: relative;
    display: flex;
    align-items: center;
    min-block-size: calc(100vh - var(--header-height-full));
    padding: 0;
    overflow: hidden;
    background: #09090b;
  }

  /* Full-bleed background photo */
  .hero-section .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    z-index: 0;
    filter: brightness(0.72);
  }

  /* Gradient overlay: strong dark on left for text, fades to transparent on right */
  .hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      to right,
      rgba(9, 9, 11, 0.92) 0%,
      rgba(9, 9, 11, 0.78) 38%,
      rgba(9, 9, 11, 0.25) 65%,
      rgba(9, 9, 11, 0.05) 100%
    );
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding: 5rem max(3rem, 7vw);
    text-align: left;
    max-width: 620px;
  }
  
  .hero-mesh {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.35;
    background-image: 
      radial-gradient(at 15% 15%, rgba(244, 196, 0, 0.05) 0px, transparent 40%),
      radial-gradient(at 85% 85%, rgba(255, 255, 255, 0.02) 0px, transparent 55%);
  }

  .hero-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--brand-yellow);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--brand-yellow-glow);
    border-radius: 50px;
    border: 1px solid rgba(244, 196, 0, 0.2);
  }

  .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 1.2rem + 5vw, 5.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2.5px;
    color: var(--text-primary);
    max-width: 640px;
    margin-bottom: 1.8rem;
  }

  .hero-title .hero-highlight {
    color: var(--brand-yellow);
    display: block;
  }

  .hero-description {
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.85rem + 0.6vw, 1.15rem);
    color: rgba(255,255,255,0.75);
    max-width: 480px;
    margin-bottom: 3rem;
    line-height: 1.75;
  }

  .hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  /* Mobile: stack content, smaller font */

  /* Grid Layouts & Sections */
  .section-container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding: 8rem 2rem;
  }
  
  .section-header {
    margin-bottom: 5rem;
    text-align: center;
  }
  
  .section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 1.5rem + 4vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.8px;
    text-wrap: balance;
  }
  
  .section-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-inline: auto;
    text-wrap: pretty;
  }

  /* Animated/Static Counters */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .stat-card {
    text-align: center;
    border: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
  }
  
  .stat-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
  }
  
  .stat-number {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--brand-yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
  }
  
  .stat-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
  }

  /* Services Grid Section */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.2rem;
  }
  
  .service-card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3.5rem 2.5rem;
    background-color: var(--bg-surface);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244, 196, 0, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    background: var(--brand-yellow-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-yellow);
    margin-bottom: 2.2rem;
    border: 1px solid rgba(244, 196, 0, 0.25);
  }
  
  .service-card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
  }
  
  .service-card-desc {
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
  }
  
  .service-card-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-yellow);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    transition: gap var(--transition-fast);
  }
  
  .service-card-link:hover {
    gap: 0.7rem;
  }

  /* Dynamic References / Portfolio Section */
  .references-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    cursor: pointer;
    transition: all var(--transition-fast);
  }
  
  .filter-btn:hover {
    border-color: var(--brand-yellow);
    color: var(--text-primary);
  }
  
  .filter-btn.active {
    background-color: var(--brand-yellow);
    color: #000;
    border-color: var(--brand-yellow);
  }
  
  .references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }
  
  .reference-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-surface);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
  }
  
  .reference-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
  }
  
  .reference-img-box {
    aspect-ratio: 16 / 10;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
  }
  
  .reference-img-box svg {
    color: var(--brand-yellow);
    opacity: 0.45;
  }
  
  .reference-details {
    padding: 2rem;
  }
  
  .reference-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-yellow);
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
  }
  
  .reference-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
  }
  
  .reference-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
  }

  /* Accordion (FAQ) */
  .faq-accordion {
    max-width: 800px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  
  .faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    overflow: hidden;
    transition: border-color var(--transition-fast);
  }
  
  .faq-item:hover {
    border-color: var(--border-color-hover);
  }
  
  .faq-trigger {
    width: 100%;
    padding: 1.8rem 2.2rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
  }
  
  .faq-icon-line {
    transition: transform var(--transition-normal);
  }
  
  .faq-item.active {
    border-color: rgba(244, 196, 0, 0.35);
  }
  
  .faq-item.active .faq-icon-line {
    transform: rotate(180deg);
  }
  
  .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
  }
  
  .faq-content-inner {
    padding: 0 2.2rem 2.2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Contact & Form Details */
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4.5rem;
  }
  
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
  }
  
  .contact-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -1.2px;
  }
  
  .contact-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
  }
  
  .contact-detail-icon {
    width: 48px;
    height: 48px;
    background-color: var(--brand-yellow-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-yellow);
    flex-shrink: 0;
    border: 1px solid rgba(244, 196, 0, 0.2);
  }
  
  .contact-detail-text h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 0.3rem;
  }
  
  .contact-detail-text p {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .form-input {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.9rem 1.3rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
  }
  
  .form-input:focus {
    outline: none;
    border-color: var(--brand-yellow);
    background-color: rgba(255, 255, 255, 0.06);
  }
  
  textarea.form-input {
    resize: vertical;
    min-height: 140px;
  }
  
  /* German User Validation States */
  .form-input.dirty:invalid {
    border-color: #ff4a5a;
    background-color: rgba(255, 74, 90, 0.04);
  }
  
  .form-input.dirty:invalid + .validation-msg {
    display: block;
    color: #ff4a5a;
    font-size: 0.82rem;
    margin-top: 0.3rem;
    font-weight: 500;
  }
  
  .validation-msg {
    display: none;
  }

  .form-feedback {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    display: none;
    font-size: 0.98rem;
    font-weight: 500;
    text-align: center;
  }
  
  .form-feedback.success {
    display: block;
    background-color: rgba(0, 200, 80, 0.1);
    color: #00e05e;
    border: 1px solid rgba(0, 200, 80, 0.25);
  }

  /* Google Maps Iframe Box */
  .maps-container {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
  }
  
  .maps-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(1) invert(0.9) contrast(1.2); /* Integrates cleanly into Dark Theme */
  }

  /* Subpages Header and Content Elements */
  .subpage-hero {
    position: relative;
    padding-block: 6rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background-image: radial-gradient(circle at 50% 50%, rgba(244, 196, 0, 0.02) 0%, transparent 60%);
  }
  
  .breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
  }
  
  .breadcrumbs a {
    transition: color var(--transition-fast);
  }
  
  .breadcrumbs a:hover {
    color: var(--brand-yellow);
  }
  
  .breadcrumbs span::before {
    content: '/';
    margin-right: 0.5rem;
  }
  
  .subpage-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 1rem + 4vw, 4rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
  }

  .subpage-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4.5rem;
    align-items: start;
  }
  
  
  .subpage-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
  }
  
  .subpage-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin-block: 3.5rem 1.2rem;
    letter-spacing: -0.8px;
  }
  
  .subpage-content h2:first-of-type {
    margin-top: 0;
  }
  
  .subpage-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-block: 2.2rem 1rem;
  }
  
  .subpage-content p {
    margin-bottom: 1.6rem;
  }
  
  .subpage-content pstrong, .subpage-content strong {
    color: var(--text-primary);
  }
  
  .subpage-content ul {
    margin-bottom: 2rem;
    padding-left: 1.2rem;
  }
  
  .subpage-content li {
    list-style-type: square;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
  }
  
  .subpage-content li::marker {
    color: var(--brand-yellow);
  }

  /* Subpage Inline Image & CTA Banner Stils */
  .subpage-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 3.5rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    display: block;
  }

  .cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    margin-block: 4.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(244, 196, 0, 0.06), rgba(9, 9, 11, 0.8));
    border: 1px solid rgba(244, 196, 0, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .cta-banner-content h3 {
    font-family: var(--font-heading);
    color: var(--brand-yellow);
    font-size: 1.45rem;
    margin-bottom: 0.5rem;
  }

  .cta-banner-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .cta-banner .btn {
    flex-shrink: 0;
  }

  @media (max-width: 768px) {
    .cta-banner {
      flex-direction: column;
      text-align: center;
      gap: 1.5rem;
      padding: 2rem 1.5rem;
    }
    .cta-banner .btn {
      width: 100%;
      justify-content: center;
    }
  }

  /* Subpage Section & H2 Styling (UX & Whitespace Upgrade) */
  .subpage-section {
    padding-bottom: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .subpage-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .subpage-h2-styled {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: var(--text-primary);
    margin-block: 0 1.5rem !important; /* Overwrite standard margins for subpage sections */
    letter-spacing: -0.8px;
  }

  .h2-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(244, 196, 0, 0.07);
    color: var(--brand-yellow);
    border: 1px solid rgba(244, 196, 0, 0.25);
    font-size: 0.95rem;
    font-weight: 800;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    font-family: var(--font-heading);
    box-shadow: 0 4px 12px rgba(244, 196, 0, 0.08);
  }

  .h2-icon {
    color: var(--brand-yellow);
    flex-shrink: 0;
    display: inline-block;
  }

  @media (max-width: 576px) {
    .subpage-h2-styled {
      font-size: 1.5rem;
      gap: 0.8rem;
    }
    .h2-number-badge {
      width: 32px;
      height: 32px;
      font-size: 0.85rem;
    }
  }


  
  .subpage-sidebar {
    position: sticky;
    top: calc(var(--header-height-shrink) + 2rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .sidebar-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.2rem;
  }
  
  .sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
  }

  .sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .sidebar-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .sidebar-link:hover {
    color: var(--brand-yellow);
    padding-left: 0.3rem;
  }
  
  .sidebar-link.active {
    color: var(--brand-yellow);
    font-weight: 600;
  }

  /* Table styles on subpages */
  .content-table-wrapper {
    overflow-x: auto;
    margin-block: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
  }
  
  .content-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    background-color: var(--bg-surface);
  }
  
  .content-table th, .content-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .content-table th {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
  }
  
  .content-table tr:last-child td {
    border-bottom: none;
  }

  /* Process Flow Steps */
  .process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    position: relative;
    margin-block: 2rem;
  }
  
  .process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .process-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--brand-yellow);
    line-height: 1;
    margin-bottom: 1.2rem;
    opacity: 0.9;
  }
  
  .process-step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
  }
  
  .process-step-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
  }

  /* Blog Cards */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
  }
  
  .blog-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-surface);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
    display: flex;
    flex-direction: column;
  }
  
  .blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
  }
  
  .blog-card-img {
    aspect-ratio: 16 / 9;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-yellow);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
  }
  
  .blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
  }
  
  .blog-card:hover .blog-card-img img {
    opacity: 0.95;
    transform: scale(1.03);
  }
  
  .blog-card-content {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  
  .blog-card-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-yellow);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
  }
  
  .blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .blog-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .blog-card-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-top: auto;
    transition: color var(--transition-fast);
  }
  
  .blog-card-link:hover {
    color: var(--brand-yellow);
  }

  /* WhatsApp Sticky Bubble (Premium luxury style) */
  .whatsapp-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--bg-surface);
    border: 1px solid var(--brand-yellow);
    border-radius: 50%;
    color: var(--brand-yellow);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(244, 196, 0, 0.1);
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  }
  
  .whatsapp-bubble:hover {
    transform: scale(1.1) translateY(-2px);
    background-color: #25d366; /* Changes to WhatsApp green on hover */
    color: #ffffff;
    border-color: #25d366;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  }
  
  .whatsapp-bubble svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
  }

  /* Footer layout */
  .footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-deep);
    padding: 6rem max(2rem, 5vw) 3.5rem;
  }
  
  .footer-grid {
    max-width: var(--max-width);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 4.5rem;
    margin-bottom: 5rem;
  }
  
  
  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .footer-brand p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 340px;
  }
  
  .footer-column h3 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 1.6rem;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
  }
  
  .footer-link {
    color: var(--text-secondary);
    font-size: 0.98rem;
    transition: color var(--transition-fast);
  }
  
  .footer-link:hover {
    color: var(--brand-yellow);
  }
  
  .footer-social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
  }
  
  .footer-social-link {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
  }
  
  .footer-social-link:hover {
    color: var(--brand-yellow);
  }
  
  .footer-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
  
  .footer-bottom {
    max-width: var(--max-width);
    margin-inline: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  /* Hamburger Mobile Overlay Button & Menu */
  .mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 32px;
    cursor: pointer;
  }
  
  .mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }
  
}

@layer utilities {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
  }
  
  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }

  .text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--brand-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .yellow-dot { color: var(--brand-yellow); }
  .text-center { text-align: center; }
  .hidden { display: none !important; }
}

/* ============================================================
   MOBILE RESPONSIVE – Vollständige Optimierung
   Breakpoints: 1024px | 900px | 768px | 640px | 480px
   ============================================================ */

/* --- Tablet breit (≤ 1024px) --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

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

  .hero-content {
    padding: 4rem max(2rem, 5vw);
    max-width: 55%;
  }
}

/* --- Tablet (≤ 900px) --- */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .subpage-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .subpage-sidebar {
    position: static;
  }
}

/* --- Handy Landscape / kleines Tablet (≤ 768px) --- */
@media (max-width: 768px) {

  /* Header */
  .mobile-menu-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height-full);
    left: 0;
    right: 0;
    background-color: rgba(14, 14, 16, 0.99);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 2.5rem 2rem;
    gap: 2rem;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-130%);
    transition: transform var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.1rem;
  }

  /* Mobile Dropdown Custom Styles */
  .nav-dropdown {
    width: 100%;
    text-align: center;
  }

  .nav-dropdown-trigger {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: auto;
    background: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 500px; /* large enough for all items */
    margin-top: 0.5rem;
    border-left: 2px solid var(--brand-yellow);
    padding-left: 0.5rem;
  }

  .nav-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu a {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-align: center;
    display: block;
    opacity: 0.85;
  }

  .nav-dropdown-menu a:hover {
    color: var(--brand-yellow);
    background: none;
  }


  .header-cta {
    display: none;
  }

  /* Hero – Bild zeigt Gesicht (links positioniert) */
  .hero-section {
    align-items: flex-end;
    min-height: 100svh;
  }

  .hero-bg {
    object-position: 40% center; /* Shows the wider crop naturally positioned, revealing the office/body and preventing squishing */
  }

  .hero-section::after {
    background: linear-gradient(
      to top,
      rgba(9, 9, 11, 0.97) 0%,
      rgba(9, 9, 11, 0.92) 40%,
      rgba(9, 9, 11, 0.55) 70%,
      rgba(9, 9, 11, 0.15) 100%
    );
  }

  .hero-content {
    padding: 2.5rem 1.5rem 3.5rem;
    max-width: 100%;
    text-align: left;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Sections */
  .section-container {
    padding: 5rem 1.25rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    letter-spacing: -1px;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .service-card {
    padding: 2.5rem 1.8rem;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .stat-card {
    padding: 2rem 1rem;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  /* References */
  .references-grid {
    grid-template-columns: 1fr;
  }

  .references-filters {
    gap: 0.6rem;
  }

  .filter-btn {
    font-size: 0.82rem;
    padding: 0.5rem 1.1rem;
  }

  /* Partner Section */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Contact */
  .contact-title {
    font-size: 2rem;
    letter-spacing: -0.8px;
  }

  .contact-info {
    gap: 1.5rem;
  }

  .maps-container {
    height: 250px;
  }

  /* Footer */
  .footer {
    padding: 4rem 1.5rem 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  /* FAQ */
  .faq-trigger {
    padding: 1.4rem 1.5rem;
    font-size: 1rem;
  }

  .faq-content-inner {
    padding: 0 1.5rem 1.5rem;
  }

  /* Subpage Hero */
  .subpage-hero {
    padding-block: 4rem 2.5rem;
  }

  .subpage-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  .subpage-content h2 {
    font-size: 1.6rem;
    margin-block: 2.5rem 1rem;
  }

  .subpage-content h3 {
    font-size: 1.2rem;
  }

  /* Process timeline */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Content table */
  .content-table th,
  .content-table td {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }

  /* WhatsApp bubble */
  .whatsapp-bubble {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-bubble svg {
    width: 24px;
    height: 24px;
  }
}

/* --- Kleines Handy (≤ 640px) --- */
@media (max-width: 640px) {
  :root {
    --header-height-full: 90px;
    --header-height-shrink: 72px;
  }

  .logo img {
    height: 45px;
  }

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

  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .service-card {
    padding: 2rem 1.4rem;
  }

  .sidebar-box {
    padding: 1.6rem;
  }

  .reference-details {
    padding: 1.4rem;
  }

  .blog-card-content {
    padding: 1.6rem;
  }

  .section-container {
    padding: 4rem 1rem;
  }
}

/* --- Sehr kleines Handy (≤ 480px) --- */
@media (max-width: 480px) {
  .hero-content {
    padding: 2rem 1.2rem 3rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
    letter-spacing: -1px;
  }

  .hero-highlight {
    font-size: inherit;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-number {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .contact-title {
    font-size: 1.7rem;
  }

  .subpage-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .faq-trigger {
    font-size: 0.95rem;
    padding: 1.2rem 1.2rem;
  }

  .references-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 3rem 1rem 2rem;
  }
}


/* ============================================================
   SUBPAGE BACKGROUNDS (ersetzt entfernte Inline-Styles)
   ============================================================ */

/* Subpage Hero Basisstyle – Hintergrundbilder per Seite */
.subpage-hero {
  background-size: cover;
  background-position: center;
  background-color: var(--bg-primary);
}

/* Content-Bild auf Unterseiten */
.subpage-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-color);
  opacity: 0.85;
  display: block;
}

/* Hero Foto – Gesicht links positionieren */
.hero-bg {
  object-position: 30% center;
}

@media (max-width: 768px) {
  .hero-bg {
    object-position: 25% center;
  }

  /* Subpage Hero kleiner auf Handy */
  .subpage-hero {
    padding-block: 3.5rem 2rem;
  }

  .subpage-img {
    aspect-ratio: 4/3;
    margin-bottom: 1.8rem;
  }

  /* Subpage Content Abstände */
  .subpage-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  /* Sidebar unterhalb des Contents auf Handy */
  .subpage-sidebar {
    position: static;
  }

  /* Subpage Layout einspaltg */
  .subpage-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Section-Container auf Unterseiten */
  .section-container {
    padding: 3rem 1.25rem;
  }

  /* Sidebar Box */
  .sidebar-box {
    padding: 1.5rem;
  }

  /* Glass Panel CTA */
  .glass-panel {
    padding: 2rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-bg {
    object-position: 20% center;
  }

  .subpage-hero {
    padding-block: 2.5rem 1.5rem;
  }

  .subpage-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .subpage-img {
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
  }
}

/* ============================================================
   OVERFLOW FIX – Texte nicht mehr abgeschnitten auf Handy
   ============================================================ */

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* Alle Container dürfen nicht breiter als der Viewport sein */
*,
*::before,
*::after {
  box-sizing: border-box;
  max-width: 100%;
}

/* Bilder und Medien immer responsive */
img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

/* Subpage Content – Zeilenumbruch erzwingen */
.subpage-content,
.subpage-content p,
.subpage-content li,
.subpage-content h2,
.subpage-content h3 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Section Container – kein Überlauf */
.section-container {
  overflow: hidden;
}

/* Subpage Layout – kein Überlauf */
.subpage-layout {
  overflow: hidden;
  width: 100%;
}

/* Alle Grid-Container sicher */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .subpage-hero,
  .subpage-content,
  .subpage-layout,
  .section-container,
  .footer,
  .footer-grid,
  .hero-section,
  .hero-content,
  .services-grid,
  .blog-grid,
  .references-grid,
  .stats-grid,
  .contact-layout,
  .process-timeline {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
  }

  /* Listenpunkte auf Handy nie abschneiden */
  .subpage-content ul {
    padding-left: 1rem;
    max-width: 100%;
  }

  .subpage-content li {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  /* Tabellenscroll statt abschneiden */
  .content-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

/* ============================================================
   MOBILE TABLE → CARD LAYOUT
   Vergleichstabellen werden auf Handy zu gestapelten Cards
   ============================================================ */

@media (max-width: 768px) {

  /* Wrapper kein horizontales Scrollen mehr – Cards stattdessen */
  .content-table-wrapper {
    overflow-x: visible;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  /* Tabelle: normales Block-Layout */
  .content-table,
  .content-table thead,
  .content-table tbody,
  .content-table tr,
  .content-table th,
  .content-table td {
    display: block;
    width: 100%;
  }

  /* Header-Zeile verstecken (Labels kommen via ::before) */
  .content-table thead tr {
    display: none;
  }

  /* Jede Zeile = eine Card */
  .content-table tbody tr {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1.2rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  /* Erste td (Leistungsbereich) = Card-Header in Gelb */
  .content-table tbody td:first-child {
    background-color: rgba(244, 196, 0, 0.08);
    border-bottom: 2px solid rgba(244, 196, 0, 0.35);
    padding: 1rem 1.2rem 0.8rem;
    font-size: 1rem;
    color: var(--text-primary);
  }

  .content-table tbody td:first-child::before {
    display: none; /* kein Label für Hauptspalte */
  }

  /* Mittlere und letzte td = Vergleichszeilen */
  .content-table tbody td:not(:first-child) {
    padding: 0.85rem 1.2rem 0.85rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.2rem;
  }

  .content-table tbody td:last-child {
    border-bottom: none;
    background-color: rgba(244, 196, 0, 0.03);
    color: var(--text-primary);
  }

  /* Label (Spaltenname) als farbiger Badge oben in der Zelle */
  .content-table tbody td:not(:first-child)::before {
    content: attr(data-label);
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-yellow);
    margin-bottom: 0.35rem;
    opacity: 0.85;
  }

  /* Letztes td bekommt grünes ✓ Label */
  .content-table tbody td:last-child::before {
    color: #4ade80;
  }
}
