/* neno-digital.io - main stylesheet (mobile-first, no frameworks) */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-300.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-700.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --c-blue: #0013ff;
  --c-blue-dark: #000b99;
  --c-blue-light: #4553ff;
  --c-black: #000;
  --c-ink: #000;
  --c-text: #353535;
  --c-grey: #f5f5f5;
  --c-white: #fff;
  --c-red: #e8564b;
  --c-green: #1ed18a;
  --c-yellow: #ffff00;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-text: 1.0625rem;
  --lh-text: 2rem;
  --fs-h1: 1.75rem;
  --lh-h1: 2.375rem;
  --fs-display: 2rem;
  --lh-display: 2.625rem;
  --fs-h2: 1.25rem;
  --lh-h2: 1.75rem;
  --fs-h3: 1.125rem;
  --lh-h3: 1.5rem;

  --gutter: 1.25rem;
  --gap: 1.25rem;
  --section-y: 3.125rem;
  --max: 96.25rem; /* 1540px: 1500px content + gutters, as on the old site */
  --max-narrow: 65rem; /* 1040px: calmer measure for diagrams and long reads */
  --header-h: 5rem;
  --shadow: 0 0 0.75rem rgb(0 0 0 / 12%);
}

@media (min-width: 768px) {
  :root {
    --fs-text: 1rem;
    --lh-text: 1.8;
    --fs-h2: 1.375rem;
    --lh-h2: 2.125rem;
    --fs-h3: 1.25rem;
    --lh-h3: 1.75rem;
    --section-y: 3.75rem;
  }
}

@media (min-width: 1025px) {
  :root {
    --fs-h1: 2rem;
    --lh-h1: 2.625rem;
    --fs-display: 2rem;
    --fs-h2: 1.5rem;
    --lh-h2: 2.125rem;
    --gap: 1.875rem;
    --section-y: 5rem;
    --header-h: 6.875rem;
  }
}

/* Large screens (e.g. 1440p at 100% OS scaling, 4K at 100-150%): scale the whole
   layout by 125%. All lengths are in rem, so text, spacing, icons and the container
   grow together. Percent keeps the user's browser font-size setting intact. */
@media (min-width: 2200px) {
  html {
    font-size: 125%;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.625rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-text);
  font-weight: 300;
  line-height: var(--lh-text);
  color: var(--c-text);
  background: var(--c-white);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: 700;
  color: var(--c-ink);
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

h4 {
  font-size: 1.0625rem;
  line-height: 1.5;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
}

a {
  color: inherit;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  top: -6.25rem;
  left: 0.625rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  background: var(--c-black);
  color: var(--c-white);
}

.skip-link:focus {
  top: 0.625rem;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--max-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section--grey {
  background: var(--c-grey);
}

.section--blue {
  background: var(--c-blue);
  color: var(--c-white);
}

.section--blue h1,
.section--blue h2,
.section--blue h3 {
  color: var(--c-white);
}

.section--flush-top {
  padding-top: 0;
}

.lead {
  max-width: 45rem;
  text-wrap: pretty; /* no single word on the last line */
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.75rem 2.5rem;
  border: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  word-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn--blue {
  background: var(--c-blue);
  color: var(--c-white);
}

.btn--blue:hover,
.btn--blue:focus-visible {
  background: var(--c-black);
}

.btn--black {
  background: var(--c-black);
  color: var(--c-white);
}

.btn--black:hover,
.btn--black:focus-visible {
  background: var(--c-blue);
}

.btn--white {
  background: var(--c-white);
  color: var(--c-black);
}

.btn--white:hover,
.btn--white:focus-visible {
  background: var(--c-blue);
  color: var(--c-white);
}

.btn svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-blue);
  font-weight: 400;
  font-size: 0.9375rem;
  text-decoration: none;
}

.link-more:hover,
.link-more:focus-visible {
  text-decoration: underline;
}

.link-more svg {
  width: 0.625rem;
  height: 0.625rem;
  fill: currentColor;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-white);
  box-shadow: var(--shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.625rem;
}

.site-header__logo {
  flex: none;
}

.site-header__logo img {
  width: 3.75rem;
  height: 3.75rem;
}

@media (min-width: 1025px) {
  .site-header__logo img {
    width: 5rem;
    height: 5rem;
  }
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-black);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.625rem;
  height: 1.625rem;
  fill: currentColor;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav {
  flex: 1 1 100%;
  order: 3;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__list > li > a,
.site-nav__sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-black);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.site-nav__sub-toggle svg {
  width: 0.625rem;
  height: 0.625rem;
  fill: currentColor;
  transition: transform 0.2s;
}

.site-nav__sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.site-nav__list a[aria-current="page"],
.site-nav__list a:hover,
.site-nav__sub-toggle:hover {
  color: var(--c-blue);
}

.site-nav__sub {
  padding-left: 1rem;
}

.site-nav__sub a {
  display: block;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-black);
  text-decoration: none;
}

