/* evolutech.io: ruhige Fläche, weiche Farbkacheln (aus Entwurf 2).
   Basis aus Entwurf 1 (Archivo, rechteckige Ordnung), Farbe aus dem alten Auftritt:
   Blau und Apricot, nur als Verlaufsflächen und nie als Textverlauf. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations');
  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: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  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;
}

:root {
  --bg: #ecebe8;
  --card: #f8f8f6;
  --chip: #efefec;
  --ink: #16181b;
  --ink-2: #474b52;
  --meta: #686d75;
  --quiet: #85898f;
  --line: #dedcd7;
  --line-2: #cfcdc7;

  --blue: #4a5ff0;
  --blue-deep: #3346d6;
  --blue-soft: #aab6ff;
  --apricot: #ff7a4d;
  --apricot-soft: #ffc4a3;
  --apricot-ink: #3a160a;

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(16px, 3.6vw, 48px);
  --section: clamp(96px, 11vw, 160px);
  --r-card: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--quiet) var(--bg);
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--blue);
}
::selection {
  background: color-mix(in srgb, var(--blue) 20%, transparent);
  color: var(--ink);
}
h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}

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

h1,
h2,
h3 {
  font-weight: 520;
  font-stretch: 104%;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
h2 {
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.04;
}
/* Zweiter Satz einer Überschrift tritt zurück, ganzer Satz statt Einzelwort */
.soft {
  color: var(--quiet);
}
.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
  text-wrap: pretty;
}

