
@keyframes n-bw-zeichnen {
  from { stroke-dashoffset: 1.01; }
  to   { stroke-dashoffset: 0; }
}
@keyframes n-bw-fuellen {
  from { fill-opacity: 0; }
  to   { fill-opacity: 1; }
}
@keyframes n-bw-ein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes n-bw-auf {
  from { opacity: 0; translate: 0 0.75rem; }
  to   { opacity: 1; translate: none; }
}
@keyframes n-bw-ziffer {
  from { opacity: 0; scale: 0.6; }
  to   { opacity: 1; scale: 1; }
}
@keyframes n-bw-senkrecht {
  from { scale: 1 0; }
  to   { scale: 1 1; }
}
@keyframes n-bw-waagrecht {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}
@keyframes n-bw-wischen {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@media screen and (prefers-reduced-motion: no-preference) {

  :is(.n-titelband__bild, .n-abschnitt__bild, .n-gebiet__bild, .n-preisliste__bild, .n-lagen__bild).ist-bereit
    :is(path, rect, circle, ellipse, line, polyline, polygon):not(.n-flaeche, .n-messing, .n-punkt, .n-fuellung, .n-gestrichelt) {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1.01;
  }
  :is(.n-titelband__bild, .n-abschnitt__bild, .n-gebiet__bild, .n-preisliste__bild, .n-lagen__bild).ist-bereit
    :is(.n-grund, .n-akzent-grund, .n-umriss) {
    fill-opacity: 0;
  }
  :is(.n-titelband__bild, .n-abschnitt__bild, .n-gebiet__bild, .n-preisliste__bild, .n-lagen__bild).ist-bereit
    :is(.n-flaeche, .n-messing, .n-punkt, .n-fuellung, .n-gestrichelt) {
    opacity: 0;
  }

  :is(.n-titelband__bild, .n-abschnitt__bild, .n-gebiet__bild, .n-preisliste__bild, .n-lagen__bild).ist-bereit.ist-sichtbar
    .n-flaeche {
    animation: n-bw-ein 0.5s ease-out both;
  }
  :is(.n-titelband__bild, .n-abschnitt__bild, .n-gebiet__bild, .n-preisliste__bild, .n-lagen__bild).ist-bereit.ist-sichtbar
    :is(path, rect, circle, ellipse, line, polyline, polygon):not(.n-flaeche, .n-messing, .n-punkt, .n-fuellung, .n-gestrichelt) {
    animation: n-bw-zeichnen 1s ease-in-out 0.2s both;
  }
  :is(.n-titelband__bild, .n-abschnitt__bild, .n-gebiet__bild, .n-preisliste__bild, .n-lagen__bild).ist-bereit.ist-sichtbar
    :is(path, rect, circle, ellipse, line, polyline, polygon).n-haar {
    animation: n-bw-zeichnen 0.7s ease-out 0.1s both;
  }
  :is(.n-titelband__bild, .n-abschnitt__bild, .n-gebiet__bild, .n-preisliste__bild, .n-lagen__bild).ist-bereit.ist-sichtbar
    :is(path, rect, circle, ellipse, line, polyline, polygon):is(.n-grund, .n-akzent-grund, .n-umriss) {
    animation: n-bw-zeichnen 1s ease-in-out 0.2s both,
               n-bw-fuellen 0.5s ease-out 0.8s both;
  }
  :is(.n-titelband__bild, .n-abschnitt__bild, .n-gebiet__bild, .n-preisliste__bild, .n-lagen__bild).ist-bereit.ist-sichtbar
    :is(path, rect, circle, ellipse, line, polyline, polygon):is(.n-punkt, .n-fuellung, .n-gestrichelt) {
    animation: n-bw-ein 0.5s ease-out 0.8s both;
  }
  :is(.n-titelband__bild, .n-abschnitt__bild, .n-gebiet__bild, .n-preisliste__bild, .n-lagen__bild).ist-bereit.ist-sichtbar
    :is(path, rect, circle, ellipse, line, polyline, polygon).n-messing {
    animation: n-bw-ein 0.5s ease-out 1.1s both;
  }

  .n-zl.ist-bereit { opacity: 0; }
  .n-zl.ist-bereit::before { scale: 1 0; transform-origin: top; }
  .n-zl.ist-bereit.ist-sichtbar { animation: n-bw-auf 0.45s ease-out both; }
  .n-zl.ist-bereit.ist-sichtbar > .n-zl__nr { animation: n-bw-ziffer 0.4s ease-out both; }
  .n-zl.ist-bereit.ist-sichtbar::before { animation: n-bw-senkrecht 0.55s ease-in-out 0.3s both; }

  .n-zl-spur.ist-bereit::before { scale: 0 1; transform-origin: left; }
  .n-zl-spur.ist-bereit > .n-zl-spur__knopf { opacity: 0; }
  .n-zl-spur.ist-bereit.ist-sichtbar::before { animation: n-bw-waagrecht 1.1s ease-in-out 0.1s both; }
  .n-zl-spur.ist-bereit.ist-sichtbar > .n-zl-spur__knopf {
    animation: n-bw-auf 0.4s ease-out calc(var(--n-bw-i, 0) * 0.18s) both;
  }
  .n-zl-spur > .n-zl-spur__knopf:nth-child(2) { --n-bw-i: 1; }
  .n-zl-spur > .n-zl-spur__knopf:nth-child(3) { --n-bw-i: 2; }
  .n-zl-spur > .n-zl-spur__knopf:nth-child(4) { --n-bw-i: 3; }
  .n-zl-spur > .n-zl-spur__knopf:nth-child(5) { --n-bw-i: 4; }
  .n-zl-spur > .n-zl-spur__knopf:nth-child(6) { --n-bw-i: 5; }
  .n-zl-spur > .n-zl-spur__knopf:nth-child(7) { --n-bw-i: 6; }
  .n-zl-spur > .n-zl-spur__knopf:nth-child(8) { --n-bw-i: 7; }

  .n-schrittfolge.ist-bereit::before { scale: 0 1; transform-origin: left; }
  .n-schrittfolge.ist-bereit > li > * { opacity: 0; }
  .n-schrittfolge.ist-bereit.ist-sichtbar::before { animation: n-bw-waagrecht 0.9s ease-in-out 0.1s both; }
  .n-schrittfolge.ist-bereit.ist-sichtbar > li > * {
    animation: n-bw-auf 0.45s ease-out calc(var(--n-bw-i, 0) * 0.25s + 0.1s) both;
  }
  .n-schrittfolge.ist-bereit.ist-sichtbar > li > .n-schrittfolge__nr {
    animation: n-bw-ziffer 0.4s ease-out calc(var(--n-bw-i, 0) * 0.25s) both;
  }
  .n-schrittfolge > li:nth-child(2) { --n-bw-i: 1; }
  .n-schrittfolge > li:nth-child(3) { --n-bw-i: 2; }
  .n-schrittfolge > li:nth-child(4) { --n-bw-i: 3; }

  @media (max-width: 64rem) {
    .n-schrittfolge.ist-bereit::before { scale: 1 0; transform-origin: top; }
    .n-schrittfolge.ist-bereit.ist-sichtbar::before { animation-name: n-bw-senkrecht; }
  }

  .n-fristbalken__lauf { transition: width 0.6s ease-out; }
  .n-fristbalken__marke--heute { transition: left 0.6s ease-out; }
  .n-szenario__balken::before { transition: width 0.6s ease-out; }
  .n-erbbalken__teil { transition: flex-basis 0.5s ease-out; }
  .n-erbbalken__teil--kinder { transition-delay: 0.15s; }
  .n-erbbalken__teil--frei { transition-delay: 0.3s; }
  @starting-style {
    .n-fristbalken__lauf { width: 0; }
    .n-fristbalken__marke--heute { left: 0; }
    .n-szenario__balken::before { width: 0; }
    .n-erbbalken__teil { flex-basis: 0; }
  }

  details.n-frage { interpolate-size: allow-keywords; }
  details.n-frage::details-content {
    height: 0;
    overflow: clip;
    overflow-clip-margin: 0.5rem;
    transition: height 0.3s ease-out, content-visibility 0.3s allow-discrete;
  }
  details.n-frage[open]::details-content { height: auto; }

  @media (max-width: 64rem) {
    .n-js .n-kopf__menue {
      opacity: 0;
      translate: 0 -0.5rem;
      transition: opacity 0.2s ease-out, translate 0.2s ease-out, display 0.2s allow-discrete;
    }
    .n-js .n-kopf--balken.ist-offen .n-kopf__menue { opacity: 1; translate: none; }
    @starting-style {
      .n-js .n-kopf--balken.ist-offen .n-kopf__menue { opacity: 0; translate: 0 -0.5rem; }
    }
  }
}

@keyframes n-weich-auf {
  from { opacity: 0; translate: 0 0.625rem; }
  to   { opacity: 1; translate: none; }
}
@keyframes n-weich-foto {
  from { opacity: 0; scale: 1.035; }
  to   { opacity: 1; scale: 1; }
}

@media screen and (prefers-reduced-motion: no-preference) {

  .n-suchfenster,
  .n-rechnerfenster {
    transition: opacity 0.2s ease-out, translate 0.2s ease-out,
                overlay 0.2s ease-out allow-discrete, display 0.2s ease-out allow-discrete;
  }
  .n-suchfenster:not([open]),
  .n-rechnerfenster:not([open]) { opacity: 0; translate: 0 0.75rem; }
  @starting-style {
    .n-suchfenster[open],
    .n-rechnerfenster[open] { opacity: 0; translate: 0 0.75rem; }
  }
  .n-suchfenster::backdrop,
  .n-rechnerfenster::backdrop {
    transition: opacity 0.2s ease-out, overlay 0.2s ease-out allow-discrete, display 0.2s ease-out allow-discrete;
  }
  .n-suchfenster:not([open])::backdrop,
  .n-rechnerfenster:not([open])::backdrop { opacity: 0; }
  @starting-style {
    .n-suchfenster[open]::backdrop,
    .n-rechnerfenster[open]::backdrop { opacity: 0; }
  }
  .n-fachwort__erklaerung {
    transition: opacity 0.18s ease-out, translate 0.18s ease-out,
                overlay 0.18s ease-out allow-discrete, display 0.18s ease-out allow-discrete;
  }
  .n-fachwort__erklaerung:not(:popover-open) { opacity: 0; translate: 0 0.375rem; }
  @starting-style {
    .n-fachwort__erklaerung:popover-open { opacity: 0; translate: 0 0.375rem; }
  }

  .n-titelband__foto img,
  .n-fotoband img { animation: n-weich-foto 0.9s ease-out both; }

  .n-ergebnis:not([hidden]) { animation: n-weich-auf 0.4s ease-out both; }

  :where(a:not(.n-knopf)) {
    transition: color var(--dauer-zeigen) ease-out,
                text-decoration-color var(--dauer-zeigen) ease-out,
                background-color var(--dauer-zeigen) ease-out,
                border-color var(--dauer-zeigen) ease-out;
  }

  .n-knopf {
    transition: box-shadow var(--dauer-zeigen) ease-out,
                background-color var(--dauer-zeigen) ease-out,
                color var(--dauer-zeigen) ease-out,
                border-color var(--dauer-zeigen) ease-out,
                transform var(--dauer-zeigen) ease-out,
                scale 0.1s ease-out;
  }
  .n-knopf:active,
  .n-abschnitt__fuss > a:not(.n-knopf):active { scale: 0.97; }
  .n-abschnitt__fuss > a:not(.n-knopf) {
    transition: background-color var(--dauer-zeigen) ease-out,
                color var(--dauer-zeigen) ease-out,
                border-color var(--dauer-zeigen) ease-out,
                scale 0.1s ease-out;
  }
  .n-knopf--sanft::after,
  .n-abschnitt__fuss > a:not(.n-knopf)::after { transition: translate var(--dauer-zeigen) ease-out; }
  .n-knopf--sanft:hover::after,
  .n-abschnitt__fuss > a:not(.n-knopf):hover::after { translate: 0.15rem 0; }

  .n-hero__text > *,
  .n-titelband > h1,
  .n-titelband > p,
  .n-titelband__rechts > * { animation: n-weich-auf 0.55s ease-out both; }
  .n-hero__text > :nth-child(2),
  .n-titelband > p,
  .n-titelband__rechts > :nth-child(1) { animation-delay: 0.08s; }
  .n-hero__text > :nth-child(3),
  .n-titelband__rechts > :nth-child(2) { animation-delay: 0.16s; }
  .n-hero__text > :nth-child(n+4),
  .n-titelband__rechts > :nth-child(n+3) { animation-delay: 0.24s; }
}

.n-karte:has(> a:last-child):hover,
.n-preis:has(> a:last-child):hover,
a.n-werkzeugkarte:hover,
a.n-werkzeugkarte:focus-visible { transform: none; }

@media screen and (prefers-reduced-motion: no-preference) and (hover: hover) {
  .n-karte:has(> a:last-child),
  .n-preis:has(> a:last-child),
  a.n-werkzeugkarte,
  .n-seitennav__liste a,
  .n-lagen a.n-lage,
  .n-kopf .n-lagen__fuss a.n-lagen__frei,
  .n-kopf a.n-sofort__aktion,
  .n-preisklick .n-klickwahl {
    transition: transform var(--dauer-heben) var(--kurve-heben),
                box-shadow var(--dauer-heben) var(--kurve-heben),
                background-color var(--dauer-zeigen) ease-out,
                border-color var(--dauer-zeigen) ease-out,
                color var(--dauer-zeigen) ease-out;
  }

  .n-karte:has(> a:last-child):hover,
  .n-preis:has(> a:last-child):hover,
  a.n-werkzeugkarte:hover,
  a.n-werkzeugkarte:focus-visible { transform: translateY(var(--heben-zeigen)); }

  .n-seitennav__liste a:hover,
  .n-lagen a.n-lage:hover,
  .n-kopf .n-lagen__fuss a.n-lagen__frei:hover {
    transform: translateY(var(--heben-zeigen));
    box-shadow: var(--schatten-kachel-zeigen);
  }

  .n-kopf a.n-sofort__aktion:hover,
  .n-preisklick .n-klickwahl:hover { transform: translateY(var(--heben-zeigen)); }
}

@keyframes n-lesen-fortschritt {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    header.n-kopf--balken::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: var(--linie-fortschritt);
      background: var(--farbe-messing);
      scale: 0 1;
      transform-origin: left;
      pointer-events: none;
      animation: n-lesen-fortschritt linear both;
      animation-timeline: scroll(root block);
    }
  }
}

