/* 
 * Mobile Optimierungen für Produktseiten
 * Verbesserungen für Badges, Buttons und Layout
 * Badge classes MOVED TO prov.badges.css
 */

/* Verbesserte Button-Abstände und Schrift-Zentrierung */
@media (max-width: 768px) {
  /* Text in Buttons zentrieren */
  .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Feature-Cards bei /products/bi gleichgroß machen */
.features-grid {
  display: grid;
  grid-auto-rows: 1fr !important;
}

.features-grid .feature-card {
  height: 100% !important;
  min-height: 280px !important;
  display: flex !important;
  flex-direction: column !important;
}

.feature-card p {
  flex-grow: 1 !important;
}

/* Hero-Titel auf Produktseiten - verbesserte mobile Darstellung */
.team-hero-title {
  hyphens: manual !important;
  word-wrap: normal !important;
  word-break: keep-all !important;
  max-width: 100% !important;
}

/* Verhindern von unerwünschten Zeilenumbrüchen für bestimmte Textteile */
.team-hero-title span.gradient-text {
  white-space: nowrap !important;
  display: inline-block !important;
}

/* Mobile Anpassungen für Hero-Titel */
@media (max-width: 768px) {
  .team-hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }
  
  /* Spezifische Regeln für WMS und Custom Seiten um "WMS" und "Lösungen"
     jeweils mit dem vorherigen Wort zusammenzuhalten */
  .team-hero-title .gradient-text {
    white-space: nowrap !important;
    display: inline-block !important;
  }
}

