/* ========================================================================
   Theaterverein St. Veit i. Def. – "Lass die Sau raus!" 2026
   Mobile-first stylesheet inspired by the rustic farm-poster aesthetic.
   ======================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Sky */
  --sky-top: #6cb8e2;
  --sky-mid: #9ad1ec;
  --sky-low: #c9e6f5;

  /* Wheat / hay / earth */
  --hay-light: #e8c87b;
  --hay: #d4a04c;
  --hay-dark: #a47426;
  --earth: #6b3f15;

  /* Wood planks */
  --wood-1: #6b3410;
  --wood-2: #82431a;
  --wood-3: #a25826;
  --wood-edge: #3d1d08;

  /* Stamp yellow */
  --stamp-yellow: #ffd23f;
  --stamp-yellow-glow: #ffe97a;
  --stamp-shadow: #b86e10;
  --stamp-outline: #5b2a05;

  /* Accents */
  --red: #d6262e;
  --cream: #fff7e6;
  --ink: #2b1a0a;

  /* Layout */
  --container: 1100px;
  --radius: 14px;

  /* Type */
  --display: "Bowlby One", "Impact", "Arial Black", system-ui, sans-serif;
  --body: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* keep section headings clear of the fixed header */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--sky-low);
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ol, ul { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.05; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Site header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(43,26,10,.85), rgba(43,26,10,.55) 70%, rgba(43,26,10,0));
  backdrop-filter: blur(2px);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo {
  width: 46px; height: 46px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.brand__text {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--display);
  font-size: 13px; letter-spacing: .03em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.brand__line2 { color: var(--stamp-yellow); font-size: 16px; margin-top: 2px; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }

/* Header social icons */
.header-socials {
  display: flex; gap: 6px;
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.18);
}
.header-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.header-socials a:hover, .header-socials a:focus-visible {
  background: var(--stamp-yellow);
  color: var(--stamp-outline);
  border-color: var(--stamp-yellow);
  transform: translateY(-1px);
  outline: none;
}
.site-nav a {
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background-color .2s, color .2s;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.site-nav a:hover, .site-nav a:focus-visible {
  background: var(--stamp-yellow);
  color: var(--stamp-outline);
  text-shadow: none;
  outline: none;
}

@media (max-width: 720px) {
  .brand__text { display: none; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 6px 7px; font-size: 11px; letter-spacing: .02em; }
  .header-socials { margin-left: 4px; padding-left: 8px; gap: 4px; }
  .header-socials a { width: 28px; height: 28px; }
  .header-socials svg { width: 14px; height: 14px; }
}
@media (max-width: 480px) {
  .site-header { padding: 8px 10px; gap: 6px; }
  .site-nav a { padding: 5px 5px; font-size: 10px; }
  .header-socials { margin-left: 2px; padding-left: 6px; }
}
/* Hide header socials on the tightest screens — they remain in the footer */
@media (max-width: 380px) {
  .header-socials { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 110px 16px 90px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--hay-light) 100%);
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
/* On wide (landscape) viewports we use the landscape image — center it. */
@media (min-aspect-ratio: 4/3) {
  .hero__bg img { object-position: 50% 60%; }
}

/* Vignette to make hero text readable over the artwork */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(0,0,0,.55), rgba(0,0,0,0) 65%),
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 22%);
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative; z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.hero__subtitle {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(12px, 2.4vw, 16px);
  margin-bottom: 4px;
  color: #fff;
}
.hero__tag {
  font-size: clamp(16px, 2.6vw, 22px);
  margin-top: 8px;
  font-weight: 500;
}
.hero__tag strong { color: var(--stamp-yellow); }

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 26px;
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 14px;
  z-index: 1;
}
.hero__scroll span {
  display: block;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scroll-bob 1.6s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(14px); opacity: 0; }
}

/* ---------- Stamp-style headline (yellow poster look) ---------- */
.stamp-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: none;
  color: var(--stamp-yellow);
  line-height: .92;
  letter-spacing: -0.01em;
  margin: 0;
  text-shadow:
    /* dark outline */
    -2px -2px 0 var(--stamp-outline),
     2px -2px 0 var(--stamp-outline),
    -2px  2px 0 var(--stamp-outline),
     2px  2px 0 var(--stamp-outline),
    -3px  0   0 var(--stamp-outline),
     3px  0   0 var(--stamp-outline),
     0   -3px 0 var(--stamp-outline),
     0    3px 0 var(--stamp-outline),
    /* drop shadow */
     0    8px 0 var(--stamp-shadow),
     0    9px 14px rgba(0,0,0,.45);
  transform: rotate(-3deg);
  display: inline-block;
}
.stamp-title__line1, .stamp-title__line2 {
  display: block;
}
.stamp-title__line1 {
  font-size: clamp(48px, 11vw, 110px);
  transform: rotate(2deg);
  margin-bottom: -.05em;
}
.stamp-title__line2 {
  font-size: clamp(72px, 17vw, 170px);
  transform: rotate(-1deg);
}

