/* ==========================================================================
   Frontend CSS Architecture

   1. Settings: Webfonts, design tokens, theme variables
   2. Base: Resets, document defaults, accessibility helpers
   3. Layout: Containers, sections, content widths, spacing primitives
   4. Components: Header, navigation, buttons, blocks, footer, forms
   5. Theme Effects: Ridge silhouettes, parallax, flight path
   6. Content Components & Overrides: Prose, late block refinements, utilities

   Keep this file as the single public stylesheet for simple Kirby deployments.
   Add rules near the component they belong to; promote repeated values to tokens.
   ========================================================================== */

/* ==========================================================================
   1. Settings
   ========================================================================== */

/* Self-hosted webfonts (variable fonts, latin + latin-ext) - source: Google Fonts, SIL Open Font License */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.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: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-latin.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;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.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: "Space Grotesk";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.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;
}

html { font-size: 100%; }

:root {
  --bg: #ffffff;
  --ink: #0b0c0f;
  --muted: #4b4f57;
  --panel: #f3f4f5;
  --accent: #19b37a;
  /* Darker accent variant for text/small badges on light backgrounds (AA: ~5.3:1 on white) */
  --accent-text: #0e7a52;
  --secondary: #95B2BD;

  --container: 1120px;
  --content-w: 920px;   /* reading column: text and image axis of all subpages */
  --gap: 24px;
  --gap-lg: 64px;
  
/* font-sizes */
  --medium-fs: 1.6rem;
  --body-fs: 1.15rem;
  --label-fs: 1.3rem;
  --detail-fs: 0.95rem;

  /* space before titles */
  --anchor-offset: 5rem;

  --ridge-h: 88px;
  --ridge-front: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120 L0 98 L210 86 L390 100 L560 30 L690 78 L900 92 L1080 52 L1260 96 L1440 70 L1440 120 Z'/%3E%3C/svg%3E");
  --ridge-line: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 92 L240 70 L400 86 L600 40 L760 76 L980 56 L1180 82 L1440 60' fill='none' stroke='%23000' stroke-width='3' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --ridge-rule: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 40' preserveAspectRatio='none'%3E%3Cpath d='M0 30 L40 22 L78 28 L118 10 L150 24 L196 16 L236 30 L272 14 L320 30' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --ridge-back: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120 L0 80 L230 54 L400 72 L560 46 L760 6 L930 60 L1120 30 L1290 70 L1440 40 L1440 120 Z'/%3E%3C/svg%3E");

}

@media (max-width: 900px) { :root { --ridge-h: 48px; } }

/* ==========================================================================
   2. Base
   ========================================================================== */

* { box-sizing: border-box }

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.4;
}

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

figure {
  margin: 2rem 0;
}

[id]{
  scroll-margin-top: var(--anchor-offset);
}

/* Page title (H1) for pages without a hero */
.section.page-title {
  padding-bottom: 0;
}
.page-title + .divider { margin-top: 40px; }   /* space between page title and band */
.page-title + .section { padding-top: 12px; }   /* title and first content section closer together */

/* Custom Section */
.custom-sec p {
  font-size: var(--body-fs);
}

.custom-sec h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.custom-sec a {
  color: var(--accent-text);
  text-decoration: none;
}

.custom-sec a:hover {
  text-decoration: underline;
}

.sr-only {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* Become visible on keyboard focus (e.g. skip link) */
.sr-only--focusable:focus,
.sr-only--focusable:focus-visible {
  position: fixed !important;
  top: 8px;
  left: 8px;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  clip: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  z-index: 1000;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

/* Tables (shop: cart, order summary) scroll horizontally instead of overflowing */
.tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Reading column: centered in the container, same axis for title, text and images */
.content-col { max-width: var(--content-w); margin-inline: auto; }

/* Block title rows and event list follow the same axis */
.section-head { max-width: var(--content-w); margin-inline: auto; width: 100%; }

/* Block width concept:
   - Reading blocks (content, accordion, steps, events) sit fixed on the reading column.
   - Grid blocks (cards, pricing, team, image & text, image mosaic, news) follow the
     reading column by default (.block-col) and can be set to "wide" per block
     (.block-wide, full container width) via the block's "width" field.
   - Full-bleed blocks (hero, divider, quote, contact band) always span the full width.
   The title row always follows the width of its block. */
.block-col > .container > *,
.block-col > .container > .stack > * { max-width: var(--content-w); margin-inline: auto; width: 100%; }
.block-wide .section-head { max-width: none; }

.stack > * + * { margin-top: 16px }
.stack.stack--lg > * + * { margin-top: 32px }

.h1,
.h2,
.h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}

.h1 { font-size: 3.5rem; line-height: 1.05 }
.h2 { font-size: 2.625rem; line-height: 1.1 }
.h3 { font-size: var(--body-fs); line-height: 1.2 } 

.lead {
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0.5em 0 2em;
  max-width: 30em;
}

.text {
  color: var(--muted);
  font-size: var(--body-fs);
}

/* ==========================================================================
   4. Components
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  box-shadow: none;
  transition: box-shadow 200ms ease;
}

.header.is-scrolled{
  box-shadow: 0 0.75rem 1.75rem rgba(0,0,0,.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.brand__name {
  font-family: "Space Grotesk";
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: var(--body-fs)
}

.brand__sub {
  font-size: var(--detail-fs);
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav__link {
  font-size: var(--detail-fs);   
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--ink);
  font-weight: 400;
  padding-bottom: 0.25rem;
  border-bottom: 0 solid var(--accent);
}

.nav__link.is-active { 
  border-bottom-width: 2px;
 }

.nav__cta {
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.section { padding: 80px 0 }

.panel { background: var(--panel) }
.panel--pad { padding: 24px }

.footer {
  padding: 40px 0;
  background: var(--bg)
}

.footer__inner {
  color: var(--muted);
  font-size: 0.875rem;
}


/* Contact */
.contact {
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px 64px;
  align-items:start;   /* form stays compact and sticky when the left side has more details */
}

.contact a:not(.btn) {
  color: inherit;
  text-decoration: none;
  transition:
    color 120ms ease,
    font-weight 120ms ease;
  transform-origin: left center;
  display: inline-block; 
}

.contact a:not(.btn):hover {
  color: var(--accent-text);
}


.contact__form{
  position: sticky;
  top: 96px;
  background: var(--bg);
  border-radius: 0.95rem;
  padding: 32px;
  box-shadow: 0 1px 2px rgba(11,12,15,.04), 0 16px 40px rgba(11,12,15,.08);
}
.contact__info .lead { margin-top: 12px; }
.contact__list { list-style: none; margin: 32px 0 0; padding: 0; }
.contact__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 16px;
  align-items: start;
  padding: 20px 0;
  position: relative;
}
.contact__item:first-child { padding-top: 0; }
.contact__item + .contact__item::before {   /* Bergkontur als Trenner */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: rgba(11,12,15,.18);
  -webkit-mask-image: var(--ridge-rule); mask-image: var(--ridge-rule);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 240px 100%; mask-size: 240px 100%;
}
.contact__item + .contact__item { padding-top: 26px; }
.contact__icon { color: var(--accent); padding-top: 2px; }
.contact__icon .icon { width: 26px; height: 26px; }
.divider--accent .contact__icon { color: var(--ink); }
.contact__label {
  margin: 0 0 4px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .9rem;
}
.contact__text { color: var(--muted); }
.contact__text p { margin: 0; }
.contact__text p + p { margin-top: .5em; }
.contact__text .btn { margin-top: 8px; color: var(--ink); }
.divider--accent .contact__text { color: var(--ink); }

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact__right .textarea{
  min-height: 160px;
  resize: vertical;
}

