/* ==========================================================
   CUSTOM-MOBILE.CSS – Spitex EasyCare
   Mobile Optimierung für alle Seiten.
   Wird NACH custom.css geladen und überschreibt nur Werte
   für Tablet und Handy. Desktop (ab 1200px) bleibt unberührt.

   Breakpoints (identisch mit Bootstrap / Theme):
   ≤ 1199.98px  mobiles Menü (navbar-expand-xl)
   ≤  991.98px  Tablet
   ≤  767.98px  kleines Tablet / Handy quer
   ≤  575.98px  Handy

   Selektoren sind bewusst so gewählt, dass sie die
   Spezifität der jeweiligen Theme-Regel (style.css)
   mindestens erreichen. Kommentar nennt jeweils die
   Theme-Regel, die überschrieben wird.
   ========================================================== */


/* ==========================================================
   1. GRUNDLAGEN
   ========================================================== */
@media screen and (max-width: 1199.98px) {

  /* iOS vergrössert sonst im Querformat eigenmächtig die Schrift */
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Horizontales Wackeln verhindern (WOW-Animationen, Karussell).
     clip statt hidden: erzeugt keinen Scroll-Container,
     dadurch funktionieren sticky und fixed weiterhin.
     hidden steht davor als Rückfall für alte Browser. */
  html,
  body {
    overflow-x: hidden;
    overflow-x: clip;
  }

  /* Bilder nie breiter als ihr Container */
  .wrapper img {
    max-width: 100%;
  }

  /* Lange deutsche Wörter dürfen notfalls umbrechen,
     statt aus dem Bildschirm zu laufen */
  h1, h2, h3, h4, h5, h6,
  p,
  li,
  a {
    overflow-wrap: break-word;
  }
}

