/* Install page – Essen/Schlafen design system (theme.css tokens) */
:root {
  --r: 14px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --barh: 76px;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  touch-action: manipulation;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
body {
  padding-top: var(--sat);
  min-height: 100dvh;
}
a {
  color: var(--accent-text);
  text-decoration: none;
}
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 18px calc(var(--barh) + var(--sab) + 20px);
}
.wrap.nobar {
  padding-bottom: calc(24px + var(--sab));
}
.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.back {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent-text);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  margin: 4px 0 0;
}
h1 {
  font-size: 28px;
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.lede {
  color: var(--muted);
  margin: 0 0 20px;
}
.note {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 14px;
  margin: 16px 0 0;
}
.note strong {
  font-weight: 650;
}
.cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / 0.06);
  border: 1px solid var(--line);
  cursor: pointer;
  color: inherit;
  text-align: left;
  width: 100%;
  font: inherit;
}
.card:active {
  background: var(--surface-2);
}
.card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex: none;
  background: var(--surface-2);
}
.card .meta {
  flex: 1;
  min-width: 0;
}
.card .meta b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.card .meta span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}
.card .chev {
  color: var(--muted);
  font-size: 22px;
  flex: none;
}
.apphead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 16px;
}
.apphead img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: 0 2px 8px rgb(var(--shadow-rgb) / 0.12);
}
.apphead h1 {
  margin: 0;
  font-size: 24px;
}
.apphead .sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}
.panel {
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / 0.06);
  padding: 16px;
  margin-bottom: 14px;
}
.panel h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 600;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 10px 0 10px 40px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.steps li:first-child {
  padding-top: 0;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li:first-child::before {
  top: 0;
}
.hint {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}
.qrbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.qrbox img,
.qrbox object,
.qrbox svg {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}
.qrbox a.linkplain {
  font-size: 14px;
  word-break: break-all;
}
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + var(--sab));
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  z-index: 10;
}
.bar-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}
.btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font: inherit;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}
.btn:active {
  background: var(--accent-pressed);
}
.btn.sec {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.btn:disabled {
  opacity: 0.5;
}
.okbanner {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid var(--ok-line);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
  font-weight: 650;
  margin: 12px 0;
}
.warnbanner {
  background: var(--gold-soft);
  color: var(--gold-ink);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 14px;
  font-size: 15px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--barh) + var(--sab) + 16px);
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 20;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
}
.hidden {
  display: none !important;
}
@media (min-width: 720px) {
  .wrap {
    padding-top: 32px;
  }
}

/* Zugang anfragen */
.access {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / 0.06);
  padding: 14px;
  margin: 0 0 16px;
}
.access p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
}
.access p strong {
  font-weight: 650;
}
.access .addr {
  display: block;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  word-break: break-all;
}
.access .row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.access .btn {
  flex: 1;
  text-decoration: none;
}
.access .btn.copy {
  flex: 0 0 auto;
  width: auto;
  padding: 12px 14px;
  white-space: nowrap;
  font-size: 14px;
}
