/* nowa Portal (teams.nowabreathing.com)
   Gestaltung wie die Website (css/style.css, /teams): Morgenlicht, Bricolage
   SemiBold für Titel und Knöpfe, Karla für Text, Knöpfe als Pille im
   Markenverlauf, Felder eingelassen mit 16 px Schrift. Nur hell (Design
   15.11.2026). Schriften liegen lokal. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/fonts/Karla-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/fonts/Karla-Bold.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #F6F1E8;
  --paper-oben: #FDFBF7;
  --ink: #1F1D19;
  --ink-2: #4A443C;
  --ink-3: #6B655C;
  --line: #E6DED0;
  --karte: rgba(255, 255, 255, 0.62);
  --feld: #EDE6DA;
  --still: rgba(31, 29, 25, 0.05);
  --indigo: #4F74CD;
  --accent: #3B64C7;
  --marke: linear-gradient(135deg, #B5EAD7, #C7CEEA, #E2F0CB);
  --rost: #A8452E;
  --gut: #1B7F76;
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Karla", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --rand: max(16px, env(safe-area-inset-left));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #F1EADE; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--paper-oben) 0, var(--paper) 420px, #F1EADE 100%);
  color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-wrap: anywhere;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; color: var(--ink); margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); }
h2 { font-size: 1.35rem; margin-top: 8px; }
p { margin: 0 0 10px; }
.lead { color: var(--ink-2); font-size: 1.05rem; }
.klein, .hilfe { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.hilfe { margin: 6px 0 0; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.link:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.kicker { font-family: var(--f-body); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.gross { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 4.6vw, 1.6rem); line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 10px; }

/* ── Kopf und Leiste ── */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper-oben) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: env(safe-area-inset-top);
}
.kopf__zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--rand); max-width: 1040px; margin: 0 auto; }
.kopf__links { display: flex; align-items: center; gap: 12px; min-width: 0; }
.marke { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -0.03em; }
.marke img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.marke i { font-style: normal; color: var(--indigo); }
.kopf__firma { font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.textknopf { border: 0; background: none; padding: 8px 4px; font: 700 14px/1.2 var(--f-body); color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.textknopf.klein { font-size: 13.5px; }
.textknopf:disabled { opacity: 0.5; cursor: default; }
.kopf__zeile form { flex: none; margin: 0; }

/* Leiste unter dem Kopf: seitlich schiebbar, rechts ein weicher Rand (Design) */
.leiste { max-width: 1040px; margin: 0 auto; position: relative; }
.leiste ul {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 0 var(--rand) 10px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.leiste ul.am-ende { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.leiste ul.mitte { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.leiste ul.ganz { -webkit-mask-image: none; mask-image: none; }
.leiste ul::-webkit-scrollbar { display: none; }
.leiste li { flex: none; scroll-snap-align: start; }
.leiste a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink-2); background: var(--still); white-space: nowrap;
}
.leiste a[aria-current="page"] { color: var(--ink); background: var(--marke); box-shadow: 0 4px 14.9px rgba(143, 163, 228, 0.3); }

/* ── Inhalt ── */
.haupt { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px var(--rand) 40px; }
.haupt--schmal { max-width: 560px; padding-top: 6vh; }
.karte { background: var(--karte); border-radius: 24px; padding: 26px 24px; margin: 0 0 18px; box-shadow: 0 1px 0 rgba(31, 29, 25, 0.04); }
.karte--form h1 { margin-bottom: 10px; }
.lizenz .knoepfe { margin-top: 18px; }
.unter { margin: 18px 0 0; }
.fuss { padding: 10px var(--rand) calc(28px + env(safe-area-inset-bottom)); max-width: 1040px; margin: 0 auto; width: 100%; }
.fuss p { font-size: 13.5px; color: var(--ink-3); margin: 0; }

/* ── Knöpfe wie auf der Website ── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border: 0; border-radius: 24px; padding: 12px 24px; cursor: pointer; text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1.15; letter-spacing: -0.1px; text-align: center;
  color: var(--ink); transition: transform 120ms ease-out, box-shadow 240ms;
}
.pill:active { transform: scale(0.985); }
.pill--dark { background: var(--marke); box-shadow: 0 6px 19.5px rgba(143, 163, 228, 0.3); }
.pill--dark:hover { box-shadow: 0 9px 24px rgba(143, 163, 228, 0.5); }
.pill--rand { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line), inset 0 0 0 1.5px rgba(31, 29, 25, 0.08); }
.pill--rand:hover { background: var(--still); }
.pill--breit { width: 100%; }
.pill--klein { min-height: 44px; padding: 8px 16px; font-size: 15px; border-radius: 22px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.knoepfe form { margin: 0; }
.knoepfe--klein { margin-top: 12px; }

/* ── Felder wie im Formular auf /teams ── */
.form { display: grid; gap: 16px; margin-top: 18px; }
.form.inline { margin-top: 14px; }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.feld label, .feld legend { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.frei { font-weight: 400; color: var(--ink-3); }
input:not([type="radio"]):not([type="checkbox"]), textarea {
  width: 100%; min-width: 0; min-height: 52px; padding: 0 16px; border: 0; border-radius: 16px;
  background: var(--feld); font: 400 16px/1.3 var(--f-body); color: var(--ink); outline: none; transition: box-shadow 160ms;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:focus, textarea:focus { box-shadow: 0 0 0 2px var(--accent); }
.otp { font-family: var(--f-mono); font-size: 24px !important; letter-spacing: 0.3em; text-align: center; }
.passwort { position: relative; }
.passwort input { padding-right: 54px; }
.auge { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; color: var(--ink-3); }
.auge::before { content: ""; display: block; width: 22px; height: 22px; margin: auto; background: currentColor;
  -webkit-mask: url("/img/auge.svg") center / contain no-repeat;
          mask: url("/img/auge.svg") center / contain no-repeat; }
.auge[aria-pressed="true"] { color: var(--accent); }
.auge[aria-pressed="true"]::before { -webkit-mask-image: url("/img/auge-zu.svg"); mask-image: url("/img/auge-zu.svg"); }
.wahl { gap: 10px; }
.wahl__punkt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--feld); cursor: pointer; font-weight: 700; }
.wahl__punkt input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }
.rechnet { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; margin: 6px 0 0; min-height: 1.4em; }
.ablauf { padding: 14px 16px; border-radius: 16px; background: var(--still); }
.ablauf p { margin: 0 0 4px; font-size: 15px; color: var(--ink-2); }
.ablauf__titel { font-weight: 700; color: var(--ink) !important; }

/* ── Hinweise ── */
.hinweis { margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; font-size: 15.5px; line-height: 1.5; outline: none; }
.hinweis--fehler { background: #F8E7E1; color: #7C2E1C; }
.hinweis--gut { background: #E3F2EF; color: #145F58; }
.hinweis--info { background: #EDF1FA; color: #2C4C9E; }

/* ── Einladungen, Listen ── */
.auswahl, .filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.auswahl a, .filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--ink-2); background: var(--still); }
.auswahl a[aria-current="true"], .filter a[aria-current="true"] { color: var(--ink); background: var(--marke); }
.einladungen, .bestellungen ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.einladung { background: var(--karte); border-radius: 20px; padding: 16px 18px; scroll-margin-top: 140px; }
.einladung .frage { margin-top: 12px; }
.einladung__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.einladung__titel { margin: 0; min-width: 0; }
.einladung__titel .nr { font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.marke-stand { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.marke-stand--frei { color: var(--gut); }
.marke-stand--ueberfaellig { color: var(--rost); }
.marke-stand--folgt, .marke-stand--offen { color: var(--accent); }
.leer { color: var(--ink-3); padding: 12px 2px; }
.link-zeile { margin-top: 10px; }
.link-feld { font-family: var(--f-mono) !important; font-size: 14px !important; min-height: 44px !important; color: var(--ink-2) !important; text-overflow: ellipsis; }
.bestellung p { margin: 6px 0 0; }
.bestellungen h2 { margin-top: 28px; }
.pilot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ── Bestätigung auf der Seite ── */
.frage { padding: 16px; border-radius: 18px; background: #FBF4E6; box-shadow: inset 0 0 0 1px #E9D3A6; }
.frage p { margin: 0 0 12px; font-weight: 700; }

/* ── Einlöse-Seite ── */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.stores img { height: 44px; width: auto; }
.nur-rechner { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nur-handy { display: none; }
  .nur-rechner { display: block; }
}
.fertig .pill { margin: 8px 0 14px; }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .karte { padding: 22px 18px; border-radius: 22px; }
  .haupt { padding-top: 20px; }
  .haupt--schmal { padding-top: 16px; }
  .kopf__firma { font-size: 13px; }
  .knoepfe .pill:not(.pill--klein) { flex: 1 1 100%; }
  .frage .knoepfe .pill, .frage .knoepfe form { flex: 1 1 100%; width: 100%; }
  .frage .knoepfe form .pill { width: 100%; }
}
@media (max-width: 360px) {
  .marke span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Formulare am Rechner nicht über die ganze Breite */
.pilot .form, .lizenz .form { max-width: 560px; }

/* Umbrüche wie auf /teams (Design 15.11., Nachtrag 2, Punkt 9) */
.nw { white-space: nowrap; }
p, h1, h2, .hinweis { text-wrap: pretty; }
h1 { text-wrap: balance; }
/* „Gesendet an …“ in der Zeile der Einladung */
.einladung .hinweis { margin: 12px 0 0; }

.nach-knopf { margin-top: 14px; }
