/* ==========================================================================
   JACK'S INN 54 — Newsletter
   Palette: Nacht-Schwarz / verwittertes Holz / Knopf-Rot / Knochen-Weiß
   ========================================================================== */

:root {
  --ink: #0d0c0b;
  --red: #bb1917;        /* exakt auf das Original-Emblem skull-red2-4x.png abgestimmt */
  --red-bright: #d92f21;
  --red-deep: #7e1710;
  --bone: #f2ece0;
  --bone-dim: #d8d0bf;
  --smoke: rgba(242, 236, 224, 0.6);
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-label: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow Semi Condensed", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse at 50% 38%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0.82) 100%),
    url("../img/wood-bg.jpeg");
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: fixed;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--bone); }

a { color: var(--bone); }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

/* Blitz-Flacker-Overlay (wird per JS kurz aufgeblendet) */
.flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.22), rgba(255,255,255,0) 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

/* --------------------------------------------------------------------------
   Glitch-Burst (Startseite): RGB-Split am Button + Störbalken über den Screen
   -------------------------------------------------------------------------- */

.glitch-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  display: none;
}

body.glitch-on .glitch-fx { display: block; }

.glitch-fx::before,
.glitch-fx::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  mix-blend-mode: screen;
}

.glitch-fx::before {
  top: 24%;
  height: 16px;
  background: linear-gradient(90deg,
    rgba(217, 47, 33, 0.45), rgba(242, 236, 224, 0.30) 40%,
    rgba(0, 229, 255, 0.35) 70%, rgba(217, 47, 33, 0.45));
  box-shadow: 0 0 22px rgba(217, 47, 33, 0.6);
  animation: glitch-bar-a 0.5s steps(3, end) both;
}

.glitch-fx::after {
  top: 66%;
  height: 9px;
  background: linear-gradient(90deg,
    rgba(0, 229, 255, 0.35), rgba(242, 236, 224, 0.25) 55%, rgba(217, 47, 33, 0.4));
  box-shadow: 0 0 16px rgba(242, 236, 224, 0.45);
  animation: glitch-bar-b 0.5s steps(4, end) both;
}

@keyframes glitch-bar-a {
  0%   { transform: translate(-24%, 0) scaleY(1); opacity: 1; }
  40%  { transform: translate(10%, -340%) scaleY(2.2); }
  70%  { transform: translate(-6%, 480%) scaleY(0.7); }
  100% { transform: translate(28%, 120%) scaleY(1.4); opacity: 0; }
}

@keyframes glitch-bar-b {
  0%   { transform: translate(22%, 0) scaleY(1); opacity: 1; }
  35%  { transform: translate(-12%, 520%) scaleY(2.6); }
  65%  { transform: translate(8%, -300%) scaleY(0.6); }
  100% { transform: translate(-26%, -80%) scaleY(1.2); opacity: 0; }
}

.big-button-wrap.is-glitching {
  animation: btn-glitch 0.5s steps(2, end);
}

@keyframes btn-glitch {
  0%   { transform: translate(0, 0); }
  12%  { transform: translate(-8px, 3px) skewX(-3deg);
         filter: drop-shadow(0 26px 34px rgba(0,0,0,0.65))
                 drop-shadow(-16px 0 rgba(255, 0, 60, 0.9))
                 drop-shadow(16px 0 rgba(0, 229, 255, 0.8)); }
  28%  { transform: translate(7px, -4px) skewX(2.5deg);
         filter: drop-shadow(0 26px 34px rgba(0,0,0,0.65))
                 drop-shadow(14px 0 rgba(255, 0, 60, 0.9))
                 drop-shadow(-14px 0 rgba(0, 229, 255, 0.8)); }
  45%  { transform: translate(-5px, 2px);
         filter: drop-shadow(0 26px 34px rgba(0,0,0,0.65))
                 drop-shadow(-20px 0 rgba(255, 0, 60, 0.7))
                 drop-shadow(20px 0 rgba(0, 229, 255, 0.65)); }
  62%  { transform: translate(4px, -2px) skewX(-1.5deg);
         filter: drop-shadow(0 26px 34px rgba(0,0,0,0.65)); }
  80%  { transform: translate(-2px, 1px); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .glitch-fx, .big-button-wrap.is-glitching { animation: none !important; display: none; }
}

/* --------------------------------------------------------------------------
   Typo-Bausteine
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--smoke);
  text-align: center;
}

.eyebrow::before,
.eyebrow::after { content: "— "; color: var(--red-bright); }
.eyebrow::after { content: " —"; }

.tagline {
  margin-top: 26px;
  max-width: 420px;
  text-align: center;
  color: var(--bone-dim);
  font-size: 16px;
}

.tagline strong { color: var(--bone); }

/* --------------------------------------------------------------------------
   DER BUTTON (Nachbau der Vorlage — Text unverändert)
   -------------------------------------------------------------------------- */

.big-button-wrap {
  margin-top: 34px;
  position: relative;
  /* Sockel-Schatten auf dem Holz */
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.65));
}