/* Zusätzliche Optimierung für sehr kleine Bildschirme */
@media (max-width: 480px) {
  .team-hero-title {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* Entfernt die globale Zentrierung - wird nur für mobile Geräte angewendet */

/* Zusätzliche Verbesserungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
  /* Feature-Cards auf sehr kleinen Bildschirmen */
  .features-grid .feature-card {
    min-height: 220px !important;
  }
}

/* --- merged additions from style.css --- */

@media (max-width: 768px){
.contact-item {
      font-size: 0.85rem;
    }
}
@media (max-width: 480px){
.contact-item {
      font-size: 0.8rem;
    }.contact-icon {
      font-size: 0.9rem;
      width: 18px;
    }
}
@media (max-width: 768px) {
  .main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
  }

  .section {
    padding: 3rem 0;
  }

  .grid {
    gap: 1rem;
    margin-top: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .flash-messages {
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .main-content {
    margin-top: 56px;
    min-height: calc(100vh - 56px);
  }

  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }

  .card {
    padding: 1.25rem;
  }
}
@media (max-width: 768px){
.value-card {
      padding: 2rem 1.5rem;
    }.stat-item {
      padding: 1.5rem 1rem;
    }.stat-number {
      font-size: 2.5rem;
    }.stat-icon {
      font-size: 2rem;
    }
}
@media (max-width: 480px){
.stat-item {
      padding: 1.5rem 1rem;
    }.stat-number {
      font-size: 2rem;
    }.stat-icon {
      font-size: 1.8rem;
    }.value-icon {
      font-size: 2.5rem;
    }.value-title {
      font-size: 1.2rem;
    }.value-card {
      padding: 1.5rem 1rem;
    }
}
@media (prefers-contrast: high){
.gradient-text {
      background: none;
      -webkit-text-fill-color: var(--accent-primary);
      color: var(--accent-primary);
    }
}
@media print{
.main-content {
      margin-top: 0;
    }
}
@media (max-width: 768px){
.time-controls {
      flex-direction: column;
      align-items: center;
    }.notification {
      right: -350px;
      min-width: 280px;
      max-width: 320px;
    }.notification.show {
      right: 0.5rem;
    }.time-btn {
      width: 100%;
      max-width: 250px;
    }
}
@media (max-width: 480px){
.activity-entry {
      padding: 0.5rem;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.25rem;
    }.activity-time {
      min-width: auto;
      font-size: 0.8rem;
    }.activity-message {
      font-size: 0.85rem;
    }.time-btn {
      padding: 0.875rem 1.5rem;
      font-size: 0.9rem;
    }
}

/* CMS und WMS Demos auf mobilen Geräten ausblenden */
@media (max-width: 768px) {
  /* WMS Demo ausblenden */
  .wms-demo,
  /* CMS Demo ausblenden */
  .website-demo-section {
    display: none !important;
  }
}

/* ===== HR SEITE MOBILE OPTIMIERUNGEN ===== */
/* Spezifische mobile Anpassungen für HR Hero Section */
@media (max-width: 768px) {
  /* HR Hero Title - sehr kompakte mobile Darstellung */
  body .hero-products .hero-products-content .hero-products-title {
    font-size: 1.8rem !important;
    line-height: 0.85 !important;
    max-width: 260px !important;
    margin: 0 auto 0.8rem auto !important;
    text-align: center !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    word-break: break-word !important;
  }
  
  /* Gradient Text als Block - minimale Abstände */
  body .hero-products .hero-products-content .hero-products-title .gradient-text {
    display: block !important;
    margin-top: -0.3rem !important;
    font-size: 0.85em !important;
    line-height: 0.85 !important;
  }
  
  /* Subtitle kompakter */
  body .hero-products .hero-products-content .hero-products-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    max-width: 300px !important;
    margin: 0 auto 1.5rem auto !important;
  }
  
  /* Hero Content Padding reduzieren */
  body .hero-products .hero-products-content {
    padding: 1.5rem 1rem !important;
    text-align: center !important;
  }
  
  /* Hero Section Padding stark reduzieren */
  body .hero-products {
    padding: 1rem 0 0.5rem 0 !important;
  }
  
  /* Nächste Sektion weniger Abstand */
  .hr-modern-features {
    padding-top: 3rem !important;
  }

  /* HR Demo Container mobile Optimierungen */
  .hr-demo-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Mitarbeiter-Karten mobile Optimierungen */
  .hr-employee-card {
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .hr-employee-header {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: flex-start !important;
  }
  
  /* Horizontales Button-Layout für Mitarbeiter-Karten */
  .hr-employee-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.4rem !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  
  .hr-employee-actions .action-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 60px !important;
    padding: 0.35rem 0.6rem !important;
    font-size: 0.7rem !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }
  
  .hr-employee-details {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }
  
  /* Notification Buttons horizontal */
  .hr-notification-buttons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid rgba(74, 144, 226, 0.2) !important;
    width: 100% !important;
  }
  
  .hr-notification-buttons .action-btn {
    flex: 1 1 auto !important;
    width: auto !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }
  
  /* Activity Log mobile Optimierungen - horizontal scrolling verhindern */
  .hr-activity-log {
    max-height: 150px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .hr-activity-entry {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
    padding: 0.6rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .hr-activity-time {
    font-size: 0.7rem !important;
    min-width: auto !important;
    padding: 0.2rem 0.4rem !important;
    align-self: flex-start !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Skalierbarkeit-Titel zentrieren */
  .hr-scalability-title {
    text-align: center !important;
  }
  
  /* Form-Felder Dark Mode reparieren */
  .hr-form-group input,
  .hr-form-group select {
    background: rgba(26, 26, 46, 0.8) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(74, 144, 226, 0.3) !important;
  }
  
  .hr-form-group input:focus,
  .hr-form-group select:focus {
    background: rgba(26, 26, 46, 0.9) !important;
    color: var(--text-primary) !important;
  }
  
  /* ===== DESKTOP FIXES FÜR HORIZONTALE SCROLLBAR ===== */
  /* Horizontale Scrollbar bei Demo Aktivitäten komplett verhindern */
  .hr-demo-activity,
  .hr-activity-log,
  .hr-activity-entry {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .hr-activity-action {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
  
  /* Demo Activity Container - horizontal scrolling komplett verhindern */
  .hr-demo-activity {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
}

/* Desktop Fixes für horizontale Scrollbar */
@media (min-width: 769px) {
  .hr-demo-activity {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .hr-activity-log {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .hr-activity-entry {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .hr-activity-action {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: calc(100% - 80px) !important;
  }
  
  /* Form mobile Optimierungen */
  .hr-form-row {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .hr-employee-form-section,
  .hr-employee-list-section,
  .hr-demo-activity {
    padding: 1.2rem !important;
  }
}

@media (max-width: 480px) {
  /* Noch kompaktere Darstellung für sehr kleine Bildschirme */
  body .hero-products .hero-products-content .hero-products-title {
    font-size: 1.5rem !important;
    line-height: 1.15 !important;
    max-width: 220px !important;
    margin: 0 auto 1rem auto !important;
  }
  
  body .hero-products .hero-products-content .hero-products-title .gradient-text {
    font-size: 0.8em !important;
    margin-top: 0.1rem !important;
  }
  
  body .hero-products .hero-products-content .hero-products-subtitle {
    font-size: 0.85rem !important;
    max-width: 260px !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.3 !important;
  }
  
  body .hero-products .hero-products-content {
    padding: 1rem 0.5rem !important;
  }
  
  body .hero-products {
    padding: 1rem 0 !important;
  }
  
  /* Sehr kleine Bildschirme - weitere Optimierungen */
  .hr-employee-card {
    padding: 0.8rem !important;
  }
  
  .hr-employee-actions .action-btn {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem !important;
  }
  
  .hr-activity-log {
    max-height: 120px !important;
  }
  
  .hr-activity-action {
    font-size: 0.75rem !important;
  }
  
  .hr-employee-form-section,
  .hr-employee-list-section,
  .hr-demo-activity {
    padding: 1rem !important;
  }
}

/* ===== FINALE MOBILE KORREKTUREN ===== */

/* CTA-Buttons korrekte mobile Darstellung */
@media (max-width: 768px) {
  .cta-section .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    row-gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 2rem !important;
    padding: 2rem 1rem !important;
  }
  
  .cta-section .btn {
    width: auto !important;
    max-width: none !important;
    margin: initial !important;
    padding: 0.85rem 1.6rem !important;
    font-size: 1rem !important;
    text-align: center !important;
    border-radius: 9999px !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Robuster Fallback für Button-Abstände */
  .cta-section .hero-actions > * + * {
    margin-top: 12px !important;
  }
  
  /* Austrittsformular Button-Korrekturen */
  .hr-form-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 2rem !important;
  }
  
  .hr-form-actions .btn {
    flex: 1 !important;
    max-width: 45% !important;
    padding: 0.75rem 1rem !important;
    text-align: center !important;
  }
  
  /* Abbrechen Button kleiner machen */
  .hr-form-actions .cancel-btn {
    padding: 0.6rem 0.8rem !important;
    font-size: 0.8rem !important;
    max-width: 35% !important;
  }
}

@media (max-width: 480px) {
  .cta-section .hero-actions {
    gap: 2rem !important;
    row-gap: 1.5rem !important;
    padding: 1.5rem !important;
    margin-top: 2rem !important;
  }
  
  .cta-section .btn {
    padding: 0.6rem 1.2rem !important;
    min-height: auto !important;
    font-size: 0.85rem !important;
    border-radius: 9999px !important;
    margin: initial !important;
  }

  .cta-section .btn-primary,
  .cta-section .btn-secondary {
    padding: 0.55rem 1.2rem !important;
    font-size: 0.85rem !important;
  }
  
  /* Robuster Fallback für Button-Abstände kleine Bildschirme */
  .cta-section .hero-actions > * + * {
    margin-top: 1.5rem !important;
  }
}

/* Light Mode Employee Card Korrekturen */
body.light-mode .hr-employee-card {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #1a1a2e !important;
  border: 1px solid rgba(74, 144, 226, 0.2) !important;
}

body.light-mode .hr-employee-info h4 {
  color: var(--hr-primary) !important;
}

body.light-mode .hr-employee-info p {
  color: #666 !important;
}

body.light-mode .hr-detail-label {
  color: #666 !important;
}

body.light-mode .hr-detail-value {
  color: #1a1a2e !important;
}

/* ===== Migrated mobile overrides from other stylesheets ===== */
/* --- Source: defaults.css --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* --- Source: footer.css --- */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }

  .footer-section:last-child {
    grid-column: 1 / -1;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 0 0;
    margin-top: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: left;
    margin-bottom: 1rem;
  }

  .footer-brand {
    max-width: none;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .footer-logo {
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .footer-logo-img {
    width: 28px;
    height: 28px;
  }

  .footer-brand-name {
    font-size: 1.25rem;
  }

  .footer-tagline {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .footer-description {
    font-size: 0.85rem;
    margin-bottom: 0;
    display: none; /* Verstecke Beschreibung auf Mobile für mehr Kompaktheit */
  }

  .footer-section {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
  }

  .footer-section:last-child {
    border-bottom: none;
  }

  .footer-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Entferne dekorative Linie für Kompaktheit */
  }

  .footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 0.5rem;
  }

  .footer-links li {
    display: inline-block;
  }

  .footer-link {
    display: inline-block;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
  }

  .footer-link:hover {
    padding-left: 0;
    transform: none;
    background: var(--bg-tertiary);
  }

  .footer-contact {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .footer-bottom {
    padding: 0.75rem 0;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }

  .footer-copyright {
    font-size: 0.75rem;
  }

  .footer::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 1rem 0 0;
    margin-top: 1.5rem;
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent-primary);
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-content {
    gap: 1rem;
  }

  .footer-brand {
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  .footer-logo {
    margin-bottom: 0.25rem;
  }

  .footer-logo-img {
    width: 24px;
    height: 24px;
  }

  .footer-brand-name {
    font-size: 1.1rem;
  }

  .footer-tagline {
    font-size: 0.8rem;
    margin-bottom: 0;
  }

  .footer-description {
    display: none;
  }

  .footer-title {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }

  .footer-links {
    gap: 0.2rem;
    font-size: 0.75rem;
  }

  .footer-link {
    font-size: 0.8rem;
    padding: 0.2rem 0;
  }

  .footer-bottom {
    padding: 0.5rem 0;
  }

  .footer-copyright {
    font-size: 0.7rem;
  }

  /* Kollabierte Sektionen auf sehr kleinen Bildschirmen */
  .footer-section {
    padding: 0.5rem 0;
  }

  /* Reduziere Abstände zwischen Sektionen */
  .footer-section + .footer-section {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
  }
}

@media (max-width: 360px) {
  .footer {
    padding: 0.75rem 0 0;
    margin-top: 1rem;
  }

  .footer-container {
    padding: 0 0.75rem;
  }

  .footer-content {
    gap: 0.75rem;
  }

  .footer-logo-img {
    width: 20px;
    height: 20px;
  }

  .footer-brand-name {
    font-size: 1rem;
  }

  .footer-tagline {
    font-size: 0.75rem;
  }

  .footer-title {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .footer-link,
    .contact-item {
    font-size: 0.75rem;
  }

  .footer-copyright {
    font-size: 0.65rem;
  }
}

@media (max-width: 768px) {
  [data-theme="light"] .footer {
    background: var(--bg-tertiary);
  }

  [data-theme="dark"] .footer {
    background: rgba(26, 26, 46, 0.95);
  }
}

/* --- Source: hero.css --- */
@media (max-width: 768px) {
  /* Mondanimation komplett deaktivieren auf mobilen Geräten */
  .moon {
    display: none !important;
    animation: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  /* Statisches Logo verwenden, ohne Platz für Mond-Animation */
  .logo-orbit {
    inline-size: 90px;
    block-size: 90px;
    transform: none;
    position: relative;
    margin: 0 auto 1rem auto;
  }

  /* Orbit komplett ausblenden */
  .orbit {
    display: none !important;
  }

  /* Hero-Logo optimiert für Mobile */
  .hero-logo {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .hero-logo img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Weniger Abstand um das Logo */
  .hero-content {
    padding-top: 1rem;
    /* Mobile Zentrierung */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  /* Home Hero Mobile */
  .hero-home {
    min-height: calc(100vh - 60px);
    padding: 1rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero Content Mobile Zentrierung */
  .hero-home .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0 1.5rem;
    padding-bottom: 2rem; /* Mehr Abstand unten */
  }

  /* Reduziere Weltraum-Effekte auf Mobile */
  .hero-home::before {
    opacity: 0.3;
  }

  .hero-home::after {
    opacity: 0.2;
  }

  .hero-logo-icon {
    width: 70px;
    height: 70px;
  }

  .hero-brand-name {
    font-size: 2.8rem;
    text-align: center;
    width: 100%;
  }

  /* Zentrierung des Slogans auf Mobile */
  .hero-main-slogan {
    text-align: center;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-main-slogan p,
    .hero-main-slogan .slogan-text {
    text-align: center;
    width: 100%;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  /* Home Hero Small Mobile */
  .hero-home {
    min-height: 55vh;
    padding: 0.75rem 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero Content Small Mobile Zentrierung */
  .hero-home .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    padding-bottom: 1.5rem; /* Mehr Abstand unten für kleine Screens */
  }

  .hero-logo-icon {
    width: 60px;
    height: 60px;
  }

  .hero-brand-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
  }

  /* Zentrierung des Slogans auf kleinen Bildschirmen */
  .hero-main-slogan {
    text-align: center;
    width: 100%;
    padding: 0 0.5rem;
  }

  .hero-main-slogan p,
    .hero-main-slogan .slogan-text {
    text-align: center;
    width: 100%;
    font-size: 0.9rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .hero-actions {
    margin-top: 1rem;
  }

  /* Noch dezentere Weltraum-Effekte auf kleinen Geräten */
  .hero-home::before {
    opacity: 0.2;
  }

  .hero-home::after {
    display: none; /* Kometen auf sehr kleinen Bildschirmen ausblenden */
  }
}

@media (max-width: 1024px) {
  .hero-products-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-products {
    padding: 2rem 0 2rem 0;
  }

  .hero-products-title {
    font-size: 1.9rem;
    line-height: 1.5;
    max-width: 280px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-products-subtitle {
    font-size: 1rem !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.5 !important;
  }

  .hero-products-content {
    text-align: center !important;
    padding: 0 1rem !important;
  }

  .hero-products-title .gradient-text {
    display: block !important;
    margin-top: 0.3rem !important;
    font-size: 0.9em !important;
  }
}

@media (max-width: 480px) {
  .hero-products-title {
    font-size: 1.6rem;
    line-height: 1.5;
    max-width: 240px;
    margin-bottom: 1rem;
  }

  .hero-products-subtitle {
    font-size: 0.9rem !important;
    max-width: 280px !important;
    line-height: 1.4 !important;
    padding: 0 0.5rem !important;
  }

  .hero-products-content {
    padding: 0 0.5rem !important;
  }

  .hero-products-title .gradient-text {
    margin-top: 0.2rem !important;
    font-size: 0.85em !important;
  }
}

@media (max-width: 768px) {
  .badge-product {
    gap: 0.5rem;
    margin-top: 1.25rem;
  }

  .badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .badge-blue {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .badge-product {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-top: 1.5rem !important;
  }

  .badge {
    display: inline-flex !important;
    width: auto !important;
    padding: 0.35rem 0.7rem !important;
    font-size: 0.8rem !important;
    justify-content: center !important;
  }
}

/* --- Source: main.layout.css --- */
@media (max-width: 768px) {
  .card-title {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
    text-align: center !important;
    padding: 0 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem; /* Extra Abstand unter dem Titel */
  }

  .section-subtitle {
    font-size: 1rem;
    text-align: center !important;
    padding: 0 1rem;
    margin-bottom: 3rem !important; /* MEHR ABSTAND VOR DEN CARDS */
    padding-bottom: 1rem !important; /* ZUSÄTZLICHER ABSTAND */
    line-height: 1.6;
  }

}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 0; /* Etwas mehr Padding für Mobile */
  }

  .container {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 1.75rem;
    text-align: center !important;
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem; /* Extra Abstand unter dem Titel */
  }

  .section-subtitle {
    font-size: 0.95rem;
    text-align: center !important;
    padding: 0 0.5rem;
    margin-bottom: 1rem !important; /* DEUTLICH MEHR ABSTAND VOR DEN CARDS */
    padding-bottom: 1rem !important; /* ZUSÄTZLICHER PADDING */
    line-height: 1.5;
  }

  /* Extra Abstand für Grids auf kleinen Screens */
  .grid {
    margin-top: 1.5rem;
  }

  /* Erste Card in Grid bekommt extra Margin-Top für Sicherheit */
  .grid > .card:first-child {
    margin-top: 0.5rem;
  }
}

/* --- Source: navigation.css --- */
@media (max-width: 1400px) {
  .nav-container {
    max-width: 100%;
    padding: 0 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
  }

  .nav-menu {
    gap: 1rem;
    margin-left: 2rem;
  }
}

@media (max-width: 1200px) {
  .nav-links {
    gap: 0.75rem;
  }

  .nav-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }

  .nav-menu {
    gap: 0.75rem;
    margin-left: 1.5rem;
  }

  /* Other Components */
  .language-picker {
    gap: 0.25rem;
  }

  /* Buttons & Links */
  .lang-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
  }

  .nav-menu {
    gap: 0.5rem;
    margin-left: 1rem;
  }

  /* Other Components */
  .brand-link {
    font-size: 1.3rem;
  }

  .logo {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    justify-content: space-between;
    padding: 0 1rem;
    height: 60px;
  }

  .navbar {
    height: 60px;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
    margin-left: 0;
  }

  /* Mobile nav-actions container */
  .nav-actions {
    order: 2;
    gap: 0.5rem;
  }

  /* Verbessertes Mobile Menu mit Slide-In Animation */
  .nav-menu {
    margin-left: 0;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 1rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border-color);
    order: 4;
    height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 999;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  }

  /* Overlay für Mobile Menu - entfernt, da es Probleme im Light Mode verursacht */
  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  /* Scrollbar Styling für Mobile Menu */
  .nav-menu::-webkit-scrollbar {
    width: 6px;
  }

  .nav-menu::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
  }

  .nav-menu::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
  }

  .nav-menu::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    text-align: left;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }

  .nav-link:hover::before,
    .nav-link.active::before {
    transform: scaleY(1);
  }

  .nav-link:hover,
    .nav-link.active {
    background: var(--bg-hover);
    color: var(--accent-primary);
    padding-left: 2rem;
  }

  /* Mobile Dropdown Styles - Verbessert */
  .nav-dropdown {
    position: static;
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 1.5rem;
  }

  .dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-dropdown.expanded .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    opacity: 0;
    max-height: 0;
    visibility: hidden;
    transform: none;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 12px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
    min-width: auto;
    width: calc(100% - 1rem);
    margin-left: 0.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Nur expanded state öffnet das Dropdown, nicht hover auf Mobile */
  .nav-dropdown.expanded .dropdown-menu {
    opacity: 1;
    visibility: visible;
    /* max-height wird dynamisch via JavaScript gesetzt */
  }

  .dropdown-content {
    padding: 0.5rem;
  }

  .dropdown-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
  }

  .dropdown-item:hover {
    background: var(--bg-hover) !important;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
  }

  .dropdown-text {
    gap: 0.1rem;
  }

  .dropdown-title {
    font-size: 0.85rem;
  }

  .dropdown-desc {
    font-size: 0.75rem;
  }

  .dropdown-icon {
    font-size: 1.2rem;
  }

  .theme-toggle {
    height: 60px;
  }

  .theme-icon {
    font-size: 1rem;
  }

  /* Mobile Language Picker */
  .language-picker {
    gap: 0.25rem;
    height: 60px;
  }

  .lang-separator {
    font-size: 0.8rem;
  }

  .lang-btn {
    padding: 0.4rem 0.6rem;
    height: 36px;
    font-size: 0.85rem;
  }

  /* Theme Toggle Mobile Anpassung */
  .theme-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.75rem;
    height: 56px;
  }

  .navbar {
    height: 56px;
  }

  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .nav-menu {
    top: 56px;
    height: calc(100vh - 56px);
    padding: 1rem 0.75rem;
  }

  .nav-menu::before {
    top: 56px;
  }

  .nav-link {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }

  .dropdown-item {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
  }

  .brand-link {
    font-size: 1.3rem;
  }

  .logo {
    width: 32px;
    height: 32px;
  }
}

/* --- Source: p.bi.css --- */
@media (max-width: 1024px) {
  .bi-products-grid {
    grid-template-columns: 1fr;
  }

  .bi-product-item {
    flex-direction: column;
    text-align: center;
  }

  .bi-highlight-content {
    flex-direction: column;
    text-align: center;
  }

  .bi-highlight-text {
    text-align: center;
  }

  .bi-charts-grid {
    grid-template-columns: 1fr;
  }

  .bi-main-chart {
    grid-row: span 1;
  }

  .bi-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  /* Badge styles moved to prov.badges.css */
  /* BI Introduction Tablet */
  .bi-introduction {
    padding: 4rem 0;
  }

  .bi-intro-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    padding: 0 2rem;
  }

  .bi-products-grid {
    gap: 1.5rem;
    padding: 0 2rem;
  }

  .bi-product-item {
    padding: 1.5rem;
  }

  .bi-intro-highlight {
    padding: 1.5rem;
    margin: 0 2rem;
  }

  /* Demo Section Tablet */
  .bi-interactive-demo {
    padding: 4rem 0;
  }

  .bi-demo-controls {
    margin: 0 2rem 2rem 2rem;
  }

  .bi-charts-grid {
    margin: 0 2rem 2rem 2rem;
  }

  .bi-data-table-container {
    margin: 0 2rem;
  }

  .bi-input-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bi-chart-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .bi-chart-type-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .bi-chart-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .bi-kpi-card {
    flex-direction: row;
    text-align: left;
  }

  /* Features Section Tablet */
  .bi-features {
    padding: 4rem 0;
  }

  .bi-features-grid {
    padding: 0 2rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .bi-feature-card {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  /* Hero Section Mobile - MOVED TO hero-pages.css */
  /* Badge styles moved to prov.badges.css */
  /* BI Introduction Mobile */
  .bi-introduction {
    padding: 3rem 0;
  }

  .bi-intro-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .bi-products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .bi-product-item {
    padding: 1.5rem 1rem;
    gap: 1rem;
    text-align: left;
  }

  .bi-product-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .bi-product-content h3 {
    font-size: 1.2rem;
  }

  .bi-product-content p {
    font-size: 0.9rem;
  }

  .bi-product-features li {
    font-size: 0.8rem;
  }

  .bi-intro-highlight {
    padding: 1.5rem 1rem;
    margin: 0 1rem;
  }

  .bi-highlight-content {
    gap: 1rem;
    flex-direction: column;
  }

  .bi-highlight-text {
    text-align: center;
  }

  .bi-highlight-text h4 {
    font-size: 1.1rem;
  }

  .bi-highlight-text p {
    font-size: 0.9rem;
  }

  /* Demo Section Mobile */
  .bi-interactive-demo {
    padding: 3rem 0;
  }

  .bi-demo-controls {
    padding: 1rem;
    margin: 0 1rem 2rem 1rem;
  }

  .bi-input-grid {
    grid-template-columns: 1fr;
  }

  .bi-chart-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .bi-chart-type-btn {
    padding: 0.6rem 0.5rem;
    font-size: 0.75rem;
  }

  .bi-charts-grid {
    gap: 1rem;
    margin: 0 1rem 2rem 1rem;
  }

  .bi-chart-container {
    padding: 1rem;
  }

  .bi-data-table-container {
    padding: 1rem;
    margin: 0 1rem;
    overflow-x: auto;
  }

  .bi-data-table {
    font-size: 0.8rem;
  }

  .bi-data-table th,
    .bi-data-table td {
    padding: 0.5rem;
  }

  /* Features Section Mobile */
  .bi-features {
    padding: 3rem 0;
  }

  .bi-features-grid {
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 1rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .bi-feature-card {
    padding: 1.5rem;
    min-height: 220px;
  }

  .bi-feature-icon {
    font-size: 2rem;
  }

  .bi-feature-card h3 {
    font-size: 1.1rem;
  }

  .bi-feature-card p {
    font-size: 0.9rem;
  }
}

/* --- Source: p.cms.css --- */
@media (max-width: 768px) {
  .cms-maintenance-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* CMS Mockup komplett ausblenden auf Mobile */
  .cms-visual {
    display: none !important;
  }

  .cms-mockup-content {
    height: 150px;
  }

  .cms-mockup-sidebar {
    width: 80px;
  }

  .cms-sidebar-item {
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
  }

  /* Badge styles moved to prov.badges.css */
  .cms-type-card {
    padding: 1.5rem;
  }

  .cms-type-title {
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .cms-type-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .cms-website-demo-section {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .cms-demo-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cms-demo-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .cms-property-panel-container {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    left: 20px !important;
    top: auto !important;
    transform: none !important;
    max-width: none;
  }

  .cms-property-panel::before,
    .cms-property-panel::after {
    display: none;
  }

  /* Property panel mobile animation removed - using lazy-load.css */
  .cms-component-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
  }

  .cms-demo-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .cms-modal-content {
    padding: 1rem;
    margin: 1rem;
  }

  .cms-result-actions {
    flex-direction: column;
  }

  .cms-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .cms-cta-buttons .cms-btn {
    width: 100%;
    text-align: center;
  }

  .cms-extensions-grid {
    grid-template-columns: 1fr;
  }

  .cms-performance-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cms-performance-item {
    padding: 1rem;
  }

  .cms-maintenance-benefit {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
  }

  .cms-benefit-content h4 {
    margin-top: 0.5rem;
  }

  /* Verbessern der Textüberlauf-Eigenschaften für alle Textinhalte */
  p, h1, h2, h3, h4, span, .cms-type-feature, .cms-sidebar-item {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .cms-demo-controls {
    grid-template-columns: 1fr;
  }

  .cms-control-btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }

  .cms-canvas-placeholder h3 {
    font-size: 1.1rem;
  }

  .cms-canvas-placeholder p {
    font-size: 0.8rem;
  }

  .cms-demo-canvas {
    padding: 1rem;
  }

  .cms-maintenance-title {
    font-size: 1.8rem;
  }

  .cms-maintenance-description {
    font-size: 1rem;
  }
}

/* --- Source: p.custom.css --- */
@media (max-width: 768px) {
  .custom-approach-content,
    .custom-mobile-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .custom-approach-principles {
    grid-template-columns: 1fr;
  }

  .custom-complexity-comparison {
    flex-direction: column;
    gap: 1rem;
  }

  .custom-comparison-arrow {
    transform: rotate(90deg);
  }

  .custom-process-timeline {
    flex-direction: column;
    gap: 3rem;
  }

  .custom-device-group {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .custom-device.custom-phone {
    width: 160px;
    height: 320px;
  }

  .custom-device.custom-tablet {
    width: 240px;
    height: 160px;
  }

  .custom-device-frame {
    padding: 10px;
    border-width: 1px;
  }

  .custom-phone-card {
    padding: 10px;
  }

  .custom-card-icon {
    font-size: 20px;
  }

  .custom-card-text strong {
    font-size: 12px;
  }

  .custom-card-text small {
    font-size: 10px;
  }

  .custom-tablet-sidebar {
    width: 70px;
  }

  .custom-sidebar-item span {
    font-size: 18px;
  }

  .custom-sidebar-item small {
    font-size: 8px;
  }

  .widget-value {
    font-size: 20px;
  }

  .widget-label {
    font-size: 11px;
  }

  /* Example Cards */
  .custom-examples-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .custom-example-card {
    padding: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .custom-demo-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .custom-demo-info {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    display: grid;
  }
}

@media (max-width: 768px) {
  .custom-wish-demo {
    padding: 4rem 0;
  }

  .custom-canvas-section {
    padding: 1.5rem;
  }

  .custom-canvas-workspace {
    flex-direction: column;
    gap: 1rem;
  }

  .custom-canvas-tools {
    width: 100%;
    padding: 0.75rem;
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.02);
  }

  .custom-tool-section {
    margin-bottom: 0;
    text-align: center;
  }

  .custom-tool-title {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
  }

  .custom-brush-tools,
    .custom-color-tools,
    .custom-emoji-tools {
    flex-direction: row;
    gap: 0.3rem;
    justify-content: center;
  }

  .custom-color-tools,
    .custom-emoji-tools {
    display: flex;
  }

  .custom-tool-btn {
    min-width: 28px;
    min-height: 28px;
    font-size: 0.8rem;
  }

  .custom-brush-btn {
    width: 28px;
    font-size: 0.8rem;
  }

  .custom-color-btn {
    width: 28px;
    height: 28px;
  }

  .custom-emoji-btn {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .custom-canvas-controls {
    flex-direction: column;
    align-items: center;
  }

  .custom-canvas-controls .custom-btn {
    width: 100%;
    max-width: 250px;
  }

  .custom-demo-features {
    grid-template-columns: 1fr;
  }

  .custom-demo-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .custom-tool-section {
    margin-right: 0.5rem;
  }

  .custom-canvas-wrapper {
    min-height: 300px;
  }

  #wishCanvas {
    min-height: 300px;
  }

  .custom-principle-card {
    padding: 1rem;
  }

  .custom-principle-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .custom-cta-buttons,
    div.custom-cta-buttons {
    flex-direction: column !important;
    align-items: flex-start !important;  /* AUCH AUF MOBILE LINKS! */
    gap: 0.75rem !important;
  }

  .custom-cta-buttons a,
    div.custom-cta-buttons > a,
    .custom-canvas-controls button {
    width: 100% !important;
    max-width: 280px !important;
  }
}

@media (max-width: 480px) {
  .custom-principle-description {
    font-size: 0.8rem;
  }

  .custom-process-step {
    max-width: 100%;
  }

  .custom-mobile-benefit {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .custom-benefit-content h4 {
    margin-top: 0.5rem;
  }

  /* Text Overflow Verbesserungen */
  p, h1, h2, h3, h4, span, .custom-feature-tag, .custom-example-title, .custom-step-title {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
  }
}

/* --- Source: p.hr.css --- */
@media (max-width: 1024px) {
  .hr-feature-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
  }

  .hr-hero-title {
    font-size: 1.8rem;
  }

  .hr-hero-metrics {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .features-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hr-features-intro {
    margin-bottom: 3rem;
  }

  .modern-title {
    font-size: 2.5rem;
  }

  .hr-features-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card-modern {
    padding: 1.5rem;
  }

  .floating-elements {
    width: 150px;
    height: 150px;
  }

  .float-element {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .card-features {
    flex-direction: column;
  }

  .feature-tag {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .lifecycle-timeline {
    flex-direction: column;
    gap: 3rem;
  }

  .hr-scalability-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hr-company-size-showcase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hr-size-card {
    padding: 1.25rem;
  }

  .hr-size-icon {
    font-size: 2rem;
  }

  .hr-size-features {
    margin-bottom: 1rem;
  }

  .hr-size-visual {
    height: 50px;
  }

  /* HR Features Intro Mobile Optimierungen */
  .hr-features-intro {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    text-align: center !important;
  }

  /* Floating Elements komplett ausblenden auf mobile */
  .hr-intro-visual,
    .hr-floating-elements {
    display: none !important;
  }

  /* Intro Content zentrieren und volle Breite */
  .intro-content {
    text-align: center !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .hr-modern-title {
    text-align: center !important;
    max-width: 100% !important;
  }

  .hr-intro-description {
    text-align: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 480px) {
  .hr-company-size-showcase {
    gap: 0.75rem;
  }

  .hr-size-card {
    padding: 1rem;
  }

  .hr-size-header {
    margin-bottom: 1rem;
  }

  .hr-size-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .hr-size-title {
    font-size: 1rem;
  }

  .hr-size-range {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }

  .hr-feature-item {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }

  .hr-size-visual {
    height: 40px;
  }

  .hr-team-dots .hr-dot {
    width: 10px;
    height: 10px;
  }

  .hr-building-layers .hr-layer {
    height: 6px;
  }

  .hr-building-layers .hr-layer:nth-child(1) {
    width: 40px;
  }

  .hr-building-layers .hr-layer:nth-child(2) {
    width: 32px;
  }

  .hr-building-layers .hr-layer:nth-child(3) {
    width: 28px;
  }

  .hr-building-layers .hr-layer:nth-child(4) {
    width: 24px;
  }

  .hr-enterprise-grid {
    width: 36px;
    height: 36px;
    gap: 0.2rem;
  }
}

@media (max-width: 1024px) {
  .hr-demo-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .demo-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .employee-details {
    grid-template-columns: 1fr;
  }

  .employee-header {
    flex-direction: column;
    gap: 1rem;
  }

  .employee-actions {
    align-self: flex-start;
  }

  /* Verbesserte Textumbrüche für Überschriften */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 480px) {
  .employee-form-section,
    .employee-list-section,
    .demo-activity {
    padding: 1.5rem;
  }

  .action-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  /* Verbesserte Lesbarkeit für alle Textabschnitte */
  p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

}

@media (max-width: 768px) {
  .form-actions,
    .hr-form-actions {
    flex-direction: row;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
  }

  .form-actions .btn,
    .hr-form-actions .btn {
    flex: 1;
    max-width: 48%;
  }
}

@media (max-width: 480px) {
  .form-actions,
    .hr-form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-actions .btn,
    .hr-form-actions .btn {
    width: 100%;
    max-width: none;
    flex: none;
  }
}

@media (max-width: 768px) {
  .notification-buttons {
    flex-direction: column;
  }

  .notification-buttons .action-btn {
    min-width: auto;
    flex: none;
  }
}

@media (max-width: 768px) {
  .checklist-item {
    padding: 0.6rem;
  }

  .checklist-label {
    font-size: 0.85rem;
  }

  .checklist-icon {
    font-size: 0.9rem;
    width: 18px;
  }
}

@media (max-width: 480px) {
  .checklist-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .checklist-item {
    padding: 0.5rem;
  }

  .checklist-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
  }

  .checklist-label {
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  .checklist-icon {
    font-size: 0.85rem;
    width: 16px;
  }

  /* Flexible Textumbrüche für alle Überschriften */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 768px) {
  .hr-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hr-employee-form-section,
    .hr-employee-list-section,
    .hr-demo-activity {
    padding: 1.5rem;
  }

  .hr-checklist-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .hr-checklist-item {
    padding: 0.5rem;
  }

  .hr-checklist-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
  }

  .hr-checklist-label {
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  .hr-checklist-icon {
    font-size: 0.85rem;
    width: 16px;
  }
}

/* --- Source: p.webshop.css --- */
@media (max-width: 1024px) {
  .webshop-demo-container {
    grid-template-columns: 1fr;
  }

  .webshop-features-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .webshop-floating-icons-container {
    display: none;
  }

  .webshop-header-content {
    text-align: center;
  }

  .webshop-section-title-large {
    text-align: center;
  }

  .webshop-section-subtitle {
    text-align: center;
    margin: 0 auto;
  }

  .webshop-products-grid {
    grid-template-columns: 1fr;
  }

  .webshop-form-grid {
    grid-template-columns: 1fr;
  }

  .webshop-benefits-grid {
    grid-template-columns: 1fr;
  }

  .webshop-modal-content {
    width: 95%;
    margin: 1rem;
  }
}

@media (max-width: 480px) {
  .webshop-section-title-large {
    font-size: 2rem;
  }

  .webshop-panel-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .webshop-btn-add {
    width: 100%;
    justify-content: center;
  }
}

/* --- Source: p.wms.css --- */
@media (max-width: 1024px) {
  .wms-special-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .wms-demo-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .wms-storage-locations {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wms-features-grid {
    grid-template-columns: 1fr;
  }

  .wms-special-features {
    grid-template-columns: 1fr;
  }

  .wms-benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Overflow Fixes */
  .wms-core-features-header {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    text-align: center !important;
    padding: 0;
  }

  /* Floating Icons komplett ausblenden auf mobile */
  .wms-floating-icons-container,
    .wms-floating-icons {
    display: none !important;
  }

  /* Header Content zentrieren und volle Breite */
  .wms-header-content {
    text-align: center !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0;
  }

  .wms-section-title-large {
    text-align: center !important;
    max-width: 100% !important;
    font-size: 2rem;
    word-break: break-word;
  }

  .wms-section-subtitle {
    text-align: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 1rem;
  }
  .wms-scanner-card {
    max-width: 100%;
    margin: 0 1rem;
  }

  .wms-scanner-title {
    font-size: 1.8rem;
  }

  .wms-demo-container {
    padding: 0 1rem;
  }

  .wms-warehouse-tree {
    padding: 1rem;
    margin: 2rem -1rem;
    border-radius: 0;
    width: calc(100% + 2rem);
  }

  .wms-tree-container {
    overflow-x: auto;
    padding-bottom: 1rem;
    width: 100%;
  }

  .wms-tree-node,
    .wms-tree-branch {
    min-width: 280px;
  }

  .wms-tree-children {
    margin-left: 1.5rem;
    padding-left: 0.5rem;
  }

  .wms-tree-leaf {
    flex-wrap: wrap;
    padding: 0.4rem;
  }

  .wms-leaf-items {
    width: 100%;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .wms-item-tag {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  .wms-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  section {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .wms-modern-features {
    padding: 3rem 0;
    margin-top: 3rem !important;
  }

  .wms-core-features-header {
    margin-bottom: 3rem;
  }

  .wms-header-content {
    padding: 0;
  }

  .wms-section-subtitle {
    padding: 0;
    margin: 0 auto;
    max-width: 90%;
  }

  .wms-section-title-large {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .wms-section-label {
    text-align: center;
    display: block;
  }

  .wms-scanner-metrics {
    flex-direction: column;
    gap: 1.5rem;
  }

  .wms-warehouse-tree {
    border-left: none;
    border-right: none;
  }

  .wms-tree-title {
    padding: 0 1rem;
  }

  .wms-tree-node,
    .wms-tree-leaf {
    font-size: 0.85rem;
  }

  .wms-tree-node.wms-root {
    min-width: 100%;
  }

  .wms-item-tag {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    max-width: 80px;
  }

  .wms-node-count {
    font-size: 0.8rem;
  }

  .wms-demo-sidebar {
    margin-top: 2rem;
  }

  .wms-storage-locations {
    gap: 1rem;
  }

  .wms-location-group {
    padding: 1rem;
  }
}

/* --- Source: page.layout.css --- */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-icon-wrapper {
    padding: 1.5rem;
  }

  .product-icon {
    width: 40px;
    height: 40px;
  }

  .product-content {
    padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab-content {
    min-height: 400px;
  }

  .solution-card {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .tab-content {
    min-height: 650px;
  }

  .solution-card {
    padding: 1rem;
  }

  .tab-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .card ul,
    .glass-card ul,
    .feature-card-modern ul,
    .card-content ul {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
  }

  .card,
    .glass-card,
    .feature-card-modern {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .card ul,
    .glass-card ul,
    .feature-card-modern ul,
    .card-content ul {
    padding-left: 1rem;
    margin: 0.5rem 0;
  }

  .card,
    .glass-card,
    .feature-card-modern {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .slogan-text {
    font-size: 1rem;
  }

  .swiss-flag {
    width: 1rem;
    height: 1rem;
    margin: 0 0.2rem;
  }

  .team-image {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .slogan-text {
    font-size: 1.3rem;
  }

  .swiss-flag {
    width: 1.3rem;
    height: 1.3rem;
  }
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }

  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .modern-team-grid {
    padding: 4rem 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-card {
    margin: 0 1rem;
  }

  .stats-title,
    .values-title {
    font-size: 2rem;
  }

  .team-stats,
    .team-values {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .profile-image {
    width: 100px;
    height: 100px;
  }

  .member-name {
    font-size: 1.5rem;
  }

  .stats-title,
    .values-title {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-stats,
    .team-values {
    padding: 3rem 0;
  }

  .stats-header,
    .values-header {
    margin-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  .time-tracking-demo {
    padding: 1.5rem;
  }

  .current-time {
    font-size: 2.5rem;
  }

  .time-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .time-tracking-demo {
    padding: 1rem;
  }

  .current-time {
    font-size: 2rem;
  }

  .time-info-value {
    font-size: 1.2rem;
  }

  .activity-log {
    padding: 1rem;
    max-height: 200px;
  }

  .time-info-card {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  /* Verbesserte Text-Anzeige */
  p, li, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }

  /* Links optimieren */
  a {
    word-break: break-all;
  }
}

@media (max-width: 480px) {
  h2.card-title {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  p, li {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .disclaimer-section h2 {
    font-size: 1.2rem;
  }

  .legal-paragraph {
    text-align: left;
  }
}
