/*
 * AYVO marketing site — taken over from the WordPress page's own "ayvo-*" styles (2026-10-25),
 * inline styles turned into classes (strict CSP, no inline styles). No external fonts: system
 * fonts replace Google Fonts (Inter, Montserrat); the logo is the owner's wordmark SVG.
 */

:root {
  --ink: #111;
  --ink-strong: #0f0f0f;
  --text: #2a2a2a;
  --muted: #6a6a6a;
  --gold: #b08d57;
  --line: #eee;
  --card-line: #ededed;
  --soft: #f6f6f6;
  --sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background: #fff;
  overflow-wrap: break-word;
}

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

/* The original page's paragraph reset (its theme): no top margin, 0.9rem below. */
p {
  margin: 0 0 0.9rem;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Skip link: visible only when focused */
.ayvo-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  z-index: 10;
}
.ayvo-skip:focus {
  top: 12px;
}

/* =========================
   Brand
========================= */
/* The owner's AYVO wordmark (apps/web/public/brand/ayvo-wordmark.svg), never a font imitation.
   Sized to the original logo's visible letters (cap height ≈ 19.5px at 35px type); its bottom edge
   is the letters' baseline, aligned with the tagline's baseline as on the original page. */
.ayvo-wordmark {
  display: block;
  height: 21.5px;
  width: auto;
}

.ayvo-wordmark-footer {
  display: inline-block;
  height: 13px;
  margin-left: 4px;
  vertical-align: -1px;
  opacity: 0.85;
}

.ayvo-tagline {
  font-size: 14px;
  font-weight: 500;
  margin-left: 6px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* =========================
   Layout
========================= */
.ayvo-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* As the original: 20px above, a 1140px box with its 1px line below (full width on phones).
   Sticky, so the language switch is at hand while reading (it keeps the section). */
.ayvo-header {
  position: sticky;
  top: 0;
  z-index: 5;
  max-width: 1140px;
  margin: 20px auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

/* The original's outer spacing: 10px below the header and above the footer, 20px between the
   sections; sections are 1140px boxes, inset 10px from the screen edge. */
main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
}
main > section {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

main section[id] {
  scroll-margin-top: 64px;
}

.ayvo-header-row {
  padding-top: 5px;
  padding-bottom: 5px;
  min-height: 62.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ayvo-brand {
  display: flex;
  gap: 5px;
  align-items: baseline;
  /* The original logo's 52.5px line box: the letters' baseline 36px from its top. */
  min-height: 52.5px;
  padding-top: 14.5px;
  text-decoration: none;
  min-width: 0;
}

/* =========================
   Typography
========================= */
.ayvo-gold {
  color: var(--gold);
}

.ayvo-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px 0;
}

.ayvo-kicker-line {
  position: relative;
  padding-bottom: 12px;
}
.ayvo-kicker-line::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.ayvo-h1 {
  font-size: 50px;
  line-height: 1.08;
  margin: 0 0 12px 0;
  color: var(--ink-strong);
  font-weight: 700;
  letter-spacing: -0.6px;
}

/* The original's inline 34px: it holds on phones too (beats the 36px phone size). */
.ayvo-h1.ayvo-h1-sm {
  font-size: 34px;
}

.ayvo-h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 10px 0;
  color: var(--ink);
  font-weight: 650;
}

.ayvo-p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  color: var(--text);
}

.ayvo-note {
  font-size: 13px;
  margin-top: 14px;
}
.ayvo-note-sm {
  font-size: 13px;
  margin-top: 6px;
}
.ayvo-note-lg {
  font-size: 14px;
  margin-top: 6px;
}

.ayvo-center {
  text-align: center;
}
.ayvo-max560 {
  max-width: 560px;
}
.ayvo-max760 {
  max-width: 760px;
}
.ayvo-lead {
  max-width: 820px;
  margin-bottom: 26px;
}
.ayvo-mt10 {
  margin: 10px 0 0 0;
}
.ayvo-mb12 {
  margin-bottom: 12px;
}
.ayvo-mb16 {
  margin-bottom: 16px;
}
.ayvo-mb32 {
  margin-bottom: 32px;
}

/* =========================
   CTA buttons
========================= */
.ayvo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  align-items: center;
}

.ayvo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  background: #fff;
  transition: all 0.18s ease;
}

.ayvo-btn.primary {
  background: var(--ink);
  color: #fff;
}

.ayvo-btn.secondary {
  background: #fff;
  color: var(--ink);
}

.ayvo-btn:hover {
  transform: translateY(-1px);
}

.ayvo-btn.primary:hover {
  background: #000;
}

.ayvo-btn.secondary:hover {
  background: var(--soft);
}

/* =========================
   Cards & grids
========================= */
.ayvo-card {
  border: 1px solid var(--card-line);
  border-radius: 20px;
  padding: 28px;
  background: #fff;
  height: 100%;
  transition: all 0.25s ease;
}

.ayvo-card:hover {
  border-color: #e2e2e2;
  transform: translateY(-2px);
}
.ayvo-card .ayvo-h2 {
  margin-bottom: 8px;
}

.ayvo-card .ayvo-p {
  margin-top: 0;
}

.ayvo-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ayvo-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ayvo-items-center {
  align-items: center;
}
.ayvo-items-start {
  align-items: start;
}

/* =========================
   Sections
========================= */
.ayvo-section {
  padding: 72px 0;
  background: #fff;
}

.ayvo-section.ayvo-bg-soft,
.ayvo-bg-soft {
  background: var(--soft);
}

.ayvo-hero {
  padding: 40px 0 60px 0;
  background: #fff;
}

.ayvo-hero-img {
  max-width: 380px;
  width: 100%;
}

.ayvo-band {
  background: var(--ink-strong);
  padding: 10px 0;
}
.ayvo-band-logo {
  height: 70px;
  width: auto;
  margin-bottom: 0;
}
.ayvo-band-text {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--gold);
  opacity: 0.9;
}

/* =========================
   Language switch, footer
========================= */
.ayvo-langs {
  font-size: 13px;
  white-space: nowrap;
}

.ayvo-lang {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.ayvo-lang:hover {
  color: var(--ink);
}

.ayvo-lang[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
}

/* In the header the original shows every language in ink (the footer keeps them muted). */
.ayvo-header .ayvo-lang {
  color: var(--ink);
  font-weight: 400;
}
.ayvo-header .ayvo-lang[aria-current='page'] {
  font-weight: 700;
}

.ayvo-lang-sep {
  opacity: 0.35;
  margin: 0 8px;
}

.ayvo-footer {
  padding: 22px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.ayvo-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.ayvo-legal {
  margin-top: 8px;
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1.4;
}
.ayvo-legal strong {
  color: var(--ink);
}

/* 404 */
.ayvo-notfound {
  padding: 96px 0;
}
.ayvo-notfound ul {
  padding-left: 18px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 860px) {
  .ayvo-grid3 {
    grid-template-columns: 1fr;
  }
  .ayvo-grid2 {
    grid-template-columns: 1fr;
  }
  .ayvo-h1 {
    font-size: 36px;
  }
  .ayvo-section {
    padding: 56px 0;
  }
  .ayvo-hero {
    padding: 64px 0 56px 0;
  }
  .ayvo-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  /* Long German words must not overflow a phone screen (the original's DE page does). */
  :lang(de) h1,
  :lang(de) h2,
  :lang(de) h3 {
    hyphens: auto;
  }
  :lang(de) .ayvo-grid2,
  :lang(de) .ayvo-grid3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