.stamp-title--sm { transform: rotate(-2deg); }
.stamp-title--sm span {
  display: inline-block;
  font-size: clamp(32px, 6.5vw, 60px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-size: clamp(15px, 2.2vw, 18px);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 3px solid var(--stamp-outline);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s;
  box-shadow: 0 6px 0 var(--stamp-outline), 0 10px 22px rgba(0,0,0,.3);
  text-shadow: none;
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--stamp-outline), 0 14px 26px rgba(0,0,0,.35);
  outline: none;
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--stamp-outline), 0 6px 14px rgba(0,0,0,.3);
}
.btn--primary {
  background: var(--stamp-yellow);
  color: var(--stamp-outline);
}
.btn--ghost {
  background: rgba(255,255,255,.94);
  color: var(--stamp-outline);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 70px 0 80px;
  isolation: isolate;
}
.section__title {
  text-align: center;
  margin: 0 auto 34px;
  display: block;
}

/* Sky section (Das Stück) */
.section--sky {
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.85) 0 80px, transparent 81px),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.85) 0 50px, transparent 51px),
    radial-gradient(circle at 86% 30%, rgba(255,255,255,.8) 0 70px, transparent 71px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.7) 0 55px, transparent 56px),
    linear-gradient(180deg, var(--sky-mid) 0%, var(--sky-low) 100%);
  color: var(--ink);
}

/* Field section (Termine) – hay color */
.section--field {
  background:
    repeating-linear-gradient(
      85deg,
      rgba(0,0,0,.04) 0 2px,
      transparent 2px 5px
    ),
    linear-gradient(180deg, var(--hay-light) 0%, var(--hay) 100%);
}
.section--field::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.4), transparent);
  z-index: -1;
}

/* Barn section (Reservierung) – warm painted wood */
.section--barn {
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 14%, rgba(0,0,0,0) 86%, rgba(0,0,0,.35)),
    url("../img/wood-tile-dark.jpg") center top / auto 280px repeat;
  color: var(--cream);
}

/* ---------- Plank panel ---------- */
.plank {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, rgba(0,0,0,.30)),
    url("../img/wood-card.jpg") center / cover no-repeat,
    var(--wood-1);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow:
    inset 0 0 0 4px var(--wood-edge),
    inset 0 -10px 22px rgba(0,0,0,.55),
    inset 0  10px 22px rgba(255,200,140,.08),
    0 14px 30px rgba(0,0,0,.30);
  text-shadow: 0 1px 3px rgba(0,0,0,.65);
  font-size: clamp(15px, 2.2vw, 18px);
}
.plank::before, .plank::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  background: radial-gradient(circle, #1d0c00 0 4px, transparent 5px);
  top: 14px;
}
.plank::before { left: 14px; }
.plank::after  { right: 14px; }

.plank--text { max-width: 800px; margin: 0 auto; }
.plank .lead { font-size: clamp(17px, 2.6vw, 22px); margin-bottom: .8em; }
.plank em { color: var(--stamp-yellow); font-style: italic; }
.plank strong { color: var(--stamp-yellow-glow); }

