/* Zuricaf site styles. Values from the Zuricaf Design System (tokens.json, 11/2026).
   Jost stands in for Futura 100 LXT / Chopard until the brand font files exist. */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/jost-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/jost-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  /* Design System tokens */
  --surface-page:   #F7F1E2;
  --surface-raised: #FBF8F1;
  --surface-card:   #FFFFFF;
  --surface-sunken: #EDE3CC;
  --surface-kraft:  #DED2AE;
  --surface-inverse:#232A39;
  --text-primary:   #171310;
  --text-secondary: #6B6157;
  --text-on-kraft:  #561329;
  --text-link:      #8C2E1B;
  --text-link-hover:#8C2E1B;
  --text-on-inverse:#FBF8F1;
  --border-subtle:  #CBC0B2;
  --border-field:   #8F8478; /* 3,66:1 auf Weiß, 3,25:1 auf Creme (WCAG 1.4.11) */
  --border-on-dark: #CBC0B2;
  --border-strong:  #443B34;
  --action-primary: #D33F11; /* coral-550: Weiß darauf 4,68:1; #F25428 bleibt Markenfarbe für Illustration und Druck */
  --action-primary-hover:  #BE2800;
  --action-primary-active: #8C2E1B;
  --action-on-primary: #FFFFFF;
  --coral-700:      #8C2E1B;
  --wine-800:       #561329;
  --ink-700:        #443B34;
  --ink-200:        #E4E0D8;
  --focus-ring:     var(--coral-700); /* DS-Wert #F2542859 hat auf Creme nur 1,5:1 */
  --status-success: #585231;
  --sans: 'Jost', 'Futura 100 LXT', Futura, system-ui, sans-serif;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(23,19,16,.06), 0 1px 1px rgba(23,19,16,.04);
  --shadow-md: 0 4px 16px rgba(23,19,16,.08);
  --ease: cubic-bezier(.4,0,.2,1);
  --content-max: 1120px;

  /* Names the page templates already use, mapped onto the tokens */
  --accent:       var(--text-link);
  --accent-hover: var(--text-link-hover);
  --fg:           var(--text-primary);
  --fg-mid:       var(--ink-700);
  --fg-light:     var(--ink-700); /* text-secondary hat auf Creme nur 4,35:1 */
  --bg:           var(--surface-page);
  --bg-warm:      var(--surface-raised);
  --bg-sunken:    var(--surface-sunken);
  --border:       var(--border-subtle);
  --radius:       var(--radius-md);
  --max-w:        var(--content-max);
  --section-gap:  80px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; transition: color 120ms var(--ease); }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ── Layout ── */
.wrapper { max-width: var(--max-w); margin-inline: auto; padding-inline: 48px; }
@media (max-width: 720px) { .wrapper { padding-inline: 24px; } }

/* ── Header ── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--max-w); margin-inline: auto; padding-inline: 48px;
  min-height: 80px; padding-block: 12px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
/* logo files have a white ground; multiply drops it on cream */
.logo { height: 64px; width: auto; flex-shrink: 0; mix-blend-mode: multiply; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: flex-end; align-items: center; }
.site-nav a {
  display: block; padding: 6px 12px; font-size: 15px; font-weight: 500;
  color: var(--fg-mid); text-decoration: none; border-radius: var(--radius-pill);
  transition: color 120ms var(--ease), background 120ms var(--ease);
}
.site-nav a:hover { color: var(--text-primary); background: var(--surface-sunken); }
/* Header buttons are outline, the one filled button of a view sits in the page */
.site-nav a.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; color: var(--text-primary); background: transparent; border: 1px solid var(--border-strong); }
.site-nav a.btn:hover { background: var(--surface-sunken); color: var(--text-primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 24px; border-radius: var(--radius-pill);
  background: var(--action-primary); color: var(--action-on-primary);
  font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.25; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 120ms var(--ease), color 120ms var(--ease), border-color 120ms var(--ease);
}
.btn:hover { background: var(--action-primary-hover); color: var(--action-on-primary); }
.btn:active { background: var(--action-primary-active); }
.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-sunken); color: var(--text-primary); }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.25; color: var(--fg); letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 4.5vw, 46px); line-height: 1.05; margin-bottom: 16px; }
h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
h3 { font-size: 20px; margin-bottom: 8px; }
h4 { font-size: 17px; margin-bottom: 8px; }
p  { margin-bottom: 12px; }

/* ── Prose (markdown blocks) ── */
.prose { max-width: 720px; }
.prose h2, .prose h3, .prose h4 { margin-top: 32px; }
.prose p, .prose li { color: var(--fg); }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 12px; }
.prose li { margin-bottom: 4px; }
.prose blockquote {
  padding: 16px 24px; margin: 24px 0;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius);
  font-style: italic; color: var(--fg-mid);
}
.prose figure { margin: 32px 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-200); }
.prose figure img { width: 100%; height: 320px; object-fit: cover; }
.prose figcaption { padding: 8px 16px; font-size: 13px; color: var(--fg-light); background: var(--surface-raised); }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.prose table th, .prose table td { border-bottom: 1px solid var(--border); padding: 12px 12px 12px 0; text-align: left; }
.prose table thead th { font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-light); border-bottom-color: var(--border-strong); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 48px 0 24px; }
.prose ol.sources { font-size: 13px; color: var(--fg-light); padding-left: 24px; line-height: 1.7; }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; min-height: 480px; align-items: stretch; }
.hero-content { padding: 64px 0; display: flex; flex-direction: column; justify-content: center; }
.hero-content h1 { margin-bottom: 16px; }
.hero-content .subtext { font-size: 17px; color: var(--fg-mid); max-width: 520px; margin-bottom: 32px; }
.hero-img { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-200); margin-block: 32px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Sections ── */
.section { padding-block: var(--section-gap); }
.section-label {
  font-size: 13px; font-weight: 500; line-height: 1.25; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral-700); margin-bottom: 24px;
}
.section-bg { background: var(--surface-raised); border-block: 1px solid var(--border); }

