/* Jolltau – App-Simulator */
.section-sim { border-top: 1px solid var(--line); background: radial-gradient(ellipse 70% 60% at 75% 45%, rgba(220, 199, 161, .07), transparent 70%), var(--bg); }
.sim-grid {
  display: grid; grid-template-columns: 1fr minmax(300px, 380px); column-gap: clamp(32px, 6vw, 96px); row-gap: 28px;
  grid-template-areas: "intro phone" "side phone"; align-items: start;
}
.sim-intro { grid-area: intro; align-self: end; }
.sim-intro h2.display { margin-bottom: 22px; }
.sim-intro > p { color: var(--muted); font-size: 18px; max-width: 520px; }
.phone-wrap { grid-area: phone; }
.sim-side { grid-area: side; max-width: 520px; }

.sim-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sim-jump button, .seg button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: transparent;
  border: 1px solid rgba(246, 241, 231, .25); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.sim-jump button:hover, .seg button:hover { border-color: var(--gold); }
.sim-jump button[aria-current="true"] { border-color: var(--gold); color: var(--gold); }

.sim-panel { border-top: 1px solid var(--line); padding-top: 22px; }
.sim-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #141210; }
.sim-hint { color: var(--muted); font-size: 15px; margin: 16px 0 0; }
.sim-note { margin: 26px 0 0; font-size: 13px; color: #8d877d; }
.btn-small { min-height: 40px; padding: 0 20px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Telefon ---------- */
.phone {
  --sand: #dcc7a1; --cream: #f3e9d2; --panel: #0d0d0f; --ink: #24201a;
  position: relative; width: min(340px, 100%); aspect-ratio: 340 / 716; margin: 0 auto;
  padding: 10px; border-radius: 54px;
  background: linear-gradient(150deg, #e3cfa8 0%, #8b7656 28%, #d8c29a 52%, #6f5e44 78%, #c9b28a 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6) inset, 0 0 60px rgba(220, 199, 161, .08);
  color: #fff; font-size: 13px; line-height: 1.35; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.phone noscript img { border-radius: 44px; height: 100%; object-fit: cover; }
.ph {
  position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #000;
  display: flex; flex-direction: column; box-shadow: 0 0 0 3px #0a0a0a;
}
.ph.alarm::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 4px #e0913a; animation: ph-alarm 1s ease-in-out infinite; }
@keyframes ph-alarm { 50% { box-shadow: inset 0 0 0 4px rgba(224, 145, 58, .15); } }

.ph-status { flex: none; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 0 32px; font-size: 14px; font-weight: 600; position: relative; }
.ph-island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; box-shadow: 0 0 0 1px #1b1b1b; }
.ph-icons { display: flex; gap: 5px; align-items: center; }
.ph-icons svg { height: 11px; width: auto; fill: #fff; }

.ph-body { flex: 1; min-height: 0; position: relative; }
.ph-view { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 14px 16px; scrollbar-width: none; }
.ph-view::-webkit-scrollbar { display: none; }
.ph-view[hidden] { display: none; }
.ph-view.enter { animation: ph-in .22s ease-out; }
@keyframes ph-in { from { opacity: 0; transform: translateX(10px); } }

.ph-head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-bottom: 8px; }
.ph-title { font-size: 19px; font-weight: 700; }
.ph-logo { width: 30px; height: 26px; color: var(--sand); flex: none; }
.ph-link { font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: none; border: 0; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ph-link svg { width: 15px; height: 15px; stroke: currentColor; }
.ph-back { color: #fff; }
.ph-back svg { width: 12px; }
.ph-gold { color: var(--sand); }

.ph-demo { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(220, 199, 161, .6); border-radius: 12px; padding: 8px 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--sand); margin-bottom: 10px; }
.ph-demo i { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); animation: ph-pulse 2s ease-in-out infinite; }
@keyframes ph-pulse { 50% { opacity: .3; } }

/* Kacheln */
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  min-height: 90px; padding: 10px 10px 9px; border-radius: 14px; text-align: left;
  background: linear-gradient(180deg, #121214, #0b0b0c); border: 1px solid rgba(220, 199, 161, .5);
  color: #fff; font: inherit; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s;
}
.tile:hover { border-color: var(--sand); }
.tile-top { display: flex; justify-content: space-between; align-items: center; color: var(--sand); }
.tile-top svg { width: 16px; height: 16px; stroke: currentColor; }
.tile-grip { opacity: 0; transition: opacity .15s; }
.tile-name { font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: rgba(255, 255, 255, .82); line-height: 1.2; }
.tile-val { white-space: nowrap; }
.tile-val b { font-size: 23px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tile-val small { font-size: 11px; margin-left: 3px; color: rgba(255, 255, 255, .85); }
.tile-val.gps { font-size: 12px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: normal; }
.arranging .tile { animation: ph-wiggle .35s ease-in-out infinite alternate; }
.arranging .tile:nth-child(2n) { animation-delay: -.17s; }
.arranging-static .tile-grip { opacity: 1; }
.tile.picked { border-color: var(--sand); box-shadow: 0 0 0 2px var(--sand), 0 0 22px rgba(220, 199, 161, .55); animation: none; transform: scale(1.03); }
@keyframes ph-wiggle { from { transform: rotate(-.7deg); } to { transform: rotate(.7deg); } }

.ph-zoom {
  position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, .94); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px; cursor: pointer; animation: ph-fade .2s ease-out;
}
.ph-zoom[hidden] { display: none; }
.ph-zoom .z-name { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.ph-zoom .z-val { font-size: 76px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ph-zoom .z-val.gps { font-size: 26px; line-height: 1.4; }
.ph-zoom .z-unit { font-size: 22px; color: rgba(255, 255, 255, .8); margin-top: 10px; }
.ph-zoom .z-hint { position: absolute; bottom: 22px; font-size: 12px; color: rgba(255, 255, 255, .45); }
@keyframes ph-fade { from { opacity: 0; } }

/* Fahrten */
.trip-card {
  display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; width: 100%;
  background: var(--panel); border: 1px solid #2a2722; border-radius: 14px; padding: 10px; margin-bottom: 9px;
  color: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s;
}
.trip-card:hover { border-color: var(--sand); }
.trip-thumb { width: 62px; height: 62px; border-radius: 10px; background: #15161a; }
.trip-card strong { display: block; font-size: 14px; }
.trip-card span { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); }
.trip-card .trip-kpi { color: var(--sand); font-weight: 600; margin-top: 3px; }
.ph-sec { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: rgba(255, 255, 255, .5); margin: 14px 2px 8px; }

.report-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 700; letter-spacing: .06em; margin: 2px 0 8px; }
.report-map { position: relative; border-radius: 14px; overflow: hidden; background: #101318; border: 1px solid #23262c; }
.report-map svg { display: block; width: 100%; height: auto; }
.report-map .track { fill: none; stroke: var(--sand); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease-out; }
.report-map.drawn .track { stroke-dashoffset: 0; }
.replay-bar { display: flex; align-items: center; gap: 10px; margin: 9px 0 4px; }
.replay-btn { font: inherit; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--sand); border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.replay-btn svg { width: 10px; height: 10px; fill: currentColor; }
.replay-info { font-size: 12px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #24221e; border: 1px solid #24221e; border-radius: 12px; overflow: hidden; margin-top: 8px; }
.stats div { background: var(--panel); padding: 8px 10px; }
.stats dt { font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.stats dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.speed-chart { margin-top: 10px; background: var(--panel); border: 1px solid #24221e; border-radius: 12px; padding: 8px 10px 6px; }
.speed-chart p { margin: 0 0 4px; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .5); display: flex; justify-content: space-between; }
.speed-chart svg { display: block; width: 100%; height: 64px; }

/* Listen (Skipper / Einstellungen) */
.ph-card { background: var(--panel); border: 1px solid #24221e; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.ph-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; background: none; border: 0; border-bottom: 1px solid #1d1c19; color: #fff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.ph-row:last-child { border-bottom: 0; }
.ph-row > svg { width: 18px; height: 18px; stroke: var(--sand); flex: none; }
.ph-row .r-main { flex: 1; min-width: 0; }
.ph-row .r-sub { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.ph-row .r-val { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.ph-row .chev { width: 8px; height: 13px; stroke: rgba(255, 255, 255, .4); }
.ph-row.static { cursor: default; }
.boat-card { display: flex; align-items: center; gap: 14px; padding: 14px; }
.boat-card .b-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(220, 199, 161, .12); display: grid; place-items: center; }
.boat-card .b-ic svg { width: 26px; height: 22px; color: var(--sand); }
.boat-card strong { display: block; font-size: 16px; }
.boat-card span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.ok-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8fd18a; margin-right: 5px; vertical-align: 1px; }
.ph-seg { display: inline-flex; background: #1a1916; border-radius: 9px; padding: 2px; }
.ph-seg button { font: inherit; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); background: none; border: 0; border-radius: 7px; padding: 5px 10px; cursor: pointer; }
.ph-seg button[aria-pressed="true"] { background: var(--sand); color: var(--ink); }
.ph-switch { width: 42px; height: 25px; border-radius: 999px; background: var(--sand); position: relative; flex: none; }
.ph-switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; }

/* Ankerwache */
.aw-card { background: var(--panel); border: 1px solid #24221e; border-radius: 14px; padding: 10px 12px 12px; text-align: center; }
.aw-card .aw-src { font-size: 13px; font-weight: 700; }
.aw-card .aw-sub { font-size: 11px; color: rgba(255, 255, 255, .6); }
.aw-dial { display: block; width: 100%; max-width: 230px; margin: 4px auto 0; overflow: visible; }
.aw-radius { color: var(--sand); font-weight: 700; font-size: 13px; margin-top: 2px; }
.aw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 10px 0 8px; text-align: center; }
.aw-stats span { display: block; font-size: 10px; color: rgba(255, 255, 255, .55); }
.aw-stats b { font-size: 15px; font-variant-numeric: tabular-nums; }
.aw-slider { display: grid; gap: 4px; margin: 4px 0 10px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.aw-slider input { width: 100%; accent-color: #dcc7a1; }
.aw-alert { background: #5a3412; border: 1px solid #b4692a; border-radius: 12px; padding: 9px 10px; text-align: center; font-size: 12.5px; margin-bottom: 9px; }
.aw-alert[hidden] { display: none; }
.aw-alert button { display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 12.5px; color: #fff; background: rgba(0, 0, 0, .35); border: 0; border-radius: 9px; padding: 7px; cursor: pointer; }
.aw-main { width: 100%; font: inherit; font-size: 14px; font-weight: 700; border: 0; border-radius: 12px; padding: 12px; cursor: pointer; background: var(--sand); color: var(--ink); }
.aw-main.stop { background: var(--cream); }

/* Tab-Leiste */
.ph-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 10px 12px; height: 58px; border-radius: 22px; background: var(--cream); box-shadow: 0 -6px 20px rgba(0, 0, 0, .6); }
.ph-tabs button { font: inherit; font-size: 9.5px; font-weight: 500; color: #4a4338; background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; position: relative; }
.ph-tabs svg { width: 20px; height: 20px; stroke: currentColor; }
.ph-tabs button[aria-current="page"] { color: #15120d; font-weight: 700; }
.ph-tabs button[aria-current="page"]::after { content: ""; position: absolute; bottom: 7px; width: 18px; height: 2px; border-radius: 2px; background: #15120d; }

.ph-toast { position: absolute; left: 50%; bottom: 82px; transform: translateX(-50%); z-index: 6; background: rgba(243, 233, 210, .96); color: var(--ink); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px; white-space: nowrap; animation: ph-fade .2s ease-out; }
.ph-toast[hidden] { display: none; }

.phone button:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
.ph-tabs button:focus-visible { outline-color: var(--ink); outline-offset: -4px; border-radius: 12px; }

@media (max-width: 900px) {
  .sim-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "phone" "side"; }
  .sim-intro { align-self: start; }
  .sim-side { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .arranging .tile, .ph-demo i, .ph.alarm::after { animation: none; }
  .report-map .track { transition: none; }
}
