/* Studio Luminelli: blue design (2026-11-30).
   Reference: docs/mockup-blue-mobile-2x.png (402px wide, exported at 2x).
   Fonts are self-hosted (OFL), no third-party requests. */

@font-face { font-family: "Farro"; src: url("../fonts/farro-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Farro"; src: url("../fonts/farro-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Colour */
  --blue: #5579a9;        /* title and blue text colour (logo colour) */
  --blue-light: #9fb6d4;  /* lighter logo blue: decoration only, never text */
  --accent: #fff2a3;      /* yellow accent: surfaces only (button, label, marker, badges), always with dark text */
  --accent-hover: #ffea7a;
  --bg: #ebf4ff;          /* page background */
  --bg-deep: #e3efff;     /* header, footer, section gradients */
  --white: #ffffff;
  --ink: #0b1b33;         /* body text */
  --ink-soft: #3d4f6b;    /* secondary text (7:1 on --bg) */

  /* Type: sizes from the mockup (mobile), growing gently on wide screens */
  --font-title: "Farro", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Quicksand", "Avenir Next", system-ui, sans-serif;
  --font-script: "Cormorant", Georgia, serif;
  --fs-body: clamp(17px, 15.6px + .35vw, 19px);
  --fs-s: clamp(17px, 15.4px + .45vw, 21px);      /* small titles */
  --fs-m: clamp(22px, 19px + .8vw, 30px);         /* step titles */
  --fs-l: clamp(26px, 19px + 1.9vw, 44px);        /* large titles */
  --fs-small: .85em;

  /* Space: generous, on an 8px base */
  --gutter: clamp(34px, 6vw, 64px);
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: clamp(88px, 10vw, 144px);
  --measure: 36rem;
  --wrap: 1180px;
  --radius: 24px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-3); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--blue); }
::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

.nowrap { white-space: nowrap; }

.skip { position: absolute; left: var(--s-2); top: -100px; z-index: 10; padding: var(--s-1) var(--s-2); background: var(--white); color: var(--blue); border-radius: 8px; }
.skip:focus { top: var(--s-2); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type roles ---------- */

.title-hero, .title-l, .title-m, .title-s, .footer-title {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.005em;
  color: var(--blue);
  text-wrap: balance;
}
.title-hero { font-size: var(--fs-l); color: var(--blue); text-transform: uppercase; letter-spacing: .005em; }
.title-l { font-size: var(--fs-l); }
.title-m { font-size: var(--fs-m); }
.title-s { font-size: var(--fs-s); line-height: 1.3; }

.eyebrow {
  display: inline-block;
  padding: .35em .9em;
  background: var(--accent);
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.link { color: var(--blue); text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: .22em; }
.link:hover { color: var(--ink); }

/* ---------- Buttons ---------- */

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 700px) { .buttons { gap: var(--s-2) var(--s-3); } .btn { font-size: 18px; padding-left: 1.3em; padding-right: 1.3em; } }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .55em .8em;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--ink); font-weight: 500; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--white); color: var(--ink); font-weight: 500; }
.btn-secondary:hover { color: var(--blue); }
.btn:active { transform: translateY(1px); }
@media (max-width: 379px) { .btn { font-size: 15px; padding-left: .7em; padding-right: .7em; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.note { min-height: 0; font-size: var(--fs-small); color: var(--ink-soft); }
.note:empty { display: none; }

/* ---------- Header ---------- */

.top { position: relative; z-index: 3; background: var(--bg-deep); }
.top::after {               /* soft wave into the page background */
  content: "";
  position: absolute;
  left: 0; right: 0; top: calc(100% - 1px);
  height: clamp(36px, 6vw, 90px);
  background: url("../img/wave-top.svg") no-repeat center top / 100% 100%;
  pointer-events: none;
}
.top-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding-top: calc(var(--s-3) + 20px); padding-bottom: var(--s-1); }
.brand { display: block; margin-top: -6px; }
.brand img { width: 94px; }
.top-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: -8px; }
.phone, .mail {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.phone img, .mail img { width: 15px; height: 15px; }
.phone:hover, .mail:hover { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: .2em; }
.top-nav { display: none; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: calc(var(--s-6) + var(--s-2)) 0 var(--s-6); }
.hero-inner { position: relative; }
.hero-text { max-width: var(--measure); }
.hero .eyebrow { margin-left: min(50%, 13.5rem); margin-bottom: var(--s-2); }
.hero .lead { margin-top: var(--s-3); }
.hero .buttons { margin-top: var(--s-4); }
.hero .note { margin-top: var(--s-2); }
.hero-stars { display: none; }

/* Home hero with photo. Mobile: photo first, under the header wave; the label overlaps its lower edge. */
.hero-photo { padding-top: 0; }
.hero-picture { display: contents; }
.hero-media {
  display: block;
  width: 100%;
  height: clamp(240px, 64vw, 420px);
  object-fit: cover;
  object-position: 72% 55%;
}
.hero-photo .hero-inner { position: relative; z-index: 1; margin-top: -1.1em; }
.hero-photo .eyebrow { position: relative; margin-left: 0; margin-bottom: var(--s-3); }
.hero-photo .crumbs { display: inline-flex; padding: .45em 1em; background: var(--white); line-height: 1.4; }

.hero-sub { padding-bottom: var(--s-5); }
.hero-sub .title-l { color: var(--blue); }
.hero-sub .lead + .lead { margin-top: var(--s-2); }
.hero-404 { padding-bottom: var(--s-6); }
.hero-404 .eyebrow { margin: 0 0 var(--s-2); }

.crumbs { display: flex; gap: .5em; margin-bottom: var(--s-3); font-size: var(--fs-small); color: var(--ink-soft); }
.crumbs a { color: var(--blue); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--blue); }

