@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700;900&display=swap');

/* Mobile Performance Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

button, a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Ensure minimum touch target size (44x44px recommended by Apple/Google) */
button, .btn, a.nav-link {
    min-height: 44px;
    min-width: 44px;
}

.phone {
    background-image: url(../img/big.png);
    background-repeat: no-repeat;
    height: 489px;
    display: flex;
    width: 866px !important;
    gap: 312px;
}
.title2 {
    font-weight: 800;
    font-size: 20px;
    color: #30498c;
    max-width: 400px;
    text-align: center;
    margin-bottom: 10px !important;
}
.description {
    color: black;
    max-width: 400px;
    text-align: center;
}

/* Feature cards: Abstände wie Referenzbild (60px 4vw 70px, margin-top 100px) */
.feature-cards {
    align-items: stretch;
    flex-wrap: nowrap !important;
    padding: 60px 4vw 70px;
    width: 100%;
    margin: 100px 0 0 0 !important;
    background-color: #F0F0F0;
}
.feature-cards.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    --bs-gutter-x: 0;
}
@media (max-width: 768px) {
    .feature-cards {
        flex-wrap: wrap !important;
        padding-left: 3vw;
        padding-right: 3vw;
    }
}
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-left: 15px;
    padding-right: 15px;
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
}
@media (max-width: 768px) {
    .feature-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}
