:root {
  --bg-teal: #10708c;
  --bg-teal-dark: #28697c;
  --teal-font: #10708c;
  --accent: #fecc00;
  --white: #ffffff;
  --text-dark: #111111;
  --container: 100%;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Figtree", Arial, sans-serif;
  color: var(--white);
  background: var(--bg-teal);
}

body.imprint-a-datenschutz {
  background: #f5f5f5;
}

/* figtree-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/figtree-v9-latin-300.woff2') format('woff2');
}
/* figtree-300italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/figtree-v9-latin-300italic.woff2') format('woff2');
}
/* figtree-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/figtree-v9-latin-regular.woff2') format('woff2');
}
/* figtree-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/figtree-v9-latin-italic.woff2') format('woff2');
}
/* figtree-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/figtree-v9-latin-500.woff2') format('woff2');
}
/* figtree-500italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 500;
  src: url('../fonts/figtree-v9-latin-500italic.woff2') format('woff2');
}
/* figtree-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/figtree-v9-latin-600.woff2') format('woff2');
}
/* figtree-600italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 600;
  src: url('../fonts/figtree-v9-latin-600italic.woff2') format('woff2');
}
/* figtree-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/figtree-v9-latin-700.woff2') format('woff2');
}
/* figtree-700italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/figtree-v9-latin-700italic.woff2') format('woff2');
}
/* figtree-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/figtree-v9-latin-800.woff2') format('woff2');
}
/* figtree-800italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 800;
  src: url('../fonts/figtree-v9-latin-800italic.woff2') format('woff2');
}
/* figtree-900 - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/figtree-v9-latin-900.woff2') format('woff2');
}
/* figtree-900italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 900;
  src: url('../fonts/figtree-v9-latin-900italic.woff2') format('woff2');
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - 15%));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  background: rgba(16, 112, 140, .96);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  /* backdrop-filter: blur(10px); */
}

.topbar__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.hero__logo {
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 auto;
}

header .brand__mark {
  display: block;
  width: clamp(220px, 18vw, 270px);
  height: auto;
}

main .brand__mark {
  width: 80%;
  max-width: 480px;
  height: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__title {
  font-size: clamp(1.5rem, 2.4vw, 2.65rem);
  font-weight: 800;
}

.brand__subtitle {
  margin-top: 0.35rem;
  font-size: clamp(1rem, 1.55vw, 1.55rem);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a { font-weight: 600; }

.nav__cta {
  background: var(--accent);
  border: 3px solid var(--accent);
  color: #184f63;
  padding: 0.8rem 1.2rem;
  padding-left: 3rem;
  border-radius: 999px;
  font-weight: 700 !important;
  transition: all .1s ease-in-out;
  position: relative;
}

.nav__cta:hover {
  background: transparent;
  color: inherit;
}

.nav__cta::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 13px;
  top: 8px;
  width: 30px;
  height: 30px;
  background-image: url(../images/icon-whatsapp-teak-dark.svg);
  background-position: center center;
  background-size: 30px 30px;
  background-repeat: no-repeat;
  transition: all .1s ease-in-out;
}

.nav__cta:hover::before {
  background-image: url(../images/icon-whatsapp-white.svg);
}

/* Nur Desktop: Unterstreichung wie bisher */
@media (min-width: 981px) {
  .nav a:not(.nav__cta) {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
  }

  .nav a:not(.nav__cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
  }

  .nav a:not(.nav__cta):hover::after,
  .nav a:not(.nav__cta):focus-visible::after {
    transform: scaleX(1);
  }
}

/* Mobile Menü: nur Textbreite statt volle Zeile */
@media (max-width: 980px) {
  .nav a:not(.nav__cta) {
    display: inline-block;
    width: fit-content;
    align-self: center;
    padding-bottom: 4px;
    position: relative;
  }

  .nav a.nav__cta {
    display: inline-block;
    width: fit-content;
    align-self: center;
    position: relative;
  }

  .nav a:not(.nav__cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
  }

  .nav a:not(.nav__cta):hover::after,
  .nav a:not(.nav__cta):focus-visible::after {
    transform: scaleX(1);
  }
}


/* Aktiver Menüpunkt */
.nav a:not(.nav__cta).active {
  /* color: var(--accent); */
}
.nav a:not(.nav__cta).active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  width: 46px;
  height: 46px;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease, background-color 0.2s ease;
}