.field--full { grid-column: 1 / -1 }

.field__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid rgba(11,12,15,.16);
  border-radius: 6px;
  background: #fff;
  padding: 13px 14px;
  font: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(25,179,122,.22);
}
.divider--accent .contact__form { box-shadow: none; }

.field--check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.btn{
  display:inline-block;
  text-decoration:none;
  color:var(--ink);

  background:var(--accent);
  border:0;
  padding:14px 18px;
  font-weight:700;
  cursor:pointer;

  font-size:var(--detail-fs);
  text-transform:uppercase;
  letter-spacing:.08em;
}

.btn--soft{ background: var(--panel); }

/* Honeypot field: off-screen, not display:none (some bots check for that) */
.form__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  background: #ffe9e9;
  color: #7a1d1d;
  padding: 12px 14px
}

.success {
  background: #e9fff4;
  color: #0a5f3f;
  padding: 12px 14px
}

@media (max-width: 900px) {
  .h1 { font-size: 2.625rem }
  .h2 { font-size: 2rem }

  .container { width: min(var(--container), calc(100% - 32px)) }
  .section { padding: 56px 0 }
  .contact { grid-template-columns: 1fr }
  .contact__form { position: static; padding: 20px; }
  .form__grid { grid-template-columns: 1fr }
}

/* ===== Blocks Layout ===== */

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;   /* spacing to block content, even without intro text */
}

.section-head__right { padding-top: 10px; flex-shrink: 0; white-space: nowrap; }

.link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .02em;
}

.link:hover { opacity: .75 }

/* Unified action link: dark text, green arrow (instead of a button). The arrow comes
   from CSS - labels no longer contain a "→". */
.link--arrow::after {
  content: " →";
  color: var(--accent);
  white-space: nowrap;
}
.link--arrow:hover { opacity: 1; color: var(--accent); }
.link--extarrow::after {
  content: " ↗";
  color: var(--accent);
  white-space: nowrap;
}
.link--extarrow:hover { opacity: 1; color: var(--accent); }
.offer__actions { gap: 24px; }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 56px;
  min-height: min(740px, 86vh);
  display: flex;
  align-items: flex-end;
}

/* full-bleed background media */
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--panel);
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay hero image */
.hero__media::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* secondary color bottom-left, fading to transparent at 70% */
  background: linear-gradient(
    35deg,                       /* bottom-left -> top-right */
    color-mix(in srgb, var(--secondary) 100%, transparent) 0%,
    transparent 70%
  );
}



.wrap {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

/* content sits above overlay */
.hero__content { position: relative; z-index: 1; }

.kicker {
  margin: 0 0 0.3em 0;
  font-size: 1rem; 
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero h1 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 3.5rem;
  line-height: 1.05;
  max-width: 10em;
}

.hero__actions {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 18px;
  font-weight: 700;
  font-size: var(--body-fs); 
  text-transform: uppercase;
  letter-spacing: .08em;
}

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

.btn--soft { background: rgba(255, 255, 255, .85); color: var(--ink); }

@media (max-width: 900px) {
  .wrap { width: min(var(--container), calc(100% - 32px)); }

  .hero {
    min-height: min(680px, 78vh);
    padding: 56px 0 40px;
  }

  /* long words (e.g. "Weiterbildung") must not overflow on narrow screens */
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.625rem); overflow-wrap: anywhere; }
}

/* Quote Overlay */
.quote {
  position: relative;
  min-height: 520px;
  margin: 0;
}

.quote__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.quote__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote__bg--empty { background: var(--panel) }

.quote__inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
}

.quote__panel{
  width:min(760px, 100%);
  background:#fff;
  padding:24px 24px 1px;
  /* 1px past the bottom edge: the panel is rounded to whole pixels, the image edge isn't -
     otherwise a row of image stays visible below the panel on Retina */
  margin-bottom:-1px;
  position:relative;
}

.quote__text {
  font-size: 1.25rem;
  margin: 0 0 18px 0;
  color: var(--ink);
  font-weight: lighter;
  line-height: 1.5;
}

.btn--ghost{
  background: var(--panel);
  color: var(--ink);
  text-decoration:none;
}

/* Note: `.pair-card__link` is no longer used by the current card block
   (the snippet uses `.card__link`) - dead code from the earlier
   card-pair blocks, deliberately not carried over here. */
.pair-card__link { margin: 16px 0 0 }

@media (max-width: 900px) {
  .section-head { flex-direction: column }
}

/* Footer*/
.footer--green{
  background: var(--accent);
  color: var(--ink);
  padding: 52px 0 26px;
  position: relative;
}

