/* NC&S Systems GmbH, Übergangsseite */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben aus dem Logo */
  --bar: #4c4c4c;
  --accent: #bc143d;
  --accent-dark: #9a0f31;

  --ink: #2b2b2d;
  --text: #4c4c4c;
  --muted: #65656a;
  --line: rgba(76, 76, 76, 0.2);

  /* Raster */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --wrap: 70rem;
  --side: 24rem;
  --gap: clamp(2.5rem, 6vw, 6rem);

  /* Logo: Originalgrafik aus dem alten Header, 244 × 94 px, überall 1:1 ohne Skalierung.
     Der Balken liegt bei 62/94 der Höhe und ist 9/94 hoch. */
  --logo-h: 94px;
  --brand-top: clamp(1.75rem, 4.5vw, 3.5rem);
}

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

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(75rem 42rem at -12% 108%, rgba(188, 20, 61, 0.08), transparent 62%),
    radial-gradient(60rem 36rem at 112% -8%, rgba(76, 76, 76, 0.07), transparent 60%),
    linear-gradient(180deg, #fcfcfd 0%, #eef0f3 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Sora", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.nowrap {
  white-space: nowrap;
}

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

/* Raster ---------------------------------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  column-gap: var(--gap);
}

/* Logo mit durchlaufendem Balken ---------------------------------------- */

.brand {
  position: relative;
  padding-top: var(--brand-top);
}

.brand::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--brand-top) + var(--logo-h) * 62 / 94);
  height: calc(var(--logo-h) * 9 / 94);
  background: var(--bar);
  transform-origin: left center;
  animation: draw 0.85s cubic-bezier(0.65, 0, 0.2, 1) both;
}

.brand__logo {
  grid-column: 2;
  display: block;
  position: relative;
  height: var(--logo-h);
  width: auto;
  animation: appear 0.5s ease 0.6s both;
}

/* Hinweis, Support und Kontakt ------------------------------------------ */

.main {
  flex: 1;
  align-content: start;
  padding-block: clamp(3rem, 10vh, 7rem) clamp(3rem, 8vh, 5.5rem);
  animation: appear 0.6s ease 0.75s both;
}

.notice h1 {
  font-size: clamp(2.125rem, 1.35rem + 3.3vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.lead {
  max-width: 31em;
  margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

.support {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border-radius: 0.375rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--accent-dark);
  color: #fff;
}

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

.contact {
  padding-top: clamp(0.5rem, 0.2rem + 0.9vw, 1rem);
}

/* Schrift schrumpft auf schmalen Handys mit, damit die Ortszeile nicht umbricht */
.facts {
  display: grid;
  row-gap: 1.35rem;
  font-size: clamp(0.75rem, 4vw, 1rem);
}

.facts__row {
  display: grid;
  grid-template-columns: 4.9em minmax(0, 1fr);
  column-gap: 0.75em;
  align-items: baseline;
}

.facts a {
  display: inline-block;
  margin-block: -0.45rem;
  padding-block: 0.45rem;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  color: var(--ink);
  line-height: 1.5;
}

/* Impressum und Datenschutz --------------------------------------------- */

.legal {
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  animation: appear 0.6s ease 0.85s both;
}

.legal > .wrap {
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.legal h2,
.privacy summary {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.imprint__cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
  margin-top: 1rem;
}

.privacy {
  margin-top: 1.5rem;
}

.privacy summary {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  list-style: none;
  cursor: pointer;
}

.privacy summary::-webkit-details-marker {
  display: none;
}

.privacy summary::after {
  content: "+";
  font-weight: 400;
  color: var(--accent);
}

.privacy[open] summary::after {
  content: "\2212";
}

.privacy summary:hover {
  color: var(--accent);
}

.privacy__body {
  max-width: 44rem;
  padding-top: 0.25rem;
}

.privacy__body h3 {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.privacy__body p {
  margin-top: 0.6rem;
}

/* Kleinere Breiten ------------------------------------------------------ */

@media (max-width: 56rem) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand__logo {
    grid-column: 1;
  }

  .main {
    row-gap: clamp(2.5rem, 8vw, 3.5rem);
    padding-block: clamp(2.5rem, 9vw, 4rem) clamp(3rem, 10vw, 4.5rem);
  }

  .contact {
    padding-top: 0;
  }

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

/* Bewegung -------------------------------------------------------------- */

@keyframes draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand::before,
  .brand__logo,
  .main,
  .legal {
    animation: none;
  }

  a,
  .button {
    transition: none;
  }
}
