/* Basis und die aus dem Bestand übertragenen Tailwind-Werte. */
:root {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

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

body {
  margin: 0;
  background: #ffffff;
  color: #0a0a0a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  text-rendering: optimizeLegibility;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

::selection {
  background: #000000;
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.site-shell {
  min-height: 100vh;
  background: #ffffff;
}

.section-x {
  padding-right: 24px;
  padding-left: 24px;
}

.container-6xl,
.container-4xl,
.container-3xl,
.container-2xl {
  margin-right: auto;
  margin-left: auto;
}

.container-6xl { max-width: 1152px; }
.container-4xl { max-width: 896px; }
.container-3xl { max-width: 768px; }
.container-2xl { max-width: 672px; }

/* Glas-Navigation */
.site-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  width: 80%;
  transform: translateX(-50%);
  transition: all 500ms ease;
}

.nav-bar {
  height: 48px;
  padding: 8px 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: all 300ms ease;
}

.site-nav.is-scrolled .nav-bar {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

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

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  transition: opacity 300ms ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand-pill {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-left: -28px;
  padding: 0 28px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.desktop-links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 9999px;
  color: rgba(0, 0, 0, 0.8);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.025em;
  transition: all 300ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  padding: 12px;
  border-radius: 9999px;
  color: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: all 200ms ease;
}

.js .menu-toggle {
  display: block;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #000000;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  position: fixed;
  top: 80px;
  left: 50%;
  z-index: 40;
  width: 80%;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
}

.js .mobile-nav {
  transform: translate(-50%, -16px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 300ms ease-in-out, transform 300ms ease-in-out, visibility 0s linear 300ms;
}

.js .mobile-nav.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 300ms ease-in-out, transform 300ms ease-in-out, visibility 0s;
}

.mobile-nav-panel {
  padding: 24px 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.mobile-link {
  display: block;
  margin-bottom: 12px;
  padding: 8px 16px;
  border-radius: 9999px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.025em;
  transition: all 300ms ease;
}

.mobile-link + .mobile-link {
  margin-top: 12px;
}

.mobile-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.2);
}

/* Ohne JS belegt das geöffnete Mobilmenü eigenen Flussraum und verdeckt keine Inhalte. */
@media (max-width: 767px) {
  html:not(.js) .mobile-nav {
    position: relative;
    top: 80px;
    left: auto;
    margin: 0 auto 80px;
    transform: none;
  }
}

.light-stripes {
  background-image: url("/img/lichtstreifen-800.webp");
  background-position: center;
  background-size: cover;
}

.pill-button {
  display: inline-flex;
  width: 128px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.025em;
  white-space: nowrap;
  transition: all 300ms ease;
}

.pill-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pill-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Home */
.home-hero {
  padding-top: 224px;
  padding-bottom: 160px;
  text-align: center;
}

.home-title {
  margin-bottom: 32px;
  color: #000000;
  font-size: 48px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.home-title span {
  position: relative;
}

.hero-text {
  max-width: 896px;
  margin: 0 auto;
  color: #374151;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.625;
}

.image-band {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
  background-image: url("/img/lichtstreifen-1600.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.image-band-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.image-band-content {
  position: relative;
  z-index: 10;
}

.image-band p {
  max-width: 896px;
  margin-right: auto;
  margin-left: auto;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.625;
  text-align: center;
}

.intro-first {
  margin-bottom: 24px;
}

.intro-second {
  margin-bottom: 64px;
}

.services {
  padding-top: 96px;
  padding-bottom: 96px;
}

.service-grid {
  display: grid;
  gap: 48px;
}

.service-card {
  padding: 32px;
  border-radius: 8px;
  background: linear-gradient(to bottom right, #f3f4f6, #e5e7eb);
}

.service-card h3 {
  margin-bottom: 16px;
  color: #000000;
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
  letter-spacing: -0.025em;
}

.service-card p {
  margin-bottom: 24px;
  color: #374151;
  line-height: 1.625;
}

.quote {
  padding-top: 64px;
  padding-bottom: 64px;
  background: #000000;
  text-align: center;
}

.home-quote blockquote {
  color: #ffffff;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.differentiation {
  padding-top: 96px;
  padding-bottom: 24px;
}

.differentiation-heading {
  margin-bottom: 48px;
  text-align: center;
}

.differentiation h2 {
  margin-bottom: 32px;
  color: #000000;
  font-size: 30px;
  font-weight: 300;
  line-height: 36px;
  letter-spacing: -0.025em;
}

.differentiation-copy {
  max-width: 768px;
  margin: 0 auto;
  color: #374151;
  font-size: 18px;
  line-height: 1.625;
}

.differentiation-copy p + p {
  margin-top: 24px;
}

.differentiation-copy .emphasis {
  color: #000000;
  font-weight: 500;
}

/* Unterseiten */
.page-hero {
  padding-top: 96px;
  padding-bottom: 64px;
}

.page-title {
  margin-bottom: 24px;
  color: #000000;
  font-size: 48px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.page-claim {
  color: #374151;
  font-size: 20px;
  line-height: 1.625;
}

.page-content {
  padding-bottom: 96px;
}

.content-block {
  margin-bottom: 48px;
}

.content-block p,
.closing p {
  color: #374151;
  line-height: 1.625;
}

.content-block p + p {
  margin-top: 24px;
}

.content-block h2,
.closing h2 {
  margin-bottom: 24px;
  color: #000000;
  font-size: 30px;
  font-weight: 300;
  line-height: 36px;
  letter-spacing: -0.025em;
}

.service-list {
  color: #374151;
}

.service-list li {
  display: flex;
  align-items: flex-start;
}

.service-list li + li {
  margin-top: 12px;
}

.service-list .bullet {
  margin-right: 12px;
}

.closing {
  margin-bottom: 24px;
}

.subpage-quote p {
  max-width: 896px;
  margin: 0 auto;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.625;
}

/* Kontakt und Fuß */
.contact {
  padding-top: 96px;
  padding-bottom: 96px;
}

.contact-heading {
  margin-bottom: 48px;
  text-align: center;
}

.contact-heading h2 {
  color: #000000;
  font-size: 36px;
  font-weight: 300;
  line-height: 40px;
  letter-spacing: -0.025em;
}

.contact-action {
  text-align: center;
}

.contact-button {
  width: auto;
  min-width: 128px;
  padding-right: 20px;
  padding-left: 20px;
  font-weight: 800;
}

.contact-address {
  margin-top: 16px;
  color: #374151;
  line-height: 1.625;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.linkedin-link {
  color: #9ca3af;
  transition: color 200ms ease;
}

.linkedin-link:hover {
  color: #000000;
}

.linkedin-link svg {
  width: 20px;
  height: 20px;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  color: #374151;
  font-size: 14px;
  line-height: 20px;
}

.legal-links a {
  transition: color 200ms ease;
}

.legal-links a:hover,
.legal-links a[aria-current="page"] {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-links .separator {
  margin-right: 12px;
  margin-left: 12px;
}

/* 404 */
.error-page {
  padding-top: 160px;
  padding-bottom: 96px;
  text-align: center;
}

.error-page p {
  margin-bottom: 32px;
  color: #374151;
  font-size: 18px;
  line-height: 1.625;
}

/* Erst JS schaltet Ausgangszustände für Einblendungen scharf. */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1000ms ease-out, transform 1000ms ease-out;
}

.has-reveal .reveal {
  transform: translateY(32px);
  opacity: 0;
}

.has-reveal .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 800px) {
  .image-band {
    background-image: url("/img/lichtstreifen-800.webp");
  }
}

@media (min-width: 768px) {
  .desktop-links {
    display: flex;
  }

  .js .menu-toggle,
  .menu-toggle,
  .mobile-nav,
  .menu-backdrop {
    display: none;
  }
}

@media (min-width: 1024px) {
  .section-x {
    padding-right: 32px;
    padding-left: 32px;
  }

  .home-title {
    font-size: 72px;
  }

  .hero-text {
    font-size: 20px;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-quote blockquote {
    font-size: 48px;
  }

  .differentiation h2 {
    font-size: 36px;
    line-height: 40px;
  }

  .page-title {
    font-size: 60px;
  }

  .subpage-quote p {
    font-size: 20px;
  }

  .contact-heading h2 {
    font-size: 48px;
    line-height: 48px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .has-reveal .reveal {
    transform: none;
    opacity: 1;
  }
}