/* ---------- Date cards ---------- */
.dates {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 560px) {
  .dates { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 920px) {
  .dates { grid-template-columns: repeat(4, 1fr); }
}

.date-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,.32)),
    url("../img/wood-card.jpg") center / cover no-repeat,
    var(--wood-1);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 24px 18px 22px;
  text-align: center;
  box-shadow:
    inset 0 0 0 3px var(--wood-edge),
    inset 0 -8px 18px rgba(0,0,0,.55),
    0 10px 22px rgba(0,0,0,.25);
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
  transform: rotate(-1deg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.date-card:nth-child(even) { transform: rotate(1deg); }
.date-card:nth-child(2) { background-position: 0 0, 30% 60%, 0 0; }
.date-card:nth-child(3) { background-position: 0 0, 80% 30%, 0 0; }
.date-card:nth-child(4) { background-position: 0 0, 50% 90%, 0 0; }
.date-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow:
    inset 0 0 0 3px var(--wood-edge),
    inset 0 -6px 14px rgba(0,0,0,.45),
    0 16px 28px rgba(0,0,0,.32);
}
.date-card__badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.4);
  text-shadow: none;
}
.date-card__date {
  display: block;
  font-family: var(--display);
  line-height: 1;
}
.date-card__weekday {
  display: block;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stamp-yellow);
  margin-bottom: 6px;
}
.date-card__day {
  display: block;
  font-size: clamp(48px, 9vw, 64px);
  color: #fff;
  margin: 2px 0;
}
.date-card__month {
  display: block;
  font-size: 16px;
  letter-spacing: .08em;
  color: var(--cream);
}
.date-card__time {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 18px;
  color: var(--stamp-yellow);
}

/* Past performances — visually de-emphasised */
.date-card.is-past {
  filter: grayscale(.85) brightness(.78);
  opacity: .55;
  transform: rotate(-1deg) scale(.97);
}
.date-card.is-past:nth-child(even) { transform: rotate(1deg) scale(.97); }
.date-card.is-past:hover { transform: rotate(0deg) scale(.97); }
.date-card.is-past::after {
  content: "Bereits gespielt";
  position: absolute;
  inset: auto 0 -10px 0;
  margin: 0 auto;
  width: max-content;
  background: rgba(0,0,0,.55);
  color: var(--cream);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  text-shadow: none;
}

/* Info strip */
.info-strip {
  margin: 36px auto 0;
  max-width: 920px;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: center;
  text-align: center;
  font-size: clamp(15px, 2.2vw, 18px);
  background: rgba(255,255,255,.55);
  border: 2px dashed var(--earth);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--earth);
}
.info-strip strong { color: var(--ink); }

/* ---------- Reservation panel ---------- */
.reservation {
  max-width: 720px;
  margin: 0 auto;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px 26px 32px;
  box-shadow:
    0 0 0 4px var(--wood-edge),
    0 16px 36px rgba(0,0,0,.45);
  text-align: center;
  text-shadow: none;
  position: relative;
}
.reservation__lead {
  font-size: clamp(17px, 2.6vw, 20px);
  color: var(--earth);
}
.reservation__contact {
  display: flex; flex-direction: column; gap: 14px;
  align-items: stretch;
  margin: 18px auto 8px;
  max-width: 460px;
}
.reservation__name {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 26px);
  margin: 0 0 4px;
  color: var(--stamp-outline);
}
.reservation__phone, .reservation__whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: clamp(17px, 2.6vw, 22px);
  letter-spacing: .02em;
  border: 3px solid var(--stamp-outline);
  box-shadow: 0 5px 0 var(--stamp-outline), 0 9px 18px rgba(0,0,0,.2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.reservation__phone {
  background: var(--stamp-yellow);
  color: var(--stamp-outline);
}
.reservation__whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #128C7E;
  box-shadow: 0 5px 0 #128C7E, 0 9px 18px rgba(0,0,0,.2);
}
.reservation__phone:hover, .reservation__phone:focus-visible,
.reservation__whatsapp:hover, .reservation__whatsapp:focus-visible {
  transform: translateY(-2px);
  outline: none;
}
.reservation__phone:active, .reservation__whatsapp:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--stamp-outline), 0 5px 12px rgba(0,0,0,.2);
}
.reservation__whatsapp:active {
  box-shadow: 0 2px 0 #128C7E, 0 5px 12px rgba(0,0,0,.2);
}

.reservation__hint {
  margin-top: 18px;
  font-style: italic;
  color: var(--earth);
}
.reservation__follow {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--earth);
}
.reservation__follow a {
  color: var(--stamp-outline);
  font-weight: 700;
  border-bottom: 2px solid var(--stamp-yellow);
}
.reservation__follow a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d8c9b3;
  padding: 32px 0 28px;
  text-align: center;
  font-size: 14px;
}
.site-footer__small { color: #98876e; margin: 6px 0 0; font-size: 13px; }

/* Social icons */
.socials {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin: 0 0 18px;
}
.socials a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #f1e5cf;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.socials a:hover, .socials a:focus-visible {
  background: var(--stamp-yellow);
  color: var(--stamp-outline);
  border-color: var(--stamp-yellow);
  transform: translateY(-1px);
  outline: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