.big-button {
  --size: min(76vw, 470px);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  display: block;
  background: var(--red);
  box-shadow:
    0 10px 0 var(--red-deep),
    0 14px 22px rgba(0, 0, 0, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  outline-offset: 6px;
}

.big-button:focus-visible { outline: 3px dashed var(--bone); }

/* Glanz und Vignette liegen ÜBER dem Emblem-Bild, damit dessen
   rote Fläche nahtlos mit der Knopffläche verschmilzt */
.big-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 42%),
    radial-gradient(circle at 50% 90%, rgba(0,0,0,0.26) 0%, rgba(0,0,0,0) 42%);
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.28),
    inset 0 -14px 26px rgba(0, 0, 0, 0.34);
  pointer-events: none;
  z-index: 2;
}

.big-button:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 0 var(--red-deep),
    0 20px 30px rgba(0, 0, 0, 0.6);
}

.big-button:active,
.big-button.is-pressed {
  transform: translateY(8px);
  box-shadow:
    0 2px 0 var(--red-deep),
    0 4px 10px rgba(0, 0, 0, 0.5);
}

.big-button:active::after,
.big-button.is-pressed::after {
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 -6px 14px rgba(0, 0, 0, 0.3);
}

.big-button__face {
  position: absolute;
  inset: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  color: #fff;
}

.big-button__emblem {
  width: 66%;
  margin-top: 5%;
  position: relative;
}

.big-button__emblem img {
  width: 100%;
  display: block;
  /* Bildfläche hat exakt das Knopf-Rot (#bb1917), alle Schatten/Verläufe
     liegen als Overlay darüber — kein Blending nötig */
}

.big-button__press {
  font-family: var(--font-display);
  font-size: clamp(30px, 10vw, 64px);
  line-height: 1.02;
  letter-spacing: 1px;
  margin-top: 3%;
  text-transform: uppercase;
}

.big-button__member {
  font-family: var(--font-display);
  /* schmaler als PRESS BUTTON, damit die Zeile in der unteren
     Rundung des Knopfs bleibt (kein Überlauf auf Mobilgeräten) */
  font-size: clamp(14px, 4.6vw, 34px);
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Karte / Aufnahmeformular
   -------------------------------------------------------------------------- */

.card {
  width: min(600px, 100%);
  background: var(--bone);
  color: #221e1a;
  border-radius: 6px;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.08),
    0 30px 60px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  position: relative;
}

/* Nieten in den Ecken */
.card::before,
.card::after,
.card .rivet-b::before,
.card .rivet-b::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8a8378, #3d3831 70%);
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.6), 0 1px 1px rgba(255,255,255,0.35);
  z-index: 3;
}
.card::before { top: 10px; left: 10px; }
.card::after  { top: 10px; right: 10px; }
.card .rivet-b::before { bottom: 10px; left: 10px; }
.card .rivet-b::after  { bottom: 10px; right: 10px; }

.card__hero {
  position: relative;
  height: 190px;
  background: url("../img/hero-garage.jpeg") center 62% / cover no-repeat;
}

.card__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,12,11,0.15) 0%, rgba(13,12,11,0.55) 100%);
}

.card__hero-badge {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--bone);
  /* komplettes Original-Emblem als kleiner Patch */
  background: var(--red) url("../img/skull-red2-4x-trans.png") center / 82% no-repeat;
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
  z-index: 2;
}

.card__body { padding: 52px 34px 34px; }

.card__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 48px);
  text-transform: uppercase;
  text-align: center;
  /* Anton ist sehr eng — mehr Laufweite und Zeilenluft für Lesbarkeit */
  letter-spacing: 0.06em;
  word-spacing: 0.12em;
  line-height: 1.12;
  color: #1c1917;
}

.card__title .red { color: var(--red); }

.card__sub {
  text-align: center;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #877e6f;
  margin-top: 8px;
}

.card__intro {
  text-align: center;
  margin: 18px auto 0;
  max-width: 440px;
  color: #4a443c;
}

/* Formular */

.form { margin-top: 28px; display: grid; gap: 22px; }

.form-row { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }

.field { position: relative; }

.field label {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5c554a;
  margin-bottom: 6px;
}

.field label .req { color: var(--red); }
.field label .opt {
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: #98907f;
}

.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #b7ac97;
  font-family: var(--font-body);
  font-size: 18px;
  color: #221e1a;
  padding: 6px 2px 8px;
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.field input:focus {
  outline: none;
  border-bottom-color: var(--red);
}

.field input::placeholder { color: #b3aa97; }

.field .error-msg {
  display: none;
  font-size: 13px;
  color: var(--red-deep);
  font-weight: 600;
  margin-top: 5px;
}

.field.invalid input { border-bottom-color: var(--red-bright); }
.field.invalid .error-msg { display: block; }

/* Honeypot: für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* DSGVO */

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(188, 39, 28, 0.06);
  border: 1px dashed rgba(188, 39, 28, 0.45);
  border-radius: 4px;
  padding: 14px 14px 14px 12px;
}

