
/* ---------------------------------------------------------------
   Geführte PWA-Installation für Die Fallkartei
---------------------------------------------------------------- */
html.install-guide-open,
html.install-guide-open body {
  overflow: hidden;
}

body.install-guide-pending #app {
  visibility: hidden;
}

.install-guide[aria-hidden="true"] {
  display: none;
}

.install-guide {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  color: #f5f7fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

.install-guide-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(49, 130, 246, .22), transparent 38%),
    rgba(5, 7, 10, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.install-guide-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100dvh - 34px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(25, 29, 38, .99), rgba(11, 13, 18, .99));
  box-shadow: 0 36px 110px rgba(0, 0, 0, .62);
}

.install-guide-inner {
  padding: 25px;
}

.install-guide-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(91, 143, 255, .35);
  border-radius: 999px;
  background: rgba(43, 99, 190, .14);
  color: #bcd2ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.install-guide-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58a3ff;
  box-shadow: 0 0 0 5px rgba(88, 163, 255, .12);
}

.install-guide-hero {
  text-align: center;
}

.install-guide-logo {
  width: 92px;
  height: 92px;
  display: block;
  margin: 2px auto 19px;
  border-radius: 23px;
  box-shadow: 0 19px 48px rgba(0, 0, 0, .42);
}

.install-guide h1,
.install-guide h2,
.install-guide h3,
.install-guide p {
  margin-top: 0;
}