.site-nav__sub a:hover,
.site-nav__sub a[aria-current="page"] {
  color: var(--c-blue);
}

.site-header__cta {
  order: 2;
  margin-left: auto;
  min-height: 2.5rem;
  padding: 0.625rem 1.5rem;
}

/* JS enabled, mobile: collapsible menu */
@media (max-width: 1024px) {
  /* without JS the menu is always expanded: don't let it cover the page */
  html:not(.js) .site-header {
    position: relative;
  }

  .js .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: 0;
  }

  .js .site-header__cta {
    order: 1;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: block;
    padding-bottom: 0.625rem;
  }

  .js .site-nav__sub[hidden] {
    display: none;
  }
}

/* Desktop: horizontal menu with dropdown */
@media (min-width: 1025px) {
  .site-header__inner {
    flex-wrap: nowrap;
    gap: 2.5rem;
  }

  .site-nav {
    flex: 1 1 auto;
    order: 0;
    display: flex;
    justify-content: flex-end;
  }

  .site-nav__list {
    flex-direction: row;
    gap: 1.875rem;
  }

  .site-nav__list > li {
    position: relative;
  }

  .site-nav__list > li > a,
  .site-nav__sub-toggle {
    width: auto;
    padding: 1.25rem 0.625rem;
    font-size: 0.9375rem;
  }

  .site-nav__sub,
  .js .site-nav__sub[hidden] {
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    min-width: 16.25rem;
    padding: 0.625rem 0;
    background: var(--c-white);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(0.375rem);
    transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
  }

  .has-sub:hover > .site-nav__sub,
  .has-sub:focus-within > .site-nav__sub {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.15s, transform 0.15s;
  }

  /* explicit close via Esc/click (JS) wins over :focus-within */
  .js .has-sub > .site-nav__sub[hidden] {
    visibility: hidden;
    opacity: 0;
  }

  .js .has-sub:hover > .site-nav__sub[hidden] {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav__sub a {
    padding: 0.625rem 1.25rem;
  }

  .site-header__cta {
    order: 0;
    margin-left: 0;
    min-height: 3rem;
    padding: 0.875rem 3.125rem;
  }
}

/* ---------- Hero (page intro) ---------- */
.hero {
  background: var(--c-grey);
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: var(--section-y);
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  max-width: 35rem;
}

.hero__text {
  max-width: 37.5rem;
}

.hero__media img {
  width: 100%;
  max-width: 35rem;
  margin-inline: auto;
}

@media (min-width: 1025px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3.75rem;
    min-height: 31.25rem;
  }
}

/* ---------- Cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 2.5rem 2.5rem;
  background: var(--c-grey);
}

.card__icon {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.875rem;
}

.card h3 {
  margin-bottom: 0.625rem;
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.card .btn {
  margin-top: auto;
}

.card p + .btn {
  margin-top: 1.5rem;
}

.card--black {
  background: var(--c-black);
  color: var(--c-white);
}

.card--black h2,
.card--black h3 {
  color: var(--c-white);
}

.card--padded {
  padding-top: 2.5rem;
}

/* App cards (apps page): icon hanging off the top edge */
.card--app {
  padding: 0 2.5rem 2.5rem;
}

.card--app .card__icon {
  width: 4rem;
  height: 4rem;
}

.card--app .card__icon--empty {
  height: 4rem;
}

.card--app .btn {
  margin-top: 1.5rem;
  padding-inline: 3.125rem;
}

/* ---------- Services teaser (home) ---------- */
.services {
  display: grid;
  gap: var(--gap);
}

