/* =========================================
   RESPONSIVE.CSS - FERTIG & SAUBER
   ========================================= */

/* ==================== MOBILE FIRST ==================== */
/* Smartphones bis 650px */
@media (max-width: 650px) {
  .mobile-nav {
    display: block;
    z-index: 200;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 1rem;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
    font-size: 1rem;
    padding: 0;
    text-align: center;
  }

  .logo img {
    height: 55px;
  }

  /* Sections allgemein */
  .container,
  .about-flex,
  .service-section,
  .portfolio-section,
  .contact-container {
    max-width: 95% !important;
    width: 95% !important;
    padding: 1rem !important;
    margin: 1rem auto !important;
  }


  /* ABOUT */
  .about-flex {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .about-photo img {
    width: 90%;
    margin: 0 auto;
  }

  .about-text p,
  .about-skills .skill span {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .skill-bar {
    height: 0.8rem;
  }

  .about-col h2 {
    font-size: 2rem;
  }

  /* SERVICES */
  .service-section {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .service-col {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
  }

  /* PORTFOLIO */
  .portfolio-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .portfolio-item {
    flex: 0 1 100%;
  }

  /* CONTACT */
  .contact-flex {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-form-wrapper,
  .contact-info {
    flex: 0 1 100%;
  }

  .contact-form button {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;

  }
}

/* ==================== SMALL TABLETS / IPAD MINI 651px–768px ==================== */
@media (min-width: 651px) and (max-width: 768px) {
  nav {
    width: 60%;
  }

  nav ul {
    gap: 25px;
    font-size: 1rem;
  }

  .logo img {
    height: 75px;
  }

  .container,
  .about-flex,
  .service-section,
  .portfolio-section,
  .contact-container {
    max-width: 100%;
    width: 95%;
    padding: 1.5rem;
    margin: 2rem auto;
  }

  .about-flex {
    flex-direction: row;
    gap: 2rem;
    text-align: center;
    justify-content: center;
  }

  .about-col {
    flex: 1 1 100%;
  }

  .service-section {
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    padding: 0;
  }

  .service-col {
    flex: 0 0 48%;
    max-width: 100%;
  }

  .portfolio-flex {
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    padding: 0;
  }

  .portfolio-item {
    flex: 1 1 48%;
  }

  .contact-flex {
    flex-direction: column;
  }

  .contact-form-wrapper,
  .contact-info {
    flex: 0 1 100%;
  }

}

/* ==================== MEDIUM TABLETS / IPAD PRO 769px–900px ==================== */
@media (min-width: 769px) and (max-width: 900px) {

  .container,
  .about-flex,
  .service-section,
  .portfolio-section,
  .contact-container {
    max-width: 100%;
    width: 95%;
    padding: 2rem;
    margin: 2rem auto;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  h3 {
    font-size: 2rem;
  }

  p {
    font-size: 1.2rem;
  }

  .about-flex {
    flex-direction: row;
    gap: 1rem;
  }

  .about-col {
    flex: 1 1 45%;
  }

  .service-section {
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    padding: 0;
  }

  .service-col {
    flex: 0 1 48%;
  }

  .portfolio-flex {
    gap: 1rem;
  }

  .portfolio-item {
    flex: 0 1 48%;
  }

  .contact-flex {
    flex-direction: row;
    gap: 2rem;
  }

  .contact-form-wrapper,
  .contact-info {
    flex: 0 1 100%;
  }
}

/* ==================== LARGE TABLETS / SMALL LAPTOPS 901px–1200px ==================== */
@media (min-width: 901px) and (max-width: 1200px) {

  .container,
  .about-flex,
  .service-section,
  .portfolio-section,
  .contact-container {
    max-width: 100%;
    width: 90%;
    padding: 2.5rem;
    margin: 2rem auto;
  }

  .about-flex {
    flex-direction: row;
    gap: 2rem;
  }

  .service-section {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0;
  }

  .service-col {
    flex: 0 1 30%;
  }

  .portfolio-flex {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0;
  }

  .portfolio-item {
    flex: 0 1 30%;
  }

  .contact-flex {
    flex-direction: row;
  }

  .contact-form-wrapper,
  .contact-info {
    flex: 0 1 46%;
  }
}

/* ==================== DESKTOP ab 1201px ==================== */
@media (min-width: 1201px) {
  .service-col {
    flex: 0 1 31.5%;
  }

  .portfolio-item {
    flex: 0 1 31%;
  }

  .contact-flex {
    flex-direction: row;
  }

  .contact-form-wrapper,
  .contact-info {
    flex: 0 1 45%;
  }
}