/* app.css – Aussehen der Handy-App im Stil von iOS: Systemschrift, gruppierte Flächen,
   Systemblau wie im Logo, hell und dunkel nach Einstellung des Handys. Große Schrift bleibt. */

:root {
  --grund: #f2f2f7;
  --flaeche: #ffffff;
  --fuell: rgba(118, 118, 128, 0.12);
  --fuell-stark: rgba(118, 118, 128, 0.24);
  --toenung: rgba(0, 122, 255, 0.12);
  --bildgrund: #e5e5ea;
  --text: #000000;
  --leise: #636366;
  --linie: rgba(60, 60, 67, 0.2);
  --haupt: #007aff;
  --haupt-text: #ffffff;
  --verweis: #0066dd;
  --fokus: #0066dd;
  --gut: #34c759;
  --warn: #ff9500;
  --warn-grund: rgba(255, 149, 0, 0.18);
  --warn-text: #6e3c00;
  --fehler: #d70015;
  --fehler-grund: rgba(255, 59, 48, 0.12);
  --leiste: rgba(242, 242, 247, 0.82);
  --meldung: rgba(36, 36, 38, 0.94);
  --schatten: 0 10px 34px rgba(0, 0, 0, 0.16);
  --rand: 1.25rem;
  --rund: 0.875rem;
  --rund-gross: 1.125rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #000000;
    --flaeche: #1c1c1e;
    --fuell: rgba(118, 118, 128, 0.24);
    --fuell-stark: rgba(118, 118, 128, 0.4);
    --toenung: rgba(10, 132, 255, 0.22);
    --bildgrund: #111113;
    --text: #ffffff;
    --leise: #aeaeb2;
    --linie: rgba(84, 84, 88, 0.65);
    --haupt: #0a84ff;
    --haupt-text: #ffffff;
    --verweis: #4da3ff;
    --fokus: #4da3ff;
    --gut: #30d158;
    --warn: #ff9f0a;
    --warn-grund: rgba(255, 159, 10, 0.22);
    --warn-text: #ffd592;
    --fehler: #ff6961;
    --fehler-grund: rgba(255, 69, 58, 0.2);
    --leiste: rgba(0, 0, 0, 0.72);
    --meldung: rgba(58, 58, 60, 0.94);
    --schatten: 0 10px 34px rgba(0, 0, 0, 0.6);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--grund);
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-size: 1.1875rem; /* 19 px */
  line-height: 1.35;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
p {
  margin: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
}

[data-titel]:focus {
  outline: none;
}