.services .card {
  padding: 2.5rem;
}

.services .card .btn {
  margin-top: 1.875rem;
}

@media (min-width: 768px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Carousel (hero slider + reference carousel) ---------- */
.carousel {
  --per-view: 1;
  position: relative;
}

.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__viewport::-webkit-scrollbar {
  display: none;
}

.carousel__track {
  display: flex;
}

.carousel__slide {
  flex: 0 0 calc(100% / var(--per-view));
  min-width: 0;
  scroll-snap-align: start;
}

/* JS-enhanced: transform-driven track */
.carousel.is-enhanced .carousel__viewport {
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: pan-y;
}

.carousel.is-enhanced .carousel__track {
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel.is-enhanced .carousel__track.no-transition {
  transition: none;
}

/* Controls row below the slides: [prev] [dots] [next]. On wide screens the arrows
   move out beside the slides (see below), so slide content stays on the grid. */
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.625rem;
}

.carousel__btn {
  z-index: 2;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-black);
  cursor: pointer;
}

.carousel__btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.carousel__btn:hover {
  color: var(--c-blue);
}

.carousel__dots {
  display: flex;
  gap: 0.25rem;
}

/* Enough room beside the 1500px container (1540px + 2 x 40px): arrows sit outside
   the content box, vertically centred on the slide image (--arrow-y). */
@media (min-width: 1620px) {
  .carousel__btn {
    position: absolute;
    top: var(--arrow-y, 50%);
    transform: translateY(-50%);
  }

  .carousel__btn--prev {
    right: 100%;
    margin-right: 0.25rem;
  }

  .carousel__btn--next {
    left: 100%;
    margin-left: 0.25rem;
  }
}

.carousel__dots button {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.carousel__dots button::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  margin: auto;
  border-radius: 50%;
  background: var(--c-black);
  opacity: 0.25;
}

.carousel__dots button[aria-current="true"]::before {
  opacity: 1;
  background: var(--c-blue);
}

/* Hero slider */
.slider-hero {
  --arrow-y: calc(50% - 1.0625rem); /* half of the dots row (2.125rem) */
}

.slider-hero .carousel__slide img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  max-height: 25rem;
}

@media (min-width: 768px) {
  .slider-hero .carousel__slide img {
    max-height: 39.6875rem;
  }
}

/* Reference carousel */
.slider-refs {
  margin-bottom: 2.5rem;
}

/* gap between slides via padding; negative margin puts the outer image edges on the container edges */
.slider-refs .carousel__viewport {
  margin-inline: calc(var(--gap) / -2);
}

.slider-refs .carousel__slide {
  padding-inline: calc(var(--gap) / 2);
}

.slider-refs figure {
  margin: 0;
}

.slider-refs figcaption {
  margin-top: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 2rem;
  color: var(--c-black);
}

.slider-refs {
  /* centre of the image: half of caption (2.625rem) + dots row (2.125rem) */
  --arrow-y: calc(50% - 2.375rem);
}

.slider-refs .carousel__controls {
  justify-content: flex-start;
  margin-left: -0.75rem; /* arrow icon flush with the content edge */
}

@media (min-width: 1620px) {
  .slider-refs .carousel__controls {
    margin-left: -0.5rem; /* arrows are outside: first dot flush with the content edge */
  }
}

@media (min-width: 768px) {
  .slider-refs {
    --per-view: 2;
  }
}

@media (min-width: 1025px) {
  .slider-refs {
    --per-view: 3;
  }
}

/* ---------- Tools / partner (home) ---------- */
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem;
  background: var(--c-white);
  color: var(--c-text);
  text-align: center;
}

.partner img {
  width: 9.375rem;
  height: 9.375rem;
  margin-bottom: 1.25rem;
}

.partner h3 {
  color: var(--c-ink);
}