.footer__inner{
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

/* --- Brand --- */
.footer__brand{ display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer__brand-top{ display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; max-width: 420px; }
.footer__logo{ text-decoration: none; color: var(--ink); display: inline-flex; flex-direction: column; line-height: 1; }
.footer__logo-name{
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700; font-size: 1.6rem; letter-spacing: .01em;
}
.footer__logo-tag{
  font-size: var(--detail-fs); color: rgba(11,12,15,.7); margin-top: 4px; letter-spacing: .01em;
}
.footer__headline{
  font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700;
  font-size: 1.05rem; margin: 0; max-width: 40ch;
}
.footer__text{ max-width: 46ch; color: rgba(11,12,15,.82); font-size: var(--detail-fs); line-height: 1.55; }
.footer__text a{ color: inherit; }
.footer__badge{ width: 108px; flex: 0 0 auto; }
.footer__badge img{ width: 100%; height: auto; display: block; }

/* --- Columns (pages / contact) --- */
.footer__col{ display: flex; flex-direction: column; gap: 14px; }
.footer__col-title{
  margin: 0; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(11,12,15,.55);
}
.footer__links{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__link{
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--detail-fs);
  display: inline-block; transition: transform 120ms ease;
}
.footer__link:hover{ transform: translateX(3px); text-decoration: underline; text-underline-offset: 3px; }

/* --- Contact / address --- */
.footer__address{
  font-style: normal; font-size: var(--detail-fs); color: var(--ink);
  display: flex; flex-direction: column; gap: 14px; margin: 0;
}
.footer__address-block{ line-height: 1.6; }
.footer__address-block strong{ font-family: "Space Grotesk", system-ui, sans-serif; }
.footer__address a{ color: inherit; text-decoration: none; }
.footer__address a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.footer__social{ list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 10px; }
.footer__social a{
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(11,12,15,.08); color: var(--ink);
  transition: background 120ms ease, transform 120ms ease;
}
.footer__social a:hover{ background: rgba(11,12,15,.16); transform: translateY(-2px); }
.footer__social svg{ width: 1.2rem; height: 1.2rem; display: block; }
.footer__social svg title{ display: none; }

/* --- Footer bar --- */
.footer__bottom{
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 20px; position: relative;
  font-size: var(--detail-fs); color: rgba(11,12,15,.7);
}
.footer__bottom::before{
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: rgba(11,12,15,.28);
  -webkit-mask-image: var(--ridge-rule); mask-image: var(--ridge-rule);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 240px 100%; mask-size: 240px 100%;
}
.footer__copy{ margin: 0; }
.footer__consent{ color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__consent:hover{ color: var(--ink); }

@media (max-width: 900px){
  .footer--green{ padding: 48px 0 24px; }
  .footer__inner{ grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .footer__brand{ grid-column: 1 / -1; }
}
@media (max-width: 560px){
  .footer__inner{ grid-template-columns: 1fr; }
}

/* scroll reveal (subtle) */
.js .reveal{
  opacity:0;
  transform: translateY(14px) scale(.99);
  transition:
    opacity 420ms ease,
    transform 420ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-inview{
  opacity:1;
  transform:none;
}

/* Stagger delay by position instead of inline style (CSP: no style-src 'unsafe-inline').
   nth-child(1) keeps the default 0ms from var(--d, 0ms). */
.js .steps__list > .reveal:nth-child(2){ --d: 90ms; }
.js .steps__list > .reveal:nth-child(3){ --d: 180ms; }
.js .steps__list > .reveal:nth-child(4){ --d: 270ms; }
.js .steps__list > .reveal:nth-child(5){ --d: 360ms; }
.js .steps__list > .reveal:nth-child(6){ --d: 450ms; }
.js .steps__list > .reveal:nth-child(n+7){ --d: 540ms; }

@media (prefers-reduced-motion: reduce){
  .js .reveal{
    transition:none;
    opacity:1;
    transform:none;
  }
}

/* Special Effects */
/* Smooth button hover (subtle scale) */
.btn{
  transform: translateZ(0);
  transition: transform 180ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.btn:hover{
  transform: scale(1.03);
}

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

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



/*  steps-list */

.steps__list{
  --step-gap: 3.5rem;
  --marker: 6rem;
  --circle: 4.5rem;

  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: var(--step-gap);
}

.step{
  position: relative;
  display: grid;
  grid-template-columns: var(--marker) 1fr;
  gap: 2rem; /* 32px */
  align-items: start;
}

/* connecting line between steps (incl. spacing to the next step) */
.step:not(:last-child)::after{
  content: "";
  position: absolute;
  left: calc(var(--marker) / 2);
  top: var(--circle);
  bottom: calc(-1 * var(--step-gap));
  transform: translateX(-50%);
  width: 0.25rem; /* 4px */
  background: rgba(11,12,15,.12);
  border-radius: 99rem;
}

.step__marker{
  width: var(--marker);
  display: flex;
  justify-content: center;
}

.steps__title{
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.25rem; /* like team name */
  line-height: 1.15;
  color: var(--ink);
}

.steps__optional{
  display: inline-block;
  margin-left: 0.25rem;
  background: var(--muted);
  color: var(--bg);
  padding: 0.25em 0.35em;
  font-family: "Space Grotesk", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  font-size: 0.7em;
  line-height: 1;
  white-space: nowrap;
  vertical-align: top;
}

.steps__text{
  margin-top: 0.5rem;
  max-width: 64ch;
  color: var(--ink);
  font-size: var(--body-fs);
  line-height: 1.45;
}

.steps__text > *:first-child{ margin-top: 0; }
.steps__text > *:last-child{ margin-bottom: 0; }

/* Mobile */
@media (max-width: 900px){
  .steps__list{
    --step-gap: 2.5rem;
    --marker: 4.5rem;
    --circle: 3.5rem;
  }

  .step{
    gap: 1.125rem;
  }

  .steps__text{
    font-size: var(--body-fs);
  }
}




/* divider */

html { overflow-x: clip; }   /* safety net: never scroll horizontally */

.divider{
  --slant-h: 6rem; /* "height" of the slant */
  --band: var(--accent);   /* band color; variants: .divider--light / .divider--white */
  position: relative;

  /* Full-bleed: .divider is a direct child of <main> (content width), so width:100%
     suffices. NOT 100vw - that includes the scrollbar width and would otherwise create a
     horizontal scrollbar on long pages (with a vertical scrollbar). */
  width: 100%;

  background: var(--band);
  color: var(--ink);

  padding: 4rem 0;
  margin: var(--slant-h) 0; /* room for the slants */
  overflow: visible;
}

.divider__inner{
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
}

.divider__title{
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: var(--medium-fs);
  line-height: 1.1;
  color: var(--ink);
}

.divider__text{
  margin: 0;
  max-width: 40em;
  color: var(--ink);
  font-size: var(--body-fs);
}

.divider .btn{
  margin-top: 0.75rem;
  background-color: var(--bg);
}
/* On light bands, primary buttons stay green */
.divider--light .btn--primary,
.divider--white .btn--primary { background-color: var(--accent); }
.divider--light .btn--primary:hover,
.divider--white .btn--primary:hover { background-color: #15a06d; }
.contact__form .btn { margin-top: 0; }

/* Mobile */
@media (max-width: 900px){
  .divider__title{
    font-size: 1.75rem;
  }
}



/* Secondary Navigation */

.quicknav{
  /* dock position (set via JS) */
  position: fixed;
  right: 0;
  top: var(--qn-top, 33%);
  z-index: 9;            /* below .header (z-index:10) */
  pointer-events: none;  /* only the float container is clickable */
}

.quicknav__float{
  transform: translateY(var(--qn-y, 0px));
  will-change: transform;
  pointer-events: auto;
}

.quicknav__inner{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-items: stretch;
  background: var(--accent);
  color: var(--ink);

  border-radius: 0.95rem 0 0 0.95rem;
  box-shadow: 0 0.9rem 2.2rem rgba(0,0,0,.10);

  transform-origin: right top;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}

.quicknav__item{
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;

  padding: 0.9rem 1.15rem;
  text-decoration: none;
  color: inherit;

  font-family: "Space Grotesk", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: var(--detail-fs);
  line-height: 1;

  white-space: nowrap;
}

.quicknav__item + .quicknav__item{
  border-top: 0.1rem solid rgba(255,255,255,.18);
}

.hero .quicknav__item:hover{
  background: rgba(255,255,255,.18);
}

.hero .quicknav__item:first-of-type:hover {
  border-radius: 0.95rem 0 0 0rem;
}

.hero .quicknav__item:last-of-type:hover {
  border-radius: 0rem 0 0 0.95rem;
}

.quicknav__icon{
  display: inline-grid;
  place-items: center;
}

.quicknav__label{
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;

  transition:
    opacity 180ms ease,
    max-width 220ms ease,
    margin 220ms ease;
}

/* Docked state: smaller + icons only */
.quicknav.is-docked .quicknav__inner{
  transform: scale(.82);
}

.quicknav.is-docked .quicknav__item{
  gap: 0;
}

.quicknav.is-docked .quicknav__label{
  opacity: 0;
  max-width: 0;
  margin-left: 0;
}

/* Mobile: a bit "safer" inside */
@media (max-width: 900px){
  .quicknav{
    right: 0.75rem;
  }

  .quicknav__inner{
    border-radius: 0.95rem;
  }

  .quicknav__item{
    padding: 0.85rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce){
  .quicknav__inner,
  .quicknav__label{
    transition: none;
  }
}

/* ===== Secondary nav (quicknav) - icon size tweak ===== */
.quicknav__icon svg{
  width: 1.6rem;
  height: 1.6rem;
  display: block;
}

.quicknav.is-docked .quicknav__icon svg{
  width: 1.7rem;
  height: 1.7rem;
}


/*  Mobile Menu  */
.menu-toggle{
  display: none; /* mobile only */
  appearance: none;
  border: 0;
  background: transparent;
  padding: .75rem;
  margin: -.75rem;
  cursor: pointer;
  color: var(--ink);
}

.burger{
  width: 1.75rem;
  height: 1.25rem;
  display: grid;
  gap: .3rem;
}

.burger span{
  height: .14rem;
  background: currentColor;
  border-radius: 99rem;
  display: block;
}

/* Overlay */
.menu{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.menu__panel{
  height: 100%;
  transform: translateY(-10px);
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu.is-open{
  opacity: 1;
  pointer-events: auto;
}

.menu.is-open .menu__panel{
  transform: none;
}

.menu__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.menu-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-close .icon{
  width: 1.75rem;
  height: 1.75rem;
}

/* optional: small hover effect like the buttons */
.menu-close:hover{
  transform: scale(1.03);
}

.menu__nav,
.menu__quicknav{
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.menu__nav a {
  text-decoration: none;
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  font-size: var(--label-fs);
  line-height: 1.1;
}

.menu__quicknav a {
  text-decoration: none;
  color: var(--accent-text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  font-size: var(--label-fs);
  line-height: 1.1;
}

.menu__quicknav a{
  display: flex;
  align-items: center;
  gap: .75rem;
}

.menu__quicknav .quicknav__icon svg{
  width: 1.9rem;
  height: 1.9rem;
}

html.menu-open,
html.menu-open body{
  overflow: hidden;
}

/* Breakpoint: hide desktop nav, enable hamburger + overlay */
@media (max-width: 900px){
  .nav{ display: none; }
  .quicknav{ display: none; }
  .menu-toggle{ display: inline-flex; align-items: center; justify-content: center; }
  .nav__link {
    border-bottom: none;
    margin-bottom: 0.3rem;;
  }

  /* Without JS the overlay menu can't open: show desktop nav, hide the useless
     hamburger button. Dropdowns work via :hover/:focus-within. */
  html.no-js .nav{ display: flex; flex-wrap: wrap; margin-left: 0; }
  html.no-js .menu-toggle{ display: none; }
}


/* Icons */
/* Inline icons (snippets/icon.php) are stroke icons: color via currentColor, no fill */
.icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
}


/* Google Calendar */
.cal__frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.9rem;
  overflow: hidden;
}

.cal__frame iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}



/* ===== Quick Menu (Block) – centered variant using existing quicknav markup ===== */
.quick-menu {
  position: sticky;
  top: calc(var(--header-h, 4.5rem) + 1rem); /* <- this is your "spacing" */
  z-index: 9;                  /* below .header (10) */
  padding: 1rem;
}

.quick-menu .quicknav {
  position: static;
  right: auto;
  top: auto;
  z-index: auto;
  pointer-events: auto;

}

.quick-menu .quicknav__float{
  transform: none;
  will-change: auto;
  pointer-events: auto;
}

.quick-menu .quicknav__inner{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;

  background: transparent;
  box-shadow: none;
  border-radius: 0;
  transform: none;
}

/* tiles/buttons instead of a "dock" look */
.quick-menu .quicknav__item{
  background: var(--panel);
  border-radius: 0.9rem;
  padding: 0.35rem 0.5rem;
  gap: 0.75rem;
}

.quick-menu .quicknav__item + .quicknav__item{
  border-top: 0;
}

.quick-menu .quicknav__item:hover{
  background: var(--accent);
  border-color: white;
  border-width: 1px;
}

.quick-menu .quicknav__label{
  opacity: 1;
  max-width: none;
  margin-left: 0;
}

/* Disable docked state in the block (in case JS sets it) */
.quick-menu .quicknav.is-docked .quicknav__inner{
  transform: none;
}

.quick-menu .quicknav.is-docked .quicknav__item{
  gap: 0.75rem;
}

.quick-menu .quicknav.is-docked .quicknav__label{
  opacity: 1;
  max-width: none;
  margin-left: 0;
}

/* Slightly harmonize icons in the block */
.quick-menu .quicknav__icon svg{
  width: 1.4rem;
  height: 1.4rem;
}


/* ===== Pricing Block ===== */

.pricing{
  background-color: var(--panel);
}

.pricing__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 2.5rem;;
}

.pricing-card{
  background: var(--bg);
  border-radius: 0.95rem;
  position: relative;   /* anchor for the overlapping bestseller label */

  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 1px 2px rgba(11,12,15,.04), 0 12px 30px rgba(11,12,15,.06);
}

.pricing-card__head{
  padding: 26px 24px 34px;
  position: relative;
  border-radius: 0.95rem 0.95rem 0 0;   /* round top corners (no more overflow:hidden) */
}
/* Ridge contour instead of a straight line between head and features */
.pricing-card__head::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12px;
  background: rgba(11,12,15,.18);
  -webkit-mask-image: var(--ridge-rule); mask-image: var(--ridge-rule);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 240px 100%; mask-size: 240px 100%;
  pointer-events: none;
}

.pricing-card__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pricing-card__title{
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: var(--label-fs);
  line-height: 1.1;
}

.pricing-card__duration{
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: var(--detail-fs);
}

.pricing-card__badge{
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  padding: .5rem .85rem;
  border-radius: 999rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: .78rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(11,12,15,.22);
}

.pricing-card__price{
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.pricing-card__currency{
  color: var(--muted);
  font-weight: 700;
  font-size: var(--detail-fs);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.pricing-card__amount{
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--ink);
}

.pricing-card__list{
  margin: 0;
  padding: 18px 20px 0 20px;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: var(--detail-fs);
}

.pricing-card__list li{
  position: relative;
  padding-left: 1.25rem;
}

.pricing-card__list li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}

.pricing-card__actions{
  margin-top: auto;
  padding: 20px;
}

.pricing-card__btn{
  width: 100%;
  text-align: center;
}

.pricing-card.is-featured {
  border-color: rgba(25,179,122,.55);
  box-shadow: 0 0.9rem 2.2rem rgba(0,0,0,.08);
  transform: translateY(-6px);
}

.pricing-card.is-featured .pricing-card__head{
  background-color: var(--accent);
}
.pricing-card.is-featured .pricing-card__head::after{ background: rgba(11,12,15,.28); }

.pricing-card.is-featured .pricing-card__title,
.pricing-card.is-featured .pricing-card__duration,
.pricing-card.is-featured .pricing-card__currency,
.pricing-card.is-featured .pricing-card__amount {
  color: var(--bg);
}


@media (max-width: 900px){
  .pricing__grid{
    grid-template-columns: 1fr;
  }
  .pricing-card.is-featured{
    transform: none;
  }
  .pricing-card__amount{
    font-size: 2.75rem;
  }
}

/* ==========================================================================
   5. Theme Effects
   ========================================================================== */

/* ==========================================================================
   Ridge silhouettes as section edges
   Pseudo-elements with SVG mask: color via background, shape via --ridge-*
   ========================================================================== */
/* Hero: two ranges - a muted rear massif (depth), a front ridge in the page color */
.hero.has-ridge::before,
.hero.has-ridge::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;  mask-size: 100% 100%;
}
.hero.has-ridge::before {
  height: calc(var(--ridge-h) * 1.6);
  background: rgba(11,12,15,.34);
  -webkit-mask-image: var(--ridge-back); mask-image: var(--ridge-back);
  /* Depth: the rear massif sinks behind the front ridge on scroll (ridge-parallax.js sets --ridge-shift) */
  transform: translate3d(0, var(--ridge-shift, 0px), 0);
  will-change: transform;
}
.hero.has-ridge { overflow: clip; }   /* don't show the sunk massif below the hero; fixed elements (quicknav) stay free */
.hero.has-ridge::after {
  height: var(--ridge-h);
  background: var(--bg);
  -webkit-mask-image: var(--ridge-front); mask-image: var(--ridge-front);
}
.hero.has-ridge { padding-bottom: calc(56px + var(--ridge-h) * 1.6); }
.hero__content { z-index: 2; }
.hero .quicknav { z-index: 2; }

/* Accent band (divider / section "accent" / contact form): top and bottom edges separate.
   Without a silhouette the edge is straight (the earlier slants are gone). */
.divider {
  --slant-h: 0px;
  margin: 0;
  padding: 4rem 0;
}
.divider::before,
.divider::after { content: none; transform: none; }

.divider.has-ridge-top { margin-top: var(--ridge-h); }
.divider.has-ridge-bottom { padding-bottom: calc(4rem + var(--ridge-h)); }

.divider.has-ridge-top::before,
.divider.has-ridge-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--ridge-h);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;  mask-size: 100% 100%;
}
.divider--light { --band: var(--panel); }
.divider--white { --band: var(--bg); }
.divider.has-ridge-top::before {
  top: calc(-1 * var(--ridge-h) + 1px);
  background: var(--band);
  /* Front-ridge shape as everywhere (hero, band bottom edges): the massif behind uses the
     ridge-back shape - only with two different shapes do the contours cross */
  -webkit-mask-image: var(--ridge-front); mask-image: var(--ridge-front);
  z-index: 1;   /* front ridge sits above the grey depth massif (.ridge-depth) */
}

/* Rear massif at band top edges and the footer: sits behind the colored front ridge
   and sinks on scroll (ridge-parallax.js sets --ridge-shift on the element).
   Important: the massif uses the OTHER silhouette shape than the edge -
   only then do the contours cross and the massif becomes visible (like in the hero).
   Movement runs via the mask position - nothing extends past the edge zone. */
/* Top edges: massif as a 1.25*h tall mask window over the edge zone, flush with the
   band - so the silhouette starts visibly above the front ridge */
.ridge-depth {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1.25 * var(--ridge-h) + 1px);
  height: calc(1.25 * var(--ridge-h));
  background: rgba(11, 12, 15, .26);
  -webkit-mask-image: var(--ridge-back); mask-image: var(--ridge-back);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  /* Sinking via the mask position: at the bottom the fill stays flush with the band
     (no flicker), at the top the box empties as it sinks */
  -webkit-mask-position: 0 var(--ridge-shift, 0px); mask-position: 0 var(--ridge-shift, 0px);
  pointer-events: none;
  z-index: 0;
}

/* Bottom edges: massif in the edge-zone mask window (base position raised by -h/4);
   gaps here show the band color, never white - so the window technique stays,
   and nothing extends below the band */
.ridge-depth--bottom {
  top: auto;
  bottom: -1px;
  height: var(--ridge-h);
  -webkit-mask-image: var(--ridge-back); mask-image: var(--ridge-back);
  -webkit-mask-position: 0 calc(var(--ridge-shift, 0px) - var(--ridge-h) / 4);
  mask-position: 0 calc(var(--ridge-shift, 0px) - var(--ridge-h) / 4);
  transform: none;
}

.divider.has-ridge-bottom::after {
  bottom: -1px;
  z-index: 1;   /* front ridge above the depth massif */
  background: var(--bg);
  -webkit-mask-image: var(--ridge-front); mask-image: var(--ridge-front);
}
.divider__inner { position: relative; z-index: 1; }

/* Footer: green range grows into the preceding section */
.footer--green.has-ridge { margin-top: calc(var(--ridge-h) + 56px); }   /* whitespace before the edge */
/* If the page ends with a colored band (e.g. contact band), the whitespace a white
   closing section brings via its padding-bottom is missing - add it here so the
   spacing to the footer looks the same everywhere. */
main > .divider:last-child { margin-bottom: calc(var(--ridge-h) + 56px + 80px); }
.footer--green.has-ridge .ridge-depth { z-index: 0; }
.footer--green .footer__inner { position: relative; z-index: 2; }
.footer--green.has-ridge::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--ridge-h) + 1px);
  height: var(--ridge-h);
  background: var(--accent);
  pointer-events: none;
  -webkit-mask-image: var(--ridge-front); mask-image: var(--ridge-front);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;  mask-size: 100% 100%;
  z-index: 1;
}

