/* ════════════════════════════════════════════════
   German Tactical Expo – Shared Stylesheet
   ════════════════════════════════════════════════ */

:root {
  --acid:    #C4D800;
  --acid-dim:#9aaa00;
  --black:   #000000;
  --dark:    #111111;
  --mid:     #222222;
  --grey:    #888888;
  --light:   #cccccc;
  --white:   #ffffff;

  --font-head: 'Barlow Condensed', Impact, 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', Arial, sans-serif;
  --radius: 0px;

  --max-legal: 760px;
  --pad-x: 16px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img  { max-width: 100%; height: auto; display: block; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle noise texture on all pages */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px;
}

/* ── Language switcher ─────────────────────────── */
.lang-switch {
  position: fixed;
  top: 14px; right: 16px;
  z-index: 100;
  display: flex;
  gap: 0;
  border: 1px solid var(--mid);
}
.lang-btn {
  background: none;
  border: none; cursor: pointer;
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey);
  padding: 6px 10px;
  transition: color .15s, background .15s;
  -webkit-appearance: none;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { background: var(--acid); color: var(--black); }
.lang-btn + .lang-btn { border-left: 1px solid var(--mid); }

/* ── Site header (legal pages) ─────────────────── */
.site-header {
  position: relative; z-index: 1;
  border-bottom: 1px solid var(--mid); padding: 18px var(--pad-x);
}
.site-header::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--acid);
}
.header-inner {
  max-width: var(--max-legal); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.logo-link {
  display: flex; align-items: center;
  gap: 12px; text-decoration: none;
  max-width: calc(100% - 100px);
}
.logo-icon {
  width: 34px; height: auto;
  filter: invert(1); flex-shrink: 0;
}
.site-name {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); line-height: 1.15;
}
.site-name small {
  display: block; font-size: .58rem;
  font-weight: 400; color: var(--acid);
  letter-spacing: .18em;
}
.back-link {
  font-family: var(--font-head);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--grey); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; flex-shrink: 0;
  transition: color .2s;
  min-height: 44px; /* touch target */
}
.back-link:hover { color: var(--acid); }
.back-link svg { flex-shrink: 0; }

/* ── Hero (index only) ─────────────────────────── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px var(--pad-x) 80px;
  text-align: center;
  overflow: hidden;
}

/* Background image */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('gte-bg.jpg');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  opacity: .18;
  filter: grayscale(20%);
}

/* Gradient fade at bottom */
.hero-bg::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--black));
}

/* Top accent line */
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--acid); z-index: 2;
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center;
}

.logo-wrap { margin-bottom: 28px; }
.logo-img {
  width: 100%; max-width: 460px; height: auto;
  filter: invert(1);
}

.badge {
  display: inline-block;
  border: 2px solid var(--acid); color: var(--acid);
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .35em; text-transform: uppercase;
  padding: 5px 18px; margin-bottom: 24px;
}

h1.headline {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 10vw, 6.5rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: .05em; line-height: .92;
  color: var(--white); margin-bottom: 10px;
}

.sub {
  font-family: var(--font-head);
  font-size: clamp(.95rem, 3vw, 1.45rem); font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--acid); margin-bottom: 40px;
}

.divider {
  width: 64px; height: 2px;
  background: var(--acid); margin: 0 auto 32px;
}

.event-info {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 16px; margin-bottom: 48px;
}
.event-item {
  font-family: var(--font-head);
  font-size: clamp(.95rem, 2.5vw, 1.3rem); font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}
.event-sep {
  color: var(--acid); font-size: 1.1rem; align-self: center;
}

/* Countdown */
.countdown-wrap { margin-bottom: 56px; }
.countdown-label {
  font-family: var(--font-head);
  font-size: .66rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 14px;
}
.countdown {
  display: flex; justify-content: center;
  gap: 4px 16px; flex-wrap: wrap;
}
.cd-unit { text-align: center; min-width: 66px; }
.cd-num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 900;
  line-height: 1; color: var(--white); display: block;
  padding-bottom: 8px; margin-bottom: 7px;
  border-bottom: 2px solid var(--dark);
}
.cd-unit:first-child .cd-num { color: var(--acid); }
.cd-lbl {
  font-family: var(--font-head);
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--grey);
}

/* CTA */
.cta-section {
  display: flex; flex-direction: column;
  align-items: center; gap: 13px;
}
.cta-text { font-size: .8rem; color: var(--grey); letter-spacing: .04em; }
.social-links {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.social-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: .86rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--white); text-decoration: none;
  border: 1px solid #2a2a2a; padding: 12px 20px;
  min-height: 44px; /* touch target */
  transition: border-color .2s, color .2s;
}
.social-link:hover { border-color: var(--acid); color: var(--acid); }

/* ── Site footer ───────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid #1a1a1a;
  padding: 22px var(--pad-x); text-align: center;
}
.footer-links {
  display: flex; justify-content: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-links a {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { margin-top: 10px; font-size: .66rem; color: #333; }

/* ── Legal page content ────────────────────────── */
.page-content {
  position: relative; z-index: 1;
  max-width: var(--max-legal); margin: 0 auto;
  padding: 56px var(--pad-x) 80px;
}
.page-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--white); margin-bottom: 10px; line-height: 1;
}
.title-line { width: 56px; height: 3px; background: var(--acid); margin-bottom: 36px; }

.notice {
  background: #111100; border: 1px solid #4a5200;
  font-size: .8rem; line-height: 1.65; color: #bbb;
  padding: 12px 16px; margin-bottom: 32px;
}

/* Legal headings */
.page-content h2 {
  font-family: var(--font-head);
  font-size: .96rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--acid); margin: 28px 0 7px;
}
.page-content h2:first-of-type { margin-top: 0; }
.page-content h3 {
  font-family: var(--font-head);
  font-size: .88rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #ddd; margin: 20px 0 5px;
}
.page-content p, .page-content address, .page-content li {
  font-size: .9rem; line-height: 1.78; color: #b0b0b0;
  font-style: normal; margin-bottom: 6px;
}
.page-content ul { padding-left: 20px; margin-bottom: 8px; }
.page-content a { color: var(--acid); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }

/* Table of contents (datenschutz) */
.toc {
  background: #0d0d0d; border: 1px solid #1e1e1e;
  padding: 18px 22px; margin-bottom: 36px;
}
.toc-title {
  font-family: var(--font-head);
  font-size: .68rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--grey); margin-bottom: 10px;
}
.toc ol { padding-left: 18px; }
.toc li { font-size: .8rem; line-height: 1.65; color: #666; margin-bottom: 3px; }
.toc a { color: #666; }
.toc a:hover { color: var(--acid); }

/* ── i18n display ──────────────────────────────── */
[data-lang-de], [data-lang-en] { }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 600px) {
  .countdown { gap: 4px 8px; }
  .cd-unit { min-width: 58px; }
  .site-name { font-size: .95rem; }
  .site-name small { display: none; }
  .lang-switch { top: 10px; right: 10px; }
}

@media (max-width: 380px) {
  .cd-unit { min-width: 52px; }
  h1.headline { font-size: 2.4rem; }
  .logo-img { max-width: 280px; }
}

/* ── Print ─────────────────────────────────────── */
@media print {
  body::before, .hero-bg { display: none; }
  .lang-switch { display: none; }
  .page-content { padding-top: 20px; }
  .page-content p, .page-content li { color: #000; }
  .page-content h2 { color: #000; border-bottom: 1px solid #000; padding-bottom: 2px; }
}
