/* ============================================
   ThaiCross Gym Wien — Global Styles
   Powered by BudiSync | budisync.com
   ============================================ */

/* Anti-FOUT: Body unsichtbar bis Fonts geladen */
html.fonts-loading body {
  opacity: 0;
}

html.fonts-loaded body {
  opacity: 1;
  transition: opacity 0.15s ease;
}

:root {
  /* Basis */
  --bg:            #000000;
  --surface:       #111111;
  --surface-2:     #1a1a1a;
  --surface-3:     #222222;

  /* ThaiCross Akzentfarbe */
  --accent:        #3AABDB;
  --accent-hover:  #5BC4F0;
  --accent-glow:   rgba(58, 171, 219, 0.15);
  --accent-glow-strong: rgba(58, 171, 219, 0.3);

  /* Text */
  --text:          #FFFFFF;
  --subtext:       #888888;
  --subtext-light: #555555;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.08);
  --border-accent: rgba(58, 171, 219, 0.3);

  /* Disziplin-Farben */
  --thaiboxen:     #E74C3C;
  --boxen:         #E67E22;
  --mma:           #27AE60;
  --thaicrossing:  #3AABDB;
  --bjj:           #8E44AD;
  --kinder:        #F39C12;
  --fitness:       #1ABC9C;

  /* Typography */
  --font-hero:    'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
  --font-head:    'Oswald', 'Arial Narrow', 'Impact', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-pad:   120px;
  --section-pad-m: 60px;
  --container:     1200px;
  --radius:        8px;
  --radius-lg:     16px;
}

/* ============================================
   Film-Grain Overlay
   ============================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

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

/* ============================================
   Sections
   ============================================ */
section {
  padding: var(--section-pad) 0;
}

/* ============================================
   Section Label
   ============================================ */
.section-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   Typography
   ============================================ */

/* Hero Headline — maximum impact */
h1 {
  font-family: var(--font-hero);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Sektions-Headlines */
h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Karten-Headlines, Trainer-Namen */
h3 {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Labels, Badges, Navigation */
h4, .section-label, .badge, .filter-btn {
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Fließtext */
p, li, .form-label {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--subtext);
}

/* Intro-Text */
p.lead, .section-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--subtext);
  max-width: 600px;
}

/* Stats / Counter Zahlen */
.stat-number, .counter,
.pricing-price, .countdown-number {
  font-family: var(--font-hero);
}

/* Trainer Namen */
.trainer-card-name {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Kursplan */
.kurs-time {
  font-family: var(--font-hero);
}

.kurs-name {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Footer Headlines */
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}

/* Footer Text */
.footer-nav a, .footer-contact-item,
.footer-hours-row {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 0 32px;
  height: 56px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  min-width: 48px;
  min-height: 48px;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.btn-outline:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Badges / Pills
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-accent {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.badge-red {
  background: rgba(231, 76, 60, 0.15);
  color: #E74C3C;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ============================================
   BudiSync Badge — REQUIRED ON EVERY PAGE
   ============================================ */
.budisync-badge {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  opacity: 0.5;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.budisync-badge:hover {
  opacity: 1;
}

.budisync-badge .budi {
  color: #FFFFFF;
}

.budisync-badge .sync {
  color: #C9A47E;
}

/* ============================================
   Page Hero (Inner Pages)
   ============================================ */
.page-hero {
  padding: 140px 0 80px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 100%, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .section-label {
  margin-bottom: 12px;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 560px;
  font-size: 18px;
}

/* ============================================
   Social Icons
   ============================================ */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--subtext);
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Form Elements
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--subtext);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
  font-family: var(--font-body);
  padding: 16px;
  min-height: 52px;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--subtext-light);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  cursor: pointer;
}

.form-select option {
  background: var(--surface);
  color: var(--text);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  accent-color: var(--accent);
  cursor: pointer;
  margin-top: 2px;
}

.form-checkbox-label {
  font-size: 14px;
  color: var(--subtext);
  line-height: 1.5;
}

.form-checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================
   Loader
   ============================================ */
#loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  overflow: hidden;
}

/* Licht-Sweep von links */
#loader::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(58,171,219,0.06) 50%,
    transparent 60%
  );
  animation: loaderSweep 1.2s ease 0.3s both;
}

@keyframes loaderSweep {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* Scan-Lines */
#loader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.015) 3px,
    rgba(255,255,255,0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Radial Glow Element */
#loader .loader-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(58,171,219,0.12) 0%,
    rgba(58,171,219,0.04) 40%,
    transparent 70%
  );
  animation: loaderGlowPulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes loaderGlowPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Logo — erscheint mit Blur-Reveal */
#loader .loader-logo-wrap {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation:
    loaderLogoIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.2s forwards,
    loaderGlitch 2s ease-in-out 0.8s infinite;
}

@keyframes loaderLogoIn {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    filter: blur(10px);
  }
  60% {
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px)
            drop-shadow(0 0 30px rgba(58,171,219,0.9))
            drop-shadow(0 0 80px rgba(58,171,219,0.4));
  }
}