/* Mobile: show only a section of the range, else the silhouette gets too jagged */
@media (max-width: 900px) {
  .hero::before, .hero::after,
  .divider::before, .divider::after,
  .footer--green.has-ridge .ridge-depth { z-index: 0; }
.footer--green.has-ridge::before {
    -webkit-mask-size: 220% 100%; mask-size: 220% 100%;
    -webkit-mask-position: 40% 0;  mask-position: 40% 0;
  }
}

/* Parallax (hero, quote image): image stays, content scrolls over it. position:fixed + clip-path
   instead of background-attachment:fixed, because iOS ignores the latter. */
.hero--fixed,
.quote--fixed {
  clip-path: inset(0);
}
.hero--fixed .hero__media img,
.quote--fixed .quote__bg img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
}
@media (prefers-reduced-motion: reduce) {
  .hero--fixed, .quote--fixed { clip-path: none; }
  .hero--fixed .hero__media img,
  .quote--fixed .quote__bg img { position: absolute; inset: 0; height: 100%; }
}

/* ==========================================================================
   6. Content Components & Overrides
   ========================================================================== */

/* ==========================================================================
   Prose: base blocks (text, heading, image, gallery, list, quote) in the reading column
   ========================================================================== */
.prose {
  max-width: var(--content-w);
  margin-inline: auto;
  font-size: var(--body-fs);
  line-height: 1.6;
}
.prose > * { margin-block: 0; }          /* base: no browser margins */
.prose > * + * { margin-top: 1.1em; }     /* rhythm between paragraphs, lists, images */
.prose > p + p { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.15;
  margin: 0;
}
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.05rem; }
.prose > * + h2, .prose > * + h3, .prose > * + h4 { margin-top: 1.8em; }
.prose > h2 + *, .prose > h3 + *, .prose > h4 + * { margin-top: .55em; }   /* heading sits closer to the following text */
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
/* gallery grid is a ul but not a text list: flush with the text axis */
.prose .block-gallery__grid { padding-left: 0; }
.prose .block-gallery__grid li + li { margin-top: 0; }
.prose a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.prose a:hover { color: var(--accent-text); }
.prose blockquote {
  margin: 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--accent);
  font-size: 1.15em;
}
.prose blockquote footer { margin-top: .5em; font-size: var(--detail-fs); color: var(--muted); }
.prose figure { margin: 0; }
.prose figure img { width: 100%; height: auto; display: block; }
.prose figcaption, .block-image figcaption, .block-gallery figcaption {
  margin-top: 8px;
  font-size: var(--detail-fs);
  color: var(--muted);
}
/* aspect ratio via data-ratio (values = core image block options), without inline style */
.block-image[data-ratio] img { object-fit: cover; }
.block-image[data-ratio="1/1"]  img { aspect-ratio: 1 / 1; }
.block-image[data-ratio="16/9"] img { aspect-ratio: 16 / 9; }
.block-image[data-ratio="10/8"] img { aspect-ratio: 10 / 8; }
.block-image[data-ratio="21/9"] img { aspect-ratio: 21 / 9; }
.block-image[data-ratio="7/5"]  img { aspect-ratio: 7 / 5; }
.block-image[data-ratio="4/3"]  img { aspect-ratio: 4 / 3; }
.block-image[data-ratio="5/3"]  img { aspect-ratio: 5 / 3; }
.block-image[data-ratio="3/2"]  img { aspect-ratio: 3 / 2; }
.block-image[data-ratio="3/1"]  img { aspect-ratio: 3 / 1; }
.block-gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* auto-fit instead of auto-fill: few images fill the width (2 images = half width each) */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.block-gallery__grid img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

