@font-face { font-family: "Hind"; src: url("/schrift/hind-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hind"; src: url("/schrift/hind-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blau: #009ee0;
  --blau-tief: #0089c2;
  --blau-text: #0079ad;
  --blau-zart: #e5f5fc;
  --blau-hauch: #f2fafd;
  --tinte: #17232b;
  --leise: #4f5d67;
  --hauch: #65717b;
  --grund: #f4f6f8;
  --karte: #fff;
  --linie: rgba(23, 35, 43, 0.09);
  --linie-stark: rgba(23, 35, 43, 0.16);
  --feld: #f4f6f8;
  --rot: #c4332b;
  --rot-zart: #fcebea;
  --orange: #a35a00;
  --orange-zart: #fff3e0;
  --gruen: #1b7f45;
  --gruen-zart: #e7f5ec;
  --schatten: 0 1px 2px rgba(23, 35, 43, 0.04), 0 8px 28px rgba(23, 35, 43, 0.07);
  --schatten-hoch: 0 2px 6px rgba(23, 35, 43, 0.06), 0 22px 48px rgba(23, 35, 43, 0.14);
  --glas: rgba(244, 246, 248, 0.8);
  --r-karte: 18px;
  --r-feld: 12px;
  --aus: cubic-bezier(0.23, 1, 0.32, 1);
  --schublade: cubic-bezier(0.32, 0.72, 0, 1);
  --rand: clamp(16px, 4.5vw, 112px);
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  font-size: clamp(1rem, 0.3vw + 0.7rem, 1.125rem);
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--linie-stark) transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
  background: var(--grund);
  color: var(--tinte);
  font: 400 1rem/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: rgba(0, 158, 224, 0.26); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--blau-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
@media (pointer: coarse) {
  input, select, textarea { font-size: max(1rem, 16px) !important; }
}

:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; border-radius: 8px; }

.nur-leser {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.symbol {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Kopf */

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--glas);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--linie);
}
.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--rand);
}
.wortmarke { --logo-h: clamp(48px, 3.2vw, 64px); display: flex; align-items: center; flex: none; text-decoration: none; }
.logo { height: var(--logo-h); width: auto; margin-left: -0.5rem; }
.ort { display: block; height: var(--logo-h); width: auto; overflow: visible; font-family: "Hind", var(--schrift); }
.ort-name { font-size: 151px; font-weight: 700; fill: rgba(0, 0, 0, 0.894); }
.ort-zusatz { font-size: 73px; font-weight: 400; fill: var(--blau); }
.ort-strich { fill: var(--blau); }

.kopf-konto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  color: var(--tinte);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 160ms ease;
}
.kopf-konto .symbol { color: var(--blau-text); }
@media (hover: hover) and (pointer: fine) { .kopf-konto:hover { background: rgba(23, 35, 43, 0.05); } }

/* Knöpfe und Felder */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--blau-text);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms var(--aus), background-color 180ms ease, opacity 180ms ease;
}
.knopf:active { transform: scale(0.97); }
.knopf[disabled] { opacity: 0.45; cursor: default; transform: none; }
.knopf .symbol { width: 18px; height: 18px; }
.knopf-leise { background: var(--blau-zart); color: var(--blau-text); }
.knopf-klein { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
.knopf.breit { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .knopf:not([disabled]):hover { background: var(--blau-tief); }
  .knopf-leise:not([disabled]):hover { background: #d3eefa; }
}

.knopf-text {
  border: 0;
  background: none;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--hauch);
  font-size: 0.875rem;
}
@media (hover: hover) and (pointer: fine) { .knopf-text:hover { color: var(--rot); background: var(--rot-zart); } }

.knopf-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--hauch);
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--aus);
}
.knopf-symbol:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .knopf-symbol:hover { background: var(--rot-zart); color: var(--rot); } }

.feld { display: grid; gap: 6px; min-width: 0; align-content: start; }
.feld > span:first-child { font-size: 0.8125rem; font-weight: 600; color: var(--leise); }
.feld small { font-weight: 400; color: var(--hauch); }

.eingabe {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 0;
  border-radius: var(--r-feld);
  background: var(--feld);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-size: 1rem;
  caret-color: var(--blau);
  transition: box-shadow 160ms ease, background-color 160ms ease;
}
.eingabe::placeholder { color: var(--hauch); }
.eingabe:focus { outline: none; background: var(--karte); box-shadow: inset 0 0 0 2px var(--blau); }
.eingabe.fehler { background: var(--rot-zart); box-shadow: inset 0 0 0 2px var(--rot); }
.eingabe:disabled { color: var(--leise); background: transparent; }
.eingabe.zahl { text-align: right; font-variant-numeric: tabular-nums; }
select.eingabe {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365717b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 18px;
}
textarea.eingabe { resize: vertical; line-height: 1.45; }
input[type="date"].eingabe { min-width: 0; font-variant-numeric: tabular-nums; }

.mit-einheit { position: relative; display: block; }
.mit-einheit .eingabe { padding-right: 40px; }
.mit-einheit .einheit {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: var(--hauch); font-size: 0.875rem; pointer-events: none;
}

.karte { background: var(--karte); border-radius: var(--r-karte); box-shadow: var(--schatten); }

/* Meldungen */

.meldung {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 20px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--tinte);
  color: #fff;
  box-shadow: var(--schatten-hoch);
  font-size: 0.9375rem;
  line-height: 1.35;
  transform: translate(-50%, 0);
  transition: transform 380ms var(--schublade), opacity 260ms ease;
}
.meldung .symbol { color: #7fd3f5; }
.meldung.fehler { background: var(--rot); }
.meldung.fehler .symbol { color: #fff; }
.meldung[data-weg] { transform: translate(-50%, calc(100% + 28px)); opacity: 0; }
@starting-style { .meldung { transform: translate(-50%, calc(100% + 28px)); opacity: 0; } }

.fuss {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 26px var(--rand) calc(env(safe-area-inset-bottom) + 26px);
  border-top: 1px solid var(--linie);
  color: var(--hauch);
  font-size: 0.8125rem;
}
.fuss span { margin-right: auto; }
.fuss a { color: var(--leise); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .fuss a:hover { color: var(--blau-text); text-decoration: underline; } }

@media (max-width: 640px) {
  .kopf-innen { padding-block: 6px; }
  .wortmarke { --logo-h: 40px; }
  .kopf-konto span { display: none; }
  .kopf-konto { padding: 0 10px; }
  .fuss span { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .kopf { background: var(--grund); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 380px) {
  .wortmarke { --logo-h: 31px; }
}
