/* iPhone 14 – Web-Klon (Deutsch): Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
  overflow-x: hidden;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
  border: 0;
  outline: 0;
}
button {
  cursor: pointer;
  background: none;
}
.stage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  min-height: 100vh;
  padding: 24px;
}
/* ---------- Gerät ---------- */
.wrap {
  width: 340px;
  height: 700px;
  flex: none;
}
.phone {
  width: 340px;
  height: 700px;
  position: relative;
  transform-origin: top left;
  user-select: none;
}
.body3d {
  width: 100%;
  height: 100%;
  position: relative;
}
.face {
  position: absolute;
  inset: 0;
  border-radius: 52px;
  background: #23242a;
  box-shadow:
    inset 0 0 3px 1px #9aa,
    0 30px 60px #0009;
}
/* Seitentasten */
.side {
  position: absolute;
  width: 5px;
  background: #55565f;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.1s;
}
.side:after {
  content: "";
  position: absolute;
  inset: -6px -14px;
}
.side:active {
  transform: scaleX(0.4);
}
.side.s1 {
  left: -5px;
  top: 110px;
  height: 26px;
}
.side.s2 {
  left: -5px;
  top: 160px;
  height: 50px;
}
.side.s3 {
  left: -5px;
  top: 222px;
  height: 50px;
}
.side.s4 {
  right: -5px;
  top: 180px;
  height: 80px;
}
.screen {
  position: absolute;
  inset: 10px;
  border-radius: 43px;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 20% 10%, #ff7ac6 0, transparent 55%),
    radial-gradient(120% 90% at 90% 30%, #6a5cff 0, transparent 60%),
    radial-gradient(100% 80% at 40% 100%, #00c2ff 0, transparent 60%), #1a1140;
  transition:
    filter 0.3s,
    transform 0.3s;
}
.screen.blurred .wall {
  filter: blur(14px) brightness(0.7);
  transform: scale(1.1);
}
.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
  height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 60;
  pointer-events: none;
}
.notch:after {
  content: "";
  position: absolute;
  right: 30px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #12203a;
}
.notch:before {
  content: "";
  position: absolute;
  left: 44px;
  top: 11px;
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: #1c1c1c;
}
.status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  padding: 10px 16px 0 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  z-index: 55;
  cursor: grab;
}
.status .r {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 10.5px;
}
.bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 10px;
}
.bars i {
  width: 3px;
  background: #fff;
  border-radius: 1px;
}
.bars i:nth-child(1) {
  height: 4px;
}
.bars i:nth-child(2) {
  height: 6px;
}
.bars i:nth-child(3) {
  height: 8px;
}
.bars i:nth-child(4) {
  height: 10px;
  opacity: 0.4;
}
.batt {
  width: 22px;
  height: 11px;
  border: 1px solid #fff9;
  border-radius: 3px;
  padding: 1px;
  position: relative;
}
.batt:after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: #fff9;
  border-radius: 0 1px 1px 0;
}
.batt b {
  display: block;
  height: 100%;
  width: 70%;
  background: currentColor;
  border-radius: 1px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00dc54;
  display: none;
}
.cam-on .dot {
  display: block;
}
.layer {
  position: absolute;
  inset: 0;
  transition:
    transform 0.4s cubic-bezier(0.3, 0.8, 0.3, 1),
    opacity 0.4s;
}
/* Sperrbildschirm */
.lock {
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 30px 40px;
  cursor: grab;
  backdrop-filter: blur(0);
}
.lock.off {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.lock .pad {
  font-size: 18px;
}
.lock .date {
  font-size: 17px;
  margin-top: 6px;
}
.lock .time {
  font-size: 82px;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1;
}
.lock .foot {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.round {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0006;
  backdrop-filter: blur(10px);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.round.on {
  background: #fff;
}
.lock .hint {
  position: absolute;
  bottom: 22px;
  font-size: 11px;
  opacity: 0.8;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
    transform: translateY(-4px);
  }
}
/* Home */
.home {
  padding: 54px 18px 0;
  display: flex;
  flex-direction: column;
}
.home.off {
  transform: scale(1.3);
  opacity: 0;
  pointer-events: none;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 0;
  align-content: start;
  flex: 1;
}
.widget {
  grid-column: span 4;
  margin: 0 6px;
  border-radius: 22px;
  background: #fffd;
  color: #000;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 92px;
}
.widget .wd {
  color: #e0383e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.widget .wn {
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}
.widget .wt {
  font-size: 12px;
  opacity: 0.6;
  text-align: right;
}
.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  cursor: pointer;
  position: relative;
}
.ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 10px #0004;
  transition: transform 0.15s;
}
.app:active .ico {
  transform: scale(0.88);
  filter: brightness(0.8);
}
.dock {
  margin: 0 -6px 22px;
  padding: 14px 8px;
  border-radius: 30px;
  background: #fff3;
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.dock .app > span {
  display: none;
}
/* App-Fenster */
.appwin {
  z-index: 40;
  background: #000;
  display: flex;
  flex-direction: column;
  transform: scale(0.2);
  opacity: 0;
  pointer-events: none;
  border-radius: 43px;
  overflow: hidden;
}
.appwin.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.appwin.light {
  background: #f2f2f7;
  color: #000;
}
.ahead {
  padding: 44px 18px 8px;
  font-size: 26px;
  font-weight: 700;
  flex: none;
}
.abody {
  flex: 1;
  position: relative;
  overflow: auto;
  padding: 0 16px 34px;
}
.abody::-webkit-scrollbar {
  display: none;
}
.homebar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 26px;
  z-index: 70;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.homebar:before {
  content: "";
  width: 120px;
  height: 5px;
  border-radius: 5px;
  background: #fff;
  mix-blend-mode: difference;
}
.field {
  width: 100%;
  background: #7774;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
}
.row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.pill {
  background: #0a84ff;
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.msg {
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
  padding: 14px;
  line-height: 1.5;
}
/* Kamera */
.cam {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000;
}
.cam .view {
  flex: 1;
  position: relative;
  background: #111;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cam video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cam .view:before,
.cam .view:after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.cam .view:before {
  left: 33.3%;
  right: 33.3%;
  top: 0;
  bottom: 0;
  border: solid #fff4;
  border-width: 0 1px;
}
.cam .view:after {
  top: 33.3%;
  bottom: 33.3%;
  left: 0;
  right: 0;
  border: solid #fff4;
  border-width: 1px 0;
}
.cam .view .msg {
  position: absolute;
  z-index: 2;
}
.shot {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}
.shot.go {
  animation: shot 0.3s;
}
@keyframes shot {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.modes {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  text-transform: uppercase;
  padding: 10px 0;
}
.modes b {
  color: #ffd60a;
}
.cam .ctl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 28px 40px;
}
.thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #222 center/cover;
}
.shutter {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #000;
  box-shadow: 0 0 0 3px #fff;
}
/* Taschenlampe */
.torch {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #111;
  transition: 0.3s;
}
.torch.on {
  background: #fff;
  color: #000;
}
.torch button {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #333;
  font-size: 50px;
  transition: 0.3s;
}
.torch.on button {
  background: #ffd60a;
  box-shadow: 0 0 80px 30px #fff;
}
/* Wetter */
.wx {
  text-align: center;
}
.wx .city {
  font-size: 26px;
  margin-top: 6px;
}
.wx .temp {
  font-size: 78px;
  font-weight: 200;
  line-height: 1.1;
}
.wx .big {
  font-size: 50px;
}
.wx .sub {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 14px;
}
.card {
  background: #fff2;
  border-radius: 16px;
  padding: 6px 14px;
  text-align: left;
}
.light .card {
  background: #fff;
}
.day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid #fff2;
}
.day:last-child {
  border: 0;
}
.day span:first-child {
  width: 36px;
}
.day em {
  font-style: normal;
  opacity: 0.6;
  margin-right: 8px;
}
/* Karten */
.map {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0 12px 30px;
}
.map iframe {
  flex: 1;
  border: 0;
  border-radius: 16px;
  background: #ddd;
  width: 100%;
}
/* Musik */
.mus {
  text-align: center;
}
.cover {
  width: 220px;
  height: 220px;
  margin: 6px auto 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  box-shadow: 0 20px 40px #0008;
  transition: transform 0.3s;
}
.cover.play {
  transform: scale(1.05);
}
.mus h3 {
  font-size: 20px;
}
.mus p {
  opacity: 0.6;
  font-size: 14px;
  margin-bottom: 14px;
}
.prog {
  height: 4px;
  background: #fff3;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 18px;
}
.prog i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.mctl {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 34px;
  margin-bottom: 16px;
}
.list div {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px;
  border-top: 1px solid #fff2;
  font-size: 14px;
  cursor: pointer;
}
.list .cur {
  color: #ff375f;
}
/* YouTube */
/* YouTube */
.yt .frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
/* Rechner */
/* Rechner */
.calc {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 14px 40px;
}
.calc .disp {
  text-align: right;
  font-size: 56px;
  font-weight: 200;
  padding: 0 8px 10px;
  overflow: hidden;
  white-space: nowrap;
}
.keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.keys button {
  height: 62px;
  border-radius: 31px;
  background: #333;
  font-size: 24px;
}
.keys .op {
  background: #ff9f0a;
}
.keys .fn {
  background: #a5a5a5;
  color: #000;
}
.keys .w2 {
  grid-column: span 2;
}
/* Notizen */
.notes textarea {
  width: 100%;
  height: 440px;
  background: #fff;
  color: #000;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  resize: none;
}
/* Kontrollzentrum */
.cc {
  z-index: 65;
  background: #0005;
  backdrop-filter: blur(26px);
  padding: 60px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-content: start;
}
.cc.off {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.tile {
  background: #0007;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  aspect-ratio: 1;
  cursor: pointer;
  transition: 0.2s;
}
.tile.on {
  background: #fff;
  color: #000;
}
.grp {
  grid-column: span 2;
  grid-row: span 2;
  background: #0007;
  border-radius: 22px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.grp .tile {
  border-radius: 50%;
  background: #fff3;
  font-size: 18px;
}
.grp .tile.on {
  background: #0a84ff;
  color: #fff;
}
.grp .tile.fl.on {
  background: #ff9f0a;
}
.grp .tile.md.on {
  background: #30d158;
}
.grp.m {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 4px;
  font-size: 13px;
}
.grp.m small {
  opacity: 0.6;
}
.grp.m div {
  font-size: 24px;
  display: flex;
  justify-content: space-around;
  margin-top: 8px;
}
.sl {
  grid-column: span 2;
  background: #0007;
  border-radius: 20px;
  padding: 12px;
  font-size: 12px;
}
.sl input {
  width: 100%;
  accent-color: #fff;
  margin-top: 8px;
}
/* Helligkeit (Abdunkelung) */
.dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
}
/* Hinweisdialog */
.alert {
  position: absolute;
  inset: 0;
  z-index: 75;
  background: #0006;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert div {
  background: #f2f2f7;
  color: #000;
  border-radius: 14px;
  width: 230px;
  text-align: center;
  padding-top: 16px;
  font-size: 13px;
}
.alert b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  padding: 0 12px;
}
.alert button {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  border-top: 1px solid #0002;
  color: #0a84ff;
  font-weight: 600;
}
/* Ruhezustand, Lautstärkeanzeige und Hinweis-Einblendung */
.sleep {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  cursor: pointer;
}
.screen.asleep .sleep {
  opacity: 1;
  pointer-events: auto;
}
.hud {
  position: absolute;
  left: 14px;
  top: 150px;
  width: 10px;
  height: 120px;
  border-radius: 6px;
  background: #0008;
  z-index: 85;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}
.hud.show {
  opacity: 1;
}
.hud i {
  display: block;
  width: 100%;
  background: #fff;
  transition: height 0.15s;
}
.toast {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translate(-50%, -90px);
  background: #000c;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  z-index: 85;
  transition: transform 0.3s;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show {
  transform: translate(-50%, 0);
}
/* Code-Sperre */
.pin {
  z-index: 52;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 84px 30px 40px;
  backdrop-filter: blur(24px);
  background: #0005;
}
.pin.off {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
}
.pin h4 {
  font-size: 18px;
  font-weight: 500;
}
.dots {
  display: flex;
  gap: 18px;
  margin: 18px 0 10px;
}
.dots i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #fff;
}
.dots i.f {
  background: #fff;
}
.dots.bad {
  animation: bad 0.4s;
}
@keyframes bad {
  25% {
    transform: translateX(-12px);
  }
  75% {
    transform: translateX(12px);
  }
}
.hintp {
  font-size: 12px;
  opacity: 0.8;
  height: 16px;
  margin-bottom: 16px;
}
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  gap: 14px 20px;
}
.keypad button {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff3;
  font-size: 28px;
}
.keypad button:active {
  background: #fff8;
}
.keypad .txt {
  background: none;
  font-size: 12px;
}
/* Symbole ziehen */
.app {
  touch-action: none;
}
.app.drag {
  z-index: 99;
}
.app.drag .ico {
  transform: scale(1.15);
  box-shadow: 0 12px 26px #000a;
}
.app.over .ico {
  outline: 3px solid #fff;
}
/* Einstellungen: Zeilen, Felder, Schalter, Hintergrundbilder */
.srow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  font-size: 15px;
  border-bottom: 1px solid #0001;
}
.srow:last-child {
  border: 0;
}
.srow input[type="range"] {
  flex: 1;
  max-width: 150px;
}
.sfield {
  background: #7772;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 14px;
  width: 120px;
  text-align: right;
}
.sw {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #ccc;
  position: relative;
  flex: none;
  transition: 0.2s;
}
.sw:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}
.sw.on {
  background: #34c759;
}
.sw.on:after {
  left: 22px;
}
.walls {
  display: flex;
  gap: 10px;
  padding: 12px 0;
}
.walls button {
  flex: 1;
  height: 80px;
  border-radius: 10px;
  border: 3px solid transparent;
}
.walls .on {
  border-color: #0a84ff;
}
/* YouTube: Steuerung und Suchergebnisse */
.yctl {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}
.res > div:not(.msg) {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #fff2;
  font-size: 13px;
  cursor: pointer;
  align-items: center;
}
.res img {
  width: 96px;
  border-radius: 8px;
  flex: none;
}
/* Statusleiste über hellen Apps */
.screen.lt:not(.blurred) .status {
  color: #000;
}
.screen.lt:not(.blurred) .bars i {
  background: #000;
}
.screen.lt:not(.blurred) .batt {
  border-color: #0009;
}
/* Home-Seiten und Löschmodus (wackelnde Symbole) */
.pagesw {
  flex: 1;
  margin: 0 -18px;
  min-height: 0;
}
.pages {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.pages.nt {
  transition: none;
}
.pages .grid {
  flex: 0 0 100%;
  padding: 0 18px;
}
.pdots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 8px;
}
.pdots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff6;
  cursor: pointer;
}
.pdots i.on {
  background: #fff;
}
.done {
  position: absolute;
  top: 32px;
  right: 16px;
  z-index: 5;
  display: none;
  background: #fff4;
  padding: 5px 12px;
  font-size: 12px;
}
.home.jig .done {
  display: block;
}
.home.jig .app:not(.drag) {
  animation: jig 0.22s infinite alternate;
}
.home.jig .app:nth-child(even):not(.drag) {
  animation-direction: alternate-reverse;
}
@keyframes jig {
  from {
    transform: rotate(-2.5deg);
  }
  to {
    transform: rotate(2.5deg);
  }
}
.del {
  position: absolute;
  top: -7px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5e5ea;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.home.jig .del {
  display: flex;
}
/* Telefon */
.tel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 50px;
  gap: 16px;
}
.tel .num {
  font-size: 30px;
  height: 40px;
  letter-spacing: 1px;
}
.trow {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  gap: 20px;
  align-items: center;
  justify-items: center;
}
.call,
.end {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #30d158;
  font-size: 28px;
}
.bk {
  font-size: 24px;
}
.end {
  background: #ff3b30;
  transform: rotate(135deg);
}
.incall {
  position: absolute;
  inset: 0;
  background: #1c1c1e;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 110px 20px 70px;
}
.incall.on {
  display: flex;
}
.incall h3 {
  font-size: 28px;
  font-weight: 400;
}
.incall p {
  opacity: 0.7;
  margin-top: 8px;
  font-size: 14px;
}
.incall .end {
  margin-top: auto;
}
/* Fehlerseite „Kein WLAN“ */
.nonet {
  text-align: center;
  padding: 110px 24px;
}
.nonet div {
  font-size: 60px;
}
.nonet b {
  font-size: 22px;
  display: block;
  margin: 10px 0;
}
.nonet p {
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.5;
}
/* Browser */
.web {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 40px 0 26px;
}
.web iframe {
  flex: 1;
  border: 0;
  background: #fff;
  width: 100%;
}
.web .row {
  margin: 8px 10px 0;
  gap: 6px;
}
.web .pill {
  padding: 9px 11px;
}
/* Dunkelmodus und Graustufen */
.screen.grey {
  filter: grayscale(1);
}
.screen.dark .appwin.light {
  background: #000;
  color: #fff;
}
.screen.dark .light .card {
  background: #1c1c1e;
}
.screen.dark .notes textarea {
  background: #1c1c1e;
  color: #fff;
}
.screen.dark .sw {
  background: #39393d;
}
.tile.wide {
  grid-column: span 2;
  aspect-ratio: auto;
  height: 60px;
  font-size: 13px;
  gap: 8px;
}
/* Einstellungen im Listenstil */
.set2 {
  padding: 44px 16px 70px;
}
.set2 h2 {
  text-align: center;
  font-size: 17px;
  margin-bottom: 16px;
}
.set2 .card {
  padding: 0 14px;
  border-radius: 22px;
  margin-bottom: 22px;
}
.set2 .srow {
  min-height: 50px;
  border-bottom: 0;
  position: relative;
}
.set2 .srow + .srow:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 1px solid #8884;
}
.set2.main .srow + .srow:before {
  left: 42px;
}
.si {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-style: normal;
  flex: none;
  color: #fff;
}
.sl2 {
  flex: 1;
  font-size: 16px;
}
.sv {
  opacity: 0.55;
  font-size: 15px;
}
.srow em,
.prof em {
  font-style: normal;
  opacity: 0.4;
  font-size: 20px;
}
.srow[data-go] {
  cursor: pointer;
}
.set2 .prof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}
.av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8e8e93, #48484a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  flex: none;
}
.prof b {
  font-size: 19px;
  display: block;
}
.prof small {
  opacity: 0.6;
  font-size: 12px;
}
.prof > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.sback {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 15px;
}
.sback button {
  color: #0a84ff;
  flex: 1;
  text-align: left;
}
.sback b {
  font-size: 17px;
  white-space: nowrap;
}
.sback span {
  flex: 1;
}
.ssearch {
  position: sticky;
  bottom: 34px;
  margin: 0 6px;
  background: #d1d1d6e6;
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  font-size: 15px;
}
.ssearch input {
  background: none;
  flex: 1;
  min-width: 0;
}
.screen.dark .ssearch {
  background: #3a3a3ce6;
}