/* Article page: one column, uniform width */
.article { padding: 72px 0 80px; }
.article__inner { max-width: var(--content-w); margin: 0 auto; }  /* reading column centered */
.article__head { margin-bottom: 32px; }
.article__head .kicker { margin: 0; }
.article__head .h1 { font-size: clamp(2rem, 4vw, 3rem); }
.article__cover { margin: 0 0 36px; }
.article__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;   /* cover always in landscape crop, even for portrait originals */
  object-fit: cover;
  display: block;
}
.article__cover figcaption { margin-top: 8px; font-size: var(--detail-fs); color: var(--muted); }
.article__body { max-width: none; }  /* width comes from .article__inner */
.article__foot { margin-top: 56px; padding-top: 24px; position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article__foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: rgba(11,12,15,.22); -webkit-mask-image: var(--ridge-rule); mask-image: var(--ridge-rule); -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-size: 240px 100%; mask-size: 240px 100%; }
.article__prevnext { display: flex; gap: 20px; }

/* Images in body text: portraits no taller than the screen */
/* Images start at the left text edge; portraits are limited (80vh),
   but not centered via object-fit - no "floating" image in the column center */
.prose .block-image img { width: auto; max-width: 100%; max-height: 80vh; display: block; }
.prose .block-image[data-ratio] img { width: 100%; object-fit: cover; max-height: none; }
/* Images/galleries: aligned to the text axis, with space above and below
   (margins collapse with the 1.1em base rhythm, the larger value wins) */