@media screen and (max-width: 575.98px) {

  /* Etwas mehr Seitenrand, damit Text nicht am Rand klebt */
  .container,
  .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* ==========================================================
   2. TOPBAR – sichtbar, kompakt
   Theme blendet sie unter 992px aus:
   .header.header-topbar .top-bar { display: none; }
   ========================================================== */
@media screen and (max-width: 1199.98px) {

  .header.header-topbar .top-bar.top-bar-3 {
    display: block;
    height: auto;
    padding: 8px 0;
  }

  .header.header-topbar .top-bar.top-bar-3 .container {
    display: block;
  }

  /* Telefon, Ort und Mail zentriert, bei Platzmangel
     sauber in die nächste Zeile */
  .header.header-topbar .top-bar.top-bar-3 .container .top-contact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 18px;
    width: 100%;
    padding: 0;
  }

  .header.header-topbar .top-bar.top-bar-3 .top-contact .contact-infos {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
  }

  .header.header-topbar .top-bar.top-bar-3 .top-contact .contact-infos i {
    font-size: 12px;
    margin: 0;
  }

  .header.header-topbar .top-bar.top-bar-3 .top-contact .contact-infos a {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Leerer rechter Block, nimmt mobil nur Platz weg */
  .header.header-topbar .top-bar.top-bar-3 .container .block-right {
    display: none;
  }
}


/* ==========================================================
   3. NAVIGATION (mobiles Menü)
   ========================================================== */
@media screen and (max-width: 1199.98px) {

  /* Theme: .header.header-topbar .navbar { padding: 0 20px; }
     bzw. .header .navbar { padding: 0 40px; }
     Doppelt zum Container-Abstand, mobil verschwendeter Platz */
  .header.header-topbar .navbar {
    padding-left: 0;
    padding-right: 0;
  }

  /* Theme: Logo-Bereich 80px, Burger-Bereich 105px hoch.
     Beides auf eine kompakte Höhe von 72px */
  .header .navbar .navbar-brand {
    display: flex;
    align-items: center;
    height: 72px;
    line-height: normal;
    margin-right: 0;
  }

  .header .navbar .module-holder.module-holder-phone {
    height: 72px;
  }

  /* Desktop-Logo mit Schriftzug auch mobil anzeigen.
     Theme blendet unter 992px .logo-dark aus und zeigt
     stattdessen .logo-mobile (nur Signet ohne Text). */
  .header.header-light .navbar .logo-dark {
    display: inline-block;
  }

  .header.header-light .navbar .logo-mobile {
    display: none;
  }

  /* Theme: .header .navbar-brand .logo { width: 180px; height: 47px; } */
  .header .navbar-brand .logo {
    width: auto;
    height: 44px;
    max-height: 44px;
    max-width: 100%;
    object-fit: contain;
  }

  /* Ausklappmenü: scrollbar, damit bei offenen Untermenüs
     alle Punkte erreichbar bleiben. dvh berücksichtigt
     die ein- und ausfahrende Browserleiste. */
  .header .navbar .navbar-collapse {
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 20px 20px;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
  }

  /* Hauptpunkte: Tippfläche 48px, Trennlinie,
     rechts Platz für den Pfeil der Untermenüs */
  .header .navbar .navbar-nav > li {
    border-bottom: 1px solid #ececec;
  }

  .header .navbar .navbar-nav > li > a,
  .header .navbar .navbar-nav > li.active > a {
    padding: 12px 36px 12px 0;
    font-size: 16px;
    line-height: 24px;
  }

  /* Pfeil-Kästchen der Untermenüs vertikal mittig zur Zeile */
  .header .navbar .has-dropdown::after {
    top: 12px;
  }

  /* Untermenü */
  .header .navbar .dropdown-menu.show {
    padding: 6px 0 10px;
  }

  .header .navbar .dropdown-menu li a {
    margin: 0 0 4px 12px;
    padding: 9px 14px;
    font-size: 15px;
    line-height: 1.4;
  }

  /* CTA im Menü */
  .header .navbar .navbar-collapse .module-holder {
    margin-top: 16px;
  }
}


/* ==========================================================
   4. HERO (Startseite und Unterseiten)
   Theme zieht den Hero mit margin-top: -155px unter den
   Header und gleicht das mit padding-top: 120–185px auf
   .hero-content aus. Zusammen mit dem aspect-ratio aus
   custom.css blieb mobil nur ein schmaler Streifen übrig.
   ========================================================== */
@media screen and (max-width: 1199.98px) {

  .header-topbar + .hero {
    margin-top: 0;
  }

  .hero .hero-content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero .hero-content .hero-action {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 991.98px) {

  /* Höhe ergibt sich aus dem Inhalt statt aus dem Bildformat */
  .hero {
    aspect-ratio: auto;
    min-height: 420px;
    padding: 80px 0;
  }

  /* Startseite: Überlagerung kräftiger, weil der Text mobil
     zentriert über dem hellen Bildbereich liegt.
     Theme: opacity 0.15 */
  .hero.bg-overlay-dark-slider::before {
    opacity: 0.55;
  }

  .hero .hero-content .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .hero-content .hero-action {
    justify-content: center;
  }

  .hero .hero-content .hero-action .btn {
    margin: 0;
  }
}

@media screen and (max-width: 767.98px) {

  .hero-headline,
  .hero .hero-content .hero-title {
    font-size: 32px;
    line-height: 1.2;
  }
}

@media screen and (max-width: 575.98px) {

  .hero {
    min-height: 0;
    padding: 64px 0 56px;
  }

  .hero-headline,
  .hero .hero-content .hero-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .hero .hero-content .hero-desc {
    line-height: 1.6;
    margin-bottom: 26px;
  }

  /* Buttons untereinander, volle Breite = einfach zu treffen */
  .hero .hero-content .hero-action {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero .hero-content .hero-action .btn {
    width: 100%;
    height: auto;
    min-height: 52px;
  }
}


/* ==========================================================
   5. VERTRAUENSLEISTE
   custom.css stapelt unter 576px alle vier Punkte.
   Auf dem Handy daher 2 × 2 mit kleineren Werten.
   ========================================================== */
@media screen and (max-width: 575.98px) {

  .trustbar {
    padding: 32px 0;
  }

  .trustbar-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .trustbar-item {
    padding: 0 4px;
    border-right: none;
  }

  .trustbar-item i {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .trustbar-num {
    font-size: 26px;
    margin-bottom: 4px;
  }

  .trustbar-text {
    font-size: 13.5px;
    line-height: 1.45;
  }
}


/* ==========================================================
   6. ABSTÄNDE DER SEKTIONEN UND ÜBERSCHRIFTEN
   ========================================================== */
@media screen and (max-width: 991.98px) {

  /* Theme: .features { padding-top: 200px; } unter 768px,
     gedacht für ein überlappendes Element, das es hier
     nicht gibt */
  .features {
    padding-top: 72px;
    padding-bottom: 64px;
  }

  .services.services-2 {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .team-carousel {
    padding-top: 64px;
  }

  /* Überschriften: Theme 32–40px mit grossen Abständen */
  .wrapper .heading {
    margin-bottom: 36px;
  }

  .wrapper .heading .heading-title {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 20px;
    transform: none;
  }

  .wrapper .heading .paragraph {
    margin-bottom: 18px;
  }

  .wrapper .heading.heading-2 .heading-desc,
  .wrapper .heading.heading-3 .heading-desc {
    margin-bottom: 28px;
  }
}

@media screen and (max-width: 575.98px) {

  .about.about-1 {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .features {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .services.services-2 {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .team-carousel {
    padding-top: 56px;
  }

  .wrapper .heading {
    margin-bottom: 28px;
  }

  .wrapper .heading .heading-title {
    font-size: 26px;
  }
}


/* ==========================================================
   7. ÜBER UNS (Startseite und ueberuns.html)
   Theme unter 992px:
   .about .about-img { width: max-content; margin: 0 auto 80px; }
   .about .about-img img { height: 450px; }
   max-content macht den Container so breit wie die
   Bilddatei, dadurch war das Bild riesig.
   ========================================================== */
@media screen and (max-width: 991.98px) {

  .about.about-1 .about-img {
    width: 100%;
    max-width: 100%;
    margin: 36px 0 0;
    transform: none;
  }

  .about.about-1 .about-img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 25%;
  }

  /* Theme: margin-right: 40px, dadurch stand der Button schief */
  .about.about-1 .signature-block .btn {
    margin-right: 0;
  }
}

@media screen and (max-width: 575.98px) {

  /* custom.css setzt width: auto !important */
  .about.about-1 .signature-block .btn {
    width: 100% !important;
  }
}


/* ==========================================================
   8. FEATURES (roter Bereich)
   ========================================================== */
@media screen and (max-width: 991.98px) {

  .features .heading.heading-3 .actions-holder {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  /* Theme: margin-right: 30px bzw. margin-bottom: 20px */
  .features .heading.heading-3 .actions-holder .btn {
    margin: 0;
  }
}

@media screen and (max-width: 575.98px) {

  .features .heading.heading-3 .actions-holder {
    flex-direction: column;
    align-items: stretch;
  }

  /* Theme: feste Breiten 190px / 170px */
  .features .heading.heading-3 .actions-holder .btn {
    width: 100%;
  }

  .features .more-features p {
    font-size: 15px;
    line-height: 1.6;
  }
}


/* ==========================================================
   9. LEISTUNGSKARTEN
   ========================================================== */
@media screen and (max-width: 991.98px) {

  .services-2 .service-panel.service-panel-2 .service-panel-holder {
    padding: 34px 24px;
  }

  /* Button-Zeile und Krankenkassen-Hinweis klebten aneinander */
  .services-2 .more-services p + p {
    margin-top: 20px;
  }
}

@media screen and (max-width: 575.98px) {

  /* Spaltenabstand wieder auf das Bootstrap-Raster,
     damit die Karten bündig mit dem Text sitzen */
  .services-2 .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 20px;
  }

  .services-2 .service-panel.service-panel-2 .service-panel-holder {
    padding: 30px 22px;
  }

  /* Eine Karte pro Zeile: reservierte Titelhöhe unnötig */
  .services-2 .service-content .service-title {
    min-height: 0;
  }

  .services .service-panel .service-panel-holder .service-content .service-title h4 {
    font-size: 21px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  /* Icon-Kreis kleiner (Theme 114px), gleicher Selektor
     wie in custom.css */
  .services .service-panel.service-panel-2 .service-panel-holder .service-content .service-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 22px;
  }

  .services .service-panel.service-panel-2 .service-panel-holder .service-content .service-icon i,
  .services .service-panel.service-panel-2 .service-panel-holder .service-content .service-icon i::before {
    font-size: 38px;
  }

  /* "Alle Leistungen ansehen": volle Breite.
     Theme setzt auf Links in .more-services padding-bottom: 8px,
     das macht den Button unten schmaler als oben. */
  .services .more-services p a.btn {
    width: 100%;
    padding: 14px 24px;
  }

  .services .more-services p {
    font-size: 15px;
    line-height: 1.6;
  }
}


/* ==========================================================
   10. TEAM-KARUSSELL (Startseite)
   ========================================================== */
@media screen and (max-width: 991.98px) {

  /* Pfeile mit Abstand statt margin-right: 50px,
     Tippfläche mindestens 44px */
  .team-carousel .owl-carousel .owl-nav {
    margin-top: 16px;
    gap: 28px;
  }

  .team-carousel .carousel-navs .owl-prev {
    margin-right: 0;
  }

  .team-carousel .owl-nav button.owl-prev,
  .team-carousel .owl-nav button.owl-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  /* Theme: Button absolut positioniert, hängt 30px in die
     nächste Sektion. Mobil normal im Fluss. */
  .team-carousel .action-bar {
    margin-top: 28px;
    padding-bottom: 56px;
    justify-content: center;
  }

  .team-carousel .action-bar .btn {
    position: static;
    right: auto;
    bottom: auto;
    transform: none;
  }
}

@media screen and (max-width: 575.98px) {

  /* Theme: 40px Innenabstand links und rechts. Bei zwei
     Karten nebeneinander blieben für den Namen ~85px */
  .team-standard .team-member .team-content {
    padding: 18px 10px 20px;
  }

  .team-standard .team-member .team-content .team-title h4 {
    font-size: 16px;
    line-height: 1.3;
  }

  .team-carousel .action-bar .btn {
    width: 100%;
  }
}


/* ==========================================================
   11. TEAM-SEITE
   ========================================================== */
@media screen and (max-width: 575.98px) {

  /* Theme: 130px / 110px */
  .team-grid {
    padding-top: 56px;
    padding-bottom: 40px;
  }
}


/* ==========================================================
   12. ABSCHLUSS-CTA
   ========================================================== */
@media screen and (max-width: 575.98px) {

  .closing-cta {
    padding: 48px 0;
  }

  .closing-cta-desc {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  .closing-cta .btn {
    width: 100%;
  }
}


/* ==========================================================
   13. FOOTER
   ========================================================== */
@media screen and (max-width: 991.98px) {

  .footer .footer-top {
    padding-top: 48px;
    padding-bottom: 8px;
  }

  /* Theme: padding-top: 60px pro Widget */
  .footer .footer-widget {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 36px;
  }

  .footer .footer-widget .footer-widget-title h5 {
    margin-bottom: 14px;
  }

  /* Theme: padding 50px, Copyright margin-bottom 40px */
  .footer-copyright {
    padding: 28px 0 32px;
  }

  .footer-copyright .copyright span {
    margin-bottom: 18px;
    font-size: 13px;
  }
}

@media screen and (max-width: 767.98px) {

  /* Theme zentriert den Footer unter 768px. Mit Icons und
     eingerückten Unterpunkten funktioniert das nicht,
     daher linksbündig. */
  .footer .footer-widget {
    text-align: left;
  }
}


/* ==========================================================
   14. FORMULARE (Kontakt / Anmeldung)
   ========================================================== */
@media screen and (max-width: 1199.98px) {

  /* Unter 16px zoomt iOS beim Antippen in die Seite hinein.
     Theme: .form-control { font-size: 14px; } */
  .wrapper input,
  .wrapper select,
  .wrapper textarea,
  .wrapper .form-control {
    font-size: 16px;
  }
}

@media screen and (max-width: 767.98px) {

  .intro-erstgespraech {
    padding: 56px 0 36px;
  }

  .intro-desc,
  .intro-claim {
    font-size: 16px;
  }

  .ablauf {
    padding: 44px 0;
  }

  .ablauf-step {
    padding: 26px 22px;
  }

  .anmeldung-title {
    font-size: 26px;
  }

  .anmeldung-intro {
    margin-bottom: 30px;
  }

  .anmeldeformular fieldset {
    margin-bottom: 30px;
  }

  .anmeldeformular legend {
    font-size: 18px;
  }

  .kk-liste {
    max-height: 240px;
  }
}

@media screen and (max-width: 575.98px) {

  .intro-action {
    flex-direction: column;
  }

  .intro-action .btn,
  .anmeldeformular .btn {
    width: 100%;
  }

  .radio-group {
    gap: 12px 20px;
  }
}


/* ==========================================================
   15. LEISTUNGSSEITEN, ÜBER UNS, TARIFE, JOBS
   ========================================================== */
@media screen and (max-width: 575.98px) {

  .leistung-content {
    padding: 48px 0 32px;
  }

  .leistung-liste {
    margin-top: 30px;
  }

  .leistung-schluss {
    margin-top: 30px;
    padding: 18px 20px;
    font-size: 15px;
  }

  .leistung-sidebar {
    margin-top: 40px;
  }

  .sidebar-box {
    padding: 24px 22px;
  }

  .sidebar-phone {
    font-size: 23px;
  }

  .weitere-leistungen {
    padding: 50px 0 30px;
  }

  .tarif-block {
    margin-top: 34px;
  }

  .tarif-adresse {
    padding: 20px 22px;
  }

  .tarif-stand {
    margin-top: 34px;
  }

  .bewerbung-block {
    margin-top: 34px;
  }
}


/* ==========================================================
   16. 404-SEITE
   ========================================================== */
@media screen and (max-width: 575.98px) {

  .error-404 {
    padding: 64px 0;
  }

  .error-404-action {
    flex-direction: column;
  }

  .error-404-action .btn {
    width: 100%;
  }
}


/* ==========================================================
   17. TOUCH-GERÄTE
   Auf Touch-Geräten bleibt :hover nach dem Antippen
   "hängen". Die Team-Karten würden dann angehoben und
   rot umrandet stehen bleiben.
   ========================================================== */
@media (hover: none) {

  .team-grid .team-member:hover .team-member-holder {
    transform: none;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  }

  .team-grid .team-member:hover .team-member-holder::after {
    clip-path: inset(0 0 calc(100% - 5px) 0);
  }
}