/* Schaufenster vision.vision-ml.de — Marke Logo 2027 */

:root {
  --grund: #ECEEF1;
  --flaeche: #FFFFFF;
  --tinte: #15171B;
  --tinte-2: #4A5059;
  --linie: rgba(21, 23, 27, 0.14);
  --blau: #2F6BFF;
  --blau-knopf: #2B66F7; /* Markenblau #2F6BFF eine Spur dunkler, damit weiße Schrift 4,8:1 hat */
  --blau-tief: #1F55D6;
  --cyan: #22D3EE;
  --rand: clamp(16px, 4vw, 56px);
  --breite: 1320px;
  --weich: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scrollbar-color: var(--tinte-2) var(--grund);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--grund); }
::-webkit-scrollbar-thumb { background: var(--tinte-2); border-radius: 10px; border: 2px solid var(--grund); }

::selection { background: var(--blau); color: #fff; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  caret-color: var(--blau);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--blau);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprung {
  position: absolute;
  left: var(--rand);
  top: -100px;
  background: var(--tinte);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
}
.sprung:focus { top: 12px; }

/* Kopf */

.kopf {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 22px var(--rand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.marke { display: inline-flex; color: var(--tinte); min-height: 44px; align-items: center; }
.logo { width: clamp(150px, 22vw, 220px); height: auto; display: block; }

.kopf-nav { display: flex; gap: clamp(4px, 2vw, 24px); }
.kopf-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--tinte);
}
.kopf-nav a span { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.kopf-nav a:hover span { border-bottom-color: currentColor; }

/* Einstieg */

.einstieg {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(48px, 10vw, 136px) var(--rand) clamp(40px, 7vw, 96px);
}

h1, h2, h3 { text-wrap: balance; margin: 0; }

h1 {
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
h1 strong, h2 strong { font-weight: 700; }

.einstieg-text {
  margin: 28px 0 0;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--tinte-2);
}

/* Arbeiten */

.arbeiten {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand) clamp(64px, 9vw, 128px);
}

.arbeiten-titel {
  font-size: 0.9375rem;
  font-weight: 600;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--linie);
}

.kacheln {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 56px);
  padding-top: clamp(28px, 4vw, 48px);
}

.kachel { display: flex; flex-direction: column; min-width: 0; }

.kachel-bildlink { display: block; border-radius: 6px; }

.kachel-bild {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: #d9dde3;
  box-shadow: 0 18px 40px -24px rgba(21, 23, 27, 0.5);
}
.kachel-bild img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--weich);
}
.kachel-bild.handy { background: var(--grund); }
.kachel-bild.handy img {
  width: auto;
  height: 86%;
  max-width: 100%;
  margin: 7% auto 0;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 20px 36px -18px rgba(0, 0, 0, 0.7);
}
.kachel-bildlink:hover .kachel-bild img { transform: scale(1.02); }

.bild-hinweis, .bild-schloss {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(21, 23, 27, 0.78);
  padding: 4px 10px;
  border-radius: 999px;
}
.bild-schloss { left: auto; right: 12px; }
.bild-schloss .icon { width: 1em; height: 1em; }

.kachel-text { padding-top: 22px; display: flex; flex-direction: column; flex: 1; }
.kachel-text h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.kachel-zeile { margin: 8px 0 14px; color: var(--tinte-2); font-size: 0.9375rem; }
.kachel-zeile strong { color: var(--tinte); font-weight: 600; }
.kachel-text p { max-width: 52ch; }
.kachel-text > p:not([class]) { margin: 0; }
.kachel-von { margin: 14px 0 0; font-size: 0.875rem; color: var(--tinte-2); }
.kachel-aktion {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.kachel-leise { font-size: 0.8125rem; color: var(--tinte-2); }
.kachel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 52px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--tinte-2);
}

/* Knöpfe */

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--blau-knopf);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s var(--weich), transform 0.25s var(--weich);
}
.knopf:hover { background: var(--blau-tief); }
.knopf:active { transform: scale(0.97); }
.knopf .icon { transition: transform 0.25s var(--weich); }
.knopf:hover .icon { transform: translateX(3px); }

.knopf-ruhig {
  background: transparent;
  color: var(--tinte);
  box-shadow: inset 0 0 0 1.5px var(--tinte);
}
.knopf-ruhig:hover { background: var(--tinte); color: #fff; }
.knopf-ruhig:hover .icon { transform: none; }

/* Anfrage */

.anfrage {
  background: var(--tinte);
  color: #fff;
  padding: clamp(64px, 10vw, 140px) var(--rand);
  text-align: center;
}
.anfrage h2 {
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 16ch;
  margin: 0 auto;
}
.anfrage p { margin: 20px auto 36px; max-width: 44ch; color: #C3C8D0; }
.anfrage .knopf:focus-visible { outline-color: var(--cyan); }

/* Fuß */

.fuss {
  background: var(--tinte);
  color: #C3C8D0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px max(var(--rand), calc((100% - var(--breite)) / 2 + var(--rand))) 96px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  font-size: 0.875rem;
}
.fuss nav { display: flex; gap: 20px; }
.fuss a { display: inline-flex; align-items: center; min-height: 44px; }
.fuss a:hover { color: #fff; }
.fuss :focus-visible { outline-color: var(--cyan); }

/* Nach oben */

.nach-oben {
  position: fixed;
  right: var(--rand);
  bottom: 20px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--flaeche);
  color: var(--tinte);
  box-shadow: 0 6px 18px -8px rgba(21, 23, 27, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--weich), transform 0.3s var(--weich), visibility 0.3s;
}
.nach-oben.zeigen { opacity: 1; visibility: visible; transform: none; }

/* Das eine Markenelement: die Kettenglieder zeichnen sich beim Laden */

.js-an .glied {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: glied-zeichnen 1.1s var(--weich) 0.15s forwards;
}
.js-an .glied-2 { animation-delay: 0.45s; }
.js-an .wort { opacity: 0; animation: wort-ein 0.9s var(--weich) 0.75s forwards; }

@keyframes glied-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes wort-ein { to { opacity: 1; } }

/* Handy */

@media (max-width: 860px) {
  .kacheln { grid-template-columns: minmax(0, 1fr); }
  .kopf-nav .nur-gross { display: none; }
}

@media (max-width: 420px) {
  .kopf { padding-top: 14px; padding-bottom: 14px; gap: 8px; }
  .logo { width: 128px; }
  .kopf-nav a { font-size: 0.875rem; }
  .knopf { width: 100%; justify-content: center; }
}