.prose > .block-image,
.prose > .block-gallery { margin-block: 2.2em; }

/* ==========================================================================
   Main navigation: submenus (desktop dropdown, mobile expanded)
   ========================================================================== */
.nav__item { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.nav__toggle {
  background: none; border: 0; padding: 2px; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; line-height: 1;
}
.nav__label,
.nav__label-toggle {
  appearance: none; background: none; border: 0; color: inherit; cursor: default; font-family: inherit; margin: 0;
}
.nav__label-toggle {
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.nav__toggle svg,
.nav__label-toggle svg { transition: transform .2s ease; }
.nav__item.is-open .nav__toggle svg,
.nav__item.is-open .nav__label-toggle svg { transform: rotate(180deg); }
.nav .nav__sub {
  position: absolute; top: calc(100% + 12px); left: -16px; z-index: 30;
  min-width: 240px; margin: 0; padding: 10px 0; list-style: none;
  background: var(--bg); box-shadow: 0 16px 40px rgba(11,12,15,.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav .nav__item:hover > .nav__sub,
.nav .nav__item:focus-within > .nav__sub,
.nav .nav__item.is-open > .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.nav__sublink {
  display: block; padding: 8px 18px; text-decoration: none; color: var(--ink);
  font-size: var(--detail-fs); letter-spacing: .02em; white-space: nowrap;
}
.nav__sublink:hover, .nav__sublink.is-active { background: var(--panel); }
.nav__sublink.is-active { font-weight: 700; }

/* Mobile menu: submenu indented, always visible */
.menu__nav .nav__item { display: block; }
.menu__nav .nav__sub { list-style: none; margin: 8px 0 4px; padding: 0 0 0 16px; border-left: 2px solid var(--accent); display: grid; gap: 6px; }
.menu__nav .nav__sublink { font-family: inherit; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--body-fs); padding: 2px 0; }
.menu__nav .nav__sub a { font-family: inherit; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--body-fs); }

.breadcrumb { font-size: var(--detail-fs); color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Price as text (e.g. "on request") shown smaller */
.pricing-card__price--text .pricing-card__amount { font-size: 1.25rem; }

/* Submenu: overview entry set apart */
.nav .nav__sub-overview { border-bottom: 1px solid var(--line, rgba(11,12,15,.12)); margin-bottom: 6px; padding-bottom: 6px; }
.nav .nav__sub-overview .nav__sublink { font-weight: 700; }
.menu__nav .nav__sub-overview { border: 0; margin: 0; padding: 0; }

/* ==========================================================================
   Active menu item: small ridge instead of an underline
   ========================================================================== */
.nav .nav__link {
  position: relative;
  border-bottom: 0;
  padding-bottom: .55rem;
}
.nav .nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--accent);
  -webkit-mask-image: var(--ridge-line); mask-image: var(--ridge-line);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;  mask-size: 100% 100%;
  pointer-events: none;
}
/* Mobile menu: ridge to the left of the active item */
.menu__nav .nav__link.is-active,
.menu__nav .nav__item.is-active > .nav__link {
  position: relative;
  padding-left: 34px;
}
.menu__nav .nav__link.is-active::after,
.menu__nav .nav__item.is-active > .nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .2em;
  width: 26px;
  height: 10px;
  background: var(--accent);
  -webkit-mask-image: var(--ridge-line); mask-image: var(--ridge-line);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;  mask-size: 100% 100%;
}

