/* medbotwien — landing page styles.
 *
 * Design language: Wiener Kaffeehaus × Spital.
 * Palette:
 *   - cream "Papier" background (the menu card you get with your Mokka)
 *   - deep café-black for ink
 *   - Wiener-Rot accent — same red as the city's coat of arms
 *   - brass/gold thin rules — the gilt rails of the Kaffeehaus
 * Typography:
 *   - serif headlines (system stack — no web-font request, fast first
 *     paint, no FOUT, no third-party connect-src needed)
 *   - clean sans for body
 *
 * Composition:
 *   The whole page is a stack of menu-cards. Each card has a brass
 *   double-rule frame, an eyebrow with brass flanking dashes, and a
 *   serif headline. The hero card is special: the Ober medallion
 *   breaks the top frame, which is the one place we let the Schmäh
 *   spill out of the typographic grid.
 */

:root {
  /* ----- Colors ----- */
  --paper: #f5ecd9; /* warmer Speisekarte cream — a touch deeper than before */
  --paper-deep: #ebdfc4;
  --paper-edge: #e2d2b1;
  --ink: #1a1612;
  --ink-soft: #5a534c;
  --ink-mute: #807268;
  --rot: #c8102e; /* Wiener Rot */
  --rot-deep: #9c0c24;
  --rot-soft: rgba(200, 16, 46, 0.12);
  --brass: #a8854a; /* slightly deeper gilt — reads on cream */
  --brass-bright: #c7a564;
  --brass-soft: #d8c39a;
  --border: #ddc89d;
  --card-bg: #fbf5e6; /* a touch lighter than the page — the porcelain plate */
  --card-edge: #e7d4a9;
  --shadow-card:
    0 1px 0 rgba(26, 22, 18, 0.04),
    0 18px 38px -22px rgba(26, 22, 18, 0.28);
  --radius: 3px; /* sharper than the previous build — more "Karte", less "App" */
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  /* Layered paper texture, CSS only — three offset gradients give the
     cream a hand-warm grain without an image request.  Larger amplitude
     than before so the texture is actually visible on a modern display. */
  background-image:
    radial-gradient(ellipse 70% 50% at 18% 12%, rgba(168, 133, 74, 0.13), transparent 60%),
    radial-gradient(ellipse 60% 60% at 88% 88%, rgba(200, 16, 46, 0.06), transparent 65%),
    radial-gradient(circle at 50% 40%, rgba(168, 133, 74, 0.04), transparent 70%),
    repeating-linear-gradient(
      45deg,
      rgba(168, 133, 74, 0.025) 0 2px,
      transparent 2px 7px
    );
  background-attachment: fixed;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.1rem 4rem;
}

/* ----- Headlines: serif, the menu-card voice ----- */

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 6.2vw + 0.6rem, 3.8rem);
  line-height: 1.05;
  margin: 0.4rem 0 1.1rem;
  text-wrap: balance;
}

h1 .accent {
  color: var(--rot);
  font-style: italic;
  position: relative;
}

/* Italic spans push the trailing punctuation visually off the baseline.
   The .accent-dot keeps the period upright but inside the red colour,
   so the line ends crisply.  ``display: inline`` (not ``inline-block``)
   is critical — inline-block makes the dot atomic, which lets the
   line-break algorithm orphan it on its own line when "Wiener
   Medizinjobs" already fills the row. */
h1 .accent .accent-dot {
  font-style: normal;
  display: inline;
}

h2 {
  font-size: clamp(1.45rem, 1.6vw + 1rem, 1.75rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}

p {
  margin: 0.6rem 0;
}

/* ----- Kicker / Eyebrow — small caps with brass flanking rules.
   This is the Speisekarte section header pattern, not "— Word —". ----- */

.kicker {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  color: var(--brass);
  font-size: 1rem;
  margin: 0 0 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.04em;
}

.kicker-rule {
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--brass) 30%,
    var(--brass) 70%,
    transparent
  );
}

.menu-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.eyebrow-rule {
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  background: var(--brass);
  opacity: 0.7;
}

.menu-card-head {
  text-align: center;
  margin-bottom: 1.2rem;
}

/* ----- Body type ----- */

.lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1rem;
  text-wrap: pretty;
}

