/* Rahmen der Demo: Desktop zeigt ein iPhone, Handy zeigt die App im Vollbild. */
* { -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #0E1116;
  background: #F5F6F8;
}
sc-if, sc-for, x-dc, helmet { display: contents; }
#screen input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Handy: Vollbild ---------- */
.info, .statusbar, .homebar { display: none; }
.stage, .phone-wrap, .phone, .phone-screen { height: 100%; }
.screen {
  position: fixed;
  inset: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: #F5F6F8;
  overflow: hidden;
  box-sizing: border-box;
}
/* Die Design-Screens sind auf 390 x 844 gebaut: am Handy füllen sie den ganzen Bildschirm. */
@media (max-width: 599px) {
  .screen [style*="width: 390px"] { width: 100% !important; }
  .screen [style*="height: 844px"] { height: 100% !important; }
  .screen > div { height: 100%; }
  .screen .gg-page { width: 100%; height: 100%; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  max-width: min(340px, calc(100% - 40px));
  box-sizing: border-box;
  background: #0E1116;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  padding: 12px 16px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
  text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Desktop und Tablet: iPhone-Rahmen ---------- */
@media (min-width: 600px) {
  body { background: #E4E7EB; }
  .stage {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 24px;
    box-sizing: border-box;
  }
  .phone-wrap { height: auto; flex-shrink: 0; }
  .phone {
    --s: 1;
    width: 418px;
    height: 946px;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 66px;
    background: #111214;
    box-shadow: 0 0 0 2px #2A2C30 inset, 0 30px 60px rgba(14, 17, 22, .18);
    position: relative;
    transform: scale(var(--s));
    transform-origin: center center;
    margin: calc((var(--s) - 1) * 473px) calc((var(--s) - 1) * 209px);
  }
  .phone::before, .phone::after {
    content: '';
    position: absolute;
    background: #2A2C30;
    border-radius: 2px;
    width: 4px;
  }
  .phone::before { left: -4px; top: 190px; height: 60px; box-shadow: 0 80px 0 #2A2C30; }
  .phone::after { right: -4px; top: 250px; height: 96px; }
  .phone-screen {
    position: relative;
    width: 390px;
    height: 918px;
    border-radius: 52px;
    overflow: hidden;
    background: #F5F6F8;
    isolation: isolate;
  }
  .statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 30px 0 44px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    color: #0E1116;
    position: relative;
    z-index: 2;
  }
  .statusbar svg { fill: currentColor; display: block; }
  .sb-icons { display: flex; gap: 6px; align-items: center; }
  .island {
    position: absolute;
    left: 50%;
    top: 11px;
    width: 122px;
    height: 35px;
    margin-left: -61px;
    border-radius: 20px;
    background: #000;
  }
  .screen {
    position: relative;
    inset: auto;
    padding: 0;
    width: 390px;
    height: 844px;
  }
  .homebar {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 134px;
    height: 5px;
    margin-left: -67px;
    border-radius: 3px;
    background: #0E1116;
    z-index: 3;
    pointer-events: none;
  }
  .toast { position: absolute; bottom: 110px; }

  .info { display: block; width: 300px; flex-shrink: 0; }
  .info-kicker { font-size: 14px; font-weight: 600; color: #0F7A3D; }
  .info h1 { margin: 4px 0 12px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
  .info p { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: #5F6B7A; }
  .info-label { font-size: 13px; font-weight: 600; color: #5F6B7A; margin-bottom: 8px; }
  .jumps { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
  .jumps button {
    appearance: none;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    color: #0E1116;
    background: #FFFFFF;
    border: 1px solid #DDE1E6;
    border-radius: 12px;
    min-height: 44px;
    padding: 0 14px;
    cursor: pointer;
  }
  .jumps button:hover { border-color: #0E1116; }
  .jumps button:focus-visible { outline: 3px solid #0F7A3D; outline-offset: 2px; }
  .info .info-foot { font-size: 13px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .info { display: none; }
}
