/* ============================================================================
   CRUX BOULDERGYM — styles.css  (INFORMATION-HEAVY BRUTALISM EDITION)
   Light mode first, highly structured CSS grids, visible hard borders,
   monospace data, sharp corners, dense information.
   ============================================================================ */

:root {
  --bg: #F4F7FB;
  --bg-2: #E9EFF7;
  --surface: #FFFFFF;
  --ink: #111111;
  --ink-muted: #555555;
  --accent: #1E63E0;
  --accent-deep: #1547B0;
  --warm: #FF6A2B;

  --display: 'Anton', 'Arial Narrow', sans-serif;
  --sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Space Mono', monospace;

  /* Brutalism constants */
  --border-width: 2px;
  --border: var(--border-width) solid var(--ink);
  --r: 0px;
  /* Sharp corners */
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

.shell-fluid {
  width: 100%;
  padding-inline: 15px;
}

/* Utilities */
.border-bot {
  border-bottom: var(--border);
}

.border-top {
  border-top: var(--border);
}

.border-right {
  border-right: var(--border);
}

.tech-mono {
  font-family: var(--mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-muted {
  color: var(--ink-muted);
}

.mt-1 {
  margin-top: 4px;
}

/* ---------- type ---------- */
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- buttons (Brutalist) ---------- */
.btn-brutal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  background: var(--ink);
  color: #fff;
  border: var(--border);
  text-transform: uppercase;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-brutal:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--surface);
  border-bottom: var(--border);
  height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.brand-mark {
  color: var(--accent);
  display: grid;
  place-items: center;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 0.8;
}

.brand-sub {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.45rem;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  height: 100%;
}

.nav a {
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--ink);
}

main {
  padding-top: 60px;
  /* offset header */
}

/* ---------- HERO BENTO GRID (100vh) ---------- */
.hero-bento {
  height: calc(100vh - 60px);
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 0.6fr;
  grid-template-areas:
    "main media1 data"
    "main media2 action";
  border-bottom: var(--border);
}

.bento-panel {
  border-right: var(--border);
  border-bottom: var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Fix borders for the last row/col */
.bento-panel:nth-child(3n) {
  border-right: none;
}

.hero-bento .panel-main {
  border-bottom: none;
}

.hero-bento .panel-media-2 {
  border-bottom: none;
}

.hero-bento .panel-action {
  border-bottom: none;
}

.panel-main {
  grid-area: main;
  justify-content: center;
  background: var(--bg);
  padding: clamp(20px, 4vw, 40px);
}

.panel-media-1 {
  grid-area: media1;
}

.panel-data {
  grid-area: data;
  background: var(--surface);
}

.panel-media-2 {
  grid-area: media2;
}

.panel-action {
  grid-area: action;
  display: flex;
  flex-direction: column;
}

.panel-inner {
  padding: clamp(20px, 3vw, 32px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.panel-main-inner {
  justify-content: space-between;
}

.hero-title-massive {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title-massive .hl {
  color: var(--accent);
}

.hero-info-block {
  border-top: var(--border);
  padding-top: 24px;
}

.hero-manifesto-new {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  margin-bottom: 24px;
  max-width: 44ch;
  line-height: 1.4;
}

.hero-tech-list-new {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-muted);
}

.hero-tech-list-new span {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

/* Data Widget */
.data-inner {
  justify-content: space-between;
  padding-right: 0;
  padding-bottom: 0;
}

.data-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
  padding-right: clamp(20px, 3vw, 32px);
}

.status-indicator {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: var(--warm);
  display: block;
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.data-capacity {
  margin-bottom: 24px;
  padding-right: clamp(20px, 3vw, 32px);
}

.capacity-val {
  font-family: var(--mono);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.capacity-bar-wrap {
  width: 100%;
  height: 16px;
  border: var(--border);
  background: var(--surface);
}

.capacity-bar {
  height: 100%;
  background: var(--ink);
}

.data-graph {
  border-top: var(--border);
  padding-top: 16px;
  margin-bottom: 24px;
  padding-right: clamp(20px, 3vw, 32px);
}

.svg-graph {
  margin-top: 12px;
}

.svg-graph svg {
  width: 100%;
  height: 100px;
  display: block;
  color: var(--accent);
  overflow: visible;
}

.graph-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.data-hours {
  border-top: var(--border);
  padding: 16px clamp(20px, 3vw, 32px) 16px 0;
  background: var(--bg);
  margin-top: auto;
}

.hours-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.hours-val {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Action Panel Buttons */
.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  text-transform: uppercase;
  transition: all 0.2s;
  border-bottom: var(--border);
}

.action-btn:last-child {
  border-bottom: none;
}

.action-primary {
  background: var(--accent);
  color: #fff;
}

.action-primary:hover {
  background: var(--ink);
}

.action-secondary {
  background: var(--warm);
  color: #fff;
}

.action-secondary:hover {
  background: var(--ink);
}

.btn-arrow {
  font-family: var(--sans);
}

/* Image Placeholders */
.img-ph {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, var(--bg-2) 0 10px, transparent 10px 20px), var(--bg);
  display: grid;
  place-items: center;
  position: relative;
}

.img-ph::after {
  content: "MEDIA";
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--surface);
  padding: 4px 8px;
  border: var(--border);
  font-size: 0.8rem;
}

/* ---------- TEXT MARQUEE / BIG STATEMENT ---------- */
.big-statement {
  background: var(--ink);
  color: #fff;
  border-bottom: var(--border);
  padding: clamp(32px, 5vw, 56px) 0;
}

.statement-text {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  text-transform: uppercase;
  max-width: 1400px;
}

/* ---------- HALLE & ROUTENBAU ---------- */
.section-header {
  padding-block: clamp(16px, 2vw, 24px);
  background: var(--bg);
}

.bento-areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
}

.area-col {
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
}

.area-title {
  font-family: var(--display);
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1;
}

.area-desc {
  font-weight: 500;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.tech-specs {
  margin-top: auto;
  border-top: var(--border);
  padding-top: 16px;
}

.spec {
  font-family: var(--mono);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
}

.spec:last-child {
  border-bottom: none;
}

.spec span {
  color: var(--ink-muted);
  font-weight: 700;
}

.routenbau-special {
  background: var(--accent);
  color: #fff;
}

.routenbau-special .spec {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.routenbau-special .spec span {
  color: rgba(255, 255, 255, 0.7);
}

.spec-hl {
  font-weight: 800;
}

/* ---------- KURSE & EVENTS ---------- */
.kurse-section {
  background: var(--surface);
}

.kurse-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 0;
}

.kurse-info {
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 24px);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.ki-title {
  font-family: var(--display);
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1;
}

.ki-desc {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 32px;
  max-width: 32ch;
}

.ki-filter {
  margin-top: auto;
  border-top: var(--border);
  padding-top: 16px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tech-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--ink);
  padding: 4px 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.tech-tag:hover,
.tech-tag.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.schedule-wrap {
  padding: 0;
  overflow-x: auto;
  background: var(--bg-2);
  border-left: var(--border);
}

.schedule-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, minmax(130px, 1fr));
  min-width: 960px;
}

.sg-head {
  padding: 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  border-bottom: var(--border);
  border-right: var(--border);
  background: var(--surface);
}

.sg-time-head {
  border-right: var(--border);
}

.sg-head:last-child {
  border-right: none;
}

.sg-time {
  padding: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  border-bottom: var(--border);
  border-right: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.sg-cell {
  border-bottom: var(--border);
  border-right: var(--border);
  padding: 8px;
  min-height: 80px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.sg-cell:nth-child(8n) {
  border-right: none;
}

.course-card {
  background: var(--accent);
  color: #fff;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}

.course-card.cc-yoga {
  background: #A074FF;
}

.course-card.cc-kids {
  background: #FF7D54;
  color: var(--ink);
}

.course-card.cc-event {
  background: var(--ink);
  color: #fff;
}

.course-card:hover {
  opacity: 0.8;
}

.course-card span {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
}

/* ---------- PREISE ---------- */
.preise-section {
  background: var(--bg);
}

.preise-section.inverted {
  background: var(--ink);
  color: #fff;
}

.preise-section.inverted .section-header {
  background: var(--ink);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.preise-section.inverted .pricing-grid {
  border-color: rgba(255, 255, 255, 0.2);
}

.preise-section.inverted .price-card {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
}

.preise-section.inverted .price-hot {
  background: #fff;
  color: var(--ink);
}

.preise-section.inverted .price-hot .price-desc {
  border-color: rgba(0, 0, 0, 0.2);
}

.preise-section.inverted .hot-badge {
  border-color: var(--ink);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
}

.price-card {
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--surface);
}

.price-hot {
  background: var(--ink);
  color: #fff;
}

.hot-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--warm);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-left: var(--border);
  border-bottom: var(--border);
  border-color: var(--ink);
}

.price-head {
  font-family: var(--display);
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.price-val {
  font-family: var(--mono);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
}

.price-val .currency {
  font-size: 1.2rem;
  vertical-align: top;
}

.price-desc {
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: auto;
  border-top: var(--border);
  padding-top: 16px;
}

.price-hot .price-desc {
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- KONTAKT ---------- */
.kontakt-section {
  background: var(--surface);
}

.kontakt-section.brutal-yellow-bg {
  background: #F4E04D;
  color: var(--ink);
}

.kontakt-section.brutal-yellow-bg .section-header {
  background: #F4E04D;
  color: var(--ink);
  border-color: var(--ink);
}

.kontakt-section.brutal-yellow-bg .k-block {
  border-color: var(--ink);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
}

.k-block {
  padding: 24px;
}

.k-title {
  font-family: var(--display);
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kontakt-map {
  position: relative;
  min-height: 300px;
}

.map-ph {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border-left: var(--border);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 24px;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--warm);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1040px) {
  .hero-bento {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main main"
      "data media1"
      "action media2";
  }

  .bento-panel:nth-child(3n) {
    border-right: var(--border);
  }

  .panel-main {
    border-right: none;
    border-bottom: var(--border) !important;
  }

  .panel-media-1 {
    border-right: none;
  }

  .panel-media-2 {
    border-right: none;
  }

  .panel-action {
    border-bottom: none !important;
  }

  .bento-areas {
    grid-template-columns: 1fr 1fr;
  }

  .area-col {
    border-bottom: var(--border);
    border-right: none;
  }

  .area-col:nth-child(odd) {
    border-right: var(--border);
  }

  .area-col:nth-child(n+3) {
    border-bottom: none;
  }

  .kurse-split {
    grid-template-columns: 1fr;
  }

  .kurse-info {
    border-right: none;
    border-bottom: var(--border);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    border-right: none;
    border-bottom: var(--border);
  }

  .price-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {

  .nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "data"
      "action"
      "media1"
      "media2";
  }

  .bento-panel {
    border-right: none !important;
    border-bottom: var(--border) !important;
  }

  .panel-media-2 {
    border-bottom: none !important;
  }

  .img-ph {
    min-height: 250px;
  }

  .bento-areas {
    grid-template-columns: 1fr;
  }

  .area-col {
    border-right: none !important;
    border-bottom: var(--border) !important;
  }

  .area-col:last-child {
    border-bottom: none !important;
  }

  .kontakt-grid {
    grid-template-columns: 1fr;
  }

  .kontakt-info {
    border-right: none;
    border-bottom: var(--border);
  }

  .kontakt-floorplan {
    border-right: none;
    border-bottom: var(--border);
    min-height: 300px;
  }

  .map-ph {
    border-left: none;
    position: relative;
  }

  /* Make table scrollable or stack */
  .tabular-wrap {
    overflow-x: auto;
  }

  .brutal-table {
    min-width: 600px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}