/* ---------------- GLOBAL: Apple Style ---------------- */

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #111;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.55;
}

a {
    color: #0071E3; /* Apple Blau */
    text-decoration: none;
}

/* ---------------- HEADER ---------------- */

header {
    padding: 40px 50px 10px 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

header img {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    margin-bottom: 15px;
    opacity: 0.95;
}

header p {
    font-size: 20px;
    color: #333;
    margin: 5px 0 0 0;
}

/* ---------------- MAIN GRID (Startseite) ---------------- */

main {
    padding: 30px 50px 70px 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
}

/* ---------------- APP CARDS ---------------- */

.app {
    width: 320px;
    border-radius: 22px;
    border: 1px solid #e5e5e5;
    padding: 25px;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: #fff;
}

.app-icon {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.app-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.app-desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

/* ---------------- BUTTONS ---------------- */

.app-button {
    display: inline-block;
    background: #0071E3;
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    margin-top: auto;
    width: fit-content;
}

/* ---------------- FOOTER ---------------- */

footer {
    padding: 40px 50px 60px 50px;
    font-size: 14px;
    color: #333;
    text-align: left;
}

footer a {
    color: #0071E3;
}

/* ---------------- QR CODE (Universal) ---------------- */

.qr {
    width: 180px;
    height: auto;
    image-rendering: pixelated;
}

/* ---------------- PRODUCT PAGE HEADER LAYOUT ---------------- */

.header-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

/* ---------------- STORE BADGES (Startseite / App Cards) ---------------- */
/* Robust: greift auch dann, wenn die <img>-Klassen im HTML fehlen */

.store-badges{
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    justify-items: center;
    align-items: center;
    max-width: 100%;
}

.store-badges a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

/* Wichtig: nicht auf eine bestimmte Klasse angewiesen */
.store-badges img{
    height: 44px !important;
    width: auto !important;
    max-width: 180px;
    display: block;
    object-fit: contain;
}

/* Microsoft wirkt oft “zu groß” wegen engem Zuschnitt */
.store-badges img.badge-ms,
.store-badges .badge-ms{
    height: 36px !important;
}

.platform-line{
  font-size: 14px;
  color: #444;
  margin: 8px 0 14px 0;
  text-align: center;
}

.platform-mini{
  margin-top: 10px;
  font-size: 13px;
  color: #555;
  text-align: center;
}

/* ---- Product page content blocks ---- */
/* Wichtig: kein "margin: 0 auto" -> sonst wirkt der Block im flex-main zentriert */
.page-wrap{
  width: 100%;
  max-width: 1400px;
  margin: 0;           /* statt 0 auto */
  padding: 0;          /* main hat bereits 50px padding links/rechts */
  text-align: left;    /* falls irgendwo global zentriert wird */
}

.block{ margin: 26px 0; }
.block h2{ font-size: 22px; margin: 0 0 10px 0; }
.block p{ line-height: 1.55; }

.kv{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.kv div{ padding: 12px 14px; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; background: rgba(255,255,255,.55); }

/* Responsive gallery: adapts to window width */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
}

.gallery figure{ margin: 0; }
.gallery img{ width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(0,0,0,.08); display: block; }
.gallery figcaption{ font-size: 13px; color: #555; margin-top: 6px; }

.faq details{ border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 10px 12px; background: rgba(255,255,255,.55); }
.faq details + details{ margin-top: 10px; }
.faq summary{ cursor: pointer; font-weight: 600; }

.related a{ display:inline-block; margin-right: 14px; }
.note{ font-size: 14px; color:#444; }