.partner p {
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

/* ---------- Split (text + media) ---------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1025px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.75rem;
  }
}

/* ---------- CTA (home) ---------- */
.cta {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1025px) {
  .cta {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Subscription offer (/entwicklung-im-abo/ + home teaser) ---------- */
.section--blue :focus-visible {
  outline-color: var(--c-white);
}

.price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 28rem;
  padding: 2.5rem;
  color: var(--c-text);
  background: var(--c-white);
  box-shadow: var(--shadow);
}

.section--blue .price-box :focus-visible {
  outline-color: var(--c-blue);
}

@media (min-width: 1025px) {
  .price-box {
    justify-self: end;
  }
}

.price-box__label {
  font-weight: 700;
  color: var(--c-blue);
}

.price-box__price,
.promo__price {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.1;
  color: var(--c-black);
}

.price-box__price span,
.promo__price span {
  font-size: 1rem;
  font-weight: 400;
}

.price-box__note,
.price-box__fine {
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.price-box__trial {
  align-self: stretch;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5rem;
  background: var(--c-grey);
  border-left: 0.25rem solid var(--c-blue);
}

.price-box .icon-list {
  margin-block: 1.5rem 1.875rem;
}

.price-box__fine {
  margin-top: 1.25rem;
}

/* "Was ist enthalten": intro left, list right */
.split-list {
  display: grid;
  gap: 1.875rem;
}

@media (min-width: 1025px) {
  .split-list {
    grid-template-columns: 1fr 1fr;
    gap: 3.75rem;
  }
}

.split-list h2 {
  margin-bottom: 1rem;
}

.icon-list--large li {
  padding-block: 0.75rem;
  border-bottom: 1px solid rgb(0 0 0 / 10%);
  font-size: var(--fs-text);
}

/* FAQ: native <details>, no JS */
.faq-wrap {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1025px) {
  .faq-wrap {
    grid-template-columns: 1fr 2fr;
    gap: 3.75rem;
  }
}

.faq details {
  border-bottom: 1px solid rgb(0 0 0 / 15%);
}

.faq details:first-child {
  border-top: 1px solid rgb(0 0 0 / 15%);
}

.faq summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 500;
  color: var(--c-black);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 0.625rem;
  height: 0.625rem;
  border-right: 2px solid var(--c-blue);
  border-bottom: 2px solid var(--c-blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq summary:hover {
  color: var(--c-blue);
}

.faq details p {
  max-width: 50rem;
  padding-bottom: 1.25rem;
}

.cta__actions {
  align-self: center;
}

@media (min-width: 1025px) {
  .cta__actions {
    justify-content: flex-end;
  }
}

/* Home teaser */
.promo {
  display: grid;
  gap: 1.875rem;
  margin-top: var(--gap);
  padding: 2.5rem;
  background: var(--c-blue);
  color: var(--c-white);
}

.promo :focus-visible {
  outline-color: var(--c-white);
}

.promo .btn--white:hover,
.promo .btn--white:focus-visible {
  background: var(--c-black);
}

@media (min-width: 1025px) {
  .promo {
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 3.75rem;
  }
}

.promo h3 {
  margin-bottom: 0.625rem;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--c-white);
}

.promo p {
  max-width: 45rem;
}

.promo__price {
  color: var(--c-white);
}

.promo__note {
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
}

.badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--c-white);
  color: var(--c-blue);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- References page ---------- */
.ref {
  display: flex;
  flex-direction: column;
}

.ref img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1.25rem;
}

.ref h2 {
  margin-bottom: 0.25rem;
}

.ref p {
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.refs-note {
  margin-top: 3.75rem;
  font-size: 0.9375rem;
}

/* ---------- Facts (about) ---------- */
.fact__icon {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.875rem;
}

.fact__icon--red {
  background: var(--c-red);
}

.fact__icon--green {
  background: var(--c-green);
}

.fact__icon--blue {
  background: var(--c-blue);
}

.fact__icon--yellow {
  background: var(--c-yellow);
}

/* ---------- Team (about) ---------- */
.team {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .team {
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 20.625rem));
  }
}

.person img {
  width: 12.125rem;
  height: 19.8125rem;
  object-fit: cover;
  object-position: top;
  margin-bottom: 1.25rem;
}

.person h3 {
  margin-bottom: 0.625rem;
}

/* ---------- Icon list (contact data) ---------- */
.icon-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.icon-list svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: var(--c-blue);
}

.section--blue .icon-list svg {
  fill: var(--c-white);
}

/* the white price box sits in a blue section: keep its checks blue */
.section--blue .price-box .icon-list svg {
  fill: var(--c-blue);
}

