/* ==========================================================================
   responsiv.css – Ergänzungen & Overrides für Mobile/Tablet
   Passt zu deinem bestehenden style.css Setup
   ========================================================================== */

:root {
  --setronic-blau: rgba(22, 64, 144);
  --versions-colour: rgb(233, 114, 16);
}

/* --- Mobile viewport fixes (iOS/Android) --- */
.hero {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
}

/* ==========================================================================
   <= 1470px (große Laptops / kleinere Desktops)
   ========================================================================== */
@media screen and (max-width: 1470px) {
  .container {
    padding: 0 32px;
  }

  .add-site-info-1 {
    width: 25%;
  }

  .add-site-info-2 {
    width: 65%;
    padding: 10px 44px;
  }

  .add-site-info-3 {
    width: 10%;
  }

  .hero-logo {
    left: 48px;
  }

  main {
    margin-top: 60px;
    min-height: calc(100vh - 60px); /* nur Header berücksichtigen */
    background: #fff;
  }

  main h1 {
    font-size: 42px;
    margin-bottom: 40px;
    text-align: center;
    color: #111827;
  }

  main h2 {
    font-size: 28px;
    margin: 2.5rem 0 1rem;
    color: #1e40af;
  }

  main.main-content {
    position: relative;
    z-index: 5;
    background: #f8f9fa;
    color: #333;
    margin-top: 60px;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 0; /* Abstand als padding statt margin */
  }

  .container-content {
    margin-top: 120px;
    color: black;
  }
}

/* ==========================================================================
   <= 1200px (Tablet landscape / kleiner Laptop)
   ========================================================================== */
@media screen and (max-width: 1200px) {
  .container {
    padding: 60px 40px 0;
  }

  .mid-p {
    max-width: 900px;
    display: flex;
    justify-content: center;
    margin: 0px auto;
  }

  /* Site-Info: Icons links/rechts ausblenden, Text volle Breite */
  .add-site-info-1,
  .add-site-info-3 {
    display: none;
  }

  .add-site-info-2 {
    width: 100%;
    padding: 10px 40px;
  }

  /* Features etwas kompakter */
  .features-grid {
    gap: 28px;
  }

  .feature-card {
    padding: 34px 24px;
  }

  /* Hero Logo kompakter */
  .hero-logo img {
    height: 105px;
  }

  .hero-text h1 {
    font-size: 48px;
  }
  .container-content {
    margin-top: 60px;
    color: black;
  }

  .info_uebersicht,
  .modul_einsatzbereiche,
  .modul_vorteile {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
  }

  .info_uebersicht_left,
  .info_uebersicht_right,
  .modul_einsatzbereiche_left,
  .modul_einsatzbereiche_right,
  .modul_vorteile_left,
  .modul_vorteile_right {
    width: 100%;
  }

  .abstand {
    margin: 60px auto; /*Vorher 120px auto*/
  }

  .reverse {
    flex-direction: column-reverse !important;
  }

  .abstand-klein {
    margin: 0;
  }

  .modul_vorteile {
    gap: 20px;
  }

  .modul_einsatzbereiche {
    gap: 20px;
  }

  .mittig {
    max-width: 900px;
    margin: 0 auto;
  }

  .d5-5-left img,
  .d5-5-right img {
    margin-top: 60px;
  }
}

/* ==========================================================================
   <= 992px (Tablet / kleine Laptops)
   ========================================================================== */