.install-guide h1 {
  margin-bottom: 12px;
  font-size: clamp(31px, 8vw, 43px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.install-guide h2 {
  margin-bottom: 10px;
  font-size: 25px;
  letter-spacing: -.035em;
}

.install-guide-copy {
  margin: 0 auto 21px;
  color: #b9c1ce;
  font-size: 15px;
  line-height: 1.58;
}

.install-device-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto 18px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: #11151c;
  color: #d5dbe5;
  font-size: 11px;
  font-weight: 750;
}

.install-guide-actions {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.install-guide-button {
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 15px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.install-guide-button.primary {
  background: linear-gradient(180deg, #fff, #e2e5ea);
  color: #080a0e;
  box-shadow: 0 12px 30px rgba(255, 255, 255, .1);
}

.install-guide-button.secondary {
  border-color: rgba(255, 255, 255, .12);
  background: #171c25;
  color: #f4f6f9;
}

.install-guide-button.ghost {
  border-color: transparent;
  background: transparent;
  color: #aeb8c8;
}

.install-guide-button:disabled {
  opacity: .55;
  cursor: wait;
}

.install-guide-progress {
  display: flex;
  gap: 6px;
  margin: 0 0 22px;
}

.install-guide-progress span {
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: #303642;
}

.install-guide-progress span.active {
  background: #f7f8fa;
}

.install-guide-step-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 4px auto 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 21px;
  background: #171c25;
}

.install-guide-step-icon svg {
  width: 34px;
  height: 34px;
  stroke: #f5f7fb;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install-guide-note {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(75, 130, 216, .32);
  border-radius: 14px;
  background: rgba(38, 87, 161, .1);
  color: #b9c9e4;
  font-size: 12px;
  line-height: 1.48;
}

.install-guide-choice {
  display: flex;
  justify-content: center;
  margin: 12px 0 0;
}

.install-guide-choice button {
  border: 0;
  background: transparent;
  color: #aebdd5;
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.install-mock-phone {
  width: min(310px, 100%);
  margin: 18px auto 4px;
  padding: 11px;
  border: 1px solid #353c49;
  border-radius: 28px;
  background: #090b0f;
  box-shadow: 0 22px 52px rgba(0, 0, 0, .34);
}

.install-mock-screen {
  overflow: hidden;
  border: 1px solid #232936;
  border-radius: 20px;
  background: #f1f2f5;
  color: #15171b;
}

.install-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 15px 11px;
  border-bottom: 1px solid #d8dbe0;
  font-size: 12px;
  font-weight: 750;
}

.install-mock-list {
  padding: 8px 10px 12px;
}

.install-mock-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 8px 10px;
  border-bottom: 1px solid #dcdee3;
  font-size: 13px;
}

.install-mock-row:last-child {
  border-bottom: 0;
}

.install-mock-row.highlight {
  position: relative;
  border: 2px solid #2d7cff;
  border-radius: 12px;
  background: #eaf2ff;
  font-weight: 850;
  box-shadow: 0 0 0 5px rgba(45, 124, 255, .12);
}

.install-mock-symbol {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 8px;
  background: #dfe3ea;
  color: #20242b;
  font-weight: 850;
}

.install-add-preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 17px;
}

.install-add-preview img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.install-add-preview strong,
.install-add-preview small {
  display: block;
}

.install-add-preview small {
  margin-top: 5px;
  color: #656b75;
}

.install-add-button {
  padding: 5px 8px;
  border-radius: 8px;
  background: #ddebff;
  color: #1471e8;
  box-shadow: 0 0 0 4px rgba(30, 120, 235, .13);
}

.install-edge-hint {
  position: fixed;
  z-index: 10002;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #fff;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .8));
}

.install-edge-hint.hidden {
  display: none;
}

.install-edge-hint.bottom-center {
  left: 50%;
  bottom: max(4px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
}

.install-edge-hint.top-center {
  left: 50%;
  top: max(3px, env(safe-area-inset-top));
  transform: translateX(-50%);
}

.install-edge-hint.top-right {
  top: max(4px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
}

.install-edge-hint.bottom-right {
  right: max(8px, env(safe-area-inset-right));
  bottom: max(2px, env(safe-area-inset-bottom));
}

.install-arrow {
  display: grid;
  place-items: center;
  gap: 3px;
  animation: installArrowPulse 1.2s ease-in-out infinite;
}

.install-arrow svg {
  width: 58px;
  height: 58px;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install-arrow span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(8, 10, 14, .9);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.install-edge-hint.top-center .install-arrow,
.install-edge-hint.top-right .install-arrow {
  transform: rotate(180deg);
}

.install-edge-hint.top-center .install-arrow span,
.install-edge-hint.top-right .install-arrow span {
  transform: rotate(180deg);
}

@keyframes installArrowPulse {
  0%, 100% { transform: translateY(0); opacity: .78; }
  50% { transform: translateY(-9px); opacity: 1; }
}

.install-edge-hint.top-center .install-arrow,
.install-edge-hint.top-right .install-arrow {
  animation-name: installArrowPulseTop;
}

@keyframes installArrowPulseTop {
  0%, 100% { transform: rotate(180deg) translateY(0); opacity: .78; }
  50% { transform: rotate(180deg) translateY(-9px); opacity: 1; }
}

.install-success-check {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 3px auto 19px;
  border-radius: 50%;
  background: #143e2a;
  color: #8cf0b7;
  font-size: 37px;
  font-weight: 900;
}

.install-guide-reopen {
  position: fixed;
  z-index: 9998;
  top: calc(env(safe-area-inset-top) + 76px);
  right: max(12px, env(safe-area-inset-right));
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #3b465a;
  border-radius: 999px;
  background: rgba(15, 18, 25, .9);
  color: #dce6f8;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.install-guide-reopen.hidden {
  display: none;
}

.install-guide-reopen svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install-browser-warning {
  margin: 15px 0 0;
  padding: 14px;
  border: 1px solid #644f21;
  border-radius: 14px;
  background: rgba(110, 84, 24, .15);
  color: #e2d1a3;
  font-size: 12px;
  line-height: 1.48;
}

@media (max-width: 420px) {
  .install-guide {
    padding-left: 10px;
    padding-right: 10px;
  }

  .install-guide-panel {
    max-height: calc(100dvh - 20px);
    border-radius: 24px;
  }

  .install-guide-inner {
    padding: 21px 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .install-arrow {
    animation: none !important;
  }
}


.install-mock-symbol.install-mock-symbol-icon{
  padding:0;
}
.install-mock-symbol.install-mock-symbol-icon svg{
  width:16px;
  height:16px;
  stroke:#1e2430;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