/* ---------- Promise bar ---------- */

.promises { position: relative; z-index: 2; background: var(--white); padding: var(--s-4) 0; }
.promise-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); padding: 0 12px; }
.promise-list li { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); text-align: center; }
.promise-list img { width: 64px; height: auto; }
.promise-list span { font-family: var(--font-title); font-weight: 500; font-size: 13px; line-height: 1.2; color: var(--ink); }

/* ---------- Sections ---------- */

.section { padding: var(--s-6) 0; }
.section > .wrap > .title-l { margin-bottom: var(--s-5); }

/* Gradient from the deeper shade into the page background */
.advantage { padding-bottom: var(--s-5); }
.advantage, .method { background: linear-gradient(to bottom, var(--bg-deep), rgba(227, 239, 255, 0)); }

.split > .title-l { margin-bottom: var(--s-4); }
.split-body { max-width: var(--measure); }

/* Values: Persönlich, Günstig, Schnell (staggered like the mockup) */
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "a c" "b b";
  gap: var(--s-2) var(--s-3);
  margin-top: var(--s-5);
  text-align: center;
}
.values li { display: flex; flex-direction: column; align-items: center; }
.values li:nth-child(1) { grid-area: a; }
.values li:nth-child(2) { grid-area: b; margin-top: var(--s-1); }
.values li:nth-child(3) { grid-area: c; }
.values strong { font-family: var(--font-script); font-style: italic; font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--blue); }
.values span { margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--ink-soft); max-width: 11em; }
.values img { width: 78px; margin-top: var(--s-1); opacity: .9; }

/* Solutions */
.solution-list { display: grid; gap: var(--s-5); }
.solution-list .title-s a { text-decoration: none; }
.solution-list .title-s a:hover .swoosh { color: var(--blue); }
.solution-list p { margin-top: var(--s-2); }
.more { color: var(--blue); font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; text-decoration-color: var(--blue); }

.swoosh {
  padding-bottom: .34em;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: calc(100% + .3em) .5em;   /* hand-drawn line under the word */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.swoosh-1 { background-image: url("../img/underline-1.svg"); }
.swoosh-2 { background-image: url("../img/underline-2.svg"); }
.swoosh-3 { background-image: url("../img/underline-3.svg"); }

/* Method */
.steps { counter-reset: step; display: grid; gap: var(--s-5); }
.steps li { counter-increment: step; }
.steps .title-m::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  margin-right: .4em;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: .8em;
  vertical-align: .12em;
}
.steps p { margin-top: var(--s-2); }

