:root {
  /* Spacing Scale */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-40: 40px;
  --sp-64: 64px;

  /* Colors - Swiss Minimalist */
  --c-bg: #FFFFFF;
  --c-text: #111111;
  --c-text-muted: #555555;
  --c-accent: #D32F2F; /* Striking Red for accents/borders */
  --c-accent-hover: #B71C1C;
  --c-surface: #F8F9FA;
  --c-border: #E0E0E0;
  
  /* Typography */
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  
  /* Header Heights */
  --h-header-desktop: 64px;
  --h-header-mobile: 52px;
}

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

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

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: var(--sp-16);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 4.5rem); margin-bottom: var(--sp-24); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); margin-top: var(--sp-64); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); margin-top: var(--sp-40); }

p, ul, ol {
  margin-top: 0;
  margin-bottom: var(--sp-24);
  max-width: 720px;
}

a {
  color: var(--c-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

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

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

.brand-name {
  overflow-wrap: anywhere;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Focus States */
*:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-24);
}

.section {
  padding: var(--sp-64) 0;
}

.grid {
  display: grid;
  gap: var(--sp-40);
}

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

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-asym { grid-template-columns: 1fr 2fr; }
}

/* Header & Nav */
.site-header {
  height: var(--h-header-mobile);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
  background-color: var(--c-bg);
}

@media (min-width: 768px) {
  .site-header { height: var(--h-header-desktop); }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  text-decoration: none;
  color: var(--c-text);
  font-size: 1.125rem;
  z-index: 100;
}

.logo-mark {
  width: 24px;
  height: 24px;
  fill: var(--c-accent);
}

.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    gap: var(--sp-24);
    align-items: center;
  }
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
    background-color: var(--c-text);
    color: var(--c-bg);
    padding: var(--sp-8) var(--sp-16);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color 0.2s;
  }
  .header-cta:hover {
    background-color: var(--c-accent);
    color: var(--c-bg);
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  padding: var(--sp-8);
  cursor: pointer;
  z-index: 100;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

.menu-icon {
  width: 24px;
  height: 24px;
  fill: var(--c-text);
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: var(--h-header-mobile);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--h-header-mobile));
  background-color: var(--c-bg);
  padding: var(--sp-40) var(--sp-24);
  z-index: 90;
  overflow-y: auto;
}

.mobile-nav-overlay.is-visible {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}

.mobile-nav-overlay .nav-link {
  font-size: 1.5rem;
  display: block;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: var(--sp-8);
}

/* Hero Section */
.hero {
  padding: clamp(var(--sp-40), 10vw, var(--sp-64)) 0;
  border-bottom: 1px solid var(--c-border);
}

.hero-content {
  max-width: 800px;
}

.hero-lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--c-text-muted);
  max-width: 600px;
}

/* Card Style: Border Accent */
.card-grid {
  margin-top: var(--sp-64);
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-24);
  background-color: var(--c-surface);
  border-left: 6px solid var(--c-accent);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  height: 100%;
  gap: var(--sp-16);
}

.card:hover {
  transform: translateX(4px);
  background-color: #F0F0F0;
}

.card-title {
  font-size: 1.5rem;
  margin: 0;
}

.card-excerpt {
  margin: 0;
  color: var(--c-text-muted);
  flex-grow: 1;
}

.card-meta {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-accent);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

/* Content Pages */
.page-header {
  padding: var(--sp-64) 0 var(--sp-40);
  border-bottom: 1px solid var(--c-text);
  margin-bottom: var(--sp-40);
}

.article-content {
  font-size: 1.125rem;
}

.article-content h2 {
  border-top: 4px solid var(--c-text);
  padding-top: var(--sp-16);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-24);
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--sp-24);
}

th, td {
  text-align: left;
  padding: var(--sp-12) var(--sp-16);
  border-bottom: 1px solid var(--c-border);
}

th {
  background-color: var(--c-surface);
  font-weight: 700;
}

/* Stats Block */
.stat-block {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-24);
  padding: var(--sp-24);
  background-color: var(--c-surface);
  border-left: 4px solid var(--c-text);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--sp-12);
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
}

/* Image treatments */
.content-image {
  width: 100%;
  height: auto;
  margin: var(--sp-40) 0;
  background-color: var(--c-surface);
}

/* Forms */
.form-group {
  margin-bottom: var(--sp-24);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--sp-8);
  font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: var(--sp-16);
  border: 1px solid var(--c-border);
  background-color: var(--c-bg);
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-text);
}

input.is-invalid,
textarea.is-invalid {
  border-color: var(--c-accent);
}

.error-msg {
  display: none;
  color: var(--c-accent);
  font-size: 0.875rem;
  margin-top: var(--sp-4);
}

.is-invalid + .error-msg {
  display: block;
}

button[type="submit"] {
  background-color: var(--c-text);
  color: var(--c-bg);
  border: none;
  padding: var(--sp-16) var(--sp-40);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

button[type="submit"]:hover {
  background-color: var(--c-accent);
  color: var(--c-bg);
}

.form-success {
  display: none;
  padding: var(--sp-24);
  background-color: var(--c-surface);
  border-left: 4px solid #2E7D32;
  margin-bottom: var(--sp-24);
}

.form-success.is-visible {
  display: block;
}

/* Static Map Block */
.static-map {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e0e0e0 25%, #f5f5f5 25%, #f5f5f5 50%, #e0e0e0 50%, #e0e0e0 75%, #f5f5f5 75%, #f5f5f5 100%);
  background-size: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  margin-top: var(--sp-24);
}

.map-label {
  background-color: var(--c-text);
  color: var(--c-bg);
  padding: var(--sp-8) var(--sp-16);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  background-color: var(--c-text);
  color: var(--c-bg);
  padding: var(--sp-64) 0;
  margin-top: var(--sp-64);
}

.site-footer a {
  color: var(--c-bg);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--c-accent);
}

.footer-grid {
  display: grid;
  gap: var(--sp-40);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-col h4 {
  color: var(--c-border);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-16);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: var(--sp-8);
}

.footer-bottom {
  margin-top: var(--sp-64);
  padding-top: var(--sp-24);
  border-top: 1px solid #333;
  font-size: 0.875rem;
  color: #999;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-16);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--c-surface);
  border-top: 4px solid var(--c-accent);
  padding: var(--sp-24);
  z-index: 1000;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text p {
  margin: 0;
  font-size: 0.875rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.cookie-btn {
  padding: var(--sp-8) var(--sp-16);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--c-text);
  background-color: transparent;
  color: var(--c-text);
  transition: all 0.2s;
}

.cookie-btn[data-cookie-choice="accept"] {
  background-color: var(--c-text);
  color: var(--c-bg);
}

.cookie-btn:hover {
  background-color: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-bg);
}

/* 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;
  }
}