/* =============================================
   Infostyler – Landing Page
   Präzise-Editorial · Magenta #C5007B · Schwarz
   ============================================= */

/* === Local Fonts === */
@font-face {
  font-family: "Lato";
  src: url("fonts/lato-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("fonts/lato-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === Custom Properties === */
:root {
  --color-accent:       #C5007B;
  --color-accent-dark:  #9E0063;
  --color-accent-light: #fce8f3;
  --color-black:        #1d1d1f;
  --color-gray-dark:    #424245;
  --color-gray-mid:     #6e6e73;
  --color-gray-light:   #a1a1a6;
  --color-border:       #d2d2d7;
  --color-bg-alt:       #f5f5f7;
  --color-white:        #ffffff;

  --font-base: "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 17px;
  --line-height-base: 1.65;

  --space-xs:  6px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  120px;

  --max-width:  1200px;
  --nav-height: 90px;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 100px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 28px rgba(0,0,0,.10);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
.legal-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: .75rem; }
.legal-body li { margin-bottom: .35rem; }

/* === Typography === */
h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--color-black);
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--color-black);
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--color-black);
}
p { color: var(--color-gray-mid); }

.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .75rem;
}
.lead {
  font-size: 1.15rem;
  color: var(--color-gray-mid);
  line-height: 1.65;
  max-width: 520px;
}

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}
.section { padding: var(--space-xl) 0; }
.section-white { background: var(--color-white); }
.section-alt   { background: var(--color-bg-alt); }

.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: .6rem; }

/* === Navigation === */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.scrolled { border-bottom-color: var(--color-border); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; transition: opacity .2s; }
.nav-logo:hover { opacity: .75; }
.nav-logo-img { height: 112px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 400;
  color: var(--color-gray-dark);
  transition: color .2s;
}
.nav-links a:hover { color: var(--color-black); }
.nav-cta {
  background: var(--color-black) !important;
  color: var(--color-white) !important;
  padding: .45rem 1.2rem;
  border-radius: var(--radius-pill);
}
.nav-cta:hover { background: var(--color-accent-dark) !important; color: var(--color-white) !important; }

/* Hamburger (mobile only) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  padding: .85rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197,0,123,.28);
}
/* === Skip Link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-black);
  color: var(--color-white);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

/* === Hero === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-height);
  align-items: stretch;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 180px 64px 56px max(48px, calc((100vw - var(--max-width)) / 2 + 48px));
}
.hero-text-inner { max-width: 520px; width: 100%; }

.trust-strip {
  padding: 56px 0;
}
#referenzen .section-header:first-child { margin-bottom: 28px; }
#referenzen .trust-strip { padding-top: 28px; }
.trust-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.trust-marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: trust-scroll 40s linear infinite;
}
.trust-marquee-track:hover {
  animation-play-state: paused;
}
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-marquee-track { animation: none; }
}
.hero-text-inner h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-gray-mid);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 2.5rem;
}
.hero-image { position: relative; }
.hero-image img { width: 100%; height: auto; display: block; }

/* === Trust Strip === */
.trust { padding: 56px 0; }
.trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.trust-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 72px;
}
.trust-logo img {
  height: 40px;
  width: auto;
  opacity: .8;
  transition: opacity .25s;
}
.trust-logo img:hover { opacity: 1; }
.logo-08 img { height: 23px; }
.logo-05 img          { height: 22px; }
.logo-09 img      { height: 30px; }
.logo-02 img          { height: 34px; }
.logo-06 img           { height: 44px; }
.logo-10 img         { height: 44px; }
.logo-04 img              { height: 44px; }
.logo-03 img     { height: 47px; }
.logo-07 img            { height: 56px; }
.logo-11 img       { height: 68px; }

/* === Leistungen === */
.services-list { border-top: 1px solid var(--color-border); }
.service-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 40px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-item:last-child { border-bottom: none; }
.service-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--color-accent) 50%, var(--color-white));
}
.service-body h3 { margin-bottom: .35rem; }
.service-body p  { font-size: .95rem; max-width: 600px; }

/* === About === */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p:not(.eyebrow)  { font-size: 1.05rem; max-width: 480px; margin-bottom: 1.25rem; }
.about-text p:not(.eyebrow):last-of-type { margin-bottom: 2rem; }
.about-link {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap .2s;
}
.about-link:hover { gap: .6rem; }
.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

/* === Kontakt === */
.contact-inner { max-width: 640px; }
.contact-inner h2     { margin: .6rem 0 1.25rem; }
.contact-inner .lead  { margin-bottom: 2rem; }

/* === Legal Pages === */
.legal-hero {
  padding: calc(var(--nav-height) + 64px) 0 56px;
  background: var(--color-bg-alt);
}
.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: .5rem;
}
.legal-content { padding: 64px 0 var(--space-xl); }
.legal-body {
  max-width: 720px;
}
.legal-body h2 {
  font-size: 1.1rem;
  margin: 2rem 0 .6rem;
}
.legal-body p { margin-bottom: .75rem; }
.legal-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* === Footer === */
.footer { background: var(--color-black); padding: 48px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--color-white);
}
.footer-info { font-size: .88rem; color: var(--color-gray-light); }
.footer-legal {
  display: flex;
  gap: 20px;
  font-size: .85rem;
  color: var(--color-gray-light);
}
.footer-legal a { color: var(--color-gray-light); transition: color .2s; }
.footer-legal a:hover { color: var(--color-white); }

/* === Focus === */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* === Responsive — Tablet === */
@media (max-width: 1024px) {
  .hero-text { padding: 140px 48px 80px 48px; }
  .about-inner { gap: 48px; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-text {
    align-items: flex-start;
    padding: calc(var(--nav-height) + 60px) 48px 48px;
  }
  .hero-text-inner { max-width: 100%; }
  .trust-strip { padding: 40px 0; }
  .hero-image { order: -1; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image { order: -1; }
  .about-image img { height: 400px; object-fit: cover; }

}

/* === Responsive — Mobile === */
@media (max-width: 768px) {
  :root { --space-xl: 80px; }
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }

  .hero-text { padding: calc(var(--nav-height) + 48px) 24px 40px; }
  .trust-strip { padding: 32px 0; }

  .service-item {
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 28px 0;
  }


  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta {
    display: inline-block;
    margin-top: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .trust-logos { gap: 28px 40px; }
  .trust-logo img { max-height: 28px; }
}
