/* maelfretz.ch — shared styles */

:root {
  --color-bg: #0b0d10;
  --color-bg-alt: #14171c;
  --color-surface: #1b1f26;
  --color-border: #2a2f38;
  --color-text: #f4f5f7;
  --color-text-muted: #a6adb8;
  --color-accent: #ff4d1c;
  --color-accent-dark: #d63d12;
  --color-ice: #3dd6f5;
  --color-gold: #f5c542;
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

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

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

.grid > * { min-width: 0; }

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; text-transform: none; letter-spacing: normal; font-family: var(--font-body); font-weight: 800; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.8em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-accent); color: #0b0d10; }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.logo span { color: var(--color-accent); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.6rem;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-text);
  border-color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}
.lang-switch a {
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--color-text-muted);
}
.lang-switch a[aria-current="true"] {
  color: var(--color-bg);
  background: var(--color-accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,0.1) 0%, rgba(11,13,16,0.45) 60%, rgba(11,13,16,0.97) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 40px;
}
.hero-inner h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero-details { padding: 40px 0 56px; background: var(--color-bg-alt); }
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.stat-pill {
  background: rgba(27,31,38,0.75);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
}
.stat-pill strong { color: var(--color-accent); }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Page hero (sub-pages, no image) */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--color-border);
  background: radial-gradient(circle at 15% 0%, rgba(255,77,28,0.14), transparent 55%);
}
.page-hero p.lead { font-size: 1.15rem; max-width: 640px; }

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }

/* Cards */
.grid {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.card.highlight { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent) inset; }
.card h3 a:hover { text-decoration: underline; }
.card .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-border);
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.card .price { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-accent); margin: 10px 0; }

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 18px;
}
.logo-tile img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.logo-tile img.wide { max-height: 60%; }

.card.compact {
  padding: 18px 22px;
}
.card.compact h3 { font-size: 1.05rem; }
.card.compact .badge { margin-bottom: 8px; }
.card.compact p:last-child { margin-bottom: 0; font-size: 0.9rem; }
.partners-more-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 32px 0 14px;
}

/* Results table */
.results-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.results-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.results-list .medal { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-gold); width: 40px; flex-shrink: 0; }
.results-list.top li { border-color: var(--color-accent); background: linear-gradient(90deg, rgba(255,77,28,0.12), transparent); }

/* Training table */
.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table.plan { width: 100%; min-width: 480px; border-collapse: collapse; }
table.plan th, table.plan td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
table.plan th { color: var(--color-text-muted); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; height: 100%; }

.video-placeholder {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-weight: 700;
}

/* Contact */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list a { text-decoration: none; font-weight: 700; color: var(--color-text); }
.contact-list span.label { display: block; font-size: 0.78rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }

.notice {
  border: 1px dashed var(--color-border);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
  background: var(--color-bg-alt);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-grid nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-grid nav a { text-decoration: none; color: var(--color-text-muted); font-size: 0.9rem; }
.footer-grid nav a:hover { color: var(--color-text); }
.footer-meta { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 24px; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-block { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 60;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px 24px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 4px; font-size: 1.1rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions { gap: 10px; }
}