.icon-list a {
  text-decoration: none;
}

.icon-list a:hover {
  text-decoration: underline;
}

/* ---------- Contact page ---------- */
.contact-media {
  padding: 1.875rem;
  background: var(--c-grey);
}

.contact-media img {
  width: 100%;
  max-width: 31.25rem;
  margin-inline: auto;
}

.contact-list {
  margin-top: 2.5rem;
}

/* ---------- Legal text ---------- */
.legal {
  max-width: 56.25rem;
}

.legal h2 {
  margin-top: 1.8em;
}

.legal h3 {
  margin-top: 1.5em;
}

.legal h4 {
  margin-top: 1.3em;
}

.legal a {
  color: var(--c-blue);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-black);
  color: var(--c-white);
  font-size: 0.9375rem;
  line-height: 1.75rem;
}

.site-footer__main {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.75rem;
}

.site-footer h2 {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--c-white);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__logo img {
  width: 5rem;
  height: 5rem;
}

.social {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--c-white);
  border-radius: 3px;
}

.social svg {
  width: 1rem;
  height: 1rem;
  fill: var(--c-black);
}

.social a:hover {
  background: var(--c-blue);
}

.social a:hover svg {
  fill: var(--c-white);
}

.site-footer__bottom {
  background: var(--c-blue);
}

.site-footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 2.5rem;
  padding-block: 1.25rem;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 300;
}

.site-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.875rem;
}

@media (min-width: 768px) {
  .site-footer__main {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__logo {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1025px) {
  .site-footer__main {
    grid-template-columns: repeat(3, 1fr) auto;
  }

  .site-footer__logo {
    grid-column: auto;
  }

  .site-footer__bottom ul {
    margin-left: 5rem;
  }
}

/* ---------- Error pages ---------- */
.error-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Entrance animation (CSS only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    animation: fade-up 0.8s ease both;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(1.875rem);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel.is-enhanced .carousel__track,
  .faq summary::after {
    transition: none;
  }
}

/* Subscription page: tiers, journeys, white cards on grey */
.card--white {
  background: var(--c-white);
}

.tiers {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 1025px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tier {
  padding: 2rem;
  background: var(--c-white);
}

.tier__kicker {
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-blue);
}

.tier__badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  background: var(--c-grey);
}

.tier__name {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
  hyphens: auto; /* long German names ("Individualentwicklung") on narrow phones */
  overflow-wrap: break-word;
}

.tier__price {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-black);
}

.tier__price span {
  font-size: 1rem;
  font-weight: 400;
}

/* directly below the price (p margin is 1em of the 2rem price) */
.tier__price:has(+ .tier__from-note:not([hidden])) {
  margin-bottom: 0.25rem;
}

.tier__from-note {
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

/* Tier configurator (tier-config.js): the checked options add surcharges to the tier prices.
   Hidden without JS ([hidden] until the script runs); the lead text names the surcharges.
   A filter bar: each question is a <details> chip (short label + current answer). Its panel
   opens full width below the bar and pushes the cards down (the script reserves its height
   as margin), so options and prices are visible at the same time. */
.tier-config {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 var(--gap);
}

.tier-config[hidden],
.tier-config [hidden] {
  display: none;
}

.tier-config__group {
  min-width: 0;
}

.tier-config__summary {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.375rem;
  list-style: none;
  background: var(--c-white);
  border: 1px solid var(--c-white);
  cursor: pointer;
}

.tier-config__summary::-webkit-details-marker {
  display: none;
}

.tier-config__summary:hover,
.tier-config__group[open] > .tier-config__summary {
  border-color: var(--c-blue);
}

/* chevron: down when closed, up when open */
.tier-config__summary::after {
  content: "";
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  margin: -0.25rem 0 0 0.375rem;
  border-right: 2px solid var(--c-blue);
  border-bottom: 2px solid var(--c-blue);
  transform: rotate(45deg);
}

.tier-config__group[open] > .tier-config__summary::after {
  margin-top: 0.25rem;
  transform: rotate(-135deg);
}

.tier-config__value {
  font-weight: 700;
  color: var(--c-black);
}

.tier-config__value.is-empty {
  font-weight: 400;
  color: var(--c-blue);
}

/* panel of the open chip: full width right below the bar */
.tier-config__fieldset {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  min-width: 0;
  margin: 0;
  padding: 1rem 1.25rem 1.125rem;
  background: var(--c-white);
  border: 0;
  border-top: 0.25rem solid var(--c-blue);
}

.tier-config__legend {
  float: left;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  font-weight: 700;
  line-height: 1.5rem;
  color: var(--c-black);
}

.tier-config__legend + * {
  clear: both;
}

label.tier-config__legend {
  display: block;
  float: none;
}

.tier-config__hint {
  max-width: 45rem;
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.tier-config__select {
  max-width: 100%;
  min-height: 3rem;
  padding: 0.625rem 1rem;
  font: inherit;
  color: var(--c-text);
  background: var(--c-white);
  border: 1px solid var(--c-text);
  border-radius: 0;
  cursor: pointer;
  accent-color: var(--c-blue);
}

.tier-config__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.75rem;
}

.tier-config__option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
}

