:root {
  --bg: #eef1f4;
  --paper: #ffffff;
  --ink: #1b2028;
  --muted: #5a6573;
  --line: #d3dae2;
  --blue: #0a5bd3;
  --gold: #b08d57;
  --stamp: #b3261e;
  --radius: 4px;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Futura PT", Futura, "Century Gothic", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  /* graph paper */
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(10, 91, 211, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 91, 211, .06) 1px, transparent 1px),
    linear-gradient(rgba(10, 91, 211, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 91, 211, .03) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

a { color: var(--blue); }
img { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.mono {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(238, 241, 244, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.brand img { width: 30px; height: 30px; }
.brand-name span { color: var(--gold); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--ink);
  border-radius: 2px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  padding: 5px 12px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switch button + button { border-left: 1px solid var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 120px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: .02em;
  margin: 0 0 22px;
  max-width: 760px;
}
.hero h1 .strong {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 .strong span { color: var(--gold); }
.hero p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  max-width: 520px;
  margin: 0;
}
.hero.compact { padding: 90px 0 90px; }

.stamp {
  position: absolute;
  right: max(16px, calc(50% - 520px));
  bottom: 36px;
  transform: rotate(-12deg);
  padding: 8px 16px;
  border: 3px solid var(--stamp);
  border-radius: 4px;
  color: var(--stamp);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: .85;
  mix-blend-mode: multiply;
}

/* Section heading */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0 24px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.section-head .line { flex: 1; height: 1px; background: var(--ink); opacity: .2; }
.section-head .count { color: var(--muted); }

/* Cards (dossiers) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  padding-bottom: 80px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(27, 32, 40, .04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* corner registration marks */
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--ink);
  border-style: solid;
  transition: border-color .25s, inset .25s;
}
.card::before { top: -6px; left: -6px; border-width: 1px 0 0 1px; }
.card::after { bottom: -6px; right: -6px; border-width: 0 1px 1px 0; }
.card:hover, .card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px -22px rgba(27, 32, 40, .45);
}
.card:hover::before, .card:hover::after { border-color: var(--gold); }
.card:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.card .file {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.card .file b { color: var(--ink); font-weight: 600; }

.card .media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f6f9fc;
}
.card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.card:hover .media img { transform: scale(1.04); }

.card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.card .domain {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--blue);
  margin: 4px 0 14px;
}
.card p {
  margin: 0 0 18px;
  color: var(--muted);
  flex: 1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.tags li {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
}
.card .cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.card:hover .cta { background: var(--ink); color: var(--paper); }
.card .cta svg { width: 15px; height: 15px; transition: transform .2s; }
.card:hover .cta svg { transform: translateX(3px); }

/* Language blocks for longer texts: <div class="i18n-block" lang="de"> */
html[lang="de"] .i18n-block[lang="en"],
html[lang="en"] .i18n-block[lang="de"] { display: none; }

/* Dossier */
.dossier { padding-bottom: 80px; }
.bio { max-width: 860px; }
.bio p { margin: 0 0 18px; color: #39424e; font-size: 1.05rem; max-width: 640px; }
.bio p.lead {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.4;
  color: var(--ink);
}
.bio h3 {
  margin: 36px 0 16px;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--paper);
}
.steps .n { color: var(--gold); }
.steps strong { display: block; margin: 4px 0 4px; }
.steps span:last-child { color: var(--muted); font-size: .92rem; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* Contact */
.contact { margin-bottom: 80px; }
.contact:hover { transform: none; }
.contact .body { padding: 28px 28px 30px; }
.contact .lead {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.3;
  color: var(--ink);
}
.contact p { max-width: 640px; margin: 0 0 20px; color: #39424e; font-size: 1.05rem; }
.contact .live { color: #2f9e44; }
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.topics a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.topics a:hover { border-color: var(--gold); color: var(--gold); }
.contact a.cta { text-decoration: none; }
.contact a.cta:hover { background: var(--ink); color: var(--paper); }
.contact .addr { margin: 16px 0 0; font-size: .85rem; text-transform: none; letter-spacing: .02em; }

/* Legal notice */
.legal { padding-top: 8px; padding-bottom: 80px; }
.legal > * { max-width: 720px; }
.legal h2 {
  margin: 36px 0 10px;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.legal p, .legal li { color: #39424e; }
.legal address { font-style: normal; line-height: 1.8; }
.todo {
  padding: 0 4px;
  background: #fff3c4;
  border-bottom: 1px dashed var(--gold);
  font-family: var(--mono);
  font-size: .9em;
}

/* Password gate (private area) */
.gate { padding: 56px 0 80px; }
.gate-card { max-width: 440px; }
.gate-card:hover { transform: none; }
.gate-card label.mono { display: block; margin-bottom: 8px; color: var(--muted); }
.gate-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: .1em;
}
.gate-card input[type="password"]:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.gate-card .check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: .9rem;
  cursor: pointer;
}
.gate-card .check input { accent-color: var(--ink); width: 16px; height: 16px; }
.gate-card button.cta { background: transparent; cursor: pointer; }
.gate-card button.cta:hover, .gate-card button.cta:focus-visible { background: var(--ink); color: var(--paper); }
.gate-card button.cta:disabled { opacity: .6; cursor: progress; }
.gate-msg { min-height: 1.2em; margin: 16px 0 0; color: var(--stamp); }
.shake { animation: shake .4s; }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
#content .section-head { margin-top: 56px; }

.link-btn {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.link-btn:hover { color: var(--stamp); }

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(238, 241, 244, .85);
  padding: 22px 0;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.site-footer a:hover { color: var(--ink); }
.site-footer svg { width: 14px; height: 14px; }

@media (max-width: 520px) {
  .hero { padding: 72px 0 80px; }
  .hero.compact { padding: 80px 0 60px; }
  
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
