:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-text-muted: #555555;
  --color-accent: #0033A0;
  --color-surface: #f4f4f4;
  --color-border: #e0e0e0;
  --color-error: #D32F2F;
  
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
  
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --transition: all 0.2s ease-out;
}

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

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

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

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

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

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

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

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

h1, h2, h3, .brand-name, .nav-link {
  overflow-wrap: anywhere;
}

/* Typography - Swiss Minimalist */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-24);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-16);
}

p {
  margin-bottom: var(--space-16);
  max-width: 70ch;
}

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

.text-large {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-24);
  min-width: 0;
}

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

.section-large {
  padding: clamp(64px, 10vw, 128px) 0;
}

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

@media (max-width: 767px) {
  .site-header {
    height: 52px;
  }
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  z-index: 100;
}

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

.brand-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

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

.nav-link {
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav-link:hover {
  color: var(--color-text);
}

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

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-8);
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  left: 8px;
  transition: var(--transition);
}

.hamburger-line:nth-child(1) { top: 12px; }
.hamburger-line:nth-child(2) { top: 19px; }
.hamburger-line:nth-child(3) { top: 26px; }

.is-menu-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.is-menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.is-menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .header-center {
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    flex-direction: column;
    padding: var(--space-24);
    gap: var(--space-16);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 50;
  }
  
  .is-menu-open .header-center {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .header-right .btn {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  padding: clamp(64px, 12vw, 160px) 0;
}

.hero-content {
  grid-column: 1 / 9;
}

@media (max-width: 900px) {
  .hero-content {
    grid-column: 1 / -1;
  }
}

.hero h1 {
  margin-bottom: var(--space-24);
}

/* Cards - Style 4: Border accent */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-40);
  min-width: 0;
}

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-24);
  text-decoration: none;
  transition: var(--transition);
  height: 100%;
}

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

.card-img-wrap {
  margin: calc(var(--space-24) * -1) calc(var(--space-24) * -1) var(--space-24) calc(var(--space-24) * -1);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-surface);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.card-excerpt {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Sub-page Content Formatting */
.content-header {
  margin-bottom: var(--space-64);
}

.content-header .text-muted {
  margin-bottom: var(--space-16);
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.content-body {
  grid-column: 1 / 9;
}

.content-sidebar {
  grid-column: 10 / 13;
}

@media (max-width: 900px) {
  .content-body, .content-sidebar {
    grid-column: 1 / -1;
  }
}

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

.content-body h3 {
  margin-top: var(--space-40);
}

.content-body ul, .content-body ol {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
}

.content-body li {
  margin-bottom: var(--space-8);
}

.featured-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  margin-bottom: var(--space-64);
  background-color: var(--color-surface);
}

/* Statistics Block */
.stat-block {
  margin-bottom: var(--space-40);
  padding: var(--space-24);
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-text);
}

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

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

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--space-40);
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: var(--color-text);
  color: var(--color-bg);
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

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

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
}

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

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-8);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-bg);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

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

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

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

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

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

/* Map Block */
.static-map {
  width: 100%;
  height: 300px;
  background-color: var(--color-surface);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.static-map::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.map-marker {
  width: 24px;
  height: 24px;
  fill: var(--color-accent);
  position: relative;
  z-index: 2;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding: var(--space-64) 0 var(--space-40) 0;
  background-color: 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 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-16);
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: var(--color-text-muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.05);
  padding: var(--space-24) 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

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

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

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

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

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

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