.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid #6d6558;
  border-radius: 3px;
  background: var(--bone);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.consent input[type="checkbox"]:focus-visible { outline: 2px dashed var(--red); outline-offset: 2px; }

.consent input[type="checkbox"]::after {
  content: "✕";
  font-size: 14px;
  font-weight: 900;
  color: transparent;
  transition: color 0.15s ease;
}

.consent input[type="checkbox"]:checked {
  border-color: var(--red);
  background: #fff;
}

.consent input[type="checkbox"]:checked::after { color: var(--red); }

.consent label { font-size: 14px; line-height: 1.5; color: #4a443c; cursor: pointer; }

.consent .info-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--red);
  text-decoration: underline;
  cursor: pointer;
}

.consent.invalid { border-color: var(--red-bright); background: rgba(188, 39, 28, 0.14); }

/* Submit */

.submit-btn {
  border: none;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 20px;
  border-radius: 4px;
  box-shadow: 0 6px 0 var(--red-deep), 0 10px 18px rgba(0,0,0,0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.submit-btn:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 8px 0 var(--red-deep), 0 14px 22px rgba(0,0,0,0.4); }
.submit-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-deep), 0 4px 8px rgba(0,0,0,0.35); }
.submit-btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.submit-btn:focus-visible { outline: 3px dashed var(--red-deep); outline-offset: 3px; }

.form-error {
  display: none;
  text-align: center;
  background: var(--red-deep);
  color: var(--bone);
  border-radius: 4px;
  padding: 12px 16px;
  font-weight: 600;
}

.form-error.show { display: block; }

.back-link {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--smoke);
  text-decoration: none;
  border-bottom: 1px solid rgba(242,236,224,0.35);
  padding-bottom: 2px;
}

.back-link:hover { color: var(--bone); border-color: var(--bone); }

/* --------------------------------------------------------------------------
   Modal (DSGVO-Hinweis)
   -------------------------------------------------------------------------- */

dialog.privacy-modal {
  margin: auto; /* Reset (* { margin: 0 }) würde die Zentrierung des <dialog> aufheben */
  width: min(560px, calc(100vw - 32px));
  border: none;
  border-radius: 6px;
  background: var(--bone);
  color: #221e1a;
  padding: 0;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7);
}

dialog.privacy-modal::backdrop { background: rgba(13, 12, 11, 0.8); }

.privacy-modal__head {
  background: var(--ink);
  color: var(--bone);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.privacy-modal__head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.privacy-modal__close {
  background: var(--red);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.privacy-modal__body { padding: 22px 24px 26px; font-size: 15px; color: #3d3831; }
.privacy-modal__body p + p { margin-top: 12px; }
.privacy-modal__body strong { color: #1c1917; }

/* --------------------------------------------------------------------------
   Dankesseite
   -------------------------------------------------------------------------- */

.thanks-card { text-align: center; padding: 44px 34px 38px; }

.thanks-card .skull {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto;
  background: #0d0c0b url("../img/skull-black.jpeg") center / 120% no-repeat;
  border: 4px solid var(--red);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.thanks-card h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 52px);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 22px;
  color: #1c1917;
}

.thanks-card h1 .red { color: var(--red); }

.thanks-card p { margin-top: 14px; color: #4a443c; max-width: 420px; margin-left: auto; margin-right: auto; }

/* Stempel */
.stamp {
  position: absolute;
  top: 18px;
  right: -14px;
  transform: rotate(12deg);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  border: 3px solid var(--red);
  border-radius: 6px;
  padding: 6px 14px;
  opacity: 0.9;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/></filter><rect width='120' height='60' filter='url(%23n)'/></svg>");
  mask-size: cover;
  z-index: 4;
}

.countdown {
  margin-top: 26px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #877e6f;
}

.countdown b {
  display: inline-block;
  min-width: 1.4em;
  font-size: 18px;
  color: var(--red);
}

.countdown-bar {
  height: 4px;
  background: rgba(188, 39, 28, 0.18);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.countdown-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   Responsive & Motion
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .card__body { padding: 48px 22px 28px; }
  .page { padding: 28px 14px; }
  .stamp { font-size: 15px; right: -8px; }

  /* Formular auf dem Handy: Beschriftungen deutlich größer */
  .field label { font-size: 16px; letter-spacing: 0.14em; }
  .field label .opt { font-size: 13px; }
  .field .error-msg { font-size: 14px; }
  .card__sub { font-size: 13px; }
  .consent label { font-size: 15px; }
  .field input { font-size: 19px; }

  /* Restliche Kleintexte auf lesbare Größe anheben */
  .countdown { font-size: 14px; letter-spacing: 0.2em; }
  .countdown b { font-size: 20px; }
  .back-link { font-size: 14px; letter-spacing: 0.2em; }
  .privacy-modal__body { font-size: 16px; }
  .eyebrow { font-size: 14px; letter-spacing: 0.3em; }
}

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