@property --n-bw-strich {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@keyframes n-bw-strich {
  from { --n-bw-strich: 0%; }
  to   { --n-bw-strich: 100%; }
}

@keyframes n-bw-pixel {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes n-haken-zeichnen {
  0%   { clip-path: inset(0 100% 100% 0); }
  40%  { clip-path: inset(0 calc(100% - 2px) 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@media screen and (prefers-reduced-motion: no-preference) {

  .n-fuss__pixel.ist-bereit img { clip-path: inset(0 100% 0 0); }
  .n-fuss__pixel.ist-bereit.ist-sichtbar img {
    animation: n-bw-pixel var(--dauer-pixel) steps(16, jump-start) both;
  }

  .n-fuss__titel.ist-bereit::after { scale: 0 1; transform-origin: left; }
  .n-fuss__titel.ist-bereit.ist-sichtbar::after {
    animation: n-bw-waagrecht var(--dauer-linie) ease-out both;
  }

  :is(.n-umfang-details, .n-preisklick__umfang, .n-hero--start .n-hero__text).ist-bereit {
    --n-bw-strich: 0%;
    border-image: linear-gradient(to right, var(--linie-messing) var(--n-bw-strich), transparent var(--n-bw-strich)) 1;
  }
  :is(.n-umfang-details, .n-preisklick__umfang, .n-hero--start .n-hero__text).ist-bereit.ist-sichtbar {
    animation: n-bw-strich var(--dauer-linie) ease-out both;
  }

  .n-preisklick .n-klickwahl:has(input:checked)::after {
    animation: n-haken-zeichnen var(--dauer-haken) ease-out backwards;
  }
}

@keyframes n-bw-sprung {
  0%   { scale: 0 1; opacity: 1; }
  30%  { scale: 1 1; opacity: 1; }
  65%  { scale: 1 1; opacity: 1; }
  100% { scale: 1 1; opacity: 0; }
}
@keyframes n-weich-ein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media screen and (prefers-reduced-motion: no-preference) {

  .ist-angesprungen { position: relative; }
  .ist-angesprungen::after {
    content: "";
    position: absolute;
    left: 0;
    top: calc(100% + var(--abstand-sprung));
    width: var(--strich-sprung);
    max-width: 100%;
    height: var(--linie-sprung);
    background: var(--farbe-messing);
    transform-origin: left;
    opacity: 0;
    pointer-events: none;
    animation: n-bw-sprung var(--dauer-sprung) ease-out;
  }

  details.n-umfang-details { interpolate-size: allow-keywords; }
  details.n-umfang-details::details-content {
    height: 0;
    overflow: clip;
    overflow-clip-margin: 0.5rem;
    transition: height var(--dauer-aufklappen) ease-out,
                content-visibility var(--dauer-aufklappen) allow-discrete;
  }
  details.n-umfang-details[open]::details-content { height: auto; }

  @media (min-width: 64.0625rem) {
    .n-nav__punkt > a[aria-current].ist-bereit {
      --n-bw-strich: 0%;
      border-image: linear-gradient(to right, var(--farbe-messing) var(--n-bw-strich), transparent var(--n-bw-strich)) 1;
    }
    .n-nav__punkt > a[aria-current].ist-bereit.ist-sichtbar {
      animation: n-bw-strich var(--dauer-menuelinie) ease-out both;
    }
  }

  .n-brotkrumen li { animation: n-weich-ein var(--dauer-brotkrume) ease-out backwards; }
  .n-brotkrumen li:nth-child(2) { animation-delay: var(--abstand-brotkrume); }
  .n-brotkrumen li:nth-child(n+3) { animation-delay: calc(2 * var(--abstand-brotkrume)); }

  .n-preisklick__ergebnis .n-preisklick__umfang.ist-bereit.ist-sichtbar {
    animation-delay: var(--verzug-preislinie);
  }

  #anfrage-status > [data-status="gesendet"]::before {
    animation: n-haken-zeichnen var(--dauer-haken) ease-out var(--verzug-haken-gesendet) backwards;
  }
}

@property --n-bw-rund {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}
@keyframes n-bw-rund {
  from { --n-bw-rund: 0deg; }
  to   { --n-bw-rund: 360deg; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .n-titelband--bild > picture.ist-bereit::after {
    --n-bw-rund: 0deg;
    mask-image: conic-gradient(var(--farbe-messing) var(--n-bw-rund), transparent var(--n-bw-rund));
  }
  .n-titelband--bild > picture.ist-bereit.ist-sichtbar::after {
    animation: n-bw-rund var(--dauer-rand) ease-in-out both;
  }
}
