:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-text-muted: #555555;
  --color-accent: #e63946;
  --color-border: #111111;
  --color-border-light: #dddddd;
  --color-focus: #457b9d;

  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

  --header-height-desk: 64px;
  --header-height-mob: 52px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .brand-name {
  margin: 0 0 var(--space-24) 0;
  line-height: 1.1;
  font-weight: 700;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 var(--space-24) 0;
  font-size: 1.125rem;
}

a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

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

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

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

.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;
}

/* Header */
.site-header {
  height: var(--header-height-desk);
  border-bottom: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  background: var(--color-bg);
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.brand-name {
  margin: 0;
  font-size: 1.25rem;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  gap: var(--space-24);
}

.header-nav a {
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.875rem;
}

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

.btn {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-12) var(--space-24);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--color-text);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

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

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-8);
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-64);
  min-width: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-40);
  min-width: 0;
}

.hero-section {
  padding: calc(var(--space-64) * 2) 0;
  border-bottom: 2px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-64);
  align-items: end;
}

/* Swiss Minimalist Aesthetics */
.asymmetric-block {
  margin-left: 25%;
}

.border-top {
  border-top: 2px solid var(--color-border);
  padding-top: var(--space-24);
}

/* Cards (Data Grid Style) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: var(--space-40);
  margin-top: var(--space-40);
}

.card {
  border: 2px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--color-border);
  background: var(--color-bg);
}

.stat-block {
  padding: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.stat-block:first-child {
  border-right: 2px solid var(--color-border);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-muted);
}

.stat-val {
  font-size: 1.25rem;
  font-weight: 700;
}

.card-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 2px solid var(--color-border);
}

.card-body {
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-16);
}

.card-body p {
  font-size: 1rem;
  color: var(--color-text-muted);
  flex-grow: 1;
}

.card-link {
  display: inline-block;
  margin-top: var(--space-24);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 4px;
  align-self: flex-start;
}

.card-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Sub-pages Article Styling */
.article-header {
  padding: var(--space-64) 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-64);
}

.article-meta {
  display: flex;
  gap: var(--space-24);
  margin-bottom: var(--space-24);
  font-family: monospace;
  text-transform: uppercase;
}

.article-content {
  max-width: 800px;
  margin: 0 auto var(--space-64);
}

.article-content h2 {
  margin-top: var(--space-64);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-24);
}

.article-content ul, .article-content ol {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
  font-size: 1.125rem;
}

.article-content li {
  margin-bottom: var(--space-12);
}

/* Footer */
.site-footer {
  border-top: 4px solid var(--color-border);
  padding: var(--space-64) 0;
  background: var(--color-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-40);
  margin-bottom: var(--space-64);
}

.footer-col h4 {
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-16);
}

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

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

.footer-col a {
  text-decoration: none;
  color: var(--color-text-muted);
}

.footer-col a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-24);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-24);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

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

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-8);
  text-transform: uppercase;
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: var(--space-16);
  border: 2px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: transparent;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-focus);
}

.form-control.is-invalid {
  border-color: var(--color-accent);
}

.error-msg {
  display: none;
  color: var(--color-accent);
  font-size: 0.875rem;
  margin-top: var(--space-8);
  font-weight: bold;
}

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

/* Static Map */
.static-map {
  width: 100%;
  height: 400px;
  background-color: #f4f4f4;
  background-image: linear-gradient(#dddddd 1px, transparent 1px),
                    linear-gradient(90deg, #dddddd 1px, transparent 1px);
  background-size: 40px 40px;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-marker {
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  border: 3px solid var(--color-text);
  border-radius: 50%;
  position: absolute;
}

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--space-24);
  border: 2px solid var(--color-border);
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

th, td {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-border-light);
  border-right: 1px solid var(--color-border-light);
  text-align: left;
}

th {
  background: #f9f9f9;
  font-weight: 700;
  text-transform: uppercase;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-24);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 4px solid var(--color-accent);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
  align-items: center;
  justify-content: space-between;
}

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

.cookie-text a {
  color: var(--color-bg);
}

.cookie-actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.btn-cookie {
  background: var(--color-bg);
  color: var(--color-text);
  border: 2px solid var(--color-bg);
  padding: var(--space-8) var(--space-16);
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.btn-cookie:hover, .btn-cookie:focus-visible {
  background: transparent;
  color: var(--color-bg);
}

.btn-cookie.outline {
  background: transparent;
  color: var(--color-bg);
}

.btn-cookie.outline:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .asymmetric-block {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: var(--header-height-mob);
  }
  
  .hamburger {
    display: flex;
  }
  
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height-mob);
    left: 0;
    width: 100%;
    background: var(--color-bg);
    flex-direction: column;
    padding: var(--space-24);
    border-bottom: 2px solid var(--color-border);
    z-index: 100;
  }
  
  .header-nav.is-visible {
    display: flex;
  }
  
  .header-right .btn {
    display: none;
  }
}

@media (max-width: 400px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .card-data-grid {
    grid-template-columns: 1fr;
  }
  .stat-block:first-child {
    border-right: none;
    border-bottom: 2px solid var(--color-border);
  }
}

@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;
  }
}