/* 
 * Delic IT Services - Responsive Stylesheet
 * ----------------------------------------
 */

/* Grosse Desktops (1200px und groesser) */
@media (min-width: 1200px) {
  :root {
    --container-width: 1140px;
  }
}

/* Mittlere Desktops und Laptops (992px bis 1199px) */
@media (max-width: 1199px) {
  :root {
    --container-width: 960px;
  }

  /* Base Typography */
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  /* Home Page */
  .hero h1 {
    font-size: 2.5rem;
  }
  
  /* Logo: etwas kleiner für mittlere Bildschirme */
  .logosvg {
    width: 160px;
  }
}

/* Tablets und grosse Smartphones (576px bis 767px) */
@media (max-width: 991px) {
  :root {
    --container-width: 540px;
  }

  /* Base Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  /* Home Page */
  .hero h1 {
    font-size: 2.2rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  /* Components - Header & Navigation */
  .site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem var(--container-padding);
  }
  
  /* Logo: sehr klein für Smartphones */
  .logosvg {
    width: 160px;
    transition: width 0.3s ease;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-left: auto; /* Push the header-right to the right */
  }

  /* Language-Switcher direkt neben Theme-Toggle positionieren */
  .language-switcher {
    margin-right: 0;
  }

  .theme-toggle {
    margin-right: 0;
  }

  /* Hamburger-Menue (mobile-nav-toggle) an das rechte Ende schieben */
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
  }

  .lang-toggle {
    padding: 0.3rem 0.5rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm) 0;
    z-index: 100;
  }

  .main-nav.show {
    display: block;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-item {
    margin: 0;
  }

  .nav-link {
    padding: 0.75rem 1.5rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    background-color: var(--bg-alt-color);
    padding-left: var(--spacing-md);
    transition: background-color 0.3s ease;
  }

  .has-dropdown.active .dropdown-menu {
    display: block;
  }

  /* Components - Footer */
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  .legal-links {
    justify-content: center;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image {
    max-width: 100%;
    margin: 0 auto;
  }

    .nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Der eigentliche Link nimmt den meisten Platz ein */
  .nav-flex .nav-link {
    flex-grow: 1;
  }

  /* Dropdown-Toggle-Symbol für mobile Ansicht */
  .dropdown-toggle-mobile {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
  }

  .dropdown-toggle-mobile:hover {
    color: var(--primary-color);
  }

  /* Icon Animation beim Öffnen des Dropdowns */
  .has-dropdown.active .dropdown-toggle-mobile i {
    transform: rotate(180deg);
  }

  /* Übergänge für Icon-Rotation */
  .dropdown-toggle-mobile i {
    transition: transform 0.3s ease;
  }

/* Medium to small devices (768px and below) */
@media (max-width: 575px) {
  /* Make services grid single column on smaller devices */
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  /* Make service cards larger and more readable on mobile */
  .service-card {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Kleine Smartphones (bis 575px) */
@media (max-width: 330px) {
  :root {
    --container-width: 100%;
    --container-padding: 1rem;
  }

  /* Base Typography */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  /* Home Page */
  .hero {
    padding: var(--spacing-lg) 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
  
  /* Logo: minimalistisch bei sehr kleinen Smartphones (nur Symbol) */
  .logosvg {
    width: 120px;
  }
  
  /* Bei sehr geringer Breite Logo ausblenden */
  @media (max-width: 300px) {
    .logosvg {
      width: 0;
      overflow: hidden;
      margin: 0;
      padding: 0;
    }
    
    .logo-container {
      width: 0;
      margin: 0;
      padding: 0;
    }
    
    .site-header .container {
      justify-content: flex-end;
    }
  }

  /* Services Page */
  .service-sidebar {
    grid-template-columns: 1fr;
  }

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

  /* About Page */
  .value-card {
    max-width: 100%;
  }

  /* Contact Page */
  .contact-method {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .method-icon {
    margin-right: 0;
    margin-bottom: var(--spacing-xs);
  }

  /* Error Pages */
  .error-code {
    font-size: 5rem;
  }

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