/* Klar ID — public website. Standalone; shares only the brand identity with the product. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0B0F14;
  --red: #E30613;
  --red-hover: #C70511;
  --gray-50: #F7F8FA;
  --gray-200: #E5E7EB;
  --text: #6B7280;
  --white: #FFFFFF;

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 8px;
  --radius-lg: 16px;

  --h1: clamp(48px, 9vw, 72px);
  --h2: clamp(30px, 4.6vw, 40px);
  --h3: clamp(20px, 2.4vw, 24px);
  --body: clamp(16px, 1.6vw, 18px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { color: var(--black); margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: var(--h1); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: var(--h2); line-height: 1.15; }
h3 { font-size: var(--h3); line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }

/* No mouse-click frames; subtle, rounded ring for keyboard users only. */
:focus { outline: none; }
:focus-visible { outline: 2px solid rgba(227, 6, 19, .45); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(227, 6, 19, .14); }

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

/* Text helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lead { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; }
.section-head { max-width: 680px; display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.red { color: var(--red); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header .wrap { height: 72px; display: flex; align-items: center; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 24px; width: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; width: auto;
  padding: 13px 22px; border-radius: var(--radius);
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; border: 0;
  background: var(--red); color: var(--white);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--red-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--quiet { background: var(--white); color: var(--black); }
.btn--quiet:hover { background: var(--gray-50); }

/* Images: always a finished-looking surface, even if the file is missing. */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  --fallback: linear-gradient(160deg, #EEF1F4 0%, #D4DAE0 55%, #C3CBD3 100%);
  background-color: #D9DEE3;
  background-image: var(--fallback);
  background-size: cover; background-position: var(--pos, center), center; background-repeat: no-repeat;
}

/* Hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 var(--section); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__text { display: grid; gap: 22px; justify-items: start; }
.hero h1 { margin-top: 6px; }
.hero h1 .alles { color: var(--black); }
.hero h1 .klar { color: var(--red); }
.hero__sub { color: var(--black); font-size: clamp(20px, 2.3vw, 24px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; max-width: 30ch; }
.hero__copy { max-width: 46ch; }
.hero__cta { margin-top: 10px; }
.hero__photo { aspect-ratio: 5 / 4; --pos: 62% 60%; }

/* Problem */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px); }
.duo__item { display: grid; gap: 20px; align-content: start; }
.duo__item .photo { aspect-ratio: 3 / 2; }
.duo__label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--black); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 22px; }
.list li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 8px; height: 2px; border-radius: 2px; background: var(--red); }