.lede-second {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  text-wrap: pretty;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

a {
  color: var(--rot);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(200, 16, 46, 0.45);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
a:hover {
  color: var(--rot-deep);
  text-decoration-color: var(--rot-deep);
}

.link-arrow {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--rot);
  padding-bottom: 1px;
}
.link-arrow:hover {
  border-bottom-color: var(--rot-deep);
}

/* ----- Menu-card frame — used for hero AND for every section.
   The frame is what makes a card feel like a Speisekarte:
     · outer brass double-rule (drawn with two layered borders)
     · inner brass hairline 6 px in
     · serif corner ornaments at all four corners
   Cards stack with airy whitespace between them. ----- */

.menu-card {
  background: var(--card-bg);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-card);
  position: relative;
  margin: 0;
}

/* Inner brass hairline frame */
.menu-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--brass-soft);
  border-radius: 1px;
  pointer-events: none;
  opacity: 0.75;
}

/* Decorative corner dingbats — drawn with a single SVG via mask-image
   so they pick up currentColor and stay sharp at any zoom level.
   Four corners painted by stacking four background-images on a single
   absolutely-positioned ::after layer. */
.menu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    /* top-left */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><g fill='none' stroke='%23a8854a' stroke-width='1' stroke-linecap='round'><path d='M2 8 Q2 2 8 2'/><circle cx='4.5' cy='4.5' r='1' fill='%23a8854a' stroke='none'/></g></svg>"),
    /* top-right */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><g fill='none' stroke='%23a8854a' stroke-width='1' stroke-linecap='round'><path d='M16 8 Q16 2 10 2'/><circle cx='13.5' cy='4.5' r='1' fill='%23a8854a' stroke='none'/></g></svg>"),
    /* bottom-left */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><g fill='none' stroke='%23a8854a' stroke-width='1' stroke-linecap='round'><path d='M2 10 Q2 16 8 16'/><circle cx='4.5' cy='13.5' r='1' fill='%23a8854a' stroke='none'/></g></svg>"),
    /* bottom-right */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><g fill='none' stroke='%23a8854a' stroke-width='1' stroke-linecap='round'><path d='M16 10 Q16 16 10 16'/><circle cx='13.5' cy='13.5' r='1' fill='%23a8854a' stroke='none'/></g></svg>");
  background-repeat: no-repeat;
  background-size: 18px 18px, 18px 18px, 18px 18px, 18px 18px;
  background-position:
    3px 3px,
    calc(100% - 3px) 3px,
    3px calc(100% - 3px),
    calc(100% - 3px) calc(100% - 3px);
}

/* ----- Hero card — the Ober breaks the top frame. ----- */

.hero {
  text-align: center;
  padding: 6.5rem 1.6rem 2rem; /* extra top padding so logo + kicker have room */
  margin-top: 4.5rem; /* room for the logo to overhang the top edge */
}

.hero-logo {
  position: absolute;
  top: -88px;
  left: 50%;
  transform: translateX(-50%);
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1a1612 0%, #2a241e 100%);
  box-shadow:
    0 0 0 1px var(--brass-bright) inset,
    0 0 0 6px var(--paper),
    0 0 0 7px var(--brass-soft),
    0 18px 38px -16px rgba(26, 22, 18, 0.35);
  z-index: 2;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.hero .kicker {
  margin-top: 0.2rem;
}

/* Tagesangebot — the "Heute im Angebot" stat strip.
   Three numbers separated by brass bullets, small-caps label below. */
.tagesangebot {
  list-style: none;
  padding: 0.9rem 0;
  margin: 0.4rem auto 1.4rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--brass-soft);
  border-bottom: 1px solid var(--brass-soft);
  position: relative;
}
.tagesangebot::before,
.tagesangebot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brass-soft);
  opacity: 0.45;
}
.tagesangebot::before { top: 2px; }
.tagesangebot::after { bottom: 2px; }

.tagesangebot li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  position: relative;
}
.tagesangebot li + li::before {
  content: "❦";
  position: absolute;
  left: -1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brass);
  font-size: 0.7rem;
  letter-spacing: 0;
}
.tagesangebot strong {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.45rem;
  color: var(--rot);
  letter-spacing: 0;
}

/* ----- Bestellzettel (the form) — a little tear-off receipt feel.
   Brass-rule top, small "№ 1 · Tisch 1" stub above the label. ----- */

.bestellzettel {
  position: relative;
  margin: 1.6rem -0.4rem 0.4rem;
  padding: 1.3rem 1.2rem 1.1rem;
  background: linear-gradient(to bottom, var(--paper) 0%, var(--paper-deep) 100%);
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Faint diagonal lined-paper effect on the Bestellzettel */
.bestellzettel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--brass-soft);
  border-radius: 1px;
  opacity: 0.55;
  pointer-events: none;
}

