/* NFITS Events gGmbH, shared styles
   Left-aligned document layout: no boxed header bar, no centered card,
   no footer band. The page reads top to bottom like a README, anchored
   to the left margin instead of floating in a centered column. Colors
   match nfits.de (white page, dark text, teal accent). Monospace
   headlines/nav and numbered legal sections carry the identity.
   System fonts only, no external requests. */

:root {
  --paper: #FFFFFF;
  --ink: #212529;
  --ink-soft: #43454D;
  --signal: #207AA5;
  --signal-dark: #185F80;
  --hairline: #DEE2E6;
  --mono: ui-monospace, "Cascadia Code", "Roboto Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --content-width: 640px;
  --content-width-wide: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 {
  margin-top: 0;
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p { color: var(--ink-soft); }

a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--signal-dark); text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* Page: left-aligned, not centered. Generous left gutter, capped line
   length, ample open space on the right on wide screens by design. */
.page {
  max-width: var(--content-width);
  margin: 0;
  padding: 48px 24px 56px clamp(24px, 6vw, 72px);
}

.legal .page { max-width: var(--content-width-wide); }

/* Header */
.site-header { margin-bottom: 56px; }

.logo {
  display: inline-block;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--signal);
  margin-bottom: 14px;
}

.logo:hover { color: var(--signal-dark); text-decoration: none; }

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

nav.main-nav a {
  font-family: var(--mono);
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

nav.main-nav a:hover { color: var(--signal-dark); text-decoration: none; }

.lang-switch { color: var(--signal); }
.lang-switch::before { content: "["; color: var(--ink-soft); }
.lang-switch::after { content: "]"; color: var(--ink-soft); }
.lang-switch:hover { color: var(--signal-dark); text-decoration: none; }

/* Hero */
.hero { margin-bottom: 56px; }

.hero h1 {
  font-size: 2rem;
  color: var(--ink);
}

/* Sections */
.section { margin-bottom: 56px; }
.section:last-of-type { margin-bottom: 0; }
.section h2 { font-size: 1.3rem; margin-bottom: 16px; color: var(--ink); }

.legal .section h2 {
  font-size: 1.05rem;
  margin-top: 32px;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.legal .section h2:first-of-type { margin-top: 0; }

.legal .num {
  color: var(--signal);
  font-weight: 600;
}

.legal p, .legal ul { max-width: 620px; }
.legal ul { padding-left: 1.2em; }
.legal em { color: var(--ink-soft); }

address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 700px) {
  .page { padding: 36px 20px 40px; }
  .site-header { margin-bottom: 40px; }
  .hero { margin-bottom: 40px; }
  .section { margin-bottom: 40px; }
  .hero h1 { font-size: 1.6rem; }
}