.nav-toggle span:nth-child(1) {
  top: 13px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 29px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding-top: 80px;
  background-color: var(--bg-teal);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 107.5%;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  background-image: url(../images/auto_v3-aus.jpg);
}

.hero::after {
  background-image: url(../images/auto_v3-an.jpg);
  opacity: 0;
}

.hero.hero--blink::after {
  animation: heroHeadlights 10s infinite;
}

@keyframes heroHeadlights {
  0%, 90%, 100% {
    opacity: 0;
  }

  92%, 93% {
    opacity: 1;
  }

  94%, 95% {
    opacity: 0;
  }

  96%, 97% {
    opacity: 1;
  }
}

@supports (min-height: 100svh) {
  .hero {
    min-height: 100svh;
  }
}

.hero__overlay::before,
.hero__overlay::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.035);
  transform: skewY(-12deg);
  pointer-events: none;
}

.hero__overlay::before {
  width: 70vw;
  height: 18vw;
  left: -10vw;
  top: 42%;
}

.hero__overlay::after {
  width: 56vw;
  height: 22vw;
  right: -10vw;
  top: 48%;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1.5rem;
  /* padding-top: 2.3rem; */
  padding-bottom: 1.7rem;
}

.hero__brandline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero__heading h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.4vw, 5.1rem);
  line-height: 0.96;
  font-weight: 800;
}

.hero__subtitle {
  margin: 0.45rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  font-weight: 500;
}

.hero__location-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0;
}

.hero__location-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--accent);
  color: #1e5d71;
  font-weight: 700;
  font-size: clamp(.85rem, 2.0vw, 1.25rem);
  padding: 1.05rem 1.05rem;
  border-radius: 2px 14px;
  min-width: min(100%, 720px);
}

.hero__topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  justify-content: center;
  align-items: start;
  gap: 0;
  width: min(620px, 100%);
  margin: 0 auto;
}

.topic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.topic img {
  width: 86px;
  height: 86px;
  margin: 0 auto 0.25rem;
}

.topic span {
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-weight: 700;
}

.hero__message {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero__message h2 {
  margin: 0;
  margin-top: 2.5rem;
  color: var(--accent);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.0vw, 3.0rem);
}

.hero__message p {
  margin: 0.55rem 0 0;
  font-size: clamp(1.0rem, 2.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.25;
}

@media (min-width: 1400px) {
.hero__message h2 {
  font-size: clamp(1.4rem, 2.4vw, 2.8rem);
}
.hero__message p {
  font-size: clamp(1.0rem, 1.8vw, 2.2rem);
}
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: end;
}

.hero__car-placeholder {
  width: min(760px, 100%);
  aspect-ratio: 16 / 8.8;
  border-radius: 40px;
  background:
    radial-gradient(circle at 20% 55%, rgba(255, 210, 90, 0.28), transparent 24%),
    radial-gradient(circle at 80% 55%, rgba(255, 210, 90, 0.28), transparent 24%),
    linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.3)),
    linear-gradient(90deg, #6b7477, #111 48%, #69757a);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.hero__car-placeholder::before {
  content: "";
  position: absolute;
  inset: auto 10% 10% 10%;
  height: 12%;
  border-radius: 999px;
  background: rgba(0,0,0,0.38);
  filter: blur(16px);
}

.hero__car-note {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255,255,255,0.16);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}

.hero__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.hero__cta-text,
.hero__whatsapp { margin: 0; }

.hero__cta-text {
  font-size: clamp(1rem, 1.7vw, 1.6rem);
  line-height: 1.35;
}

.hero__phone {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: clamp(2.6rem, 4.7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: color .1s ease-in-out;
}

.hero__phone:hover {
  color: var(--accent);
}

.hero__whatsapp {
  margin-top: 0.5rem;
  font-size: clamp(0.95rem, 1.25vw, 1.25rem);
}

.hero__quality-box {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--accent);
  color: #1e5d71;
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.45rem);
  text-align: center;
  padding: 1rem 1.2rem;
  border-radius: 2px 14px;
}

.hero__quality-box span.separator {
  height: 3px;
  background-color: var(--bg-teal-dark);
}

