/* WP Automobile — static site. Orange WPA branding, Montserrat (self-hosted). */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ee641c;
  --red: #e92e19;
  --gradient: linear-gradient(22deg, #e92e19 0%, #ee641c 100%);
  --orange-ink: #c2410c;   /* orange for small text on light backgrounds (AA) */
  --orange-btn: #cf4a0c;   /* solid button fill, white text passes AA */
  --orange-btn-hover: #b93c08;
  --tint: #fff3ec;
  --ink: #2b2b2e;
  --text: #55565b;
  --soft: #f4f4f5;
  --line: #e4e4e7;
  --white: #fff;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 24px;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--orange-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
}
.skip:focus { top: 16px; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }

.btn--white { background: var(--white); color: var(--orange-ink); }
.btn--white:hover { background: var(--tint); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.85); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

.btn--orange { background: var(--orange-btn); color: var(--white); }
.btn--orange:hover { background: var(--orange-btn-hover); }

.btn--outline { border-color: var(--orange-btn); color: var(--orange-ink); }
.btn--outline:hover { background: var(--tint); }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--white);
  transition: background-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 46px; width: auto; }
.brand__dark { display: none; }

.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); margin-left: auto; }
.nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.92;
}
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.header__cta { padding: 11px 24px; }

/* Solid state: after scrolling on the home page, and always on subpages */
.site-header.is-solid,
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
}
.site-header.is-solid .brand__light,
.site-header.is-scrolled .brand__light { display: none; }
.site-header.is-solid .brand__dark,
.site-header.is-scrolled .brand__dark { display: block; }
.site-header.is-solid .btn--white,
.site-header.is-scrolled .btn--white { background: var(--orange-btn); color: var(--white); }
.site-header.is-solid .btn--white:hover,
.site-header.is-scrolled .btn--white:hover { background: var(--orange-btn-hover); }

.js .site-header { position: fixed; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: var(--white);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(120px, 14vw, 190px);
}
.hero__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: clamp(28px, 3.6vw, 48px);
}

.chip {
  display: table;
  margin-bottom: 22px;
  line-height: 1.4;
  padding: 6px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  grid-column: 1 / -1;
  font-size: clamp(1.625rem, 3.9vw, 3.25rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__lead {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 600;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero__visual { position: relative; }
.hero__visual img { filter: drop-shadow(0 24px 36px rgba(90, 20, 0, 0.35)); }
.hero__laptop { width: 88%; }
.hero__phone {
  position: absolute;
  top: -4%;
  right: 0;
  width: 25%;
}

.hero__wave {
  position: absolute;
  inset: auto 0 -1px 0;
  width: 100%;
  height: clamp(70px, 9vw, 140px);
}
.hero__wave path { fill: var(--white); }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight-top { padding-top: 0; }
.section--soft { background: var(--soft); }

[id] { scroll-margin-top: calc(var(--header-h) - 8px); }

.section__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--orange);
  text-wrap: balance;
}
.section__lead { margin-top: 18px; font-size: 1.0625rem; }

/* ---------- Vorher / Jetzt ---------- */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.panel {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--radius);
  background: var(--soft);
}
.panel--brand {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 24px 48px -20px rgba(233, 46, 25, 0.55);
}

.panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  margin-bottom: 28px;
}
.panel__top img { height: 40px; width: auto; }
.panel--brand .panel__top img { height: 30px; }
.panel__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.panel--brand .panel__tag { color: var(--white); }

.panel h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}
.panel--brand h3 { color: var(--white); }

.points { display: grid; gap: 14px; margin-top: 22px; }
.points li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d7d7da url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 7l8 8M15 7l-8 8'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.panel--brand .points li::before {
  background: rgba(255, 255, 255, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23c2410c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 11.5l3.5 3.5L16 8'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 24px;
  padding: 24px clamp(24px, 3vw, 36px);
  border-left: 5px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--tint);
  color: var(--ink);
}
.notice p { font-weight: 500; }
.notice strong { font-weight: 800; }
.notice .btn { flex: none; }

/* ---------- Use cases ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.case {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--soft);
  overflow: hidden;
}
.case__media {
  display: block;
  aspect-ratio: 5 / 4;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  background: #ebebed;
}
.case__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}
.case__body { padding: 26px 28px 30px; }
.case h3 {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}
.case p { margin-top: 10px; font-size: 0.9688rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 880px;
  margin: 36px auto 0;
}
.chips li {
  padding: 8px 16px;
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--orange-ink);
}

.more {
  margin-top: 28px;
  text-align: center;
  font-weight: 600;
}
.more a { color: var(--orange-ink); text-underline-offset: 4px; }

/* ---------- Wechsel ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 920px;
  margin-inline: auto;
}
.steps .panel .btn { align-self: flex-start; margin-top: auto; }
.steps .panel p { margin-top: 12px; margin-bottom: 28px; }
.panel--brand p { color: var(--white); font-weight: 500; }
.panel__time {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.panel--brand .panel__time { background: rgba(255, 255, 255, 0.2); color: var(--white); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--orange), var(--orange)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--orange), var(--orange)) center / 2.5px 100% no-repeat;
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--orange-ink); }
.faq__a { padding: 0 4px 24px; max-width: 46em; }
.faq__a p + p { margin-top: 12px; }
.faq__a a { color: var(--orange-ink); text-underline-offset: 3px; }
.faq__shot { margin-top: 18px; max-width: 340px; }
.faq__shot img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.35);
}

.contact {
  margin: clamp(44px, 6vw, 72px) auto 0;
  padding: clamp(32px, 4vw, 48px);
  max-width: 900px;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}
.contact h3 { font-size: 1.375rem; font-weight: 800; color: var(--ink); }
.contact p { margin-top: 8px; }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 0.875rem; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand img { height: 40px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { font-weight: 600; text-decoration: none; }
.footer__links a:hover { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Subpages (legal, 404) ---------- */

.page { padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(64px, 8vw, 104px); }
.prose { max-width: 800px; }
.prose h1 {
  margin-bottom: 28px;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--orange);
}
.prose h2 {
  margin: 40px 0 12px;
  font-size: 1.25rem;
  text-transform: none;
  color: var(--ink);
}
.prose h3, .prose h4 {
  margin: 28px 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}
.prose p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 1.3em; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--orange-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--ink); }

.notfound { padding: calc(var(--header-h) + 64px) 0 96px; text-align: center; }
.notfound h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; text-transform: uppercase; color: var(--orange); }
.notfound p { max-width: 36em; margin: 16px auto 0; }
.notfound .btn { margin-top: 32px; }

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-header, .faq summary::after { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

/* headline: one sentence per line (flows on phones) */
@media (min-width: 641px) {
  .hero h1 .line { display: block; }
}

@media (min-width: 961px) {
  /* laptop left, copy right; both under the full-width headline */
  .hero h1 { grid-row: 1; }
  .hero__visual { grid-column: 1; grid-row: 2; }
  .hero__copy { grid-column: 2; grid-row: 2; }
  /* cap-height of the first line sits level with the top edge of the laptop screen */
  .hero__lead { margin-top: calc(18px - 0.45em); }
}

@media (max-width: 1120px) {
  .hero__actions .btn { padding: 12px 22px; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 640px; }
  .cases { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .nav { display: none; }
  .header__cta { margin-left: auto; }
}

@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .brand img { height: 40px; }
  .compare, .steps { grid-template-columns: 1fr; }
  .notice { flex-direction: column; align-items: flex-start; }
  .header__cta { padding: 10px 18px; font-size: 0.8125rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