/* Kamera: Modi und Videoaufnahme */
.modes button {
  font-size: 11px;
  text-transform: uppercase;
  color: #fff;
}
.modes button.on {
  color: #ffd60a;
  font-weight: 700;
}
.cam.vid .shutter {
  background: #ff3b30;
}
.cam.recing .shutter {
  border-radius: 16px;
  transform: scale(0.6);
}
.cam.recing .modes {
  visibility: hidden;
}
.rec {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff3b30;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
  z-index: 2;
  display: none;
}
.cam.recing .rec {
  display: block;
}
.thumb {
  overflow: hidden;
  padding: 0;
}
/* Fotos */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 0 -12px;
}
.pgrid button {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: #222;
  padding: 0;
}
.pgrid img,
.pgrid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.pgrid i {
  position: absolute;
  left: 5px;
  bottom: 4px;
  font-style: normal;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 0 4px #000;
}
.pview img,
.pview video {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
  display: block;
}
.sback .pdel {
  color: #ff3b30;
  text-align: right;
}

/* GitHub-Link unter dem Gerät und in den Einstellungen */
.stage {
  flex-direction: column;
  gap: 12px;
}
.gh {
  color: #8b949e;
  font-size: 13px;
  text-decoration: none;
}
.gh:hover {
  color: #fff;
  text-decoration: underline;
}
.ghl {
  color: #0a84ff;
  opacity: 1;
  text-decoration: none;
}

/* Der Bildschirm selbst darf nie scrollen (sonst verrutscht der Inhalt z. B. beim Fokus auf ein Eingabefeld) */
.screen {
  overflow: clip;
}