.symbole {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.symbol {
  width: 1.5em;
  height: 1.5em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.versteckt {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ohne-skript {
  padding: 2rem var(--rand);
  font-weight: 600;
}

/* ---------------------------------------------------------------- Ansichten */

.sicht {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  animation: einblenden 0.2s ease-out;
}

@keyframes einblenden {
  from {
    opacity: 0;
  }
}

.sicht-rand {
  gap: 1rem;
  padding-top: calc(env(safe-area-inset-top) + 0.5rem);
  padding-right: calc(env(safe-area-inset-right) + var(--rand));
  padding-bottom: calc(env(safe-area-inset-bottom) + 1.25rem);
  padding-left: calc(env(safe-area-inset-left) + var(--rand));
}

.sicht-mitte {
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  color: var(--leise);
  text-align: center;
  font-size: 1.1875rem;
  font-weight: 500;
}

/* Bildschirmfüllend ohne Rollen der Seite (Vorschau, Ecken, Beleg) */
.sicht-voll {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 0;
  overflow: hidden;
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
}

/* Großer Titel wie in den Apps von Apple */
.gross {
  font-size: 2.125rem; /* 34 px */
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.unter {
  color: var(--leise);
  font-size: 1.1875rem;
}

.unter-eng {
  padding: 0.25rem var(--rand) 0.6rem;
  font-size: 1.0625rem;
  text-align: center;
}

.klein {
  color: var(--leise);
  font-size: 0.9375rem;
  text-align: center;
}

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-top: 0.5rem;
}

.leiste {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) 1fr minmax(5.5rem, auto);
  align-items: center;
  gap: 0.25rem;
  min-height: 3rem;
  padding: 0 0.5rem;
}

.sicht-rand > .leiste {
  margin: 0 -0.75rem;
}

.leiste-titel {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------ Schaltflächen */

/* Zweitrangig: blau getönt. Hauptaktion: gefüllt (.knopf-haupt). */
.knopf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 4rem; /* 64 px */
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--rund-gross);
  background: var(--toenung);
  color: var(--verweis);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.knopf:active {
  opacity: 0.6;
  transform: scale(0.98);
}

.knopf-haupt {
  min-height: 4.5rem; /* 72 px */
  border-radius: 1.25rem;
  background: var(--haupt);
  color: var(--haupt-text);
  font-size: 1.25rem;
}

.knopf-riesig {
  flex-direction: column;
  gap: 0.9rem;
  min-height: 11rem;
  border-radius: 1.75rem;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.knopf-riesig.knopf-haupt {
  box-shadow: 0 12px 30px rgba(0, 122, 255, 0.28);
}

.knopf-riesig:not(.knopf-haupt) {
  background: var(--flaeche);
  color: var(--text);
}

.knopf-riesig:not(.knopf-haupt) .symbol {
  color: var(--haupt);
}

.knopf-riesig .symbol {
  width: 3.5rem;
  height: 3.5rem;
  stroke-width: 1.6;
}

.knopf-klein {
  min-height: 3.25rem;
  font-size: 1.0625rem;
}

.knopf:disabled,
.knopf-rund:disabled {
  opacity: 0.4;
}

.knopf-text {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  min-height: 2.75rem; /* 44 px */
  padding: 0 0.5rem;
  border: 0;
  border-radius: 0.6rem;
  background: none;
  color: var(--verweis);
  font-size: 1.1875rem;
  font-weight: 400;
  transition: opacity 0.15s ease;
}

.knopf-text:active {
  opacity: 0.4;
}

.knopf-text .symbol {
  margin-left: -0.35rem;
  stroke-width: 2.4;
}

.knopf-rund {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fuell);
  color: var(--verweis);
  transition: opacity 0.15s ease;
}

.knopf-rund:active {
  opacity: 0.5;
}

/* ------------------------------------------------------------- Startseite */

.start-knoepfe {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  flex: 1 1 auto;
}

.statuszeile {
  min-height: 3rem;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: center;
}

/* -------------------------------------------------------------- Anmeldung */

#sicht-anmeldung {
  justify-content: center;
}

/* Das App-Symbol über dem Namen */
#sicht-anmeldung::before {
  content: "";
  align-self: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 0.25rem;
  border-radius: 1.25rem;
  background: #0f172a url("icons/apple-touch-icon.png") center / cover no-repeat;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

#sicht-anmeldung > .gross,
#sicht-anmeldung > .unter {
  text-align: center;
}

/* Hinweis im Browser: so kommt die App auf den Home-Bildschirm */
.installieren {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  border-radius: var(--rund-gross);
  background: var(--flaeche);
  font-size: 1.0625rem;
}

