/* Yacht Yourself · Entwurf MAKE Marketing · mobil zuerst, ohne Build */

/* 1. Reset (aus make-basis.css) */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
:root {
  scrollbar-gutter: stable;
  text-wrap: pretty;
  overflow-wrap: break-word;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body { margin: 0; min-height: 100svh; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p, figure, ul, ol, address { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a, button { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* 2. Farben und Masse (aus den Offerte-Mockups) */
:root {
  --bg: #fefefe;
  --blue: #0392ce;
  --blue-dark: #0279ae;
  --blue-light: #e6f4fa;
  --ink: #363c44;
  --muted: #6b737d;
  --line: #e3e7eb;
  --surface: #f3f5f7;

  --font: "Josefin Sans", "Avenir Next", "Century Gothic", sans-serif;
  --text-body: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --text-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --text-h2: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
  --text-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);

  --space-section: clamp(4.5rem, 2.5rem + 6vw, 8rem);
  --gutter: 1rem;
  --content: 78rem;
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --header-h: 56px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 700ms;
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 960px) { :root { --gutter: 2.5rem; --header-h: 64px; } }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.55;
}

.container { width: min(100% - var(--gutter) * 2, var(--content)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* 3. Typografie */
h1, h2 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.2; }
.lead { font-size: var(--text-lead); font-weight: 300; line-height: 1.45; color: var(--ink); max-width: 34ch; }
.eyebrow {
  color: var(--blue);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* 4. Buttons: Pille, Muster B8 Label-Roll */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--blue);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--outline { background: transparent; color: var(--blue); }
.btn__roll { display: block; overflow: hidden; height: 1.2em; line-height: 1.2; padding-top: 0.12em; box-sizing: content-box; }
.btn__label { position: relative; display: block; }
.btn__label::after { content: attr(data-label); position: absolute; left: 0; top: 100%; }
.btn:active { transform: scale(0.97); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
  .btn__label { transition: transform 380ms var(--ease-out); }
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__label { transform: translateY(-100%); }
  .btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
  .btn--outline:hover { background: var(--blue-light); }
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 400px) { .btn { padding-inline: 1.75rem; } .actions { gap: 0.75rem 1rem; } }

/* 5. Kopf: ruhend Canvas, nach dem Scrollen deckend mit Linie, kein Blur */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(54 60 68 / 0.35); }
.header__inner { display: flex; align-items: center; gap: 0.5rem; height: var(--header-h); }
.brand { display: grid; text-decoration: none; color: var(--ink); line-height: 1; margin-right: auto; }
.brand__name { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.brand__name span { color: var(--blue); }
.brand__sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }

.header__call, .header__menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}
.header__call { background: var(--blue); color: #fff; }
.header__call svg { width: 20px; height: 20px; fill: currentColor; }
.burger { display: grid; gap: 6px; width: 22px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease-out); }
.header__menu[aria-expanded="true"] .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.header__menu[aria-expanded="true"] .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile Navigation als Panel unter dem Kopf */
.nav {
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.5rem;
  display: grid;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__list { list-style: none; padding: 0; display: grid; }
.nav__link {
  display: block;
  padding: 0.875rem 0 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.0625rem;
}
.nav__link.is-active { color: var(--blue); }
.nav__cta { justify-self: start; }

@media (min-width: 960px) {
  .header__call, .header__menu { display: none; }
  .brand__name { font-size: 1.625rem; }
  .brand__sub { font-size: 0.8125rem; }
  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 2.25rem;
    padding: 0;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    background: none;
  }
  .nav__list { display: flex; gap: 2.25rem; }
  .nav__link {
    position: relative;
    padding: 0.5rem 0 0.375rem;
    border: 0;
    font-size: 0.9375rem;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur) var(--ease-out);
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav__link:hover { color: var(--blue); }
  .nav__cta { min-height: 48px; }
}

/* 6. Sektionen */
.section { padding-block: var(--space-section); }
.section__head { display: grid; gap: 0.875rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section__head--center { justify-items: center; text-align: center; }
.section__head--center .lead { max-width: 40ch; }
.center { display: flex; justify-content: center; }

/* Bilder: abgerundet, füllen ihren Kasten, leichter Zoom beim Hover */
.hero__media, .media, .step__media, .card__media { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.hero__media img, .media img, .step__media img, .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hero__media:hover img, .media:hover img, .step:hover .step__media img, .card:hover .card__media img { transform: scale(1.03); }
}

/* 6.1 Hero und gleich aufgebaute Sektionen (Winterlager, Kontakt) */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 6rem) var(--space-section); }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.hero__text { display: grid; gap: 1.25rem; justify-items: start; }
.hero__text .actions { margin-top: 0.5rem; }
.hero__media { aspect-ratio: 16 / 10; }
.hero h1 .line { display: inline-block; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 5vw, 5rem); }
  .hero__text { gap: 1.5rem; }
  .hero__media { aspect-ratio: 4 / 3; }
}
@media (min-width: 1200px) { .hero__media { aspect-ratio: 7 / 5; } }