.tier-config__option input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--c-blue);
}

.tier-config__notes {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 var(--gap);
}

.tier-config__notes:not(:has(> :not([hidden]))) {
  display: none;
}

.tier-config__note[hidden] {
  display: none;
}

.tier-config__note {
  max-width: 45rem;
  margin: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5rem;
  background: var(--c-white);
  border-left: 0.25rem solid var(--c-blue);
}

.tier__price .tier__amount {
  font-size: inherit;
  font-weight: inherit;
}

/* "Auf Anfrage" instead of an amount: smaller, without "/ Monat" */
.tier__price.is-quote {
  font-size: 1.5rem;
}

.tier__price.is-quote > span:not(.tier__amount) {
  display: none;
}

.tier__for {
  margin-block: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.tier .icon-list + .tier__more {
  margin-top: 1.25rem;
}

.tier__more {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.tier .icon-list li {
  align-items: flex-start;
}

.tier .icon-list svg {
  margin-top: 0.25rem;
}

/* Spacer: vertical breathing room between blocks inside a section */
.spacer-top {
  margin-top: 2.5rem;
}

@media (min-width: 1025px) {
  .spacer-top {
    margin-top: 3.5rem;
  }
}

/* Test month: promo box below the module cards */
.trial {
  --grad-glow: rgb(255 255 255 / 22%);
  box-shadow: var(--shadow);
}

.trial h3 {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
}

.trial__list {
  margin-block: 1rem;
}

.trial__list li {
  font-size: var(--fs-text);
}

.trial .icon-list svg {
  fill: var(--c-white);
}

.trial__nowrap {
  white-space: nowrap;
}

.trial__fine {
  font-size: 0.8125rem;
  line-height: 1.25rem;
  opacity: 0.85;
}

/* Tier shades: one hue, darker = higher tier */
.tier-swatch {
  flex: none;
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 0.1875rem;
}

.tier-swatch--betreuung,
.timeline__seg--betreuung {
  background: rgb(0 19 255 / 18%);
}

.tier-swatch--optimierung,
.timeline__seg--optimierung {
  background: rgb(0 19 255 / 40%);
}

.tier-swatch--individualentwicklung,
.timeline__seg--individualentwicklung {
  background: var(--c-blue);
}

/* Scope of a month of Individualentwicklung: short line in its card + panel below the cards */
.tier__scope {
  margin: -0.5rem 0 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5rem;
  background: var(--c-grey);
}

/* a button that looks like a text link (opens a dialog) */
.link-button {
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

.tier__scope .link-button {
  white-space: nowrap;
}

/* "Größen und Beispiele" as a modal <dialog> */
.tier-scope {
  width: min(62rem, 100% - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 2rem 1.25rem;
  overflow-y: auto;
  color: var(--c-text);
  background: var(--c-white);
  border: 0;
  border-top: 0.25rem solid var(--c-blue);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .tier-scope {
    padding: 2.5rem;
  }
}

.tier-scope::backdrop {
  background: rgb(0 0 0 / 55%);
}

html:has(.tier-scope[open]) {
  overflow: hidden;
}

.tier-scope .tier__name {
  padding-right: 2.5rem;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.tier-scope__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--c-black);
  background: none;
  border: 0;
  cursor: pointer;
}

.tier-scope__close:hover {
  background: var(--c-grey);
}

.tier-scope__close svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.tier-scope__lead {
  max-width: 45rem;
  margin-bottom: 1.5rem;
}

.scope-points h3 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--c-black);
}

.scope-table-wrap {
  overflow-x: auto;
}

.scope-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-white);
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.scope-table th,
.scope-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-grey);
}