.info {
  position: relative;
  overflow: hidden;
  padding: 4.25rem 0;
  background-image: url(../images/bg.png);
  background-position: top left;
  background-repeat: repeat;
  background-size: 5%;
  background-color: var(--bg-teal);
}

.info.uebermich {
  background-image: none;
  background-color: var(--bg-teal);
}

.info.imprint {
  background-image: none;
  background-color: #f5f5f5;
  color: var(--text-dark);
  position: relative;
}

.info__pattern {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(16, 112, 140, 1) 25%, rgba(16, 112, 140, .35) 80%);
  pointer-events: none;
}

.info__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-left: 7.5%;
}

.imprint__footer {
  padding-top: 0;
  padding-bottom: 2.5rem;
}

.imprint-a-datenschutz__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-left: 7.5%;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

h3.imprint {
  margin: 2.75rem 0 .75rem 0;
}

p.imprint {
  margin-top: .75rem;
}

h3.datenschutz {
  margin: 3.25rem 0 1rem 0;
}

span.impr-separator {
  padding: 0 .55rem;
}

.info h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.07;
  font-weight: 800;
}

.imprint h2 {
  color: var(--text-dark);
  margin: 1.4rem 0 2.4rem;
}

.info__lead {
  max-width: 820px;
  margin: 1.4rem 0 2.4rem;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  line-height: 1.2;
  font-weight: 500;
}

.info__lead strong {
  color: var(--accent);
}

.info__copy {
  max-width: 960px;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.4;
}

.info__question {
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0;
}

.services {
  margin: 1.15rem 0 1.4rem;
  padding-left: 1.25rem;
}

.services li { margin: 0.8rem 0; line-height: 1.3; }
.services strong { color: var(--accent); }

.contact {
  background: #f5f5f5;
  color: var(--text-dark);
  position: relative;
  border-top: 14px solid var(--accent);
}

.contact__topline {
  height: 12px;
  background: var(--accent);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  align-items: start;
}

.brand--dark { color: var(--teal-font); }

.contact__details h2 {
  margin: 0;
  color: var(--teal-font);
  font-size: clamp(1.9rem, 3.6vw, 3.35rem);
  line-height: 1.05;
}

.contact__role {
  margin: 0.8rem 0 1rem;
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
}

.contact__divider {
  width: 100%;
  height: 4px;
  background: var(--teal-font);
  margin: 1.25rem 0 1.5rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(1.1rem, 1.7vw, 1.7rem);
  margin: 0.85rem 0;
}

.contact__item img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

/* Hover-Unterstreichung für E-Mail-Link im Kontaktbereich */
.imprint__footer a,
.contact__item a {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
}

.imprint__footer a::after,
.contact__item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.imprint__footer a:hover::after,
.imprint__footer a:focus-visible::after,
.contact__item a:hover::after,
.contact__item a:focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 980px) {
  .hero::before,
  .hero::after {
    background-size: 165%;
  }

  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    background: rgba(12, 84, 105, 0.99);
    padding: 3rem 2rem;
    border-radius: 2px 2px 16px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.is-open { display: flex; }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__quality-box { }
}

/* Mobile: Logo erst nach Scroll sichtbar */
@media (max-width: 980px) {
  .topbar .brand {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.1s ease, transform 0.1s ease;
    pointer-events: none;
  }

  .topbar.scrolled .brand {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

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

@media (max-width: 640px) {
  .hero::before,
  .hero::after {
    background-size: 195%;
  }

  .hero__quality-box { display: none; }

  .topbar__inner { min-height: 72px; }

  .brand__mark,
  .hero__logo {
  }

  .hero__message,
  .hero__whatsapp {
    display: none;
  }

  .hero__content {
    padding-top: 0;
    gap: 1.15rem;
    grid-template-rows: auto auto 1fr auto;
    padding-bottom: 1.55rem;
  }

  .hero__brandline { align-items: flex-start; }

  .hero__location-wrap {
    margin-top: 0;
  }

  .hero__location-badge {
    min-width: 0;
    width: 100%;
  }

  .hero__topics {
    gap: 1rem 0rem;
    scale: .9;
  }

  .hero__message h2 {
    margin-top: 1.25rem;
  }

  .topic img {
    width: 56px;
    height: 56px;
  }

  .hero__car-placeholder {
    border-radius: 24px;
  }

  .info,
  .contact__grid {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}