/* Call to action */
.cta-band { padding: var(--s-5) 0 var(--s-6); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-stars { width: 112px; margin-bottom: var(--s-3); }
.cta-band p { max-width: 30rem; margin-top: var(--s-3); }
.cta-band p.buttons { max-width: none; }
.cta-band .buttons { justify-content: center; margin-top: var(--s-4); }
.cta-band .note { margin-top: var(--s-2); }

/* ---------- Solution pages ---------- */

.examples-section { position: relative; z-index: 2; background: linear-gradient(to bottom, var(--bg-deep), rgba(227, 239, 255, 0)); }
.examples-section::before {   /* the same wave as the header, mirrored: it curves over the photo's lower edge */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: calc(100% - 1px);
  height: clamp(36px, 6vw, 90px);
  background: url("../img/wave-top.svg") no-repeat center top / 100% 100%;
  transform: scale(-1, -1);
  pointer-events: none;
}
.examples { display: grid; gap: var(--s-3); }
.example {
  padding: var(--s-4) var(--s-3);
  background: var(--white);
  border-radius: var(--radius);
}
.example .title-s { color: var(--blue); }
.example p { margin-top: var(--s-2); }
.points { margin-top: var(--s-3); display: grid; gap: var(--s-1); font-size: var(--fs-small); line-height: 1.45; }
.points li { position: relative; padding-left: 1.6em; }
.points li::before {
  content: "";
  position: absolute; left: 0; top: .2em;
  width: 1em; height: 1em;
  background: url("../img/star.svg") no-repeat center / contain;
}

.other-solutions { padding-top: 0; padding-bottom: 0; }
.other-solutions .title-s { margin-bottom: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.chips a {
  display: inline-block;
  padding: .5em 1.2em;
  background: var(--white);
  border-radius: 999px;
  color: var(--blue);
  font-family: var(--font-title);
  font-weight: 500;
  text-decoration: none;
}
.chips a:hover { background: var(--bg-deep); }

/* ---------- Impressum ---------- */

.doc { padding-top: 0; }
.doc-inner { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-left: 0; }
.doc .title-s { margin: var(--s-5) 0 var(--s-2); }
.doc .title-s:first-child { margin-top: 0; }
.doc p + p { margin-top: var(--s-2); }
.stand { margin-top: var(--s-5) !important; font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { position: relative; margin-top: clamp(36px, 6vw, 90px); background: var(--bg-deep); padding: var(--s-5) 0 var(--s-4); font-size: 15px; line-height: 1.6; }
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: calc(100% - 1px);
  height: clamp(36px, 6vw, 90px);
  background: url("../img/wave-top.svg") no-repeat center top / 100% 100%;
  transform: scaleY(-1);
  pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-3); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 94px; }
.footer-brand p { margin-top: var(--s-2); max-width: 20rem; color: var(--ink-soft); }
.footer-title { font-size: 17px; margin-bottom: var(--s-1); color: var(--blue); }
.site-footer address { font-style: normal; }
.site-footer address p + p { margin-top: var(--s-1); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: .2em; }
.site-footer li + li { margin-top: 4px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Tablet ---------- */

@media (min-width: 700px) {
  .promise-list span { font-size: 17px; }
  .promise-list img { width: 72px; }
  .solution-list { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); }
  .examples { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); grid-template-areas: "a b c"; max-width: 780px; margin-left: auto; margin-right: auto; }
  .values li:nth-child(2) { margin-top: var(--s-5); }
}

/* ---------- Desktop ---------- */

@media (min-width: 1000px) {
  .top-inner { align-items: center; padding-top: var(--s-3); padding-bottom: 0; }
  .brand { margin-top: 0; }
  .brand img { width: 120px; }
  .top-nav { display: flex; gap: var(--s-4); margin-left: auto; font-family: var(--font-title); font-weight: 500; font-size: 17px; }
  .top-nav a { text-decoration: none; }
  .top-nav a:hover { color: var(--blue); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: .3em; }
  .top-contact { margin: 0 0 0 var(--s-4); }
  .phone { font-size: 15px; }
  .mail { display: none; }   /* mobile only */

  .hero { padding-top: calc(var(--s-6) + var(--s-4)); }
  .hero .eyebrow { margin-left: 0; }
  .hero-stars { display: none; position: absolute; right: var(--gutter); top: 50%; width: clamp(300px, 30vw, 420px); aspect-ratio: 1; padding: 0 44px; object-fit: contain; border-radius: 47% 53% 44% 56% / 52% 46% 54% 48%; background: var(--bg-deep); transform: translateY(-50%) rotate(-6deg); }

  .promise-list { gap: var(--s-4); max-width: 900px; }
  .promise-list li { flex-direction: row; justify-content: center; gap: var(--s-2); text-align: left; }

  .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5); align-items: start; }
  .split > .title-l { margin-bottom: 0; position: sticky; top: var(--s-4); }
  .split-body { max-width: 40rem; }

  .solution-list { grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-5); }
  .values strong { font-size: 40px; }
  .values span { font-size: 16px; }
  .values img { width: 104px; }
  .examples { grid-template-columns: repeat(3, 1fr); gap: var(--s-4) var(--s-3); }
  .example { padding: var(--s-4); }

  .footer-grid { grid-template-columns: 2fr 1.3fr 1fr 1.3fr; }
  .footer-brand { grid-column: auto; }
}

@media (min-width: 1200px) {
  .hero-text { max-width: min(40rem, 56%); }
  .hero-stars { display: block; }
}

/* Desktop: photo bleeds to the right edge; header wave overlaps its top, the promise bar its bottom. */
@media (min-width: 1000px) {
  .hero-photo { padding-top: calc(var(--s-6) + var(--s-4)); min-height: 620px; }
  .hero-photo.hero-sub { padding-bottom: calc(var(--s-6) + var(--s-3)); min-height: 760px; }
  .hero-photo.hero-sub .hero-media { height: 100%; }   /* the wave of the next section covers the lower edge */
  .hero-media {
    position: absolute;
    top: 0; right: 0;
    width: min(46vw, 900px);
    height: calc(100% + var(--s-5));   /* runs under the promise bar */
    object-position: 65% 50%;
  }
  .hero-photo .hero-inner { margin-top: 0; }
  .hero-photo .hero-text { max-width: min(40rem, calc(54vw - 2 * var(--gutter) - var(--s-4))); }
  .hero-photo .eyebrow { margin-bottom: var(--s-2); }
  .hero-home .eyebrow { background: var(--white); }   /* desktop: white label; yellow stays on mobile, where it sits on the photo */
  .hero-photo .crumbs { padding: 0; background: none; }
}
