/* Bardeli bei Nacht: the invitation-list page (design v6, 18 Nov 2026). Built from mockup-bei-nacht-v6.html. */
  :root {
    --night: #0A0D0B; --paper: #F6F3EC; --cream: #E0DCCC; --ember: #E9972D;
    --brick: #A0361B; --brick-hi: #C4501B; --edge: #E9972D;
    --font: "Century Gothic","CenturyGothic","TeX Gyre Adventor","Questrial",sans-serif;
    /* type */
    --fs-display: clamp(46px, 12.6vw, 78px);
    --fs-body: 16px; --fs-small: 12px; --fs-label: 11px; --tr-label: .3em;
    /* text colours */
    --t-1: var(--paper); --t-2: rgba(224,220,204,.68); --t-3: rgba(224,220,204,.56);
    --accent: #E9972D;
    /* surfaces */
    --line: rgba(224,220,204,.10);
    --well: rgba(0,0,0,.34); --well-line: rgba(224,220,204,.10); --well-shadow: inset 0 1px 2px rgba(0,0,0,.5);
    --r-1: 20px; --r-2: 12px; --r-3: 9px;
    /* light + big word (mock bar) */
    --light: .9; --word: .16;
  }
  * { box-sizing: border-box; }
  html { background: var(--night); }
  body { margin: 0; min-height: 100vh; background: var(--night); color: var(--t-1); font-family: var(--font);
         font-size: var(--fs-body); line-height: 1.45; -webkit-font-smoothing: antialiased; }
  html, body { overflow-x: clip; }
  body.lock { overflow: hidden; }
  p { margin: 0; }

  .grain { position: fixed; inset: -50%; pointer-events: none; opacity: .14; mix-blend-mode: overlay; z-index: 50;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1s steps(6) infinite; }
  @keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,-2%)} 80%{transform:translate(5%,4%)} 100%{transform:translate(0,0)} }

  /* ---------- one label voice (like OFFICE / GET IN TOUCH) ---------- */
  .lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px;
         font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--t-2); }
  .lab small { font-size: inherit; font-weight: 700; letter-spacing: inherit; color: var(--t-3); }
  .lab.sec { color: var(--t-1); margin-bottom: 20px; }
  .lab.bl { display: block; }
  .lab.sec { position: relative; padding-left: 28px; }
  .lab.sec::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px; margin-top: -1px;
                     background: var(--edge); box-shadow: 0 0 8px var(--edge); }
  .eyebrow, .done .sub { text-align: center; }
  .muted { color: var(--t-2); }
  .small { font-size: var(--fs-small); color: var(--t-3); line-height: 1.5; }

  /* ---------- light from above ---------- */
  /* the glow is wider than a phone: .light is screen-wide and clips it, so the page never gets wider than the screen (18 Nov fix) */
  .light { position: absolute; left: 0; right: 0; top: 0; height: 1100px; overflow: hidden;
           pointer-events: none; z-index: 0; opacity: 0; }
  .light::before { content: ""; position: absolute; top: 0; left: 50%; width: 1100px; max-width: 220vw; height: 100%; transform: translateX(-50%);
    background: radial-gradient(ellipse 18% 30% at 50% 0%, rgba(246,236,214,.26), transparent 70%),
                radial-gradient(ellipse 34% 48% at 50% 0%, rgba(246,226,190,.12), transparent 72%),
                radial-gradient(ellipse 52% 70% at 50% 0%, rgba(233,151,45,.07), transparent 74%); }
  .light.on { opacity: var(--light); }
  .light.flick { animation: flick 1.1s linear forwards; }
  @keyframes flick { 0%{opacity:0} 8%{opacity:calc(var(--light)*.7)} 14%{opacity:.04} 22%{opacity:calc(var(--light)*.85)} 30%{opacity:.12} 100%{opacity:var(--light)} }
  .lamp { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 1; pointer-events: none; display: none; opacity: 0; transition: opacity 1.2s; }
  body.with-lamp .lamp { display: block; }
  .lamp.on { opacity: 1; }

  /* ---------- page ---------- */
  main { position: relative; z-index: 2; width: 100%; max-width: 560px; margin: 0 auto; padding: 64px 16px 0; }
  body.with-lamp main { padding-top: 128px; }
  .back { position: absolute; left: 16px; top: 20px; margin: 0; text-decoration: none; color: var(--t-3); transition: color .25s; }
  .back:hover { color: var(--t-1); }
  .eyebrow { justify-content: center; color: var(--t-1); margin-bottom: 24px; }
  h1, .done h2 { margin: 0; text-align: center; font-size: var(--fs-display); line-height: 1.02; font-weight: 700;
       color: var(--paper); letter-spacing: -.015em; }
  h1 { transform-origin: 50% 50%; will-change: transform; }
  .em { color: var(--accent); }

  /* ---------- the one card ---------- */
  .cardwrap { position: relative; margin-top: 96px; }
  @media (min-width: 700px) { .cardwrap { margin-top: 136px; } }
  .bigword { position: absolute; left: 50%; top: 0; transform: translate(-50%, -52%); z-index: 0; pointer-events: none;
             font-size: clamp(120px, 34vw, 300px); font-weight: 700; letter-spacing: -.03em; line-height: .8;
             color: rgba(224,220,204,var(--word)); white-space: nowrap; }
  .bigword span { display: block; }
  @media (max-width: 560px) { .bigword { font-size: calc((100vw - 32px) / 3.3); } }   /* the whole word fits on a phone */
  .card { position: relative; z-index: 1; border-radius: var(--r-1); padding: 32px 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    -webkit-backdrop-filter: blur(22px) saturate(115%); backdrop-filter: blur(22px) saturate(115%);
    border: 1px solid rgba(224,220,204,.09);
    box-shadow: 0 50px 90px -30px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.07); }
  @media (min-width: 480px) { .card { padding: 40px 36px; } }
  .card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(200deg, transparent 22%, var(--edge) 44%, transparent 78%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
  .card::after { content: ""; position: absolute; right: -1px; top: 6%; height: 30%; width: 1.5px; pointer-events: none;
    background: linear-gradient(transparent, var(--edge) 40%, var(--edge) 60%, transparent);
    box-shadow: 0 0 14px 1px var(--edge), 0 0 34px 2px color-mix(in srgb, var(--edge) 35%, transparent); border-radius: 2px; }

  .part + .part { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }

  /* the evening: label + short lines, in columns */
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .facts p { line-height: 1.45; }
  @media (max-width: 440px) { .facts .wide { grid-column: 1 / -1; } }

  /* the two steps: two short lines, flat (nothing that looks tappable) */
  .steps { display: grid; gap: 12px; }
  .step { display: grid; grid-template-columns: 32px 1fr; align-items: baseline; }
  .step .lab { margin: 0; color: var(--t-3); }
  .well { background: var(--well); border: 1px solid var(--well-line); border-radius: var(--r-2); box-shadow: var(--well-shadow); }

  /* field labels: plain sentence case; capitals stay for section titles + the evening's labels */
  .field > .lab { font-size: var(--fs-small); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--t-2); margin-bottom: 8px; }
  .field > .lab small { font-weight: 400; letter-spacing: 0; color: var(--t-3); }

  /* fields */
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 380px) { .row2 { grid-template-columns: 1fr; } }
  .field { margin-bottom: 24px; }
  .inp { position: relative; }
  .inp svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px;
             stroke: var(--t-3); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
  input[type=text], input[type=email], input[type=tel], textarea {
    width: 100%; font: inherit; font-size: var(--fs-body); color: var(--t-1); background: var(--well);
    border: 1px solid var(--well-line); border-radius: var(--r-2); padding: 14px 16px; outline: none; height: 52px;
    box-shadow: var(--well-shadow); transition: border-color .25s, box-shadow .25s; }
  .inp input { padding-left: 46px; }
  textarea { height: auto; min-height: 96px; resize: vertical; }
  ::placeholder { color: rgba(224,220,204,.3); }
  input:focus, textarea:focus { border-color: color-mix(in srgb, var(--edge) 75%, transparent); box-shadow: var(--well-shadow), 0 0 0 3px color-mix(in srgb, var(--edge) 22%, transparent); }
  /* Chrome autofill paints fields pale blue: keep them dark */
  input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--paper); caret-color: var(--paper);
    -webkit-box-shadow: 0 0 0 1000px #121412 inset; transition: background-color 600000s 0s; }

  .tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 4px; }
  .tab { position: relative; font: inherit; font-size: var(--fs-body); font-weight: 700; color: var(--t-2); background: transparent;
         border: 1px solid transparent; border-radius: var(--r-3); height: 44px; cursor: pointer; transition: color .25s, background .25s; padding: 0; }
  .tab:hover { color: var(--t-1); }
  .tab[aria-pressed=true] { color: var(--t-1); background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035)); border-color: rgba(224,220,204,.12); }
  .tab[aria-pressed=true]::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: -1px; height: 2px; border-radius: 2px;
         background: var(--edge); box-shadow: 0 0 10px 1px var(--edge), 0 0 22px 2px color-mix(in srgb, var(--edge) 40%, transparent); }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { position: relative; font: inherit; font-size: var(--fs-small); color: var(--t-2); background: var(--well); height: 40px;
          border: 1px solid var(--well-line); border-radius: var(--r-3); padding: 0 14px; cursor: pointer; box-shadow: var(--well-shadow);
          transition: color .25s, border-color .25s, background .25s, padding .25s; }
  .chip:hover { color: var(--t-1); }
  .chip[aria-pressed=true] { color: var(--t-1); border-color: var(--edge); padding-left: 28px; box-shadow: 0 0 16px -4px var(--edge);
          background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); }
  .chip[aria-pressed=true]::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
          border-radius: 50%; background: var(--edge); box-shadow: 0 0 8px var(--edge); }
  .chips + .small { margin-top: 12px; }

  .consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 0 0 24px; cursor: pointer; color: var(--t-2); }
  .consent input { position: absolute; opacity: 0; pointer-events: none; }
  .consent .small { color: var(--t-2); }
  .box { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(224,220,204,.22); background: var(--well);
         display: grid; place-items: center; transition: border-color .25s, box-shadow .25s; }
  .box svg { width: 13px; height: 13px; stroke: var(--edge); stroke-width: 2.2; fill: none; opacity: 0; transition: opacity .2s; }
  .consent input:checked + .box { border-color: var(--edge); box-shadow: 0 0 12px -2px var(--edge); }
  .consent input:checked + .box svg { opacity: 1; }
  .consent input:focus-visible + .box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--edge) 35%, transparent); }
  a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(224,220,204,.35); }

  /* the button: glass with the same lit edge as the card, no colour fill */
  .send { position: relative; width: 100%; height: 56px; font: inherit; font-size: var(--fs-body); font-weight: 700; color: var(--paper);
          border: 1px solid rgba(224,220,204,.14); border-radius: var(--r-2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px;
          background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
          transition: transform .2s, background .3s; }
  .send::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(105deg, transparent 25%, var(--edge) 62%, transparent 96%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; opacity: .8; transition: opacity .3s; }
  .send:hover { background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); }
  .send:hover::before { opacity: 1; }
  .send:active { transform: translateY(1px); }
  .send svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; transition: transform .25s; }
  .send:hover svg { transform: translateX(3px); }
  /* errors: each field says what is missing, and clears the moment it is fixed */
  .err { color: #EC8B66; font-size: var(--fs-small); margin: 0 0 16px; text-align: center; }
  .ferr { color: #EC8B66; font-size: var(--fs-small); margin: 8px 0 0; }
  .consent .ferr { grid-column: 1 / -1; margin: 0; }
  .bad input, .bad .tabs, .bad .box { border-color: rgba(236,139,102,.8) !important; }

  footer { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: 48px 16px 64px;
           display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  @media (min-width: 480px) { footer { padding-left: 52px; padding-right: 52px; } }
  footer .lab { color: var(--t-2); margin-bottom: 8px; }
  footer p { font-size: var(--fs-small); color: var(--t-3); line-height: 1.6; }

  /* ---------- reveal ---------- */
  .rv, .rvc { opacity: 0; }
  body.shown main .rv, body.shown main .rvc, body.shown footer.rv { opacity: 1 !important; filter: none !important; transform: none !important; }
  .bl .c { display: inline-block; opacity: 0; white-space: pre; will-change: filter, opacity, transform; }
  .bl .w { display: inline-block; white-space: nowrap; }
  body.shown main .bl .c { opacity: 1 !important; filter: none !important; transform: none !important; }

  .skip { position: fixed; right: 16px; bottom: 16px; z-index: 60; font: inherit; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--tr-label);
          text-transform: uppercase; color: var(--t-2); background: none; border: 0; cursor: pointer; padding: 12px; transition: opacity .6s; }
  .skip.gone { opacity: 0; pointer-events: none; }

  /* ---------- after sending ---------- */
  .done { position: fixed; inset: 0; z-index: 40; background: var(--night); opacity: 0; pointer-events: none; transition: opacity 1.4s ease;
          display: flex; flex-direction: column; padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; }
  .done.on { opacity: 1; pointer-events: auto; }
  .done .inner { text-align: center; max-width: 460px; width: 100%; margin: auto; }   /* centred, and scrolls instead of cutting off on a short phone */
  .done h2 { font-size: clamp(40px, 12.6vw, 78px); }
  .done .mail { margin-top: 24px; color: var(--t-2); }
  .done .rule { width: 0; height: 1px; background: var(--accent); margin: 32px auto 24px; transition: width 2.2s cubic-bezier(.45,.05,.35,1); }
  .done .rule.on { width: 56px; }
  .done .sub { justify-content: center; color: var(--accent); margin: 0; }
  .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
  @media (max-width: 420px) { .acts { grid-template-columns: 1fr; } }
  .act { position: relative; font: inherit; font-size: var(--fs-body); font-weight: 700; color: var(--paper); cursor: pointer; height: 56px; border-radius: var(--r-2);
         display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none;
         background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(224,220,204,.11); overflow: hidden; }
  .act::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: -1px; height: 1.5px; background: var(--edge); box-shadow: 0 0 10px 1px var(--edge); opacity: .85; }
  .act svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .act:hover { background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); }
  .done .small { margin-top: 24px; }
  .toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 70; background: rgba(30,32,30,.95); color: var(--paper);
           border: 1px solid rgba(224,220,204,.12); border-radius: var(--r-2); padding: 12px 20px; font-size: var(--fs-small); opacity: 0; transition: .35s; pointer-events: none; }
  .toast.on { opacity: 1; transform: translate(-50%, 0); }

  /* ---------- choice sheet (calendar + share), for phones and in-app browsers like Instagram's ---------- */
  .sheet { position: fixed; inset: 0; z-index: 45; display: flex; align-items: flex-end; justify-content: center;
           padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
  .sheet[hidden] { display: none; }
  @media (min-width: 700px) { .sheet { align-items: center; } }
  .sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
              opacity: 0; transition: opacity .35s; }
  .sheet-card { position: relative; width: 100%; max-width: 420px; border-radius: var(--r-1); padding: 28px 20px 12px;
    background: linear-gradient(180deg, rgba(34,36,35,.96), rgba(20,22,21,.96)); border: 1px solid rgba(224,220,204,.11);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.07);
    opacity: 0; transform: translateY(28px); transition: opacity .35s, transform .5s cubic-bezier(.2,.7,.2,1); }
  .sheet.on .sheet-bg, .sheet.on .sheet-card { opacity: 1; }
  .sheet.on .sheet-card { transform: none; }
  .sheet-list { display: grid; gap: 10px; }
  .sheet-list .act { height: 52px; }
  .sheet-list .act::after { display: none; }   /* the lit edge stays on the two main buttons */
  .sheet .small { margin-top: 16px; text-align: center; }
  .sheet-x { display: block; margin: 8px auto 0; font: inherit; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--tr-label);
             text-transform: uppercase; color: var(--t-2); background: none; border: 0; padding: 14px; cursor: pointer; }

  
  @media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* honeypot (bots fill it, people never see it) + sending state */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send:disabled { opacity: .6; cursor: progress; }