.installieren-titel {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.installieren-schritte {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.4rem;
}

.installieren .symbol {
  width: 1.35em;
  height: 1.35em;
  color: var(--haupt);
  vertical-align: -0.3em;
}

.formular {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.formular label {
  margin-top: 0.6rem;
  padding-left: 0.25rem;
  color: var(--leise);
  font-size: 1rem;
  font-weight: 600;
}

.formular .knopf {
  margin-top: 1rem;
}

input[type="text"],
input[type="password"],
input[type="search"] {
  width: 100%;
  min-height: 3.375rem; /* 54 px */
  padding: 0.5rem 1rem;
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  background: var(--flaeche);
  color: var(--text);
  font-size: 1.1875rem;
  -webkit-appearance: none;
  appearance: none;
}

input:focus-visible {
  outline: none;
  border-color: var(--haupt);
  box-shadow: 0 0 0 3px var(--toenung);
}

/* Suchfeld wie in iOS: grau gefüllt, Lupe links */
input[type="search"] {
  min-height: 2.875rem; /* 46 px */
  padding-left: 2.6rem;
  border-color: transparent;
  border-radius: 0.75rem;
  background: var(--fuell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") 0.8rem 50% / 1.2rem no-repeat;
  font-size: 1.125rem;
}

input[type="search"]::-webkit-search-decoration {
  display: none;
}

input::placeholder {
  color: var(--leise);
  opacity: 1;
}

.meldung {
  font-size: 1.0625rem;
  font-weight: 500;
}

.meldung:empty {
  display: none;
}

.meldung-fehler {
  padding: 0.75rem 1rem;
  border-radius: var(--rund);
  color: var(--fehler);
  background: var(--fehler-grund);
  font-weight: 600;
}

/* -------------------------------------------------------------- Wartebild */

.kreisel {
  width: 2.75rem;
  height: 2.75rem;
  border: 0.25rem solid var(--fuell-stark);
  border-top-color: var(--haupt);
  border-radius: 50%;
  animation: drehen 0.8s linear infinite;
}

@keyframes drehen {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------- Bild mit Zoom */

.zoom-rahmen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--bildgrund);
  touch-action: none;
}

.zoom-rahmen img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.rahmen-meldung {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  left: 1.5rem;
  transform: translateY(-50%);
  color: var(--leise);
  font-size: 1.1875rem;
  font-weight: 500;
  text-align: center;
}

/* ---------------------------------------------------------------- Vorschau */

.hinweise {
  padding: 0.6rem var(--rand) 0;
}

.hinweis-zeile {
  margin-bottom: 0.4rem;
  font-size: 1.0625rem;
}

.hinweis-warnung {
  padding: 0.7rem 0.9rem;
  border-radius: var(--rund);
  background: var(--warn-grund);
  color: var(--warn-text);
  font-weight: 600;
}

.seiten-leiste {
  display: flex;
  gap: 0.6rem;
  flex: none;
  padding: 0.6rem var(--rand) 0.25rem;
  overflow-x: auto;
}

.seiten-knopf {
  position: relative;
  flex: none;
  width: 3rem;
  height: 4rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--linie);
  border-radius: 0.5rem;
  background: var(--flaeche);
}

.seiten-knopf.aktiv {
  border-color: var(--haupt);
  box-shadow: 0 0 0 3px var(--haupt);
}

.seiten-knopf img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seiten-nr {
  position: absolute;
  right: 2px;
  bottom: 2px;
  padding: 0 0.3rem;
  border-radius: 0.3rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.aktionen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  flex: none;
  padding: 0.75rem var(--rand) calc(env(safe-area-inset-bottom) + 0.75rem);
}

.aktionen > .knopf-haupt,
.aktionen > .aktionen-klein,
.aktionen > .knopf:only-child {
  grid-column: 1 / -1;
}

/* Zwei Schaltflächen nebeneinander: etwas kleinere Schrift, damit nichts umbricht */
.aktionen > .knopf:not(.knopf-haupt) {
  gap: 0.35rem;
  padding: 0.5rem 0.4rem;
  font-size: 1.0625rem;
}

.aktionen.mit-problem > #v-neu {
  order: -1;
}

.aktionen-klein {
  display: flex;
  justify-content: space-between;
  order: 5;
}

/* ---------------------------------------------------------- Ecken anpassen */

.ecken-flaeche {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 1.5rem;
  touch-action: none;
}

.ecken-flaeche img {
  position: absolute;
  max-width: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.ecken-linien {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* Rahmen und Griffe im Blau der Scan-Winkel aus dem Logo */
.ecken-linien polygon {
  fill: rgba(10, 132, 255, 0.16);
  stroke: #0a84ff;
  stroke-width: 3;
  stroke-linejoin: round;
}

.ecke {
  position: absolute;
  width: 3rem;
  height: 3rem;
  margin: -1.5rem 0 0 -1.5rem;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.5);
  box-shadow: 0 0 0 2px #0a84ff, 0 2px 10px rgba(0, 0, 0, 0.45);
  touch-action: none;
}

/* ------------------------------------------------------------ Meine Belege */

/* Bleibt beim Rollen oben stehen, halb durchsichtig wie die Leisten in iOS */
.sicht-rand > .leiste-fest {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 calc(-1 * var(--rand));
  padding: 0 calc(var(--rand) - 0.75rem);
  background: var(--leiste);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

/* Eine zusammenhängende Liste mit feinen Trennlinien */
.belege-liste {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--rund-gross);
  background: var(--flaeche);
  list-style: none;
}

.belege-liste:empty {
  display: none;
}

.belege-liste > li {
  position: relative;
}

.belege-liste > li + li::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 5.65rem;
  height: 1px;
  background: var(--linie);
}

.karte {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 6.25rem;
  padding: 0.75rem 0.9rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.karte:active {
  background: var(--fuell);
}

.karte-bild {
  display: block;
  width: 4rem;
  height: 5.25rem;
  overflow: hidden;
  border: 1px solid var(--linie);
  border-radius: 0.5rem;
  background: var(--bildgrund);
}

.karte-bild img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.karte-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.karte-titel {
  max-width: 100%;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.karte-datum {
  color: var(--leise);
  font-size: 1rem;
}

.karte-betrag {
  align-self: start;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.leer {
  padding: 2.5rem 0.5rem;
  color: var(--leise);
  font-size: 1.1875rem;
  text-align: center;
}

.zustand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--leise);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
}

.punkt {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--leise);
}

.zustand-wartet .punkt {
  background: var(--warn);
}