.bestellzettel-stub {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--brass);
  margin: 0 0 0.45rem;
  letter-spacing: 0.05em;
}

#signup-form {
  margin-top: 0;
}

.form-label {
  display: block;
  margin-bottom: 0.7rem;
}

.form-label-de {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.form-label-en {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.form-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

input[type="email"] {
  flex: 1 1 240px;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius);
  background: #fffcf3;
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--rot);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
}

button[type="submit"] {
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.015em;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--rot-deep);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--rot) 0%, var(--rot-deep) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 14px -8px rgba(156, 12, 36, 0.6);
  transition: transform 60ms ease, box-shadow 120ms ease, filter 120ms ease;
}

button[type="submit"]:hover {
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 18px -8px rgba(156, 12, 36, 0.75);
}

button[type="submit"]:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

button[type="submit"]:active {
  transform: translateY(1px);
}

button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: progress;
}

/* Honeypot field — hidden from humans but present in the DOM so bots
   that fill every input get caught.  Off-screen + tab-out so screen
   readers and keyboard users never reach it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fineprint {
  font-size: 0.84rem;
  color: var(--ink-mute);
  margin-top: 0.6rem;
}

#form-status {
  min-height: 1.4rem;
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

#form-status.ok {
  color: #1f7a3a;
}

#form-status.err {
  color: var(--rot);
}

/* ----- Decorative divider — the gilt rail between Kaffeehaus sections ----- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.8rem 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--brass-soft) 15%,
    var(--brass) 50%,
    var(--brass-soft) 85%,
    transparent
  );
}

.divider-ornament {
  margin: 0 1.1rem;
  color: var(--brass);
  line-height: 0;
  display: inline-flex;
}

.divider-ornament svg {
  display: block;
}

/* ----- Job preview list ----- */

.preview-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0.5rem;
  display: grid;
  gap: 0.7rem;
}

.preview-list li {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rot);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.preview-list li:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(26, 22, 18, 0.22);
}

.preview-list .placeholder {
  color: var(--ink-soft);
  font-style: italic;
  border-left-color: var(--brass-soft);
  background: transparent;
  text-align: center;
}

.preview-list .meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0.2rem 0 0.4rem;
}

.preview-list .salary {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
}

.preview-list a.title {
  font-weight: 700;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.06rem;
  text-decoration: none;
}

.preview-list a.title:hover {
  color: var(--rot);
}

.menu-card-foot {
  text-align: center;
  margin: 1.2rem 0 0.2rem;
}

/* "Wir haben aber noch viel mehr im Angebot…" — body voice, italic
   serif, sits *below* the three previewed cards as a teaser, then
   the centered .menu-card-foot link picks it up.  Deliberately not
   a heading: it's a "by the way" line, not a section title. */
.preview-more {
  text-align: center;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 1.3rem 0 0.2rem;
}

/* ----- "So läuft's bei uns" steps ----- */

.steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0.5rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 3.2rem;
  margin: 1rem 0;
  counter-increment: step;
  min-height: 2rem;
}

.steps li::before {
  /* Numbered medallion — feels like the order number on a Wirtshaus-Block */
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--rot) 0%, var(--rot-deep) 100%);
  color: #fff;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px var(--card-bg),
    0 0 0 4px var(--brass-soft),
    0 4px 10px -4px rgba(156, 12, 36, 0.4);
}

.steps strong {
  color: var(--ink);
}

/* ----- Preview page hero variant ----- */

.hero--compact {
  margin-top: 4.5rem;
  padding-top: 6.5rem;
}

.hero--compact .back {
  position: absolute;
  top: 1rem;
  left: 1.4rem;
  font-size: 0.9rem;
  margin: 0;
  z-index: 3;
}

.hero--compact .back a {
  text-decoration: none;
  color: var(--brass);
  font-style: italic;
}

.hero--compact .back a:hover {
  color: var(--rot);
}

.hero-logo-small {
  width: 136px;
  height: 136px;
  top: -68px;
}

/* ----- CTA + footer ----- */

.cta {
  text-align: center;
  padding: 1.5rem 1.6rem;
}

.cta h2 {
  margin-bottom: 0.6rem;
}

footer {
  margin-top: 3rem;
  padding-top: 0.5rem;
  text-align: center;
}

.footer-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1rem auto 1.2rem;
  max-width: 360px;
}