/* ── Module grid (services) ── */
.module-grid { display: grid; grid-template-columns: 28px 1fr; row-gap: 24px; column-gap: 16px; align-items: start; margin-top: 24px; }
.module-grid svg { stroke: var(--coral-700); flex-shrink: 0; margin-top: 4px; }
.module-grid strong { display: block; font-weight: 500; margin-bottom: 4px; }
.module-grid span { font-size: 15px; color: var(--fg-mid); }

/* ── Image + text grid ── */
.img-text-grid { display: grid; gap: 48px; align-items: start; }
.img-text-grid img { border-radius: var(--radius-lg); }
@media (min-width: 720px) {
  .img-text-grid { grid-template-columns: 1.1fr 1fr; }
  .img-text-grid .img-order-right { order: 1; }
}

/* ── Calendar table ── */
.calendar { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.calendar th, .calendar td { border-bottom: 1px solid var(--border); padding: 12px 12px 12px 0; text-align: left; }
.calendar thead th { font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-light); border-bottom-color: var(--border-strong); }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.step { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: box-shadow 200ms var(--ease); }
.step:hover { box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--radius-pill);
  background: var(--surface-sunken); color: var(--text-primary);
  font-size: 15px; font-weight: 500; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p  { font-size: 15px; color: var(--fg-mid); margin: 0; }
.ways { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
a.step { display: flex; flex-direction: column; align-items: flex-start; color: inherit; text-decoration: none; }
a.step .btn { margin-top: auto; }
a.step p:last-of-type { margin-bottom: 20px; }

/* ── CTA block ── */
.cta-block { text-align: center; padding-block: var(--section-gap); }
.cta-block h2 { margin-bottom: 8px; }
.cta-block p  { color: var(--fg-mid); margin-bottom: 32px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── Dark band and badge used on the home page ── */
.band-inverse { background: var(--surface-inverse); color: var(--text-on-inverse); }
.band-inverse .muted { color: #CBC0B2; }
.badge {
  display: inline-block; background: var(--surface-kraft); color: var(--text-on-kraft);
  font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--radius-pill); white-space: nowrap;
}
.btn-on-dark { color: var(--text-on-inverse); border-color: var(--border-on-dark); background: transparent; }
.btn-on-dark:hover { color: var(--text-on-inverse); background: #2E3647; }

/* ── Field errors (text under the field, set by /js/form-errors.js) ── */
[aria-invalid="true"] { border-color: var(--coral-700) !important; box-shadow: inset 0 0 0 1px var(--coral-700); }
.err { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--coral-700); }
.err::before { content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--coral-700); color: #fff; font-size: 12px; font-weight: 700; }

/* ── Footer ── */
.site-footer {
  background: var(--surface-inverse); color: var(--text-on-inverse);
  padding-block: 48px; text-align: center; font-size: 15px;
}
.site-footer p { margin-bottom: 4px; }
.site-footer a { color: var(--text-on-inverse); text-decoration: none; }
.site-footer a:hover { color: var(--text-on-inverse); text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: center; margin-top: 12px; }

/* ── Video, gallery ── */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-lg); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-200); }

/* ── Blog post ── */
.blog-hero { background: var(--surface-raised); border-bottom: 1px solid var(--border); padding-block: 64px 48px; }
.blog-hero h1 { max-width: 720px; margin-bottom: 12px; }
.blog-hero .subtitle { font-size: 20px; color: var(--fg-mid); max-width: 640px; margin-bottom: 24px; }
.blog-hero .meta { font-size: 13px; color: var(--fg-light); }
.blog-cover { margin-block: 48px 0; }
.blog-cover figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-200); }
.blog-cover figure img { width: 100%; height: 380px; object-fit: cover; }
.blog-cover figcaption { padding: 8px 16px; font-size: 13px; color: var(--fg-light); background: var(--surface-raised); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-content { padding: 32px 0 48px; order: 2; }
  .hero-img { order: 1; min-height: 260px; margin-block: 24px 0; }
  .steps { grid-template-columns: 1fr; }
  .header-inner { min-height: 64px; padding-inline: 24px; gap: 16px; flex-wrap: wrap; }
  .logo { height: 48px; }
  .site-nav a { font-size: 13px; padding: 4px 8px; }
  .section { padding-block: 48px; }
  .cta-block { padding-block: 48px; }
  .blog-cover figure img { height: 220px; }
}
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-card); }
.lang button {
  margin: 0; font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: .12em;
  padding: 6px 14px; min-height: 44px; border-radius: var(--radius-pill); background: transparent; color: var(--fg-mid); border: 0; cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.lang button[aria-pressed="true"] { background: var(--text-primary); color: var(--surface-page); }
.lang button:focus-visible { outline-offset: -3px; }