.card {
  background: var(--card);
  border-radius: var(--r-card);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 560;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease-out, transform 0.16s var(--ease-out), border-color 0.16s ease-out;
}
.btn:hover {
  background: #2c3036;
}
.btn:active {
  transform: translateY(1px);
}
.btn--light {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn--light:hover {
  background: #fff;
  border-color: var(--line-2);
}
.textlink {
  font-weight: 560;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color 0.16s ease-out, color 0.16s ease-out;
}
.textlink:hover {
  color: var(--blue-deep);
  text-decoration-color: currentColor;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- Kopfzeile ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 80px;
}
.top__logo {
  color: var(--ink);
  flex: none;
}
.top__logo svg {
  height: 22px;
  width: auto;
}
.top__nav {
  display: flex;
  gap: 2px;
  font-size: 15px;
}
.top__nav a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.16s ease-out, background-color 0.16s ease-out;
}
.top__nav a:hover {
  color: var(--ink);
  background: var(--card);
}
.top__end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.top__lang {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}
.top__lang:hover {
  color: var(--ink);
}
.top .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}
.top__menu {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(56px, 8vw, 112px);
  text-align: center;
}
.hero .chip {
  background: var(--card);
}
.hero h1 {
  margin: 28px auto 0;
  max-width: 17ch;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero .lead {
  margin: 28px auto 0;
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

/* ---------- Kachelraster ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 14px;
  margin-top: clamp(56px, 7vw, 88px);
  text-align: left;
}
.tile {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-card);
  background: var(--card);
  min-width: 0;
}
.tile__label {
  font-size: 14px;
  color: var(--meta);
}
.tile--project {
  grid-column: 1 / span 7;
  grid-row: span 2;
}
.tile--warm {
  grid-column: 8 / span 5;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--apricot-ink);
  background:
    radial-gradient(70% 90% at 82% 62%, #ff6b3d 0%, rgba(255, 107, 61, 0) 70%),
    radial-gradient(60% 70% at 18% 8%, #d9d3f6 0%, rgba(217, 211, 246, 0) 70%),
    linear-gradient(160deg, #ffb48a 0%, #ff9a66 55%, #ffc08f 100%);
}
.tile--warm .tile__label {
  color: color-mix(in srgb, var(--apricot-ink) 78%, transparent);
}
.tile--quote {
  grid-column: 8 / span 5;
}
.tile--cool {
  grid-column: 1 / span 4;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(70% 80% at 78% 18%, #8e9dff 0%, rgba(142, 157, 255, 0) 70%),
    radial-gradient(80% 90% at 12% 100%, #2f40c8 0%, rgba(47, 64, 200, 0) 70%),
    linear-gradient(150deg, #4b5ff0 0%, #3a4fe2 100%);
}
.tile--cool .tile__label {
  color: rgba(255, 255, 255, 0.82);
}
.tile--systems {
  grid-column: 5 / span 8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

/* Projektverlauf */
.proj__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.proj__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 24, 27, 0.06), 0 4px 12px rgba(22, 24, 27, 0.05);
}
.proj__mark svg {
  width: 16px;
  height: 16px;
}
.proj__title {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.proj__steps {
  display: grid;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 16px;
  padding-bottom: 26px;
}
.step:last-child {
  padding-bottom: 0;
}
.step::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 38px;
  bottom: 4px;
  width: 1.5px;
  background: var(--line-2);
}
.step:last-child::before {
  display: none;
}
.step__dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.step__dot svg {
  width: 14px;
  height: 14px;
}
.step__text {
  padding-top: 5px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.step .chip {
  margin-top: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 24, 27, 0.05);
}
.step--now .step__dot {
  background: transparent;
  border: 1.5px solid var(--line-2);
  border-top-color: var(--ink);
}
.step--now .step__text {
  color: var(--quiet);
}
@media (prefers-reduced-motion: no-preference) {
  .step--now .step__dot {
    animation: spin 1.4s linear infinite;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Punktmatrix-Zahlen */
.dots {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.dots svg {
  height: clamp(64px, 6vw, 82px);
  width: auto;
}
.dots circle {
  fill: currentColor;
}
.dots__unit {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  padding-bottom: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .dots circle {
    animation: dot 0.5s var(--ease-out) both;
    animation-delay: calc(var(--i) * 14ms + 0.3s);
  }
}
@keyframes dot {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
}
.dots circle {
  transform-box: fill-box;
  transform-origin: center;
}
.tile__big {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.4;
  max-width: 28ch;
}

.tile--quote p {
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 480;
}
.tile--quote p + p {
  margin-top: 6px;
}
.tile--quote .tile__label {
  margin-bottom: 18px;
}

.tile--systems h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.systems__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.systems__chips .chip {
  background: #fff;
  padding: 11px 16px;
  font-size: 15px;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(22, 24, 27, 0.05);
}

/* ---------- Leistungen ---------- */
.svc {
  padding-top: var(--section);
}
.svc__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 56px;
  align-items: end;
}
.svc__tabs {
  display: none;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 6px;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--card);
}
.js .svc__tabs {
  display: flex;
}
.svc__tab {
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 15.5px;
  font-weight: 520;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease-out, color 0.16s ease-out;
}
.svc__tab:hover {
  color: var(--ink);
  background: var(--chip);
}
.svc__tab[aria-selected='true'] {
  background: var(--ink);
  color: #fff;
}
.svc__panels {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.js .svc__panel[hidden] {
  display: none;
}
.svc__panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 4vw, 56px);
}
.svc__panel h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
}
.svc__sub {
  margin-top: 6px;
  color: var(--quiet);
  font-size: clamp(18px, 1.6vw, 21px);
  letter-spacing: -0.015em;
}
.svc__text {
  margin-top: 24px;
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.svc__result {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e9ecff 0%, #fde9de 100%);
}
.svc__result dt,
.svc__label {
  font-size: 14px;
  color: var(--meta);
  margin-bottom: 8px;
}
.svc__result dd {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.svc__side {
  display: grid;
  align-content: start;
  gap: 32px;
}
.svc__list li {
  position: relative;
  padding: 0 0 12px 26px;
  font-size: 16.5px;
  line-height: 1.45;
}
.svc__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.svc__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Praxis ---------- */
.practice {
  padding-top: var(--section);
}
.practice__panel {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: clamp(12px, 1.6vw, 20px);
}
.practice__item {
  padding: clamp(20px, 2.4vw, 32px);
}
.practice__item:nth-child(-n + 3) {
  border-bottom: 1px solid var(--line);
}
.practice__item:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--line);
}
.practice__item dt {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 540;
  letter-spacing: -0.012em;
}
.practice__item dd {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Warum wir ---------- */
.why {
  padding-top: var(--section);
}
.why h2 {
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.02;
  max-width: 18ch;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
}
.why__grid dt {
  font-size: 18.5px;
  line-height: 1.3;
  font-weight: 540;
}
.why__grid dd {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Kontakt ---------- */
.contact {
  padding: var(--section) 0 clamp(64px, 8vw, 112px);
}
.contact__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 5vw, 72px);
  border-radius: 36px;
  background:
    radial-gradient(520px 380px at 0% 0%, rgba(74, 95, 240, 0.16) 0%, rgba(74, 95, 240, 0) 70%),
    radial-gradient(520px 380px at 100% 100%, rgba(255, 122, 77, 0.18) 0%, rgba(255, 122, 77, 0) 70%),
    var(--card);
}
.contact h2 {
  font-size: clamp(30px, 3.4vw, 46px);
}
.contact .lead {
  margin-top: 20px;
}
.contact__points {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.contact__points li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
}
.contact__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.contact__mail {
  display: inline-block;
  margin-top: 32px;
  font-size: 19px;
}
.form {
  display: grid;
  gap: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
}
.field__label {
  font-size: 14.5px;
  font-weight: 520;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-2);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent);
}
.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form .btn {
  justify-self: start;
  min-width: 220px;
}