/* Header: full width (logo left, cart at right screen edge), navigation in between */
.header__inner { gap: 24px; width: calc(100% - 64px); max-width: none; }
@media (max-width: 900px) { .header__inner { width: calc(100% - 32px); } }
.header__tools { display: flex; align-items: center; gap: 8px; margin-left: 40px; }
.nav { margin-left: auto; }  /* navigation right-aligned, just before the cart */
.nav .nav__link,
.nav .nav__cta { display: inline-flex; align-items: center; line-height: 1; }
.nav .nav__link { padding: .7rem 0 .75rem; }
.nav .nav__cta { padding: .7rem 1rem; }
.nav .nav__item { align-items: center; }
.nav .nav__toggle { align-self: center; }
@media (max-width: 900px) { .header__tools .cart-link { width: 40px; height: 40px; } }

/* Ridge silhouette takes the color of the following section (grey panel block, green band) */
.hero.has-ridge:has(+ .panel)::after,
.divider.has-ridge-bottom:has(+ .panel)::after { background: var(--panel); }
.hero.has-ridge:has(+ .divider)::after { background: var(--accent); }
.hero.has-ridge:has(+ .divider--light)::after { background: var(--panel); }
.hero.has-ridge:has(+ .divider--white)::after { background: var(--bg); }
.quote + .panel, .hero + .panel { margin-top: 0; }

/* Content (text & images): spacing head -> text, lead width */
.section .section-head + .container > .custom-sec { margin-top: 14px; }
.section-head .lead { max-width: 62ch; }
.custom-sec.prose > p:first-child { margin-top: 0; }

/* ==========================================================================
   Steps (steps-list): number "01" left, title, text, hairline - instead of circles
   ========================================================================== */
.steps__list {
  --step-gap: 0;
  --marker: 5.5rem;
  display: block;
}
.steps__list .step {
  display: grid;
  grid-template-columns: var(--marker) 1fr;
  align-items: start;
  gap: 0 12px;
  padding: 1.75rem 0 2rem;
  margin: 0;
  position: relative;
}
.steps__list .step:first-child { padding-top: .5rem; }
.steps__list .step::before { content: none; }   /* old connecting line off */
/* ridge contour as a divider between steps */
.steps__list .step::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: rgba(11,12,15,.2);
  -webkit-mask-image: var(--ridge-rule); mask-image: var(--ridge-rule);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 240px 100%; mask-size: 240px 100%;
  top: auto; width: auto; transform: none; border-radius: 0;   /* overrides the old connecting line */
}
.steps__list .step:last-child::after { content: none; }
.step__marker { display: block; padding-top: .35em; }
.step__num {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: .18em;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-text);
}
.step__content { min-width: 0; }
.steps__title { font-size: 1.5rem; letter-spacing: .04em; }
.steps__text { margin-top: .6rem; color: var(--muted); max-width: 62ch; line-height: 1.5; }
.steps__optional { vertical-align: .35em; font-size: .65rem; }
@media (max-width: 900px) {
  .steps__list { --marker: 3.2rem; }
  .steps__list .step { padding: 1.25rem 0; }
  .steps__title { font-size: 1.2rem; }
}

