/* ------------------------------------------------------------------------
   Design-System "Vertrauens-Präzision" – Tokens, Reset, Typografie
   ------------------------------------------------------------------------ */

:root {
  --primary: #1c3a5e;
  --primary: oklch(32% 0.06 250);
  --primary-strong: #142a44;
  --primary-strong: oklch(24% 0.055 250);
  --accent: #b08d57;
  --accent: oklch(66% 0.085 75);
  --accent-deep: #8c6d3f;
  --accent-deep: oklch(52% 0.08 70);
  --bg: #f3f1ec;
  --bg: oklch(96% 0.012 90);
  --surface: #ffffff;
  --surface: oklch(99% 0.003 90);
  --text: #22262b;
  --text: oklch(26% 0.012 250);
  --text-muted: #5b6470;
  --text-muted: oklch(46% 0.016 250);
  --border: #e3ddd1;
  --border: oklch(89% 0.014 85);

  --radius: 2px;
  --radius-feature: 32px;
  --space: 8px;
  --max-width: 1280px;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 280ms;

  --shadow-low: 0 1px 2px oklch(26% 0.012 250 / 0.06), 0 1px 1px oklch(26% 0.012 250 / 0.04);
  --shadow-high: 0 16px 40px oklch(26% 0.012 250 / 0.14), 0 4px 10px oklch(26% 0.012 250 / 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

svg {
  max-width: 100%;
  height: auto;
}

.icon {
  width: 1.4em;
  height: 1.4em;
  flex: 0 0 auto;
  vertical-align: middle;
  max-width: 32px;
  max-height: 32px;
}

ul[class]:not(.wp-block-list),
ol[class]:not(.wp-block-list) {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--primary-strong);
  text-wrap: pretty;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(3.375rem, 2.3rem + 4vw, 4.75rem);
  font-weight: 600;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.25rem, 1.85rem + 1.8vw, 3rem);
}

h3 {
  font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem);
}

h4 {
  font-size: 1.375rem;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

.measure,
.wp-block-post-content p,
.entry-content p,
.entry-content li {
  max-width: 68ch;
}

small,
.eyebrow {
  font-size: 0.8125rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: 0.9em;
}

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .grid-12 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .grid-12 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  min-height: 44px;
}

.btn:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .btn:active {
    transform: none;
  }
}

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

.btn--primary:hover {
  background: var(--primary-strong);
  box-shadow: var(--shadow-low);
  color: var(--surface);
}

.btn--ghost {
  background: transparent;
  color: var(--primary-strong);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.8em 1.2em;
  z-index: 10000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

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