/* Connection + device mockup */
.connect { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.connect__text { display: grid; gap: 18px; }
.connect__lines { display: grid; gap: 6px; margin-top: 4px; }
.connect__lines p { font-size: var(--body); }
.connect__key { color: var(--black); font-weight: 600; margin-top: 8px; }
.connect__key::before { content: ""; display: inline-block; width: 18px; height: 2px; border-radius: 2px; background: var(--red); vertical-align: middle; margin: -2px 10px 0 0; }
.flow { display: grid; gap: 14px; margin-top: 10px; }
.flow__row { display: flex; align-items: center; gap: 14px; color: var(--black); font-weight: 600; font-size: 16px; }
.flow__row span.dot { width: 36px; height: 36px; border-radius: 10px; background: var(--white); display: grid; place-items: center; flex: none; box-shadow: 0 1px 2px rgba(11, 15, 20, .06); }
.flow__row svg { width: 20px; height: 20px; }
.flow__row small { display: block; color: var(--text); font-weight: 400; font-size: 15px; }

.devices { position: relative; padding: 0 0 6% 0; }
.laptop { width: 88%; }
.laptop__screen { background: #12171D; border-radius: 14px 14px 0 0; padding: 2.2% 2.2% 1.6%; }
.laptop__base { height: 14px; margin: 0 -5%; background: linear-gradient(#D9DDE2, #BCC2C9); border-radius: 0 0 14px 14px; position: relative; }
.laptop__base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; transform: translateX(-50%); background: #A9B0B8; border-radius: 0 0 6px 6px; }
.ui { background: var(--white); border-radius: 6px; aspect-ratio: 16 / 10; display: grid; grid-template-columns: 22% 1fr; overflow: hidden; font-size: clamp(8px, 1vw, 12px); color: var(--text); }
.ui__side { background: var(--gray-50); padding: 9% 10%; display: grid; align-content: start; gap: 9%; }
.ui__brand { display: flex; align-items: center; margin-bottom: 14%; }
.ui__brand img { height: 1.15em; width: auto; }
.ui__nav { height: .7em; border-radius: 4px; background: var(--gray-200); }
.ui__nav.is-active { background: rgba(227, 6, 19, .18); }
.ui__main { padding: 5% 6%; display: grid; grid-template-rows: auto 1fr auto; gap: 6%; }
.ui__title { color: var(--black); font-weight: 700; font-size: 1.5em; letter-spacing: -0.02em; }
.ui__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; align-items: center; }
.ui__bike { background: var(--gray-50); border-radius: 6px; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.ui__bike svg { width: 70%; height: auto; }
.ui__lines { display: grid; gap: .8em; }
.ui__line { height: .7em; border-radius: 4px; background: var(--gray-200); }
.ui__line.is-strong { background: var(--black); height: .9em; width: 70%; }
.ui__line.is-red { background: var(--red); width: 40%; }
.ui__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.ui__tile { background: var(--gray-50); border-radius: 6px; padding: 8% 10%; display: grid; gap: .5em; color: var(--black); font-weight: 600; font-size: .95em; }
.ui__tile svg { width: 1.6em; height: 1.6em; }

.phone { position: absolute; right: 0; bottom: 0; width: 27%; background: #12171D; border-radius: 22px; padding: 2.4% 1.6%; box-shadow: 0 20px 40px -18px rgba(11, 15, 20, .35); }
.phone__screen { background: var(--white); border-radius: 15px; aspect-ratio: 9 / 18.5; padding: 14% 10% 10%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 7%; font-size: clamp(7px, .8vw, 10px); }
.phone__screen .ui__bike { aspect-ratio: 4 / 3; }
.phone__row { display: flex; align-items: center; gap: 6%; padding: 8% 0; }
.phone__row + .phone__row { border-top: 1px solid var(--gray-200); }
.phone__row i { width: 1.6em; height: 1.6em; border-radius: 6px; background: var(--gray-50); flex: none; }
.phone__row b { height: .6em; border-radius: 4px; background: var(--gray-200); flex: 1; }
.phone__fab { justify-self: center; width: 2.8em; height: 2.8em; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.phone__fab svg { width: 50%; height: 50%; }

/* Feature grids */
.solution { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 80px); align-items: stretch; }
.solution .photo { min-height: 100%; aspect-ratio: auto; --pos: 55% 50%; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 48px); }
.features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { display: grid; gap: 12px; align-content: start; }
.feature p { font-size: 16px; }
.icon { width: 52px; height: 52px; border-radius: 12px; background: var(--gray-50); display: grid; place-items: center; margin-bottom: 6px; }
.section--tint .icon { background: var(--white); }
.icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; }

/* Closing */
.closing { padding: 0 0 var(--section); }
.closing__band {
  border-radius: var(--radius-lg); color: var(--white);
  min-height: clamp(380px, 42vw, 520px); display: grid; align-items: end;
  padding: clamp(28px, 5vw, 64px);
  --pos: 50% 50%;
}
.closing__band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 15, 20, 0) 15%, rgba(11, 15, 20, .72) 100%); }
.closing__inner { position: relative; display: grid; gap: 16px; justify-items: start; max-width: min(480px, 44%); }
.closing h2 { color: var(--white); }
.closing .eyebrow { color: var(--white); }
.closing .eyebrow::before { background: var(--red); }
.closing p { color: rgba(255, 255, 255, .86); }
.closing__mail { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.closing__addr { color: var(--white); font-weight: 600; text-decoration: none; }
.closing__addr:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.site-footer { background: var(--gray-50); padding: 48px 0 40px; font-size: 15px; }
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .logo { margin-bottom: 14px; }
.site-footer .logo img { height: 20px; }
.site-footer__by { color: var(--black); font-weight: 600; margin-bottom: 2px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__links { display: flex; gap: 24px; align-items: flex-end; }
.site-footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--gray-200); font-size: 14px; }

/* Legal pages */
.legal { padding: clamp(40px, 7vw, 88px) 0 var(--section); }
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(36px, 6vw, 48px); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 20px; }
.legal address { font-style: normal; color: var(--black); }
.legal a { color: var(--black); text-underline-offset: 3px; }
.placeholder { background: #FFF4D6; color: #6B4E00; border-radius: 4px; padding: 1px 6px; font-size: .92em; }
.note { background: var(--gray-50); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 32px; font-size: 15px; }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--text); text-decoration: none; font-size: 15px; margin-bottom: 20px; }
.back:hover { color: var(--black); }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .connect, .solution { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .solution .photo { aspect-ratio: 16 / 9; min-height: 0; }
  .features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Closing band: photo on top, text below on a matching dark tone, never over the rider. */
  .closing__inner { max-width: 560px; }
  .closing__band { min-height: 0; padding: 300px clamp(24px, 5vw, 48px) clamp(28px, 5vw, 44px); background-color: #141C22; background-size: auto 400px; background-position: 58% 0; }
  .closing__band::before { background: linear-gradient(180deg, rgba(20, 28, 34, 0) 0, rgba(20, 28, 34, 0) 180px, #141C22 390px); }
}
@media (max-width: 720px) {
  .duo { grid-template-columns: 1fr; gap: 48px; }
  .features, .features--4 { grid-template-columns: 1fr; gap: 28px; }
  .feature { grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 4px; }
  .feature .icon { grid-row: span 2; margin: 0; }
  .site-header .wrap { height: 64px; }
  .logo img { height: 22px; }
  .phone { border-radius: 16px; }
  .phone__screen { border-radius: 11px; }
  .laptop__screen { border-radius: 10px 10px 0 0; }
  .laptop__base { height: 9px; }
  .site-footer__links { align-items: flex-start; }
}
.nowrap { white-space: nowrap; }