/* ---------- Fußzeile ---------- */
.foot {
  padding: 0 0 40px;
}
.foot__in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 40px;
  padding-top: 56px;
  border-top: 1px solid var(--line-2);
}
.foot__logo svg {
  height: 22px;
  width: auto;
}
.foot__claim {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 15.5px;
  color: var(--ink-2);
}
.foot h2 {
  font-size: 15px;
  font-weight: 560;
  letter-spacing: 0;
  font-stretch: 100%;
  margin-bottom: 14px;
}
.foot ul {
  display: grid;
  gap: 8px;
  font-size: 15.5px;
}
.foot a {
  color: var(--ink-2);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot__bar {
  margin-top: 56px;
  font-size: 14px;
  color: var(--meta);
}

/* ---------- Responsiv ---------- */
@media (max-width: 1023px) {
  .top__nav {
    display: none;
  }
  .top__menu {
    display: block;
    position: relative;
  }
  .top__menu summary {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card);
    cursor: pointer;
    list-style: none;
  }
  .top__menu summary::-webkit-details-marker {
    display: none;
  }
  .top__menu-panel {
    position: absolute;
    right: 0;
    top: 52px;
    display: grid;
    min-width: 220px;
    padding: 8px;
    background: var(--card);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(22, 24, 27, 0.12);
  }
  .top__menu-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
  }
  .top__menu-panel a:hover {
    background: var(--chip);
  }
  .tile--project,
  .tile--warm,
  .tile--quote,
  .tile--cool,
  .tile--systems {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .tile--warm,
  .tile--cool {
    grid-column: span 6;
  }
  .tile--quote {
    grid-column: 1 / -1;
  }
  .svc__head,
  .svc__panel,
  .contact__panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .practice__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .practice__item:nth-child(n) {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .practice__item:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .practice__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot__in {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 719px) {
  body {
    font-size: 16px;
  }
  .top__in {
    gap: 16px;
    height: 68px;
  }
  .top__lang {
    display: none;
  }
  .top .btn {
    padding: 0 16px;
  }
  .hero h1 {
    font-size: clamp(34px, 9.6vw, 44px);
  }
  .tile--warm,
  .tile--cool {
    grid-column: 1 / -1;
    min-height: 220px;
  }
  /* Reiter werden zur waagerecht scrollbaren Leiste */
  .js .svc__tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .js .svc__tabs::-webkit-scrollbar {
    display: none;
  }
  .svc__panel {
    padding: 24px;
  }
  .practice__panel,
  .why__grid,
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .practice__item:nth-child(n) {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .practice__item:last-child {
    border-bottom: 0;
  }
  .contact__panel {
    border-radius: 28px;
    padding: 24px;
  }
  .foot__in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form .btn {
    width: 100%;
  }
}

/* ---------- Korrekturen nach Sichtprüfung ---------- */
.tile--quote .tile__label {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 400;
}
a.chip {
  text-decoration: none;
  transition: background-color 0.16s ease-out, box-shadow 0.16s ease-out;
}
a.chip:hover {
  background: var(--chip);
}

/* ---------- Hero-Aura: weiche Farbwolke aus Blau, Lavendel und Apricot ---------- */
.hero {
  position: relative;
  isolation: isolate;
}
.hero__in {
  position: relative;
}
.hero__aura {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: -80px;
  height: min(980px, 118vh);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.hero__aura span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero__aura .a1 {
  width: 620px;
  height: 520px;
  left: calc(50% - 760px);
  top: 120px;
  background: radial-gradient(closest-side, rgba(74, 95, 240, 0.55), rgba(74, 95, 240, 0));
}
.hero__aura .a2 {
  width: 600px;
  height: 520px;
  left: calc(50% + 180px);
  top: 60px;
  background: radial-gradient(closest-side, rgba(255, 122, 77, 0.55), rgba(255, 122, 77, 0));
}
.hero__aura .a3 {
  width: 560px;
  height: 420px;
  left: calc(50% - 280px);
  top: -60px;
  background: radial-gradient(closest-side, rgba(190, 180, 255, 0.6), rgba(190, 180, 255, 0));
}
.hero__aura .a4 {
  width: 520px;
  height: 420px;
  left: calc(50% + 40px);
  top: 420px;
  background: radial-gradient(closest-side, rgba(255, 176, 140, 0.45), rgba(255, 176, 140, 0));
}
@media (prefers-reduced-motion: no-preference) {
  .hero__aura .a1 { animation: drift-a 22s ease-in-out infinite alternate; }
  .hero__aura .a2 { animation: drift-b 26s ease-in-out infinite alternate; }
  .hero__aura .a3 { animation: drift-c 19s ease-in-out infinite alternate; }
  .hero__aura .a4 { animation: drift-a 24s ease-in-out infinite alternate-reverse; }
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(140px, 60px, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-160px, 90px, 0) scale(0.92); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(0.95); }
  to { transform: translate3d(60px, 110px, 0) scale(1.15); }
}
/* Zweiter Satz auf der Farbwolke etwas dunkler, damit er lesbar bleibt */
.hero h1 .soft {
  color: #6f747b;
}
.hero .chip {
  background: rgba(248, 248, 246, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (max-width: 719px) {
  .hero__aura {
    height: 760px;
  }
  .hero__aura span {
    filter: blur(60px);
  }
  .hero__aura .a1 { left: -260px; top: 160px; width: 420px; height: 380px; }
  .hero__aura .a2 { left: auto; right: -240px; top: 40px; width: 420px; height: 380px; }
  .hero__aura .a3 { left: calc(50% - 200px); top: -80px; width: 400px; height: 320px; }
  .hero__aura .a4 { left: calc(50% - 120px); top: 380px; width: 360px; height: 300px; }
}
.top {
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
@media (max-width: 719px) {
  .hero__aura span {
    opacity: 1;
  }
  .hero__aura .a1 { background: radial-gradient(closest-side, rgba(74, 95, 240, 0.7), rgba(74, 95, 240, 0)); }
  .hero__aura .a2 { background: radial-gradient(closest-side, rgba(255, 122, 77, 0.7), rgba(255, 122, 77, 0)); }
}

/* =====================================================================
   Seitenweite Bausteine (Unterseiten, Navigation, Rechtliches)
   ===================================================================== */

/* Logo in der Navigation größer */
.top__logo svg {
  height: 28px;
}
@media (max-width: 719px) {
  .top__logo svg {
    height: 24px;
  }
}

/* Leistungen-Menü */
.dd {
  position: relative;
}
.dd__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.16s ease-out, background-color 0.16s ease-out;
}
.dd__trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s var(--ease-out);
}
.dd:hover .dd__trigger,
.dd.open .dd__trigger,
.dd__trigger[aria-current='page'] {
  color: var(--ink);
  background: var(--card);
}
.dd:hover .dd__trigger svg,
.dd.open .dd__trigger svg {
  transform: rotate(180deg);
}
.dd__panel {
  position: absolute;
  left: -8px;
  top: calc(100% + 12px);
  z-index: 30;
  display: grid;
  width: 360px;
  padding: 8px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 2px 6px rgba(22, 24, 27, 0.05), 0 24px 56px rgba(22, 24, 27, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease-out, transform 0.16s var(--ease-out), visibility 0s linear 0.16s;
}
/* Hover-Brücke über die Lücke zwischen Menüpunkt und Panel */
.dd__panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.dd:hover .dd__panel,
.dd.open .dd__panel,
.dd:focus-within .dd__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.dd__panel a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  transition: background-color 0.14s ease-out;
}
.dd__panel a:hover,
.dd__panel a[aria-current='page'] {
  background: var(--chip);
}
.dd__name {
  font-size: 15.5px;
  font-weight: 540;
  color: var(--ink);
}
.dd__lead {
  font-size: 13.5px;
  color: var(--meta);
}
.top__nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--card);
}
.top__menu-panel .mm-sub {
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-2);
}

/* Unterseiten-Hero */
.hero--sub {
  text-align: left;
  padding-top: clamp(48px, 7vw, 96px);
}
.hero--sub .hero__aura {
  height: min(720px, 90vh);
}
.hero--sub h1 {
  margin: 24px 0 0;
  max-width: 20ch;
  font-size: clamp(38px, 5.4vw, 76px);
}
.hero--sub .lead {
  margin: 24px 0 0;
  max-width: 56ch;
}
.hero--sub .hero__actions {
  justify-content: flex-start;
}
a.chip--back {
  text-decoration: none;
  background: rgba(248, 248, 246, 0.8);
}
a.chip--back:hover {
  background: #fff;
}

/* Sektionen */
.sec {
  padding-top: var(--section);
}
.sec--tight {
  padding-top: clamp(56px, 7vw, 96px);
}
.sec__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 56px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec__head h2 {
  max-width: 22ch;
}

/* Ausgangslagen: drei Aussagen */
.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pains .tile p {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.35;
  letter-spacing: -0.018em;
  font-weight: 480;
  text-wrap: pretty;
}
.pains .tile:nth-child(1) {
  background: linear-gradient(160deg, #fbe6da 0%, var(--card) 70%);
}
.pains .tile:nth-child(2) {
  background: linear-gradient(160deg, #e6e9ff 0%, var(--card) 70%);
}
.pains .tile:nth-child(3) {
  background: linear-gradient(160deg, #ece8fb 0%, var(--card) 70%);
}

/* Leistungsdetail auf Unterseiten */
.svc__panel .btn {
  justify-self: start;
}

/* Flächenraster mit Trennlinien (Angebote, Szenarien, Formate, Gründe) */
.grid-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: clamp(12px, 1.6vw, 20px);
}
.grid-panel--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-panel__item {
  padding: clamp(20px, 2.4vw, 32px);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.grid-panel > .grid-panel__item:nth-child(3n + 1) {
  border-left: 0;
}
.grid-panel > .grid-panel__item:nth-child(-n + 3) {
  border-top: 0;
}
.grid-panel--2 > .grid-panel__item:nth-child(n) {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.grid-panel--2 > .grid-panel__item:nth-child(2n + 1) {
  border-left: 0;
}
.grid-panel--2 > .grid-panel__item:nth-child(-n + 2) {
  border-top: 0;
}
.grid-panel__item h3 {
  font-size: 19.5px;
  line-height: 1.28;
  font-weight: 540;
  letter-spacing: -0.012em;
}
.grid-panel__item p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.grid-panel__item .how {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  color: var(--ink);
}
.how__label {
  display: block;
  margin-bottom: 4px;
  font-size: 13.5px;
  color: var(--meta);
}

/* Karten nebeneinander (Szenarien) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cards .tile h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
  font-weight: 520;
  letter-spacing: -0.02em;
}
.cards .tile p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.58;
  color: var(--ink-2);
}

/* Vorgehen: echte Abfolge mit Schrittnummern */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.process__step {
  position: relative;
}
.process__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}
.process__step:last-child .process__num {
  background: linear-gradient(135deg, var(--blue) 0%, var(--apricot) 100%);
}
.process__step h3 {
  font-size: 19.5px;
  line-height: 1.28;
  font-weight: 540;
  letter-spacing: -0.012em;
}
.process__step p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Weitere Kernbereiche */
.more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.more a {
  display: grid;
  gap: 4px;
  padding: 26px 28px;
  border-radius: var(--r-card);
  background: var(--card);
  text-decoration: none;
  transition: background-color 0.16s ease-out, transform 0.2s var(--ease-out);
}
.more a:hover {
  background: #fff;
  transform: translateY(-2px);
}
.more__name {
  font-size: 21px;
  font-weight: 520;
  letter-spacing: -0.02em;
}
.more__lead {
  font-size: 15px;
  color: var(--meta);
}

/* Häufige Fragen */
.faq {
  padding: 8px clamp(20px, 3vw, 36px);
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 0;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 520;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2316181b' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M8 3.5v9M3.5 8h9'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.2s var(--ease-out), background-color 0.16s ease-out;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M8 3.5v9M3.5 8h9'/%3E%3C/svg%3E");
}
.faq summary:hover {
  color: var(--ink-2);
}
.faq details p {
  padding: 0 54px 24px 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 72ch;
}

/* Abschluss-Aufruf */
.cta {
  padding: var(--section) 0 clamp(64px, 8vw, 112px);
}
.cta__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: clamp(56px, 8vw, 112px) clamp(24px, 4vw, 56px);
  border-radius: 36px;
  background: var(--card);
  text-align: center;
}
.cta__panel::before,
.cta__panel::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
}
.cta__panel::before {
  left: -120px;
  top: -140px;
  background: radial-gradient(closest-side, rgba(74, 95, 240, 0.45), rgba(74, 95, 240, 0));
}
.cta__panel::after {
  right: -120px;
  bottom: -160px;
  background: radial-gradient(closest-side, rgba(255, 122, 77, 0.45), rgba(255, 122, 77, 0));
}
.cta__panel h2 {
  max-width: 18ch;
}

/* Rechtstexte */
.legal {
  padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 112px);
}
.prose {
  max-width: 820px;
  padding: clamp(28px, 4vw, 56px);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.prose h2 {
  margin: 40px 0 12px;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.prose h3 {
  margin: 28px 0 8px;
  font-size: 18.5px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p + p,
.prose ul,
.prose ol {
  margin-top: 12px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose ul {
  list-style: disc;
}
.prose li + li {
  margin-top: 6px;
}
.prose strong {
  color: var(--ink);
  font-weight: 560;
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
}
.prose a:hover {
  text-decoration-color: currentColor;
}

/* Terminbuchung */
.booking {
  padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 112px);
}
.booking .card {
  padding: clamp(16px, 3vw, 40px);
  min-height: 320px;
}

/* Rückmeldung des Formulars */
.banner {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.banner strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 560;
}
.banner--ok {
  background: #e7f6ee;
  color: #155a39;
}
.banner--err {
  background: #fdecea;
  color: #8a1f17;
}

@media (max-width: 1023px) {
  .sec__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .pains,
  .cards,
  .more {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-panel > .grid-panel__item:nth-child(n) {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }
  .grid-panel > .grid-panel__item:nth-child(2n + 1) {
    border-left: 0;
  }
  .grid-panel > .grid-panel__item:nth-child(-n + 2) {
    border-top: 0;
  }
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
}
@media (max-width: 719px) {
  .grid-panel,
  .grid-panel--2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-panel > .grid-panel__item:nth-child(n),
  .grid-panel--2 > .grid-panel__item:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .grid-panel > .grid-panel__item:first-child,
  .grid-panel--2 > .grid-panel__item:first-child {
    border-top: 0;
  }
  .process {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero--sub h1 {
    font-size: clamp(32px, 9vw, 42px);
  }
  .faq details p {
    padding-right: 0;
  }
  .cta__panel {
    border-radius: 28px;
  }
}
.foot__cert {
  margin-top: 14px;
  font-size: 14px;
  color: var(--meta);
}
/* Sektionen nach dem Hero liegen über der Farbwolke, damit Karten deckend bleiben */
main > section:not(.hero) {
  position: relative;
  z-index: 1;
}