@keyframes loaderGlitch {
  0%, 30%, 100% {
    transform: translate(0) skewX(0) scaleY(1);
    filter: drop-shadow(0 0 30px rgba(58,171,219,0.9))
            drop-shadow(0 0 80px rgba(58,171,219,0.4));
  }
  31% {
    transform: translate(-10px, 2px) skewX(6deg) scaleY(1.02);
    filter: drop-shadow(0 0 40px rgba(231,76,60,1))
            hue-rotate(180deg) brightness(2.5)
            drop-shadow(0 0 80px rgba(231,76,60,0.8));
  }
  33% {
    transform: translate(10px, -2px) skewX(-6deg) scaleY(0.98);
    filter: drop-shadow(0 0 40px rgba(58,171,219,1))
            hue-rotate(-90deg) brightness(1.5);
  }
  35% {
    transform: translate(-5px, 0) skewX(3deg);
    filter: brightness(3)
            drop-shadow(0 0 60px rgba(255,255,255,0.8));
  }
  37% {
    transform: translate(5px, 0) skewX(-2deg) scaleX(1.05);
    filter: drop-shadow(0 0 30px rgba(58,171,219,0.9))
            hue-rotate(45deg);
  }
  39% {
    transform: translate(0) skewX(0) scaleX(1);
    filter: drop-shadow(0 0 30px rgba(58,171,219,0.9))
            drop-shadow(0 0 80px rgba(58,171,219,0.4));
  }
  70% {
    transform: translate(0) skewX(0);
    filter: drop-shadow(0 0 30px rgba(58,171,219,0.9));
  }
  71% {
    transform: translate(-8px, 0) skewX(4deg);
    filter: brightness(2) hue-rotate(120deg)
            drop-shadow(0 0 50px rgba(231,76,60,0.9));
  }
  73% {
    transform: translate(8px, 0) skewX(-4deg);
    filter: brightness(1.5) hue-rotate(-60deg);
  }
  75% {
    transform: translate(0);
    filter: drop-shadow(0 0 30px rgba(58,171,219,0.9))
            drop-shadow(0 0 80px rgba(58,171,219,0.4));
  }
}

/* Screen Flash */
#loader .loader-flash {
  position: absolute;
  inset: 0;
  background: rgba(58,171,219,0);
  pointer-events: none;
  z-index: 3;
  animation: loaderFlash 2s ease-in-out 0.8s infinite;
}

@keyframes loaderFlash {
  0%, 28%, 42%, 100% { background: rgba(58,171,219,0); }
  30% { background: rgba(58,171,219,0.08); }
  31% { background: rgba(231,76,60,0.06); }
  35% { background: rgba(255,255,255,0.05); }
  40% { background: rgba(58,171,219,0.03); }
}

#loader .loader-logo-wrap img {
  width: 300px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(58,171,219,0.9))
          drop-shadow(0 0 80px rgba(58,171,219,0.4));
}

/* Tagline */
#loader .loader-tagline {
  font-family: 'Bebas Neue', cursive;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: loaderTagline 0.8s ease 1s forwards;
}

@keyframes loaderTagline {
  0% { opacity: 0; letter-spacing: 0.7em; transform: translateY(8px); }
  100% { opacity: 1; letter-spacing: 0.4em; transform: translateY(0); }
}

/* Progress Bar */
#loader .loader-bar {
  width: 220px;
  height: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: loaderBarAppear 0.4s ease 1.2s forwards;
}

@keyframes loaderBarAppear {
  to { opacity: 1; }
}

#loader .loader-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 50%,
    rgba(255,255,255,0.8) 100%
  );
  width: 0%;
  animation: loaderBarFill 2.5s cubic-bezier(0.4,0,0.2,1) 1.2s forwards;
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent);
}

@keyframes loaderBarFill {
  0% { width: 0%; }
  20% { width: 10%; }
  50% { width: 55%; }
  80% { width: 88%; }
  100% { width: 100%; }
}

/* ============================================
   Custom Cursor (pointer devices only)
   ============================================ */
/* Custom Cursor — deaktiviert
@media (pointer: fine) {
  body {
    cursor: none;
  }

  a, button, .btn, label[for], [role="button"] {
    cursor: none;
  }

  #cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, transform 0.2s ease;
  }

  #cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transform: translate(-50%, -50%);
  }

  #cursor.is-hovering {
    background: var(--accent-glow);
    transform: translate(-50%, -50%) scale(1.5);
  }
}
*/

/* ============================================
   Utility Classes
   ============================================ */
.text-accent { color: var(--accent); }
.text-subtext { color: var(--subtext); }
.text-center { text-align: center; }
.text-head { font-family: var(--font-head); }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Separator
   ============================================ */
.separator {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--subtext);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--subtext);
  border-bottom: 2px solid var(--subtext);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 0.4; }
}

/* ============================================
   Stars Rating
   ============================================ */
.stars {
  display: flex;
  gap: 2px;
  color: #F39C12;
  font-size: 16px;
}

/* ============================================
   Disziplin Color Border Utilities
   ============================================ */
.border-thaiboxen { border-color: var(--thaiboxen) !important; }
.border-boxen     { border-color: var(--boxen) !important; }
.border-mma       { border-color: var(--mma) !important; }
.border-crossing  { border-color: var(--thaicrossing) !important; }
.border-bjj       { border-color: var(--bjj) !important; }
.border-kinder    { border-color: var(--kinder) !important; }
.border-fitness   { border-color: var(--fitness) !important; }

.color-thaiboxen { color: var(--thaiboxen); }
.color-boxen     { color: var(--boxen); }
.color-mma       { color: var(--mma); }
.color-crossing  { color: var(--thaicrossing); }
.color-bjj       { color: var(--bjj); }
.color-kinder    { color: var(--kinder); }
.color-fitness   { color: var(--fitness); }

/* ============================================
   Hero Headline — Bebas Neue maximum impact
   ============================================ */
.hero-headline {
  font-family: var(--font-hero) !important;
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ============================================
   Prefers Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-arrow {
    animation: none;
  }
}

/* ── Scroll Progress Bar ─────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(
    90deg,
    #3AABDB 0%,
    #5BC4F0 50%,
    #ffffff 100%
  );
  z-index: 10002;
  box-shadow: 0 0 8px #3AABDB,
              0 0 16px rgba(58,171,219,0.4);
  pointer-events: none;
  transition: width 0.05s linear;
}
