/* ==========================================================================
   Engines — Rock Coverband Flensburg
   Global stylesheet
   ========================================================================== */

:root {
  --bg:        #0b0b0c;
  --bg-alt:    #0f0f11;
  --surface:   #141417;
  --border:    #232327;
  --border-soft:#1a1a1d;
  --text:      #f2f2f2;
  --text-dim:  #9a9aa0;
  --text-mute: rgba(255,255,255,.55);
  --accent:    #c8452e;
  --nav-h:     64px;
  --font:      "Helvetica Neue", Helvetica, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; }
header, section, footer { width: 100%; max-width: 100%; }

/* --- Utilities ------------------------------------------------------------ */
.wordmark { font-weight: 800; letter-spacing: .26em; }
.eyebrow  { font-size: 12px; letter-spacing: .34em; font-weight: 700; text-transform: uppercase; }
.section  { padding: clamp(64px, 11vw, 110px) clamp(22px, 7vw, 90px); }

/* --- Nav ------------------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px clamp(20px, 6vw, 64px);
  background: rgba(11,11,12,.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav__brand { text-decoration: none; font-size: 15px; color: #fff; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 30px); }
.nav__links a {
  text-decoration: none; font-size: 12px; letter-spacing: .18em;
  color: var(--text-mute); transition: color .2s;
}
.nav__links a:hover { color: #fff; }
.nav__back { text-decoration: none; font-size: 12px; letter-spacing: .14em;
  color: var(--text-mute); display: flex; align-items: center; gap: 8px; }
.nav__back:hover { color: #fff; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  height: clamp(560px, 90vh, 940px);
  height: clamp(560px, 100svh, 940px);
  height: clamp(560px, 100dvh, 940px);
  overflow: hidden;
  clip-path: inset(0);
  background: #000;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  filter: grayscale(1) brightness(.9) contrast(1.05);
  animation: engZoom 11s ease-out both;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: radial-gradient(130% 100% at 70% 25%, rgba(0,0,0,0) 0%, rgba(0,0,0,.5) 68%, rgba(0,0,0,.92) 100%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: clamp(72px, 12vh, 120px);
  text-align: center; padding: 0 16px;
  animation: engFade 1.1s ease-out .2s both;
}
.hero__title { font-weight: 900; font-size: clamp(58px, 16vw, 180px); line-height: .84; letter-spacing: -.03em; color: #fff; }
.hero__tagline { margin-top: clamp(16px, 2.5vw, 26px); font-size: clamp(11px, 2.4vw, 15px); letter-spacing: .4em; color: rgba(255,255,255,.72); }
.hero__cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: rgba(255,255,255,.6); animation: engBounce 2.4s ease-in-out infinite;
}

/* --- Intro / About -------------------------------------------------------- */
.intro { text-align: center; border-bottom: 1px solid var(--border-soft); scroll-margin-top: var(--nav-h); }
.intro .eyebrow { color: var(--accent); margin-bottom: clamp(22px, 4vw, 34px); }
.intro__lead {
  font-size: clamp(21px, 3.4vw, 32px); line-height: 1.55; font-weight: 300;
  max-width: 860px; margin: 0 auto; text-wrap: pretty; color: #dcdcdc;
}
.intro__lead strong { color: #fff; font-weight: 500; }
.chips { margin: clamp(32px,5vw,44px) auto 0; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; max-width: 820px; }
.chip { font-size: 13px; border: 1px solid var(--border); padding: 8px 15px; border-radius: 100px; color: #b6b6bc; }

/* --- Live ----------------------------------------------------------------- */
.live { scroll-margin-top: var(--nav-h); }
.live__eyebrow { color: rgba(255,255,255,.4); text-align: center; margin-bottom: 12px; }
.live__title { font-weight: 900; font-size: clamp(40px, 8vw, 64px); text-align: center; margin-bottom: clamp(36px, 6vw, 52px); letter-spacing: -.01em; }
.live__list { max-width: 820px; margin: 0 auto; display: grid; gap: clamp(20px, 3vw, 28px); }
.gig {
  max-width: 820px; margin: 0; text-decoration: none; color: inherit;
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 4vw, 34px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: clamp(22px, 4vw, 32px); transition: border-color .25s, transform .25s;
  min-width: 0;
}
.gig:hover { border-color: #34343a; transform: translateY(-2px); }
.gig__date { text-align: center; min-width: 92px; }
.gig__dow  { font-size: 12px; letter-spacing: .2em; color: var(--text-mute); font-weight: 700; }
.gig__day  { font-size: clamp(46px, 9vw, 58px); font-weight: 900; line-height: 1.02; }
.gig__mon  { font-size: 12px; letter-spacing: .18em; color: var(--accent); font-weight: 700; }
.gig__info { flex: 1; min-width: 220px; border-left: 1px solid var(--border); padding-left: clamp(18px, 3vw, 30px); }
.gig__name { font-size: clamp(19px, 3vw, 24px); font-weight: 700; margin-bottom: 8px; }
.gig__meta { font-size: 15px; line-height: 1.5; color: var(--text-dim); }
.gig__cta  {
  font-size: 14px; font-weight: 700; letter-spacing: .1em;
  background: var(--accent); color: #fff; padding: 15px 26px; border-radius: 7px;
  white-space: nowrap; flex: 1; min-width: 160px; text-align: center;
}

/* --- Gallery -------------------------------------------------------------- */
.gallery { border-top: 1px solid var(--border-soft); scroll-margin-top: var(--nav-h);
  padding-top: clamp(48px,8vw,90px); padding-bottom: clamp(64px,10vw,100px); }
.gallery__title { font-weight: 900; font-size: clamp(34px, 6vw, 48px); margin-bottom: clamp(28px, 5vw, 38px); }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gallery__item { cursor: pointer; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--surface); border: 0; padding: 0; }
.gallery__item picture { display: block; width: 100%; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s, transform .5s; }
.gallery__item:hover img { filter: none; transform: scale(1.04); }
@media (hover: none), (pointer: coarse) {
  .gallery__item img { filter: none; }
  .gallery__item:hover img { transform: none; }
}
.video-soon {
  width: 100%;
  margin-top: 12px; min-height: 180px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
}
.video-soon__play { width: 62px; height: 62px; border-radius: 100px; border: 2px solid rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; }
.video-soon__play span { width: 0; height: 0; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.video-soon__label { font-size: 14px; letter-spacing: .04em; color: var(--text-mute); text-align: center; padding: 0 16px; }

/* --- Kontakt -------------------------------------------------------------- */
.contact {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(200,69,46,.18) 0%, rgba(200,69,46,0) 45%),
    var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: var(--nav-h);
}
.contact__card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 42px);
  background: rgba(20,20,23,.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.contact__eyebrow { color: var(--accent); margin-bottom: 14px; }
.contact__title {
  font-weight: 900;
  font-size: clamp(34px, 6vw, 48px);
  margin-bottom: 10px;
}
.contact__sub {
  max-width: 540px;
  font-size: clamp(15px, 2.4vw, 17px);
  color: #aaaaaf;
  margin: 0 0 clamp(26px, 4vw, 34px);
}
.contact__mail {
  margin: -14px 0 28px;
  color: var(--text-mute);
}
.contact__mail a {
  color: var(--text);
  text-decoration-color: rgba(200,69,46,.55);
}
.contact__mail a:hover {
  color: var(--accent);
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.contact-form__field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.contact-form__field span {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
}
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid #2d2d32;
  border-radius: 12px;
  background: #111114;
  color: var(--text);
  padding: 16px 18px;
  font: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder { color: #6f6f76; }
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: rgba(200,69,46,.9);
  box-shadow: 0 0 0 4px rgba(200,69,46,.14);
  background: #141418;
}
.contact-form__field textarea {
  resize: vertical;
  min-height: 160px;
}
.contact-form__field--full { grid-column: 1 / -1; }
.contact-form__submit {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  padding: 17px 24px;
  font: inherit;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s, filter .2s;
  justify-self: start;
}
.contact-form__submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.contact-form__hint {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  font-size: 13px;
  color: #85858c;
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  padding: clamp(32px, 5vw, 44px) clamp(22px, 7vw, 90px);
  display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,.42); font-size: 12px; border-top: 1px solid var(--border-soft);
}
.footer__brand { font-weight: 800; letter-spacing: .24em; font-size: 14px; color: #fff; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { text-decoration: none; color: var(--text-mute); transition: color .2s; }
.footer__links a:hover { color: #fff; }

/* --- Legal pages ---------------------------------------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px,9vw,90px) clamp(22px,7vw,40px) clamp(80px,12vw,120px); }
.legal .eyebrow { color: var(--accent); margin-bottom: 16px; }
.legal h1 { font-weight: 900; font-size: clamp(34px, 8vw, 56px); line-height: 1.02; margin: 0 0 clamp(36px, 6vw, 52px); letter-spacing: -.02em; }
.legal__body { font-size: 15px; line-height: 1.7; color: #c4c4ca; }
.legal__body h2 { font-size: 13px; letter-spacing: .2em; color: #fff; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; }
.legal__body p { margin: 0 0 32px; }
.legal__body p.tight { margin-bottom: 4px; }
.legal__body p.name { color: #e6e6ea; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.legal__body .note { font-size: 13px; color: #7a7a80; margin-bottom: 0; }
.legal-nav { position: sticky; top: 0; z-index: 10; background: rgba(11,11,12,.7); }
.legal-footer { max-width: 760px; margin: 0 auto; }

/* --- Lightbox ------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6,6,7,.94);
  display: none; align-items: center; justify-content: center;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  padding-top: max(16px, calc(var(--safe-top) + 12px));
  padding-right: max(16px, calc(var(--safe-right) + 12px));
  padding-bottom: max(16px, calc(var(--safe-bottom) + 12px));
  padding-left: max(16px, calc(var(--safe-left) + 12px));
  overscroll-behavior: contain;
}
.lightbox.is-open { display: flex; animation: engLbIn .25s ease-out both; }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 80px rgba(0,0,0,.6);
}
.lb-btn {
  position: absolute; border: 1px solid rgba(255,255,255,.3); background: transparent;
  border-radius: 100px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.12); }
.lb-close { top: max(16px, calc(var(--safe-top) + 8px)); right: max(16px, calc(var(--safe-right) + 8px)); width: 44px; height: 44px; }
.lb-prev  { left: clamp(10px,3vw,40px);  top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-next  { right: clamp(10px,3vw,40px); top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }

/* --- Animations ----------------------------------------------------------- */
@keyframes engFade   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes engZoom   { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes engBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes engLbIn   { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero__img, .hero__content, .hero__cue { animation: none; }
}

/* --- Responsive refinements ----------------------------------------------- */
@media (max-width: 560px) {
  .nav { padding-inline: 16px; }
  .nav__brand { font-size: 14px; letter-spacing: .22em; }
  .hero__img { object-position: 78% 18%; }
  .nav__links {
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav__links a { letter-spacing: .14em; }
  .gig { gap: 16px; }
  .gig__date,
  .gig__info,
  .gig__cta {
    width: 100%;
    min-width: 0;
  }
  .gig__info {
    flex: 0 0 100%;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 16px;
  }
  .gig__cta {
    order: 3;
    flex: 0 0 100%;
  }
  .contact__card { padding: 22px; border-radius: 14px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__field--full { grid-column: auto; }
  .contact-form__submit {
    width: 100%;
    justify-self: stretch;
  }
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: max(16px, calc(var(--safe-bottom) + 8px));
    transform: none;
  }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
}