.feature-card .icons {
    flex-shrink: 0;
    width: 130px !important;
    height: 130px;
    margin-bottom: 20px;
    margin-top: 0;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.feature-card .title2 {
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 10px !important;
    height: 1.5em;
    min-height: 1.5em;
    max-height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5em;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feature-card .description {
    flex: 1;
    min-height: 4.5em;
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    text-align: center;
    line-height: 1.5;
    width: 100%;
}
.screen1 {
    width: 700px;
    margin-left: 10px;
}
.icons {
    width: 130px !important;
    margin-bottom: 20px;
}
/* Hero-Sektion: mehr Rand links */
.container-main {
    gap: 45px !important;
    background-color: #30498c;
    padding: 10px 4vw 35px 10vw;
}
.container-second {
    background-color: white;
    padding-left: 0;
    padding-right: 0;
}
/* Hero-Zeile: wie spooorts.club/web.html */
.hero-content-row {
    align-items: center !important;
    justify-content: space-around !important;
    padding-top: 0;
}
.hero-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    flex: 0 1 auto;
    padding-left: 3vw;
    padding-right: 1vw;
}
.hero-text-col h1,
.hero-text-col p,
.hero-text-col .btn-box {
    text-align: left;
    align-self: flex-start;
}
.hero-text-col h1 {
    margin-top: 25px !important;
    margin-bottom: 24px !important;
}
.hero-window-wrap {
    flex: 0 0 auto;
    align-self: center;
    padding-top: 0;
    padding-right: 2.5vw;
    padding-left: 1vw;
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    max-width: 100%;
}
.window {
    width: auto;
}
/* Hero-Bild Titelseite: gleiche Größe wie spooorts.club (560px / 48vw) */
.container-main .window {
    max-width: min(560px, 48vw);
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
p {
    color: white;
    margin-bottom: 0 !important;
    font-family: "Poppins";
}
.container-main h1,
.container-main h2,
.container-main h3,
.container-main h4,
.container-main h5,
.container-main h6 {
    color: white;
}
a {
    text-decoration: none !important;
    color: white !important;
    font-family: "Poppins";
}
.wrapper {
    overflow: hidden;
}
.Minutenschnelle {
    width: 450px;
    display: flex;
    flex-direction: column;
}
.bg {
    background-image: url(../img/bg.png) !important;
    background-repeat: no-repeat;
    background-size: cover;
    height: fit-content;
    padding-left: 30px !important;
    padding-right: 30px !important;
}
.box {
    padding-block: 110px;
}
.content {
    display: flex;
    align-items: center;
    flex-direction: column;
}
.title {
    color: white;
    font-weight: 700;
    font-size: 40px;
    text-transform: uppercase;
}
.img {
    width: 174px;
    margin-top: 15px;

}
.text {
    display: flex;
    justify-content: space-around;
    gap: 70px;
    font-weight: 800;
    color: white;
    margin-top: 20px;
    font-size: 20px;
    flex-wrap: wrap;
}
.phone-hide {
    display: none;
}
.screen {
    width: 246px;
    height: 528px;
    margin-top: 14px;
    margin-right: 8px;
    margin-left: 15px;
}
.hide {
    display: none;
}
.function {
    width: 279px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 361px;
    margin-top: 63px;
    align-items: center;
}
.name {
    text-transform: uppercase !important;
    font-size: 17px;
    text-align: center;
    font-weight: 700;
}
.descr {
    font-size: 14px;
}
.blur {
    border-radius: 25px 25px 25px 25px;
    height: 130px;
    backdrop-filter: blur(26px);
    border-width: 1px;
    border-color: white;
    border-style: solid;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 31px;
    width: -webkit-fill-available;
}
@media (max-width : 1072px) {

    .bg {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
    .phone {
        background-image: url(../img/middle.png);
        background-repeat: no-repeat;
        height: 417px;
        display: flex;
        width: 737px !important;
        gap: 263px !important;
    }
    .function {
        width: 236px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 304px;
        margin-top: 58px;
    }
    .name {
        text-align: center;
        font-size: 15px;
    }
    .screen {
        width: 204px;
        height: 440px;
        margin-top: 12px;
        margin-right: 15px;
        margin-left: 24px;
    }
    .descr {
        font-size: 12px;
    }
}
@media (max-width : 800px) and (min-width : 490px) {
    .text {
        gap: 18px;
    }

    /* Hero-Bild Titelseite: Tablet – wie spooorts.club */
    .hero-window-wrap {
        width: 100%;
        max-width: 100%;
    }
    .container-main .window {
        max-width: min(400px, 85vw);
        width: auto;
        height: auto;
    }

    .img {
        width: 173px;
    }
    .title {
        font-size: 28px;
        margin-top: 15px;
        margin-bottom: 15px !important;
    }

    .bg {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 10px !important;
        height: fit-content;
    }

    .name {
        text-align: center;
        font-size: 18px;
    }
    .phone {
        display: none !important;
    }
    .phone-hide {
        background-image: url(../img/UseThisPhone.png);
        width: 247px;
        background-repeat: no-repeat;
        height: 489px;
        display: flex;
    }
    .hide {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .box {
        padding-block: 20px;
    }
    .footer {
        flex-wrap: wrap;
    }
    .screen1 {
        width: 75vw;
    }
    .Minutenschnelle {
        width: 75vw;
    }
}
@media (max-width : 490px) and (min-width : 250px) {
    /* Hero-Bild Titelseite: schmales Mobil – wie spooorts.club */
    .hero-window-wrap {
        width: 100%;
    }
    .container-main .window {
        max-width: min(280px, 90vw);
        width: auto;
        height: auto;
    }

    .screen1 {
        width: 70vw;
    }
    .btn-box {
        width: 100% !important;
        margin: 0 !important;
    }
    .box {
        padding-block: 20px;
    }
    .blur {
        padding: 10px;
    }
    .title-minutenschnelle {
        margin-top: 0 !important;
    }
    .phone-hide {
        background-image: url(../img/UseThisPhone.png);
        width: 247px;
        background-repeat: no-repeat;
        height: 489px;
        display: flex;
    }
    .phone {
        display: none !important;
    }
    .hide {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .img {
        width: 107px;
    }
}
@media (max-width : 1072px) and (min-width : 990px) {
    .function-adapt {
        height: 378px !important;
    }
}
@media (max-width : 989px) and (min-width : 822px) {
    .function-adapt {
        height: 379px !important;
    }
}
@media (max-width : 821px) and (min-width : 801px) {
    .function-adapt {
        height: 375px !important;
    }
}

/* --- Mobile polish (hero text + image spacing) --- */
@media (max-width: 576px) {
  .container-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ensure headline/text stay white on small screens */
  .container-main p,
  .container-main h1,
  .container-main h2,
  .container-main h3 {
    color: #ffffff !important;
  }

  /* Hero-Bild Titelseite: zentriert, wie spooorts.club */
  .hero-window-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
  .container-main .window,
  .container-main img.window {
    max-width: min(320px, 92vw) !important;
    width: auto !important;
    height: auto;
    margin: 20px auto 0;
    display: block;
    object-fit: contain;
  }

  /* prevent bootstrap container padding from fighting our layout */
  .navbar .container {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Improve mobile button spacing */
  .btn-box {
    width: 100%;
    padding: 0 16px;
  }
  
  .btn {
    width: 100%;
    max-width: 100%;
    padding: 12px 24px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Better mobile navigation */
  .navbar-toggler {
    padding: 8px 12px;
    font-size: 18px;
  }
  
  /* Optimize images for mobile */
  img {
    loading: lazy;
  }
  
  /* Improve text readability on mobile */
  p, .description {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Better spacing for mobile sections */
  section {
    padding: 20px 16px;
  }
}
