/* Social ADvantage – Übergangsseite. Farben und Schrift wie die neue Website: Weiß, Tinte, Advent als einziger Akzent.
   Advent ist aus Nikolas' Farbkarte gemessen (ungefähr) – ändert sich der Wert, nur --accent und --accent-soft anpassen. */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/inter-tight.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/inter-tight-italic.woff2') format('woff2');
}

:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --ink-quiet: #5c5c5c; /* 6,7:1 auf Weiß */
  --muted: #8a8a8a; /* nur große oder versale Labels */
  --line: rgb(0 0 0 / 0.1);
  --accent: #53051b; /* Advent, 15:1 auf Weiß – reicht für große und kleine Schrift */
  --accent-soft: #f6e6ea;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  position: relative;
  background: var(--paper);
}

/* Ganz leises Licht in Advent oben rechts, damit das Weiß nicht steril wirkt */
.home::before {
  content: '';
  position: fixed;
  inset: -24vmax -24vmax auto auto;
  width: 72vmax;
  height: 72vmax;
  background: radial-gradient(closest-side, rgb(83 5 27 / 0.07), rgb(83 5 27 / 0) 72%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--accent);
  color: var(--paper);
  padding: 10px 14px;
  text-decoration: none;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* ---------- Kopf ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3.5vw, 40px) var(--gutter) 0;
}

.brand {
  display: block;
  width: clamp(150px, 16vw, 220px);
  line-height: 0;
}
.brand img {
  width: 100%;
  height: auto;
}

.back {
  font-size: 0.875rem;
  color: var(--ink-quiet);
  text-decoration: none;
  white-space: nowrap;
}
.back:hover {
  color: var(--ink);
}

/* ---------- Startseite ---------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vh, 112px) var(--gutter) clamp(40px, 7vh, 96px);
}

.kicker {
  margin: 0 0 clamp(18px, 3vh, 28px);
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  animation: fade-up 0.9s var(--ease) both;
}

.headline {
  margin: 0;
  /* „Dein Unternehmen“ ist ≈ 7,7 em breit – 10vw hält die Zeile bis 320 px innerhalb der Ränder */
  font-size: clamp(2.25rem, 10vw, 7.6rem);
  font-weight: 560;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.headline .line {
  display: block;
  overflow: hidden;
  /* Platz für Unterlängen, damit „g“ und „p“ beim Einblenden nicht abgeschnitten werden */
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.headline .line > span {
  display: block;
  animation: rise 1.1s var(--ease) 0.08s both;
}
.headline .line:nth-child(2) > span {
  animation-delay: 0.16s;
}
.headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.035em;
}

/* Feine Linie mit wanderndem Licht */
.trace {
  position: relative;
  height: 1px;
  margin: clamp(32px, 5.5vh, 64px) 0 clamp(24px, 4vh, 44px);
  background: var(--line);
  transform-origin: left center;
  animation: draw 1.4s var(--ease) 0.35s both;
  overflow: hidden;
}
.trace::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, rgb(83 5 27 / 0), var(--accent) 50%, rgb(83 5 27 / 0));
  animation: travel 6s cubic-bezier(0.45, 0, 0.25, 1) 1.6s infinite;
  transform: translateX(-100%);
}

.lead {
  margin: 0 0 clamp(24px, 4vh, 40px);
  max-width: 36ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-quiet);
  animation: fade-up 0.9s var(--ease) 0.55s both;
}

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(16px, 2.5vw, 40px);
  max-width: 920px;
}
.contact li {
  animation: fade-up 0.9s var(--ease) both;
}
.contact li:nth-child(1) {
  animation-delay: 0.65s;
}
.contact li:nth-child(2) {
  animation-delay: 0.73s;
}

.contact a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 6px 16px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.contact a::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
}
.contact .k {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.contact .v {
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.contact .arrow {
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: transform 0.45s var(--ease);
  align-self: center;
}

@media (hover: hover) {
  .contact a:hover::before {
    transform: scaleX(1);
  }
  .contact a:hover .arrow {
    transform: translate(3px, -3px);
  }
}

/* ---------- Fuß ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 0 var(--gutter);
  padding: 22px 0 clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-quiet);
}
.foot p {
  margin: 0;
}
.foot nav {
  display: flex;
  gap: 22px;
}
.foot nav a {
  text-decoration: none;
}
.foot nav a:hover,
.foot nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ---------- Rechtstexte ---------- */

.legal {
  width: 100%;
  max-width: calc(68ch + 2 * var(--gutter));
  padding: clamp(48px, 9vh, 104px) var(--gutter) clamp(56px, 10vh, 120px);
  line-height: 1.6;
  font-size: 1.0625rem;
}
.legal h1 {
  margin: 0 0 0.6em;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.04em;
  animation: fade-up 0.8s var(--ease) both;
}
.legal .intro {
  margin: 0 0 2.5em;
  color: var(--ink-quiet);
}
.legal h2 {
  margin: 2.4em 0 0.6em;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal p,
.legal ul {
  margin: 0 0 1em;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin-bottom: 0.35em;
}
.legal li::marker {
  color: var(--accent);
}
.legal a {
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal a:hover {
  color: var(--accent);
}

.facts {
  display: grid;
  grid-template-columns: minmax(10rem, max-content) 1fr;
  gap: 10px 28px;
  margin: 0 0 1em;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts dt {
  color: var(--ink-quiet);
  font-size: 0.9375rem;
}
.facts dd {
  margin: 0;
}

.stand {
  margin-top: 3em;
  color: var(--ink-quiet);
  font-size: 0.9375rem;
}

/* ---------- Bewegung ---------- */

@keyframes rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes travel {
  0% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(460%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Handy ---------- */

@media (max-width: 760px) {
  .contact {
    grid-template-columns: 1fr;
  }
  .contact a {
    padding: 16px 0 18px;
  }
  .kicker {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .facts dd {
    margin-bottom: 12px;
  }
}
