/* ============================================
   PREMIUM SYSTEM 2.2 – CORE LAYER
   Global Styles, Variables, Typography, Layout
   ============================================ */

:root {
  /* COLORS */
  --color-bg: #faf9f7;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-whatsapp: #25d366;
  --color-border: rgba(0,0,0,0.08);
  --color-shadow: rgba(0,0,0,0.12);

  /* SOLAMENTO SHELL – Header/Footer, nie Reederei */
  --sola: #2b0052;
  --sola-deep: #1c0038;
  --sola-soft: #5b3d82;

  /* OPERATOR ACCENT (wird pro Kampagne gesetzt) */
  --op-primary: #2b0052;
  --op-secondary: #5b3d82;

  /* BRAND DEFAULTS (werden durch brand.css überschrieben) */
  --brand-primary: #2b0052;
  --brand-secondary: #5b3d82;
  --brand-surface: #ffffff;

  /* Typografie – T2 (Emotional & Modern) */
  --font-h1: 3.2rem;
  --font-h2: 2.2rem;
  --font-h3: 1.5rem;
  --font-body: 1.125rem;

  /* Spacing – etwas mehr Luft */
  --space-xs: 0.35rem;
  --space-s: 0.7rem;
  --space-m: 1.1rem;
  --space-l: 1.8rem;
  --space-xl: 2.6rem;

  /* Radius & Shadow – Premium */
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.12);

  /* Max-Width */
  --max-width: 1120px;

}

/* ============================================
   GLOBAL RESET
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: var(--font-body);
}

body.mode-redirect {
  background: #fff;
}

body.mode-unknown #campaign,
body.mode-redirect #campaign,
body.mode-campaign #unknown {
  display: none;
}

body.mode-hub .hero,
body.mode-hub .band,
body.mode-hub .flyer-stage,
body.mode-hub .doors,
body.mode-hub .mobile-cta,
body.mode-hub #paused-panel {
  display: none !important;
}

body.mode-hub .campaign-main {
  padding-bottom: 0;
}

body.mode-paused .flyer-stage {
  display: none;
}

body.mode-campaign:not(.mode-hub) #hub-panel,
body.mode-campaign:not(.mode-paused) #paused-panel {
  display: none;
}

/* ============================================
   GLOBAL LAYOUT
   ============================================ */

.pageWrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.campaign-main {
  flex: 1;
  max-width: none;
  margin: 0;
  padding: 0 0 4.5rem;
}

section {
  padding: var(--space-xl) 0;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.visuallyHidden-focusable {
  position: absolute;
  left: -9999px;
}

.visuallyHidden-focusable:focus {
  left: 0;
  top: 0;
  background: #000;
  color: #fff;
  padding: var(--space-s);
  z-index: 99999;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--sola, #2b0052);
  outline-offset: 3px;
}

@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;
  }
}

.visuallyHidden-focusable:focus {
  left: 0;
  top: 0;
  background: #000;
  color: #fff;
  padding: var(--space-s);
  z-index: 99999;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.mt-s { margin-top: var(--space-s); }
.mt-m { margin-top: var(--space-m); }
.mt-l { margin-top: var(--space-l); }
.mt-xl { margin-top: var(--space-xl); }

.mb-s { margin-bottom: var(--space-s); }
.mb-m { margin-bottom: var(--space-m); }
.mb-l { margin-bottom: var(--space-l); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ============================================
   MEDIA QUERIES
   ============================================ */

@media (max-width: 768px) {
  :root {
    --font-h1: 2.2rem;
    --font-h2: 1.6rem;
    --font-h3: 1.25rem;
    --font-body: 1rem;
  }

  section {
    padding: var(--space-l) 0;
  }
}