@media screen and (max-width: 992px) {
  /* Topbar: weniger Padding, kleinere Abstände */

  .contact {
    margin-right: 16px;
  }

  .top-bar a,
  .top-bar_standard a,
  .dropdown summary {
    font-size: 15px;
  }

  /* Hero Text */
  .hero-text {
    padding: 0 24px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-text p {
    font-size: 18px;
  }

  /* Vorteile */
  .vorteile-section {
    padding: 70px 24px;
  }

  .vorteile-container {
    gap: 34px;
  }

  .pillars__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ids__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-columns: 1fr; /* volle Breite */
  }

  .feature-card__icon {
    display: none;
  }

  .feature-card__body {
    min-width: 0; /* sicherheitshalber */
  }

  .feature-card__list {
    width: 100%;
  }

  .feature-card__list li {
    line-height: normal;
  }

  .contact-strip__grid {
    display: none;
  }

  .d5-5 {
    flex-direction: column;
  }

  .d5-5-left,
  .d5-5-right {
    max-width: 100%;
  }

  .reversed {
    flex-direction: column-reverse !important;
  }
}

/* ==========================================================================
   <= 768px (Tablet portrait / große Handys)
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Topbar: wird gestapelt */
  .top-bar,
  .top-bar_standard {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding: 0px 14px 10px 14px;
  }

  .contact {
    margin-right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 13px;
  }

  /* Hamburger sichtbar */
  .hamburger {
    display: inline-block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0; /* sitzt rechts */
    width: 82vw; /* <-- Drawer Breite */
    max-width: 220px; /* optional */
    height: 50vh;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;

    padding: 20px 14px 18px;
    background-color: rgba(48, 48, 48, 0.95);
    z-index: 15;

    opacity: 0;
    pointer-events: none;

    /* Reveal: startet oben rechts (Hamburger) */
    clip-path: circle(0 at calc(100% - 24px) 24px);
    transition:
      clip-path 420ms ease,
      opacity 200ms ease;
  }

  .top-bar.menu-open .nav,
  .top-bar_standard.menu-open .nav {
    opacity: 1;
    pointer-events: auto;

    /* füllt nur den Drawer (statt ganze Seite) */
    clip-path: circle(120vmax at calc(100% - 24px) 24px);
  }

  /* Links: etwas größere Click-Fläche */
  .top-bar a,
  .top-bar_standard a,
  .dropdown summary {
    padding: 8px 8px;
    border-bottom: 3px solid transparent; /* statt border:none */
  }

  .top-bar a:hover,
  .top-bar_standard a:hover,
  .dropdown summary:hover {
    padding: 8px 8px;
    border-bottom: 3px solid transparent; /* statt border:none */
  }

  /* ===============================
   Mobile: Produkte-Unterpunkte
   als normale Menü-Reiter
   =============================== */

  .dropdown-menu {
    position: static; /* kein Floating */
    background: transparent; /* kein blaues Kästchen */
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
  }

  /* sichtbar nur wenn geöffnet */
  .dropdown[open] .dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  /* Unterpunkte wie normale Links */
  .dropdown-menu a {
    padding: 8px 8px 8px 28px; /* Einzug */
    font-size: 14px;
    white-space: normal;
    opacity: 0.9;
  }

  /* Hover */
  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  /* Oben im Header die Kontaktinfos ausblenden, weil sie im Menü stehen sollen */
  .top-bar .contact,
  .top-bar_standard .contact {
    display: none;
  }

  /* Kontaktinfos im geöffneten Menü anzeigen */
  .top-bar.menu-open .mobile-contact,
  .top-bar_standard.menu-open .mobile-contact {
    display: flex;
    flex-direction: column;
    padding-left: 8px; /* optisch "unter Kontakt" eingerückt */
  }

  .mobile-contact-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.95;
  }

  .mobile-contact-item i {
    margin-right: 8px;
  }

  /* Hero: mehr Platz oben, damit Topbar/Logo nicht über Text liegen */
  .hero-texts {
    padding-top: 60px;
  }

  /* Logo: kleiner & näher an den Rand */
  .hero-logo {
    top: 48px;
    left: 12px;
  }

  .hero-logo img {
    height: 78px;
  }

  /* Hero Typo */
  .hero-text h1 {
    font-size: 34px;
    margin-bottom: 14px;
  }

  .hero-text p {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  .section h2 {
    font-size: 32px;
    margin-bottom: 26px;
  }

  .welcome p {
    font-size: 18px;
  }

  /* Features Grid: eine Spalte früher */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Site Info Text */
  .site-info {
    padding: 60px 0;
  }

  .add-site-info {
    min-height: unset;
    padding: 18px 0;
  }

  .add-site-info-2 {
    padding: 10px 18px;
  }

  .add-site-info-2 h1 {
    font-size: 30px;
  }

  .add-site-info-2 p {
    font-size: 17px;
  }

  .add-site-info-2 ul {
    text-align: left; /* liest sich besser */
    display: inline-block; /* bleibt bei center Layout schön */
    display: block;
    margin: 14px 0 0 16px;
    font-size: 15px;
    list-style-type: disc;
  }

  /* CTA */
  .cta .btn {
    padding: 14px 28px;
    font-size: 16px;
  }

  /* Hamburger Animation (X) */
  .top-bar.menu-open .hamburger span:nth-child(1),
  .top-bar_standard.menu-open .hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .top-bar.menu-open .hamburger span:nth-child(2),
  .top-bar_standard.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .top-bar.menu-open .hamburger span:nth-child(3),
  .top-bar_standard.menu-open .hamburger span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .page-subtitle {
    font-size: 16px;
  }

  .contact-card {
    padding: 14px;
    border-radius: 12px;
  }

  .contact-card h2 {
    font-size: 17px;
  }

  .form-row input,
  .form-row textarea,
  .form-row select {
    font-size: 16px; /* bessere Bedienung auf iOS */
  }

  .pillars__grid {
    grid-template-columns: 1fr;
  }

  .ids__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   <= 640px (Handys)
   ========================================================================== */
@media screen and (max-width: 640px) {
  .top-bar a,
  .top-bar_standard a,
  .dropdown summary {
    font-size: 14px;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-text p {
    font-size: 15px;
  }

  /* Vorteile */
  .vorteile-section {
    padding: 56px 14px;
  }

  .vorteil-icon {
    font-size: 3rem;
  }

  .vorteil h3 {
    font-size: 1.5rem;
  }

  .vorteil p {
    font-size: 1rem;
  }

  /* Footer links untereinander */
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .footer-links a {
    margin: 0;
  }

  .mitarbeiter_karte {
    gap: 20px;
    font-size: 12px;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-content {
    margin-left: 25px;
  }

  .timeline-date {
    font-size: 12px;
  }
}

/* ==========================================================================
   <= 480px (kleine Handys)
   ========================================================================== */
@media screen and (max-width: 480px) {
  /* Topbar: Kontakt untereinander, damit’s nicht „quetscht“ */
  .contact {
    flex-direction: column;
    gap: 4px;
  }

  /* Dropdown nicht zu breit */
  .dropdown-menu {
    min-width: 150px;
  }

  /* Hero */
  .hero-texts {
    padding-top: 74px;
  }

  .hero-logo img {
    height: 68px;
  }

  .hero-text {
    padding: 0 14px;
  }

  .hero-text h1 {
    font-size: 27px;
  }

  .hero-text p {
    font-size: 14px;
  }

  /* Site Info */
  .add-site-info-2 {
    padding: 10px 14px;
  }

  .add-site-info-2 h1 {
    font-size: 26px;
  }

  .add-site-info-2 p {
    font-size: 15px;
  }

  .add-site-info .more-infos-button button {
    font-size: 18px;
  }
}

/* ==========================================================================
   <= 360px (sehr kleine Geräte)
   ========================================================================== */
@media screen and (max-width: 360px) {
  .hero-text h1 {
    font-size: 24px;
  }

  .hero-logo img {
    height: 62px;
  }

  .feature-card {
    padding: 28px 18px;
  }
}
/*------------------------------------ MIN WIDTH ------------------------------------*/
@media (min-width: 900px) {
  .feature-cards {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card--wide {
    grid-column: 1 / -1;
  }
}