.footer-flourish-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--brass-soft) 30%,
    var(--brass) 50%,
    var(--brass-soft) 70%,
    transparent
  );
}

.footer-flourish-mark {
  color: var(--brass);
  font-size: 1.1rem;
  line-height: 1;
}

.footer-line {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0 0 0.5rem;
}

.footer-fineprint {
  color: var(--ink-mute);
  font-size: 0.83rem;
  margin: 0;
}

/* ----- Mobile tweaks ----- */

@media (max-width: 640px) {
  main {
    padding: 2rem 0.9rem 3rem;
  }

  .menu-card {
    padding: 1.6rem 1.1rem 1.3rem;
  }

  .hero {
    padding: 5.5rem 1.1rem 1.7rem;
    margin-top: 4rem;
  }

  .hero-logo {
    width: 150px;
    height: 150px;
    top: -75px;
  }

  .hero-logo-small {
    width: 116px;
    height: 116px;
    top: -58px;
  }

  .kicker {
    font-size: 0.95rem;
    gap: 0.5rem;
  }

  .kicker-rule {
    width: 1.6rem;
  }

  .tagesangebot {
    font-size: 0.7rem;
    gap: 0.3rem 1.1rem;
    letter-spacing: 0.12em;
    padding: 0.7rem 0;
  }

  .tagesangebot strong {
    font-size: 1.25rem;
  }

  .bestellzettel {
    padding: 1.1rem 0.95rem 1rem;
    margin-left: -0.2rem;
    margin-right: -0.2rem;
  }

  button[type="submit"] {
    flex: 1 1 100%;
  }

  .divider {
    margin: 2rem 0;
  }
}

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

/* =====================================================================
   Channel picker — four menu rows inside the Bestellzettel.
   Telegram (live) is the only filled Wiener-Rot row; the other three
   are cream paper with dashed brass hairlines and a "bald in da Koat'n"
   tag.  Nothing is pre-selected — the picker is a deliberate demand
   poll, so a clean "no default" state is intentional.  Submit button
   starts disabled with nudge copy until a row is picked.
   ===================================================================== */

.channel-picker {
  border: 0;
  padding: 0;
  margin: 0 0 0.9rem;
}

.channel-picker > .form-label {
  margin-bottom: 0.75rem;
  padding: 0;
}

.channel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.channel-row {
  position: relative;
}

/* Visually-hide the radio but keep it tab-focusable and accessible. */
.channel-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.channel-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.55rem 0.85rem 0.55rem 0.7rem;
  background: var(--paper);
  border: 1px solid var(--brass-soft);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    transform 60ms ease;
}

.channel-label:hover {
  background: var(--card-bg);
}

.channel-label:active {
  transform: translateY(1px);
}

/* Brass-bordered disc that holds the platform logo.  Sized to give
   the logo (~18 px square inline SVG) generous breathing room inside
   the 32-px ring so the icon reads at the tap-target scale. */
.channel-mono {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--brass);
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.channel-mono .channel-logo {
  width: 18px;
  height: 18px;
  display: block;
}

.channel-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.channel-name {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--ink);
}

.channel-sub {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.3;
  margin-top: 1px;
}

.channel-tag {
  flex: 0 0 auto;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--brass);
  text-align: right;
  line-height: 1.15;
  white-space: nowrap;
}

/* Telegram row — filled Wiener-Rot, matches submit-button gradient
   so the visual weight tells the user "this is the live one".
   We set border colours per-side rather than the shorthand so the
   3-px left rule stays transparent in the unselected state — the
   selected-state rule below paints it dark red. */
.channel-row--live .channel-label {
  background: linear-gradient(180deg, var(--rot) 0%, var(--rot-deep) 100%);
  border-top-color: var(--rot-deep);
  border-right-color: var(--rot-deep);
  border-bottom-color: var(--rot-deep);
  border-left-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 14px -10px rgba(156, 12, 36, 0.55);
}
.channel-row--live .channel-label:hover {
  background: linear-gradient(180deg, var(--rot) 0%, var(--rot-deep) 100%);
  filter: brightness(1.05);
}
.channel-row--live .channel-name,
.channel-row--live .channel-sub {
  color: #fff;
}
.channel-row--live .channel-sub {
  color: rgba(255, 255, 255, 0.88);
}
.channel-row--live .channel-mono {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
  color: var(--rot-deep);
}
.channel-row--live .channel-tag {
  color: rgba(255, 255, 255, 0.92);
}