/* 6.2 Werkstatt: Bild und drei Punkte */
.split { display: grid; gap: 2rem; }
.media { aspect-ratio: 4 / 3; }
.points { display: grid; align-content: center; }
.point { padding-block: 1.5rem; border-bottom: 1px solid var(--line); display: grid; gap: 0.5rem; }
.point:first-child { padding-top: 0; }
.point p { color: var(--muted); }
.points > .reveal:last-child { padding-top: 2rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
  .point { padding-block: 1.75rem; }
}

/* 6.3 Ablauf: drei Schritte mit verbindender Linie */
.section--steps { padding-bottom: 0; }
.steps { list-style: none; padding: 0; display: grid; gap: 3rem; counter-reset: none; }
.step { position: relative; display: grid; gap: 0.75rem; justify-items: start; }
.step__num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
  padding-top: 0.15em;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.step p { color: var(--ink); font-weight: 300; font-size: var(--text-lead); line-height: 1.4; }
.step__media { aspect-ratio: 2 / 1; margin-top: 1rem; width: 100%; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .step { justify-items: center; text-align: center; grid-template-rows: auto auto 1fr auto; }
  .step::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: calc(50% + 2.5rem);
    width: calc(100% + 3rem - 5rem);
    height: 1px;
    background: var(--line);
  }
  .step:last-child::before { display: none; }
  .step p { max-width: 24ch; }
}
.note { background: var(--surface); margin-top: var(--space-section); }
.note__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; padding-block: 2rem; text-align: center; }
.note p { font-size: var(--text-lead); font-weight: 300; }

/* 6.4 Winterlager-Badge mit pulsierendem Punkt */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem 0.375rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 1rem;
}
.badge__dot { position: relative; width: 0.625rem; height: 0.625rem; border-radius: 999px; background: var(--blue); margin-top: -0.15em; }
.badge__dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .badge__dot::after { animation: pulse 2s var(--ease-out) infinite; }
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

/* 6.5 Kurse */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.card__body { padding: 1.75rem 1.75rem 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.card__body p:last-child { color: var(--muted); }
.card__kicker { display: flex; align-items: center; gap: 0.75rem; color: var(--blue); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9375rem; }
.tag { border: 1px solid var(--blue); border-radius: 999px; padding: 0.3rem 0.75rem 0.15rem; font-size: 0.8125rem; letter-spacing: 0.02em; text-transform: none; font-weight: 400; }
.card__media { border-radius: 0; aspect-ratio: 4 / 3; align-self: end; }
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgb(54 60 68 / 0.45); }
}
.placeholder-note { text-align: center; color: var(--muted); font-size: 0.9375rem; margin: 1.5rem 0 2rem; }

/* 6.6 Kontakt */
.section--contact { padding-bottom: 0; }
.signature { color: var(--muted); font-size: var(--text-lead); font-weight: 300; }
.contact { background: var(--surface); border-top: 3px solid var(--blue); margin-top: var(--space-section); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.contact__title { margin-bottom: 2rem; }
.contact__grid { display: grid; gap: 2rem; }
.contact__item { display: grid; gap: 0.5rem; justify-items: start; font-style: normal; }
.contact__label { color: var(--muted); font-size: 1rem; }
.contact__value {
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat;
  transition: background-size var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.contact__value:hover { background-size: 100% 2px; color: var(--blue-dark); }
.contact__item .btn { margin-top: 0.75rem; }
.contact__address { font-size: var(--text-lead); font-weight: 300; line-height: 1.4; }
.contact__hint { color: var(--muted); }
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: auto auto 1fr; gap: 0; }
  .contact__item { padding-inline: 3rem; border-left: 1px solid var(--line); }
  .contact__item:first-child { padding-left: 0; border-left: 0; }
}

/* 7. Fuss */
.footer { border-top: 1px solid var(--line); padding-block: 1.75rem; color: var(--muted); font-size: 0.9375rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
@media (min-width: 640px) {
  .footer__list { gap: 0.25rem 0; }
  .footer__list li + li { border-left: 1px solid var(--line); margin-left: 1rem; padding-left: 1rem; }
}
.footer strong { color: var(--ink); font-weight: 600; }

/* 8. Scroll-Reveal, nur mit JS und ohne reduzierte Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
