@import url("https://fonts.googleapis.com/css2?family=Rowdies:wght@400;700&family=Roboto+Slab:wght@300;400;500;700&display=swap");

/* —— Poli Tools Design System (Styleguide) —— */
:root {
  --pt-primary: #5b34ea;
  --pt-dominant: #1c0f13;
  --pt-whiteish: #fffcf6;
  --pt-secondary: #edf67d;
  --pt-light-secondary: #f1f89d;
  --pt-grey: #edeae4;
  --pt-dark-grey: #999793;
  --pt-bg: #1c0f13;
  --pt-bg-ii: #5b34ea;
  --pt-positive: #178442;
  --pt-negative: #b81515;
  --pt-wiggly: #240a0a;
  --pt-soft-primary: #d6caf3;
  --pt-gradient-light: linear-gradient(90deg, #5b34ea 0%, #edf67d 55%, #f1f89d 100%);

  --pt-text: #fffcf6;
  --pt-text-muted: #e8e4dc;
  --pt-link: #d6caf3;
  --pt-link-hover: #fff9b8;
  --pt-focus-ring: #edf67d;

  --pt-font-display: "Rowdies", system-ui, sans-serif;
  --pt-font-body: "Roboto Slab", Georgia, "Times New Roman", serif;

  /* Typography (Styleguide) */
  --pt-fs-h1: 1.5rem; /* 24px Rowdies bold */
  --pt-fs-h2: 1.25rem; /* 20px Roboto Slab bold */
  --pt-fs-h3: 1rem; /* 16px Roboto Slab bold */
  --pt-fs-body: 0.6875rem; /* 11px */
  --pt-lh-body: 1.5;

  --pt-space-section: clamp(3rem, 6vw, 5.5rem);
  --pt-header-h: 4.25rem;
  --pt-radius: 12px;
  --pt-radius-lg: 20px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--pt-font-body);
  font-size: max(var(--pt-fs-body), 16px); /* Lesbare Basis; Styleguide-11px über .text-paragraph */
  line-height: var(--pt-lh-body);
  color: var(--pt-text);
  background-color: var(--pt-bg);
}

/* Styleguide: Paragraph 11px / Light */
.text-paragraph {
  font-size: var(--pt-fs-body);
  font-weight: 300;
  line-height: var(--pt-lh-body);
  letter-spacing: 0;
  margin: 0 0 1.25rem;
}

.text-paragraph:last-child {
  margin-bottom: 0;
}

/* Styleguide: Highlight 11px / Medium */
.text-highlight {
  font-size: var(--pt-fs-body);
  font-weight: 500;
  line-height: var(--pt-lh-body);
  letter-spacing: 0;
}

h1 {
  font-family: var(--pt-font-display);
  font-size: var(--pt-fs-h1);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
}

h2 {
  font-family: var(--pt-font-body);
  font-size: var(--pt-fs-h2);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
}

h3 {
  font-family: var(--pt-font-body);
  font-size: var(--pt-fs-h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--pt-whiteish);
  color: var(--pt-dominant);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--pt-focus-ring);
  outline-offset: 2px;
}

.wrap-wide {
  width: min(72rem, 100% - 2rem);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(40rem, 100% - 2rem);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--pt-header-h);
  display: flex;
  align-items: center;
  background: rgba(28, 15, 19, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 252, 246, 0.08);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(18, 9, 12, 0.97);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.brand__img {
  display: block;
  height: auto;
  width: min(160px, 42vw);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--pt-text-muted);
  text-decoration: none;
  font-size: var(--pt-fs-body);
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--pt-whiteish);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 252, 246, 0.2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--pt-whiteish);
  border-radius: 1px;
}

.header-cta {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--pt-wiggly);
    border-bottom: 1px solid rgba(255, 252, 246, 0.1);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header-cta {
    display: none;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-family: var(--pt-font-body);
  font-size: var(--pt-fs-body);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--ghost {
  color: var(--pt-whiteish);
  border-color: rgba(255, 252, 246, 0.35);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 252, 246, 0.08);
  border-color: var(--pt-soft-primary);
  color: var(--pt-whiteish);
}

.btn--primary {
  color: var(--pt-dominant);
  background: var(--pt-gradient-light);
  border: none;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
}

.btn--primary:hover {
  filter: brightness(1.06);
  color: var(--pt-wiggly);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 calc(var(--pt-space-section) + 1rem);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: min(70vh, 520px);
  background: radial-gradient(
    ellipse 55% 60% at 50% 30%,
    rgba(91, 52, 234, 0.45) 0%,
    rgba(28, 15, 19, 0) 65%
  );
  pointer-events: none;
}

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

.hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--pt-soft-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__title {
  font-family: var(--pt-font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 14ch;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  background: var(--pt-gradient-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-family: var(--pt-font-body);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--pt-text-muted);
  max-width: 36rem;
  margin: 0;
}

/* —— Sections —— */
.section {
  padding: var(--pt-space-section) 0;
}

.section--tight {
  padding-top: 0;
}

.section--band {
  background: linear-gradient(180deg, rgba(36, 10, 10, 0.5) 0%, rgba(28, 15, 19, 0) 100%);
  border-top: 1px solid rgba(255, 252, 246, 0.06);
  border-bottom: 1px solid rgba(255, 252, 246, 0.06);
}

.section-title {
  font-size: var(--pt-fs-h2);
  margin-bottom: 2rem;
  color: var(--pt-whiteish);
}

/* —— Quote —— */
.quote-block {
  margin: 0 auto var(--pt-space-section);
  padding: 1.75rem 1.5rem;
  border-radius: var(--pt-radius-lg);
  background: rgba(214, 202, 243, 0.06);
  border: 1px solid rgba(214, 202, 243, 0.15);
}

.quote-block__text {
  font-style: italic;
  margin-bottom: 1rem;
}

.quote-block__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quote-block__name {
  font-size: var(--pt-fs-body);
  font-weight: 700;
  font-family: var(--pt-font-body);
  color: var(--pt-whiteish);
}

.quote-block__role {
  font-size: var(--pt-fs-body);
  font-weight: 300;
  color: var(--pt-dark-grey);
}

/* —— Mission —— */
.mission__label {
  margin: 0 0 0.5rem;
  color: var(--pt-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mission__title {
  font-family: var(--pt-font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.mission__title-soft {
  color: var(--pt-text-muted);
  font-weight: 400;
  font-family: var(--pt-font-body);
  font-size: 0.72em;
  display: inline-block;
  margin-top: 0.25rem;
}

.mission__body {
  max-width: 38rem;
}

/* —— Service cards —— */
.service-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
  position: relative;
  padding: 1.5rem 1.35rem 1.75rem;
  border-radius: var(--pt-radius);
  background: rgba(255, 252, 246, 0.03);
  border: 1px solid rgba(255, 252, 246, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--pt-gradient-light);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}

.service-card:hover {
  border-color: rgba(237, 246, 125, 0.35);
  box-shadow: 0 12px 40px rgba(91, 52, 234, 0.12);
}

.service-card__title {
  color: var(--pt-whiteish);
}

.service-card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: var(--pt-fs-body);
  font-weight: 500;
  color: var(--pt-secondary);
  text-decoration: none;
}

.service-card__link:hover {
  color: var(--pt-light-secondary);
}

/* —— Marquee —— */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 252, 246, 0.1);
  padding: 0.85rem 0;
  background: var(--pt-wiggly);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marquee-move 28s linear infinite;
}

.marquee__group {
  display: flex;
  gap: 2.5rem;
}

.marquee__item {
  font-family: var(--pt-font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--pt-dark-grey);
  white-space: nowrap;
}

@keyframes marquee-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    gap: 0.75rem;
  }

  .marquee__group {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* —— CTA —— */
.section--cta {
  padding-bottom: calc(var(--pt-space-section) + 1rem);
}

.cta-block {
  text-align: center;
}

.cta-block__title {
  font-family: var(--pt-font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.cta-block__text {
  margin-bottom: 1.75rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* —— Footer —— */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid rgba(255, 252, 246, 0.1);
  background: #12090c;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.site-footer__logo {
  margin-bottom: 1rem;
  opacity: 0.95;
}

.site-footer__address {
  color: var(--pt-text-muted);
  margin-bottom: 1rem !important;
}

.site-footer__nav ul,
.site-footer__legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__nav a,
.site-footer__legal a {
  color: var(--pt-text-muted);
  text-decoration: none;
  font-size: var(--pt-fs-body);
}

.site-footer__nav a:hover,
.site-footer__legal a:hover {
  color: var(--pt-link-hover);
}

.site-footer__nav li,
.site-footer__legal li {
  margin-bottom: 0.5rem;
}

.site-footer__fineprint {
  margin-top: 1.25rem !important;
  color: var(--pt-dark-grey);
}

a:focus-visible {
  outline: 2px solid var(--pt-focus-ring);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --pt-text: #ffffff;
    --pt-text-muted: #f5f0e8;
    --pt-link: #ffffff;
  }
}