/* Waitlist rows — dashed brass hairline picks up the receipt vocabulary. */
.channel-row--soon .channel-label {
  border-style: dashed;
  border-color: var(--brass-soft);
  border-left-style: solid;
  border-left-color: transparent;
}

/* Selected state — 3px Wiener-Rot left rule, same device as
   .preview-list li.  Works for both live and waitlist rows. */
.channel-radio:checked + .channel-label {
  border-left-color: var(--rot);
  background-color: #fffcf3;
}
.channel-row--live .channel-radio:checked + .channel-label {
  /* Keep the red gradient; thicken the left rule with a deeper red. */
  border-left-color: #6b061a;
  background: linear-gradient(180deg, var(--rot) 0%, var(--rot-deep) 100%);
}

/* Keyboard focus — brass ring, matches submit button's focus style. */
.channel-radio:focus-visible + .channel-label {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* =====================================================================
   Email reveal — collapsed by default, animates open when a waitlist
   channel is picked.  The input stays in the DOM (just height: 0) so
   focus can be moved into it without a reflow flash.
   ===================================================================== */

.email-reveal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition:
    max-height 180ms ease,
    opacity 140ms ease,
    margin 180ms ease;
}

.email-reveal[data-open="true"] {
  max-height: 200px;
  opacity: 1;
  margin: 0.9rem 0 0.2rem;
}

/* When the reveal lives inside the selected channel row, tighten the
   top margin so the field reads as part of that row, not as a separate
   block.  The row's own gap (.channel-list gap) gives the visual
   spacing above. */
.channel-row .email-reveal[data-open="true"] {
  margin: 0.6rem 0 0.2rem;
}

.email-reveal-label {
  display: block;
  margin-bottom: 0.5rem;
}
.email-reveal-label .form-label-de {
  font-size: 1.05rem;
}
.email-reveal-label .form-label-en {
  font-size: 0.86rem;
}

.email-reveal input[type="email"] {
  width: 100%;
}

/* =====================================================================
   Submit button — spans full width inside the Bestellzettel.  The
   disabled state is *visible*, not faded, because the disabled copy
   ("Wähl zerst aus, wo's hin soll →") is itself the call to action.
   ===================================================================== */

#signup-form button[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 1rem;
}

/* When the submit lives inside the selected channel row, the row
   itself provides the visual anchor — tighten the top margin so the
   button reads as part of that row, not as a free-floating CTA. */
.channel-row #signup-submit {
  margin-top: 0.6rem;
}

#signup-form button[type="submit"]:disabled {
  background: var(--paper-deep);
  color: var(--ink-soft);
  border-color: var(--brass-soft);
  box-shadow: none;
  cursor: not-allowed;
  /* Override the global :disabled rule so the nudge copy reads. */
  opacity: 1;
  filter: none;
}

/* =====================================================================
   Success state — back-pressure link.  After a waitlist submit we
   show a quiet brass link offering Telegram, recovering conversion
   from users who would have accepted it in a pinch (the demand vote
   is already in the DB at this point, so the redirect doesn't
   pollute the poll).
   ===================================================================== */

.backpressure {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-soft);
  padding-bottom: 1px;
}
.backpressure:hover {
  color: var(--rot);
  border-bottom-color: var(--rot);
}

/* =====================================================================
   Mobile — denser rows so the full picker (4 rows + label + submit)
   fits comfortably on iPhone SE without the user having to scroll.
   ===================================================================== */

@media (max-width: 640px) {
  .channel-label {
    min-height: 54px;
    padding: 0.5rem 0.65rem 0.5rem 0.55rem;
    gap: 0.6rem;
  }
  .channel-mono {
    width: 28px;
    height: 28px;
  }
  .channel-mono .channel-logo {
    width: 16px;
    height: 16px;
  }
  .channel-name {
    font-size: 1rem;
  }
  .channel-sub {
    font-size: 0.78rem;
  }
  .channel-tag {
    font-size: 0.72rem;
    max-width: 5.6rem;
    white-space: normal;
  }
  .channel-list {
    gap: 0.4rem;
  }
}

@media (max-width: 380px) {
  /* On the very smallest screens, lift the corner tag to a tiny chip in
     the top-right so the sub-line keeps full horizontal room. */
  .channel-tag {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 0.68rem;
    max-width: none;
  }
  .channel-label {
    padding-top: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .email-reveal,
  .channel-label {
    transition: none;
  }
}