/* Quote block: large green quotation mark above the text */
.quote__mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 7rem;
  line-height: .3;
  color: var(--accent);
  margin: 0 0 .15rem -.06em;   /* optical alignment, tight spacing to the text */
  padding-top: .36em;
}
.quote__panel { padding-top: 28px; }

/* ==========================================================================
   Event list (google-calendar, "list" display)
   ========================================================================== */
.events__list { list-style: none; margin: 0; padding: 0; }
.events__month { padding: 2.2rem 0 .9rem; position: relative; }
.events__month::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: rgba(11,12,15,.22);
  -webkit-mask-image: var(--ridge-rule); mask-image: var(--ridge-rule);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 240px 100%; mask-size: 240px 100%;
}
.events__month:first-child { padding-top: .4rem; }
.events__month-title {
  margin: 0; font-family: "Space Grotesk", system-ui, sans-serif; text-transform: uppercase;
  letter-spacing: .06em; font-size: 1rem; color: var(--muted);
}
.event {
  display: grid; grid-template-columns: 12.5rem 1fr; gap: 0 16px; align-items: start;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(11,12,15,.12);
}
.event:has(+ .events__month), .events__list .event:last-child { border-bottom: 0; }   /* no straight line before a month title / at the end */
.event__date { display: flex; flex-direction: column; gap: 2px; }
.event__day { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; letter-spacing: .04em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.event__time { font-size: var(--detail-fs); color: var(--muted); font-variant-numeric: tabular-nums; }
.event__title { margin: 0; font-family: "Space Grotesk", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; line-height: 1.2; }
.event__meta { margin: 4px 0 0; font-size: var(--detail-fs); color: var(--muted); }
.event__desc { margin: 6px 0 0; font-size: var(--detail-fs); color: var(--muted); max-width: 62ch; }
@media (max-width: 900px) {
  .event { grid-template-columns: 1fr; gap: 6px; }
  .event__date { flex-direction: row; gap: 10px; align-items: baseline; }
}

/* ==========================================================================
   Ridge contour as a divider line (same contour as in the menu) - <hr> in body text
   and as utility .rule-ridge; color via currentColor / --rule-color
   ========================================================================== */
.rule-ridge,
.prose hr {
  display: block; border: 0; margin: 0; padding: 0;
  height: 12px; width: 100%;
  background: var(--rule-color, rgba(11,12,15,.22));
  -webkit-mask-image: var(--ridge-rule); mask-image: var(--ridge-rule);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 240px 100%; mask-size: 240px 100%;
}
.prose > hr { margin-block: 2em; }
.prose hr + * { margin-top: 0; }
/* Footer: short contour above the copyright line */

/* ==========================================================================
   Cookie banner (Consent Mode) - appears bottom-left as a card
   ========================================================================== */
.consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  display: flex;
  pointer-events: none;
}
.consent[hidden] { display: none; }
.consent__card {
  pointer-events: auto;
  max-width: 520px;
  background: var(--bg);
  border-radius: 0.95rem;
  padding: 20px 22px;
  box-shadow: 0 2px 6px rgba(11,12,15,.08), 0 20px 48px rgba(11,12,15,.22);
}
.consent__text { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.55; }
.consent__text > * { margin: 0; }
.consent__text > * + * { margin-top: 8px; }
.consent__title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1rem;
  line-height: 1.25;
}
.consent__text a { color: inherit; }
.consent [hidden] { display: none !important; }   /* otherwise .btn/display would override the hidden attribute */
.consent .btn {
  padding: 10px 14px;
  font-size: 0.72rem;
  letter-spacing: .04em;
}
.consent__options { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px 0 2px; position: relative; }
.consent__options[hidden] { display: none; }
.consent__options::before {   /* ridge contour as a divider from the intro text */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: rgba(11,12,15,.18);
  -webkit-mask-image: var(--ridge-rule); mask-image: var(--ridge-rule);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 240px 100%; mask-size: 240px 100%;
}
.consent__option { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--muted); }
.consent__option input { margin-top: 3px; accent-color: var(--accent); }
.consent__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.consent__actions .btn { margin: 0; }
.consent__actions .btn--soft { background: var(--panel); }
.consent__actions [data-consent-customize],
.consent__actions [data-consent-decline] { background: transparent; }
.consent__actions [data-consent-customize]:hover,
.consent__actions [data-consent-decline]:hover { background: var(--panel); }

/* ==========================================================================
   Flight path in the call band (option "flight path"): dashed route behind the
   content, a small glider follows it while scrolling (flightpath.js)
   ========================================================================== */
.flightpath {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  color: rgba(255, 255, 255, .9);
}
.flightpath__route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.flightpath__route {
  stroke: rgba(255, 255, 255, .45);
  stroke-width: 2;
  stroke-linecap: round;
}
/* Glider: own SVG, moved by pixel transform; center on the path point */
/* Anchor point: the canopy rides the route, the pilot hangs below */
.flightpath__glider {
  position: absolute;
  left: -23px;
  top: -9px;
  will-change: transform;
}
.divider--panel .flightpath { color: rgba(11, 12, 15, .6); }
.divider--panel .flightpath__route { stroke: rgba(11, 12, 15, .3); }

/* Footer variant: wave over the ridge edge, ending in the "back to top" button.
   flightpath.js sets --fp-p (0…1); glider fades out at the target, button fades in. */
.footer-flight {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1.25 * var(--ridge-h) - 70px);
  height: calc(1.25 * var(--ridge-h) + 70px);
  pointer-events: none;
  z-index: 2;
}
.footer-flight .flightpath { position: absolute; inset: 0; color: var(--ink); }
.footer-flight .flightpath__route { stroke: rgba(11, 12, 15, .28); }
.footer-flight .flightpath__glider { opacity: clamp(0, (0.94 - var(--fp-p, 0)) * 16, 1); color: rgba(11, 12, 15, .28); }
.scroll-top {
  position: absolute;
  top: 51%;
  right: 4px;   /* center at 24px from edge = under the quicknav icon column */
  transform: translateY(-50%) scale(clamp(0.6, var(--fp-p, 0), 1));
  transform-origin: right center;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  pointer-events: auto;
  /* Fade in/out follows the scroll progress directly (--fp-p); an extra
     transition would only lag behind the scrolling */
  opacity: clamp(0, (var(--fp-p, 0) - 0.86) * 12, 1);
}
.scroll-top:hover { background: #15a06d; }
.scroll-top .icon { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) {
  .footer-flight .flightpath__glider { opacity: 0; }
  .scroll-top { opacity: 1; transform: translate(50%, -50%); }
}
