/* ============================================
   CUSTOM PROPERTIES
   ============================================ */
:root {
  --color-primary: #0033A0;
  --color-primary-dark: #001E6C;
  --color-primary-hover: #002080;
  --color-primary-light: rgba(0, 51, 160, 0.07);
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F8FA;
  --color-text: #0E1117;
  --color-text-muted: #4A5568;
  --color-border: #E2E8F0;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE5A;

  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, sans-serif;

  --container-max: 1100px;
  --container-padding: 2rem;
  --header-height: 72px;

  --radius: 10px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.05), 0 20px 48px rgba(0, 0, 0, 0.08);
  --shadow-blue: 0 8px 32px rgba(0, 51, 160, 0.2);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   GRAIN TEXTURE OVERLAY
   ============================================ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 10000;
  font-weight: 600;
  font-family: var(--font-body);
}
.skip-link:focus { top: 0.5rem; }

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.1s; }

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 51, 160, 0.25);
}
.btn--primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 6px 24px rgba(0, 51, 160, 0.35);
}

.btn--hero {
  background-color: #fff;
  color: var(--color-primary);
  border-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.btn--hero:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--whatsapp {
  background-color: var(--color-whatsapp);
  color: #fff;
  border-color: var(--color-whatsapp);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.btn--whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  border-color: var(--color-whatsapp-hover);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.btn__icon { flex-shrink: 0; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header--scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.4s ease;
  white-space: nowrap;
}

.site-header--scrolled .nav__logo { color: var(--color-primary); }

.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  color: var(--color-primary);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.site-header--scrolled .nav__logo-mark {
  background: var(--color-primary);
  color: #fff;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-header--scrolled .nav__link {
  color: var(--color-text-muted);
}
.site-header--scrolled .nav__link:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav__link--cta {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
}
.nav__link--cta:hover {
  background: rgba(255, 255, 255, 0.25);
}
.site-header--scrolled .nav__link--cta {
  background: var(--color-primary);
  color: #fff;
}
.site-header--scrolled .nav__link--cta:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.site-header--scrolled .nav__toggle-bar {
  background-color: var(--color-text);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__road {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__road-svg {
  width: 100%;
  height: 100%;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 620px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__title-accent {
  display: inline-block;
  background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero__ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Hero entry animations */
.anim-in {
  opacity: 0;
  transform: translateY(28px);
  animation: anim-enter 0.8s var(--ease-out) forwards;
  animation-delay: calc(var(--delay, 0) * 0.12s + 0.2s);
}

@keyframes anim-enter {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section__label {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.section__label--light {
  color: #fff;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 6rem 0;
}

.section--light {
  background-color: var(--color-bg-alt);
}

.section--blue {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  max-width: 700px;
}

.about__accent {
  width: 4px;
  flex-shrink: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-primary), rgba(0, 51, 160, 0.2));
}

.about__body {
  padding: 0.5rem 0;
}

.about__text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-top: 0.75rem;
}

.about__text strong {
  color: var(--color-text);
  font-weight: 700;
}

/* ============================================
   OFFER (Angebot)
   ============================================ */
.offer {
  display: flex;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  max-width: 800px;
}

.offer__visual {
  flex: 0 0 200px;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  position: relative;
}

.offer__badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.offer__car {
  opacity: 0.6;
}

.offer__content {
  padding: 2.5rem;
  flex: 1;
}

.offer__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

.offer__subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.offer__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.offer__price-note {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  font-family: var(--font-body);
}

.offer__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.offer__ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================
   STEPS (Ablauf)
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

.step:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.step__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
  margin-bottom: 1rem;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  max-width: 100%;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item[open] {
  padding-bottom: 1.25rem;
}

.faq__item[open] .faq__question::after {
  transform: rotate(180deg);
}

.faq__question {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  color: var(--color-text);
  padding: 1.25rem 0;
  transition: color 0.2s ease;
}

.faq__question:hover { color: var(--color-primary); }
.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}

.faq__answer {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-bottom: 0.25rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.contact__card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.contact__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.contact__location {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease-out);
}

.contact__link--phone {
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.contact__link--phone:hover {
  background: rgba(0, 51, 160, 0.14);
  transform: translateX(4px);
}

.contact__link--wa {
  color: var(--color-whatsapp);
  background: rgba(37, 211, 102, 0.08);
}
.contact__link--wa:hover {
  background: rgba(37, 211, 102, 0.15);
  transform: translateX(4px);
}

.contact__hint {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact__map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.contact__map iframe { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.footer__copy { font-size: 0.8125rem; }

.footer__nav { display: flex; gap: 1.25rem; }

.footer__link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}
.footer__link:hover { color: #fff; }

/* ============================================
   FLOATING WHATSAPP FAB
   ============================================ */
.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  animation: fab-pulse 2.5s ease-in-out infinite;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  animation: none;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
  .offer__visual {
    flex: 0 0 120px;
    padding: 1.5rem 1rem;
  }
  .offer__badge { width: 56px; height: 56px; font-size: 1.5rem; }
  .offer__car { display: none; }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
    --header-height: 64px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 4rem;
    min-height: auto;
  }

  .hero__title { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero__subtitle { font-size: 1rem; }

  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero__ctas .btn { width: 100%; justify-content: center; }

  .section { padding: 4rem 0; }

  .about { flex-direction: column; gap: 0; }
  .about__accent { width: 100%; height: 4px; border-radius: 4px; }

  .steps { grid-template-columns: repeat(2, 1fr); }

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

  /* Mobile nav */
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
  }

  .nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    border-radius: var(--radius);
    font-size: 0.9375rem;
  }
  .nav__link:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
  }

  .nav__link--cta {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    margin-top: 0.25rem;
  }
  .nav__link--cta:hover {
    background: var(--color-primary-hover);
    color: #fff;
  }

  /* Toggle X animation */
  .nav__toggle--active .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle--active .nav__toggle-bar:nth-child(2) { opacity: 0; }
  .nav__toggle--active .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Small mobile */
@media (max-width: 480px) {
  :root { --container-padding: 1rem; }
  .section { padding: 3rem 0; }
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .step { padding: 1.5rem 1.25rem; }
  .offer__content { padding: 1.75rem; }
  .contact__card { padding: 1.75rem; }
  .fab { width: 52px; height: 52px; bottom: 1rem; right: 1rem; }
}