.scope-table thead th {
  color: var(--c-black);
  border-bottom: 2px solid var(--c-blue);
}

.scope-table tbody th {
  color: var(--c-black);
  white-space: nowrap;
}

.scope-points {
  display: grid;
  gap: var(--gap);
  margin-top: 2.5rem;
}

@media (min-width: 1025px) {
  .scope-points {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scope-points p,
.scope-note {
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.scope-note {
  max-width: 45rem;
  margin-top: 2rem;
}

.journeys {
  display: grid;
  gap: 2.5rem;
}

.journey__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.journey__head h3 {
  margin: 0;
}

.journey__sum {
  font-size: 0.9375rem;
}

/* 6 months = the minimum term; month 1 (test month) is outlined */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 0.875rem;
  gap: 0.1875rem;
  margin-bottom: 1rem;
}

/* Position by class: --at-N = start month, --N = length, --row-N = track (1 = Grundpaket, 2+ = modules) */
.timeline__seg {
  grid-column: var(--from, auto) / span var(--span, 1);
  grid-row: var(--row, 1);
  border-radius: 0.1875rem;
}

.timeline__seg--betreuung.timeline__seg--trial {
  background: none;
  box-shadow: inset 0 0 0 2px rgb(0 19 255 / 35%);
}

.timeline__seg--row-2 { --row: 2; }
.timeline__seg--row-3 { --row: 3; }

.timeline__seg--at-1 { --from: 1; }
.timeline__seg--at-2 { --from: 2; }
.timeline__seg--at-3 { --from: 3; }
.timeline__seg--at-4 { --from: 4; }
.timeline__seg--at-5 { --from: 5; }
.timeline__seg--at-6 { --from: 6; }

.timeline__seg--1 { --span: 1; }
.timeline__seg--2 { --span: 2; }
.timeline__seg--3 { --span: 3; }
.timeline__seg--4 { --span: 4; }
.timeline__seg--5 { --span: 5; }
.timeline__seg--6 { --span: 6; }

.journey__steps {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.5rem;
}

.journey__steps li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.5rem;
}

/* Description on its own line, aligned with the text after the swatch */
.journey__desc {
  flex-basis: 100%;
  padding-left: 1.375rem;
}

/* Running text in the timelines: about 60 characters per line */
.journey__note,
.journey__steps li,
.journeys__note {
  max-width: 60ch;
}

.journeys__note {
  margin-top: 2rem;
  font-size: 0.8125rem;
}

.journey__note {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

/* ---------- Gradient surfaces ----------
   Background presets for large colour areas (hero, blue sections), dark blue to
   brand blue by default. Combine with .section--blue for white text, e.g.
   class="section section--blue bg-gradient bg-gradient--bright".
   Presets: --deep (default), --bright, --glow, --reverse, --vertical; they can be
   combined. New presets only set the custom properties below (no inline styles:
   the CSP forbids them). White text stays at least 4.5:1 on every stop. */
.bg-gradient {
  --grad-angle: 135deg;
  --grad-from: var(--c-blue-dark);
  --grad-to: var(--c-blue);
  --grad-glow: transparent;
  --grad-glow-at: 85% 20%;
  background-color: var(--c-blue);
  background-image:
    radial-gradient(circle at var(--grad-glow-at), var(--grad-glow), transparent 60%),
    linear-gradient(var(--grad-angle), var(--grad-from), var(--grad-to));
}

.bg-gradient--deep {
  --grad-from: var(--c-blue-dark);
  --grad-to: var(--c-blue);
}

.bg-gradient--bright {
  --grad-from: var(--c-blue);
  --grad-to: var(--c-blue-light);
}

.bg-gradient--glow {
  --grad-glow: rgb(69 83 255 / 70%);
}

.bg-gradient--reverse {
  --grad-angle: 315deg;
}

.bg-gradient--vertical {
  --grad-angle: 180deg;
}