.zustand-laeuft .punkt {
  background: var(--haupt);
  animation: pochen 1.6s ease-in-out infinite;
}

.zustand-lexware .punkt {
  background: var(--gut);
}

.zustand-hilfe {
  color: var(--fehler);
  font-weight: 600;
}

.zustand-hilfe .punkt {
  border-radius: 2px;
  background: var(--fehler);
}

@keyframes pochen {
  50% {
    opacity: 0.35;
  }
}

.marke {
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  border-radius: 0.45rem;
  background: var(--warn-grund);
  color: var(--warn-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.marke-leise {
  padding: 0;
  background: none;
  color: var(--leise);
  font-weight: 400;
}

/* ------------------------------------------------------------ Belegansicht */

.beleg-fuss {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  flex: none;
  padding: 0.75rem var(--rand) calc(env(safe-area-inset-bottom) + 0.75rem);
}

.blaettern {
  display: flex;
  justify-content: space-between;
  align-self: stretch;
  margin-bottom: 0.2rem;
}

.beleg-zeile {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.beleg-aufnahme {
  color: var(--leise);
  font-size: 1rem;
}

.beleg-hilfe {
  font-size: 1.0625rem;
}

.nebenaktionen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  align-self: stretch;
  margin-top: 0.5rem;
}

/* ----------------------------------------------------------- Einstellungen */

/* Zeilen wie in den iOS-Einstellungen: weiße Flächen auf grauem Grund */
.einst-zeile {
  margin-top: 0.5rem;
  padding: 1rem;
  border-radius: var(--rund);
  background: var(--flaeche);
  font-size: 1.1875rem;
  font-weight: 600;
}

#einst-passkey {
  background: var(--flaeche);
}

#einst-abmelden {
  margin-top: 1rem;
  background: var(--flaeche);
  color: var(--fehler);
}

/* ------------------------------------------------- Blatt, Rückfrage, Meldung */

.blatt {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.4);
  animation: einblenden 0.2s ease-out;
}

.blatt-kasten {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  padding: 1.9rem calc(env(safe-area-inset-right) + var(--rand)) calc(env(safe-area-inset-bottom) + 1.25rem) calc(env(safe-area-inset-left) + var(--rand));
  border-radius: 1.25rem 1.25rem 0 0;
  background: var(--flaeche);
  box-shadow: var(--schatten);
  animation: hochfahren 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Griff oben am Blatt */
.blatt-kasten::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 2.25rem;
  height: 0.3125rem;
  margin-left: -1.125rem;
  border-radius: 1rem;
  background: var(--fuell-stark);
}

@keyframes hochfahren {
  from {
    transform: translateY(100%);
  }
}

.blatt-kasten h2 {
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.blatt-text {
  flex: 1 1 auto;
  min-height: 6rem;
  margin: 0;
  padding: 0.9rem;
  overflow: auto;
  border: 0;
  border-radius: var(--rund);
  background: var(--grund);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9375rem;
  white-space: pre-wrap;
  -webkit-user-select: text;
  user-select: text;
}

.hinweis {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 0.75rem);
  right: var(--rand);
  left: var(--rand);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-radius: 1.25rem;
  background: var(--meldung);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: var(--schatten);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  animation: einblenden 0.2s ease-out;
}

.hinweis-erfolg {
  font-size: 1.375rem;
}

.hinweis-erfolg .symbol {
  width: 1.9rem;
  height: 1.9rem;
  color: #30d158;
  stroke-width: 3;
}

.hinweis-fehler {
  background: rgba(201, 20, 32, 0.96);
}

/* ------------------------------------------- Breite Bildschirme (Falt-Handy, Tablet) */

/* Aufgeklappt bleibt der Inhalt in handlicher Breite in der Mitte; Belegbilder nutzen die ganze Fläche. */
@media (min-width: 40rem) {
  .sicht-rand {
    width: 100%;
    max-width: 36rem;
    margin-right: auto;
    margin-left: auto;
  }

  .aktionen,
  .beleg-fuss,
  .hinweise,
  .seiten-leiste {
    align-self: center;
    width: 100%;
    max-width: 36rem;
  }

  .blatt {
    justify-content: center;
  }

  .blatt-kasten {
    max-width: 36rem;
    margin-bottom: 1.25rem;
    border-radius: 1.25rem;
  }

  .hinweis {
    right: auto;
    left: 50%;
    width: 34rem;
    max-width: calc(100% - 2 * var(--rand));
    margin-left: -17rem;
  }
}

/* ------------------------------------------------------ Weniger Bewegung */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .knopf:active {
    transform: none;
  }
}
