:root {
  /* Swiss Minimalist Color Palette */
  --c-bg: #ffffff;
  --c-text: #111111;
  --c-text-muted: #555555;
  --c-border: #e0e0e0;
  --c-accent: #e63946; /* vivid accent */
  --c-surface: #f9f9f9;

  /* Spacing Scale */
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-40: 40px;
  --s-64: 64px;

  /* Typography */
  --f-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --fw-regular: 400;
  --fw-bold: 700;
}

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

html {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-weight: var(--fw-bold);
  line-height: 1.1;
  overflow-wrap: anywhere;
  letter-spacing: -0.02em;
}

/* Swiss Typography Scale */
h1 { font-size: clamp(2.5rem, 5vw, 5rem); margin-bottom: var(--s-24); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: var(--s-24); }
h3 { font-size: clamp(1.5rem, 2vw, 2rem); margin-bottom: var(--s-16); }
p { margin-bottom: var(--s-24); max-width: 65ch; }
a { color: var(--c-text); text-decoration: none; border-bottom: 1px solid var(--c-text); transition: color 0.2s, border-color 0.2s; }
a:hover { color: var(--c-accent); border-color: var(--c-accent); }

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

.section {
  padding: var(--s-64) 0;
  border-top: 1px solid var(--c-border);
}

.section:first-of-type {
  border-top: none;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--s-40);
  min-width: 0;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

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

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  font-weight: var(--fw-bold);
  font-size: 1.125rem;
  border-bottom: none;
  overflow-wrap: anywhere;
}
.brand:hover { border-bottom: none; color: var(--c-accent); }
.brand-mark { width: 24px; height: 24px; fill: currentColor; }

/* Navigation */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding: var(--s-24);
  z-index: 10;
}

.main-nav.is-visible {
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
}

.nav-link {
  font-size: 1.125rem;
  border: none;
  font-weight: var(--fw-regular);
}

.nav-cta {
  border: 1px solid var(--c-text);
  padding: var(--s-8) var(--s-16);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--c-text);
  color: var(--c-bg);
  transition: background 0.2s, color 0.2s;
  display: none;
}
.nav-cta:hover {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: var(--c-accent);
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--c-text);
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .main-nav {
    display: flex;
    position: static;
    width: auto;
    border: none;
    padding: 0;
  }
  .nav-list {
    flex-direction: row;
    gap: var(--s-24);
  }
  .nav-link {
    font-size: 0.875rem;
  }
  .nav-cta { display: block; }
}

/* Horizontal Split Cards */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  min-width: 0;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-media {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--c-border);
}

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

.card-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  margin-bottom: var(--s-12);
  display: flex;
  gap: var(--s-8);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--s-16);
}

.card-title a {
  border: none;
}

.card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card { position: relative; }

.card-desc {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-bottom: var(--s-24);
  flex-grow: 1;
}

.card-cta {
  font-size: 0.875rem;
  font-weight: var(--fw-bold);
  border-bottom: 2px solid var(--c-text);
  align-self: flex-start;
  padding-bottom: 2px;
}

@media (min-width: 768px) {
  .card {
    flex-direction: row;
    height: 100%;
  }
  .card-media {
    width: 40%;
    height: auto;
    border-bottom: none;
    border-right: 1px solid var(--c-border);
  }
  .card-content {
    width: 60%;
  }
}

/* Single Page Content Structure */
.article-header {
  padding: var(--s-64) 0 var(--s-40);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--s-64);
}

.article-meta {
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--s-24);
  display: block;
}

.article-content h2 {
  margin-top: var(--s-64);
}

.article-content h3 {
  margin-top: var(--s-40);
}

.article-content ul, .article-content ol {
  margin-bottom: var(--s-24);
  padding-left: var(--s-24);
  max-width: 65ch;
}

.article-content li {
  margin-bottom: var(--s-8);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--s-40);
  text-align: left;
}
.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--s-40);
}
.article-content th, .article-content td {
  padding: var(--s-16);
  border-bottom: 1px solid var(--c-border);
}
.article-content th {
  background: var(--c-surface);
  font-weight: var(--fw-bold);
}

/* Forms */
.form-group {
  margin-bottom: var(--s-24);
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: var(--fw-bold);
  margin-bottom: var(--s-8);
}
.form-control {
  width: 100%;
  padding: var(--s-16);
  border: 1px solid var(--c-border);
  font-family: var(--f-sans);
  font-size: 1rem;
  background: var(--c-surface);
  color: var(--c-text);
  border-radius: 0;
}
.form-control:focus {
  outline: none;
  border-color: var(--c-text);
  background: var(--c-bg);
}
.form-control.is-invalid {
  border-color: var(--c-accent);
}
.form-error {
  display: none;
  color: var(--c-accent);
  font-size: 0.75rem;
  margin-top: var(--s-4);
}
.form-control.is-invalid + .form-error {
  display: block;
}
.btn {
  display: inline-block;
  background: var(--c-text);
  color: var(--c-bg);
  padding: var(--s-16) var(--s-40);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--fw-bold);
  transition: background 0.2s, color 0.2s;
}
.btn:hover {
  background: var(--c-accent);
  color: var(--c-bg);
}

/* Map Block */
.map-block {
  width: 100%;
  height: 400px;
  background: #eaeaea;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  font-size: 0.875rem;
  margin-top: var(--s-40);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--c-border);
  padding: var(--s-64) 0;
  background: var(--c-surface);
  font-size: 0.875rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-16);
  margin-bottom: var(--s-40);
}

.footer-nav a {
  border: none;
  color: var(--c-text-muted);
}
.footer-nav a:hover {
  color: var(--c-text);
}

.footer-meta {
  color: var(--c-text-muted);
}

.footer-meta p {
  margin-bottom: var(--s-8);
  font-size: 0.75rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--c-text);
  color: var(--c-bg);
  padding: var(--s-24);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--c-bg);
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
}
.cookie-btn {
  background: transparent;
  border: 1px solid var(--c-bg);
  color: var(--c-bg);
  padding: var(--s-8) var(--s-16);
  font-size: 0.75rem;
  cursor: pointer;
  text-transform: uppercase;
}
.cookie-btn:hover {
  background: var(--c-bg);
  color: var(--c-text);
}
.cookie-btn[data-cookie-choice="accept"] {
  background: var(--c-bg);
  color: var(--c-text);
}
.cookie-btn[data-cookie-choice="accept"]:hover {
  background: var(--c-border);
}
@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}