/*
 * Notar Marcel Grau, Bad Mergentheim: Designvorschlag 2026 (OP#6192)
 *
 * Gestaltung
 *   Farben   Schiefer #45556a (Marke), Tiefschiefer #202a36 (Text, dunkle Flächen),
 *            Nebel #dde3ea (Linien), Kalk #f3f5f8 (Wechselgrund), Landesgold #f2c230
 *            (aus dem Wappen im Logo, nur für kleine Akzente).
 *   Schrift  Archivo variabel: Überschriften schmal (font-stretch 68-80 %) wie der
 *            Schriftzug im Logo, Fließtext normal breit, 18 px.
 *   Raster   linksbündig, Inhalte max. 1320 px, Text max. ca. 70 Zeichen.
 *   Bewegung Einstieg und Ablauf "So arbeiten wir" auf der Startseite (assets/js/motion.js),
 *            sonst nur als Antwort auf Interaktion. prefers-reduced-motion wird respektiert.
 *
 * Die Inhaltsseiten stammen aus dem 1:1-Nachbau (Klassen ngr-band, ngr-split, ngr-person …)
 * und werden hier neu gestaltet; die Startseite nutzt eigene Blöcke (ngr-hero, ngr-process …).
 */

/* ============================================================ Grundlagen */

:root {
  --ngr-slate: #45556a;
  --ngr-slate-dark: #36445a;
  --ngr-ink: #202a36;
  --ngr-muted: #5b6878;
  --ngr-line: #dde3ea;
  --ngr-line-strong: #c9d2dc;
  --ngr-chalk: #f3f5f8;
  --ngr-gold: #f2c230;
  --ngr-on-dark: #c3ccd6;
  --ngr-line-dark: rgba(255, 255, 255, 0.16);

  --ngr-font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ngr-narrow: 72%;

  --ngr-wrap: 1320px;
  --ngr-gutter: clamp(20px, 5vw, 64px);
  --ngr-inline: max(var(--ngr-gutter), calc((100% - var(--ngr-wrap)) / 2));
  --ngr-section: clamp(72px, 9vw, 136px);
  --ngr-header-h: 84px;
  --ngr-adminbar: 0px;
  --ngr-sticky-top: calc(var(--ngr-header-h) + var(--ngr-adminbar) + 32px);

  --ngr-radius-s: 4px;
  --ngr-radius-m: 6px;
  --ngr-radius-l: 10px;
  --ngr-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ngr-header-h) + var(--ngr-adminbar) + 24px);
}

body {
  margin: 0;
  font-family: var(--ngr-font);
  font-size: 1.125rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.65;
  color: var(--ngr-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.ngr-menu-open {
  overflow: hidden;
}

.ngr-main {
  display: block;
  overflow-x: clip;
}

.ngr-main:focus {
  outline: none;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 640;
  font-stretch: var(--ngr-narrow);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: inherit;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 1.5rem + 5vw, 6rem);
}

h2 {
  font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
  line-height: 1.15;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--ngr-slate);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover {
  color: var(--ngr-ink);
  text-decoration-thickness: 2px;
}

strong,
b {
  font-weight: 620;
}

:focus-visible {
  outline: 3px solid var(--ngr-slate);
  outline-offset: 3px;
  border-radius: 2px;
}

.is-dark :focus-visible,
.ngr-footer :focus-visible,
.ngr-formscard :focus-visible {
  outline-color: var(--ngr-gold);
}

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

.ngr-skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ngr-ink);
  color: #fff;
  border-radius: var(--ngr-radius-m);
  transform: translateY(-200%);
}

.ngr-skip-link:focus {
  transform: none;
  color: #fff;
}

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

.wp-block-image {
  margin: 0;
}

.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--ngr-line);
  margin: 2rem 0;
}

/* ============================================================ Buttons und Links */

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 1.75rem 0 0;
}

.wp-block-button {
  margin: 0;
}

.wp-block-button__link,
.ngr-button,
.ngr-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.7em 1.5em;
  border: 1.5px solid var(--ngr-slate);
  border-radius: var(--ngr-radius-m);
  background: var(--ngr-slate);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 580;
  font-stretch: 90%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.wp-block-button__link:hover,
.ngr-button:hover,
.ngr-form__submit:hover {
  background: var(--ngr-ink);
  border-color: var(--ngr-ink);
  color: #fff;
}

.is-style-outline > .wp-block-button__link {
  background: transparent;
  color: var(--ngr-slate);
}

.is-style-outline > .wp-block-button__link:hover {
  background: transparent;
  border-color: var(--ngr-ink);
  color: var(--ngr-ink);
}

.ngr-button--light,
.is-dark .wp-block-button__link {
  background: #fff;
  border-color: #fff;
  color: var(--ngr-ink);
}

.ngr-button--light:hover,
.is-dark .wp-block-button__link:hover {
  background: var(--ngr-gold);
  border-color: var(--ngr-gold);
  color: var(--ngr-ink);
}

.ngr-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 580;
}

.ngr-textlink svg {
  width: 18px;
  height: 18px;
}

.ngr-icon {
  flex: none;
}

/* ============================================================ Kopfbereich */

.ngr-header {
  position: sticky;
  top: var(--ngr-adminbar);
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.ngr-header.is-scrolled {
  border-bottom-color: var(--ngr-line);
}

.ngr-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100% - 2 * var(--ngr-gutter), var(--ngr-wrap));
  height: var(--ngr-header-h);
  margin-inline: auto;
}

.ngr-header__logo {
  flex: none;
  border-radius: 2px;
}

.ngr-header__logo img {
  width: 176px;
}

.ngr-menu {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.ngr-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ngr-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.ngr-nav__link {
  position: relative;
  display: block;
  padding: 10px 11px;
  color: var(--ngr-ink);
  font-size: 1rem;
  font-weight: 520;
  font-stretch: 88%;
  line-height: 1.2;
  text-decoration: none;
}

.ngr-nav__link:hover {
  color: var(--ngr-ink);
}

.ngr-nav__list > .ngr-nav__item > .ngr-nav__link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--ngr-slate);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ngr-ease);
}

.ngr-nav__list > .ngr-nav__item > .ngr-nav__link:hover::after,
.ngr-nav__list > .ngr-nav__item.is-current > .ngr-nav__link::after {
  transform: scaleX(1);
}

.ngr-nav__item.has-children > .ngr-nav__link {
  padding-right: 4px;
}

.ngr-nav__item.has-children > .ngr-nav__link::after {
  right: 4px;
}

.ngr-nav__toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ngr-muted);
  cursor: pointer;
}

.ngr-nav__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ngr-ease);
}

.ngr-nav__item.is-open > .ngr-nav__toggle svg {
  transform: rotate(180deg);
}

.ngr-nav__sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 290px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--ngr-line);
  border-radius: var(--ngr-radius-l);
  box-shadow: 0 28px 56px -28px rgba(32, 42, 54, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.25s var(--ngr-ease), visibility 0s 0.25s;
}

.ngr-nav__sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}

.ngr-nav__item.has-children:hover > .ngr-nav__sub,
.ngr-nav__item.has-children:focus-within > .ngr-nav__sub,
.ngr-nav__item.is-open > .ngr-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s, transform 0.25s var(--ngr-ease);
}

.ngr-nav__sub .ngr-nav__item {
  display: block;
}

.ngr-nav__sub .ngr-nav__link {
  padding: 11px 14px;
  border-radius: var(--ngr-radius-m);
  font-stretch: 95%;
  font-weight: 460;
}

.ngr-nav__sub .ngr-nav__link:hover,
.ngr-nav__sub .ngr-nav__item.is-current > .ngr-nav__link {
  background: var(--ngr-chalk);
}

.ngr-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.ngr-lang {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ngr-line-strong);
  border-radius: 999px;
  color: var(--ngr-ink);
  font-size: 0.875rem;
  font-weight: 620;
  font-stretch: 90%;
  text-decoration: none;
}

.ngr-lang:hover {
  border-color: var(--ngr-ink);
}

.ngr-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--ngr-slate);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 580;
  font-stretch: 90%;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.ngr-header__phone:hover {
  background: var(--ngr-ink);
  color: #fff;
}

.ngr-header__phone svg {
  width: 18px;
  height: 18px;
}

.ngr-burger,
.ngr-menu__contact {
  display: none;
}

@media (max-width: 1279px) {
  .ngr-header__phone span {
    display: none;
  }

  .ngr-header__phone {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 1139px) {
  :root {
    --ngr-header-h: 76px;
  }

  /* backdrop-filter macht den Header zum Bezugsrahmen für position: fixed, das Menü hätte
     dann keine Höhe. Mobil deshalb deckend weiß ohne Filter. */
  .ngr-header {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .ngr-header__bar {
    justify-content: space-between;
  }

  .ngr-burger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px 0 14px;
    border: 1px solid var(--ngr-line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--ngr-ink);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 580;
    font-stretch: 90%;
    cursor: pointer;
  }

  .ngr-burger__icon {
    position: relative;
    width: 18px;
    height: 12px;
  }

  .ngr-burger__icon span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ngr-ease), top 0.3s var(--ngr-ease);
  }

  .ngr-burger__icon span:first-child {
    top: 1px;
  }

  .ngr-burger__icon span:last-child {
    top: 9px;
  }

  .ngr-burger[aria-expanded="true"] .ngr-burger__icon span:first-child {
    top: 5px;
    transform: rotate(45deg);
  }

  .ngr-burger[aria-expanded="true"] .ngr-burger__icon span:last-child {
    top: 5px;
    transform: rotate(-45deg);
  }

  .ngr-menu {
    position: fixed;
    top: calc(var(--ngr-header-h) + var(--ngr-adminbar));
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px var(--ngr-gutter) 40px;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--ngr-line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ngr-ease), visibility 0s 0.3s;
  }

  .ngr-menu[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ngr-ease);
  }

  .ngr-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ngr-nav__item {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--ngr-line);
  }

  .ngr-nav__link,
  .ngr-nav__item.has-children > .ngr-nav__link {
    flex: 1;
    padding: 16px 0;
    font-size: 1.625rem;
    font-weight: 620;
    font-stretch: 74%;
  }

  .ngr-nav__list > .ngr-nav__item > .ngr-nav__link::after {
    display: none;
  }

  .ngr-nav__toggle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
  }

  .ngr-nav__toggle svg {
    width: 22px;
    height: 22px;
  }

  .ngr-menu .ngr-nav__sub {
    position: static;
    display: none;
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .ngr-menu .ngr-nav__item.is-open > .ngr-nav__sub {
    display: block;
  }

  .ngr-nav__sub .ngr-nav__item {
    border: 0;
  }

  .ngr-nav__sub .ngr-nav__link {
    padding: 9px 0 9px 18px;
    font-size: 1.125rem;
  }

  .ngr-menu__contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 36px;
  }

  .ngr-menu__contact a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ngr-ink);
    font-size: 1.125rem;
    text-decoration: none;
  }

  .ngr-menu__contact svg {
    width: 22px;
    height: 22px;
    color: var(--ngr-slate);
  }
}

@media (max-width: 520px) {
  :root {
    --ngr-header-h: 68px;
  }

  .ngr-header__bar {
    gap: 12px;
  }

  .ngr-header__logo img {
    width: 144px;
  }

  .ngr-header__tools {
    gap: 6px;
  }

  .ngr-burger {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .ngr-burger__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

/* ============================================================ Seitenkopf der Unterseiten */

.ngr-pagehead {
  padding-top: clamp(36px, 5vw, 80px);
}

.ngr-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ngr-muted);
}

.ngr-crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin: 0 10px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.6;
}

.ngr-crumbs a {
  color: inherit;
  text-decoration: none;
}

.ngr-crumbs a:hover {
  color: var(--ngr-ink);
  text-decoration: underline;
}

.ngr-pagehead__title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.75rem, 1.4rem + 5.4vw, 6.25rem);
  font-stretch: 68%;
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.ngr-pagehead__media {
  width: min(100% - 2 * var(--ngr-gutter), var(--ngr-wrap));
  height: clamp(200px, 28vw, 420px);
  margin: clamp(32px, 4.5vw, 64px) auto 0;
  overflow: hidden;
  border-radius: var(--ngr-radius-s);
  background: var(--ngr-line);
}

.ngr-pagehead__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ngr-pos, 50% 50%);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ngr-pagehead__img {
      height: 124%;
      animation: ngr-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes ngr-drift {
  from {
    transform: translateY(-2%);
  }

  to {
    transform: translateY(-19%);
  }
}

@media (max-width: 640px) {
  .ngr-pagehead__media {
    width: 100%;
    border-radius: 0;
  }

  .ngr-pagehead__img {
    object-position: var(--ngr-pos-m, 50% 50%);
  }
}

/* ============================================================ Abschnitte */

.ngr-section,
.ngr-band {
  padding: var(--ngr-section) var(--ngr-inline);
}

.ngr-section.is-dark {
  background: var(--ngr-ink);
  color: var(--ngr-on-dark);
}

.ngr-section.is-dark h2,
.ngr-section.is-dark h3 {
  color: #fff;
}

.ngr-section.is-dark a {
  color: #fff;
}

.ngr-section__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px clamp(24px, 5vw, 96px);
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}

.ngr-section__head > h2 {
  margin: 0;
}

.ngr-section__head > p {
  max-width: 40rem;
  margin: 0;
  color: var(--ngr-muted);
}

.ngr-section.is-dark .ngr-section__head > p {
  color: var(--ngr-on-dark);
}

.ngr-split-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(24px, 5vw, 96px);
  align-items: start;
}

.ngr-split-intro > h2 {
  margin: 0;
}

.ngr-split-intro__text > p {
  max-width: 40rem;
}

.ngr-split-intro__text > .wp-block-buttons {
  margin-top: 2rem;
}

.ngr-statement {
  max-width: 28ch;
  margin-top: 1.4em;
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem);
  font-weight: 520;
  font-stretch: 80%;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ngr-slate);
}

@media (max-width: 959px) {
  .ngr-section__head,
  .ngr-split-intro {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================ Startseite: Einstieg */

.ngr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(440px, 42vw, 640px);
}

.ngr-hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 6vw, 96px) var(--ngr-gutter);
  background: var(--ngr-slate) url("../img/coat-light.png") no-repeat 50% 50% / auto 78%;
  color: #fff;
  text-align: center;
}

.ngr-hero__title {
  margin: 0;
  font-size: clamp(2.25rem, 1rem + 2.5vw, 3.5rem);
  font-weight: 440;
  font-stretch: 88%;
  line-height: 1.12;
  letter-spacing: 0;
  word-spacing: 0.06em;
}

.ngr-hero__title span {
  white-space: nowrap;
}

.ngr-hero__name {
  --ngr-rule: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 16px 0 0;
  font-size: clamp(1.75rem, 1.1rem + 1.8vw, 3rem);
  font-weight: 400;
  font-stretch: 88%;
  line-height: 1.1;
}

.ngr-hero__name::before {
  content: "";
  width: min(400px, 70vw);
  height: 2px;
  background: var(--ngr-gold);
  transform: scaleX(var(--ngr-rule));
  transform-origin: center;
}

.ngr-hero__image {
  position: relative;
  min-height: 440px;
  margin: 0;
  overflow: hidden;
  background: var(--ngr-line);
}

.ngr-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 22%;
}

.ngr-hero-bar {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 5vw, 72px) var(--ngr-inline);
  border-bottom: 1px solid var(--ngr-line);
}

.ngr-hero__lead {
  max-width: 40rem;
  margin: 0;
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
}

.ngr-hero-bar__actions .wp-block-buttons {
  margin: 0;
}

.ngr-today {
  position: relative;
  margin: 30px 0 0;
  padding-left: 26px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ngr-muted);
}

.ngr-today__dot {
  position: absolute;
  top: 0.5em;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ngr-line-strong);
  box-shadow: 0 0 0 4px rgba(201, 210, 220, 0.45);
}

.ngr-today.is-open .ngr-today__dot {
  background: var(--ngr-gold);
  box-shadow: 0 0 0 4px rgba(242, 194, 48, 0.28);
}

.ngr-today__phone {
  color: var(--ngr-ink);
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}

.ngr-today__phone:hover {
  text-decoration: underline;
}

html.ngr-intro .ngr-hero__text > *,
html.ngr-intro .ngr-hero__image,
html.ngr-intro .ngr-hero-bar {
  opacity: 0;
}

@media (max-width: 959px) {
  .ngr-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .ngr-hero__image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .ngr-hero__image img {
    object-position: 50% 22%;
  }

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

/* ============================================================ Tätigkeiten als Liste mit Vorschau */

.ngr-section--services {
  background: var(--ngr-chalk);
}

.ngr-services {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.ngr-band .ngr-services {
  margin-top: clamp(32px, 4vw, 56px);
}

.ngr-services__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ngr-line-strong);
}

.ngr-services__item {
  border-bottom: 1px solid var(--ngr-line-strong);
}

.ngr-services__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  grid-template-areas:
    "title arrow"
    "text arrow";
  column-gap: 24px;
  padding: 24px 4px 24px 0;
  color: var(--ngr-ink);
  text-decoration: none;
}

.ngr-services__link:hover {
  color: var(--ngr-ink);
}

.ngr-services__title {
  grid-area: title;
  font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem);
  font-weight: 630;
  font-stretch: 72%;
  line-height: 1.04;
  letter-spacing: -0.012em;
  transition: transform 0.45s var(--ngr-ease), color 0.25s;
}

.ngr-services__text {
  grid-area: text;
  display: -webkit-box;
  max-width: 44rem;
  margin-top: 6px;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ngr-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: transform 0.45s var(--ngr-ease);
}

.ngr-services__arrow {
  grid-area: arrow;
  align-self: center;
  width: 28px;
  height: 28px;
  color: var(--ngr-slate);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.25s, transform 0.45s var(--ngr-ease);
}

.ngr-services__link:hover .ngr-services__title,
.ngr-services__link:focus-visible .ngr-services__title,
.ngr-services__item.is-active .ngr-services__title {
  color: var(--ngr-slate);
  transform: translateX(12px);
}

.ngr-services__link:hover .ngr-services__text,
.ngr-services__link:focus-visible .ngr-services__text,
.ngr-services__item.is-active .ngr-services__text {
  transform: translateX(12px);
}

.ngr-services__link:hover .ngr-services__arrow,
.ngr-services__link:focus-visible .ngr-services__arrow,
.ngr-services__item.is-active .ngr-services__arrow {
  opacity: 1;
  transform: none;
}

.ngr-services__preview {
  position: sticky;
  top: var(--ngr-sticky-top);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--ngr-radius-s);
  background: var(--ngr-line);
}

.ngr-services__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.5s var(--ngr-ease), transform 1.4s var(--ngr-ease);
}

.ngr-services__img.is-active {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 959px) {
  .ngr-services {
    grid-template-columns: minmax(0, 1fr);
  }

  .ngr-services__preview {
    display: none;
  }

  .ngr-services__arrow {
    opacity: 1;
    transform: none;
  }

  .ngr-services__link:hover .ngr-services__title,
  .ngr-services__link:hover .ngr-services__text,
  .ngr-services__item.is-active .ngr-services__title,
  .ngr-services__item.is-active .ngr-services__text {
    transform: none;
  }
}

/* ============================================================ Startseite: Ablauf mit Urkunde */

.ngr-process__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}

.ngr-doc {
  position: sticky;
  top: calc(var(--ngr-sticky-top) + 16px);
}

.ngr-doc__svg {
  display: block;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - var(--ngr-header-h) - 160px);
  height: auto;
  margin-inline: auto;
  overflow: visible;
}

.ngr-doc__stack rect {
  fill: #2b3746;
  stroke: rgba(255, 255, 255, 0.07);
}

.ngr-doc__paper {
  fill: #f6f7f9;
}

.ngr-doc__line {
  fill: none;
  stroke: #c8d0d9;
  stroke-width: 6;
  stroke-linecap: round;
}

.ngr-doc__line.is-strong {
  stroke: var(--ngr-slate);
  stroke-width: 9;
}

.ngr-doc__field {
  fill: #fff;
  stroke: #d3dae2;
  stroke-width: 1.5;
}

.ngr-doc__ink {
  fill: none;
  stroke: var(--ngr-slate);
  stroke-width: 4;
  stroke-linecap: round;
}

.ngr-doc__draft {
  font-family: var(--ngr-font);
  font-size: 68px;
  font-weight: 700;
  font-stretch: 70%;
  letter-spacing: 0.04em;
  fill: none;
  stroke: rgba(69, 85, 106, 0.4);
  stroke-width: 1.5;
}

.ngr-doc__signature {
  fill: none;
  stroke: #28489a;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ngr-doc__seal-ring {
  fill: var(--ngr-gold);
}

.ngr-doc__seal-inner {
  fill: none;
  stroke: rgba(32, 42, 54, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

.ngr-doc__seal-shield {
  fill: none;
  stroke: var(--ngr-ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ngr-doc__badge-bg {
  fill: var(--ngr-ink);
}

.ngr-doc__badge-check {
  fill: none;
  stroke: var(--ngr-gold);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ngr-doc__badge-text {
  font-family: var(--ngr-font);
  font-size: 17px;
  font-weight: 620;
  font-stretch: 85%;
  fill: #fff;
}

/* Ohne Animation: Endzustand (unterschrieben, gesiegelt, eingetragen). */
.ngr-doc__state[data-state="1"],
.ngr-doc__state[data-state="2"] {
  opacity: 0;
  visibility: hidden;
}

.ngr-steps {
  counter-reset: ngr-step;
}

.ngr-step {
  position: relative;
  padding: 0 0 clamp(48px, 7vw, 96px) 76px;
  counter-increment: ngr-step;
  transition: opacity 0.4s;
}

.ngr-step::before {
  content: counter(ngr-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  font-size: 1.0625rem;
  font-weight: 620;
  font-stretch: 85%;
  color: #fff;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.ngr-step::after {
  content: "";
  position: absolute;
  top: 58px;
  bottom: 12px;
  left: 23px;
  width: 1px;
  background: var(--ngr-line-dark);
}

.ngr-step:last-child {
  padding-bottom: 0;
}

.ngr-step:last-child::after {
  display: none;
}

.ngr-step h3 {
  margin: 4px 0 16px;
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
}

.ngr-step p {
  max-width: 36rem;
}

.ngr-step p:last-child {
  margin-bottom: 0;
}

.ngr-step.is-active::before {
  background: var(--ngr-gold);
  border-color: var(--ngr-gold);
  color: var(--ngr-ink);
}

.ngr-steps.is-tracking .ngr-step:not(.is-active) {
  opacity: 0.42;
}

html.ngr-motion-desktop .ngr-step {
  min-height: 56vh;
}

html.ngr-motion-desktop .ngr-step:last-child {
  min-height: 40vh;
}

@media (max-width: 959px) {
  .ngr-process__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .ngr-doc {
    position: static;
    max-width: 300px;
  }

  .ngr-step {
    padding-left: 64px;
  }
}

/* ============================================================ Startseite: Standort */

.ngr-location {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 60vw, 840px);
  padding: clamp(24px, 4vw, 64px) var(--ngr-inline);
  overflow: hidden;
}

.ngr-location__image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.ngr-location__image img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 62%;
}

.ngr-location__box {
  position: relative;
  width: min(540px, 100%);
  padding: clamp(28px, 3.5vw, 48px);
  background: #fff;
  border-radius: var(--ngr-radius-l);
  box-shadow: 0 40px 80px -40px rgba(32, 42, 54, 0.5);
}

.ngr-location__box h2 {
  font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.875rem);
}

.ngr-address {
  margin: 0;
  font-weight: 520;
}

@media (max-width: 640px) {
  .ngr-location {
    display: block;
    min-height: 0;
    padding: 0 0 var(--ngr-section);
  }

  .ngr-location__image {
    position: relative;
    height: 300px;
  }

  .ngr-location__image img {
    height: 100%;
  }

  .ngr-location__box {
    width: auto;
    margin: -56px var(--ngr-gutter) 0;
  }
}

/* ============================================================ Listen mit Häkchen */

.ngr-checklist,
.ngr-pills {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.ngr-checklist li,
.ngr-pills li {
  position: relative;
  padding-left: 34px;
}

.ngr-checklist li {
  margin: 10px 0;
}

.ngr-checklist li::before,
.ngr-pills li::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--ngr-slate);
  -webkit-mask: var(--ngr-i-check) center / contain no-repeat;
  mask: var(--ngr-i-check) center / contain no-repeat;
}

.ngr-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  border-top: 1px solid var(--ngr-line);
}

.ngr-pills li {
  padding-top: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--ngr-line);
  line-height: 1.45;
}

.ngr-pills li::before {
  top: 14px;
}

.ngr-pills.is-compact {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .ngr-pills {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================ Inhaltsseiten (Bänder aus dem Nachbau) */

.ngr-content > .ngr-band {
  background: #fff;
}

.ngr-content > .ngr-band:first-child {
  padding-top: clamp(48px, 6vw, 88px);
}

.ngr-content > .ngr-band + .ngr-band {
  background: var(--ngr-chalk);
}

.ngr-band > p,
.ngr-band > h2,
.ngr-band > h3,
.ngr-band > ul.wp-block-list:not([class*="ngr-"]),
.ngr-band > ol.wp-block-list {
  max-width: 46rem;
}

.ngr-band.is-dark > p:first-of-type,
.ngr-band--services > p:first-of-type {
  max-width: 44rem;
  font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem);
  line-height: 1.55;
}

.ngr-band ul.wp-block-list:not([class*="ngr-"]) {
  padding-left: 1.2em;
}

.ngr-band ul.wp-block-list:not([class*="ngr-"]) li {
  margin: 0.35em 0;
}

.ngr-text h2 {
  margin-top: 1.6em;
  font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.375rem);
}

.ngr-text h3 {
  margin-top: 1.5em;
  font-size: 1.375rem;
}

.ngr-text h4 {
  margin-top: 1.4em;
}

.ngr-band--legal p {
  margin-bottom: 0.3em;
}

.ngr-band--legal a {
  overflow-wrap: anywhere;
}

/* ---------- Tätigkeitsbereich: Text links, Ansprechpartner und Formulare rechts */

.ngr-band--service {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  grid-template-areas:
    "text person"
    "text forms"
    "focus forms"
    "focus .";
  grid-template-rows: auto auto auto 1fr;
  gap: 40px clamp(32px, 5vw, 96px);
  align-items: start;
}

.ngr-band--service .ngr-split,
.ngr-band--service .ngr-person-row {
  display: contents;
}

.ngr-band--service .ngr-textcard {
  grid-area: text;
}

.ngr-textcard p {
  max-width: 42rem;
}

.ngr-textcard p:first-child {
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.6;
}

.ngr-band--service .ngr-formscard {
  grid-area: forms;
}

.ngr-formscard {
  padding: clamp(26px, 2.6vw, 36px);
  background: var(--ngr-slate);
  color: #e3e8ee;
  border-radius: var(--ngr-radius-l);
}

.ngr-formscard p {
  font-size: 1rem;
  line-height: 1.55;
}

.ngr-formscard .ngr-formscard__title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 640;
  font-stretch: 74%;
  line-height: 1.1;
  color: #fff;
}

.ngr-arrowbuttons {
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.ngr-arrowbuttons .wp-block-button__link {
  justify-content: space-between;
  width: 100%;
  min-height: 0;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  background: none;
  color: #fff;
  font-size: 1.0625rem;
  font-stretch: 92%;
}

.ngr-arrowbuttons .wp-block-button__link::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--ngr-i-arrow-right) center / contain no-repeat;
  mask: var(--ngr-i-arrow-right) center / contain no-repeat;
  transition: transform 0.3s var(--ngr-ease);
}

.ngr-arrowbuttons .wp-block-button__link:hover {
  background: none;
  color: #fff;
}

.ngr-arrowbuttons .wp-block-button__link:hover::after {
  transform: translateX(4px);
}

.ngr-band--service .ngr-person {
  grid-area: person;
}

.ngr-person {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 20px;
  align-items: center;
}

.ngr-person__image {
  grid-row: span 3;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ngr-line);
}

.ngr-person__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.ngr-person .ngr-person__label {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ngr-muted);
}

.ngr-person .ngr-person__name {
  margin: 0;
  font-size: 1.875rem;
}

.ngr-person .wp-block-buttons {
  margin: 4px 0 0;
}

.ngr-person .wp-block-button__link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ngr-slate);
  font-stretch: 95%;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.ngr-person .wp-block-button__link:hover {
  background: none;
  color: var(--ngr-ink);
  text-decoration-thickness: 2px;
}

.ngr-band--service .ngr-focus {
  grid-area: focus;
}

.ngr-focus {
  padding-top: 8px;
}

.ngr-focus .ngr-focus__title {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  font-weight: 640;
  font-stretch: 74%;
  line-height: 1.1;
}

@media (max-width: 959px) {
  .ngr-band--service {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "text"
      "focus"
      "forms"
      "person";
    grid-template-rows: none;
  }
}

/* ---------- Team */

.ngr-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin: clamp(36px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ngr-line);
}

.ngr-team li {
  padding: 18px 0;
  border-bottom: 1px solid var(--ngr-line);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ngr-muted);
}

.ngr-team strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.3125rem;
  font-weight: 620;
  font-stretch: 84%;
  color: var(--ngr-ink);
}

.ngr-vita-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}

.ngr-vita > p:first-child {
  margin: 0 0 6px;
  color: var(--ngr-muted);
}

.ngr-vita > ul.wp-block-list {
  margin: 32px 0 40px;
  padding: 0;
  list-style: none;
}

.ngr-vita > ul.wp-block-list > li {
  position: relative;
  margin: 0;
  padding: 0 0 22px 32px;
  line-height: 1.5;
}

.ngr-vita > ul.wp-block-list > li::first-line {
  font-weight: 640;
  color: var(--ngr-slate);
}

.ngr-vita > ul.wp-block-list > li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--ngr-slate);
  border-radius: 50%;
  background: var(--ngr-chalk);
}

.ngr-vita > ul.wp-block-list > li::after {
  content: "";
  position: absolute;
  top: calc(0.45em + 13px);
  bottom: 2px;
  left: 5px;
  width: 1px;
  background: var(--ngr-line-strong);
}

.ngr-vita > ul.wp-block-list > li:last-child::after {
  display: none;
}

.ngr-portrait {
  position: sticky;
  top: var(--ngr-sticky-top);
  overflow: hidden;
  border-radius: var(--ngr-radius-s);
}

.ngr-portrait img {
  width: 100%;
}

@media (max-width: 959px) {
  .ngr-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ngr-portrait {
    position: static;
    max-width: 420px;
    order: -1;
  }
}

@media (max-width: 560px) {
  .ngr-team {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Vorträge (Team) */

.ngr-talks {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--ngr-line-strong);
}

.ngr-talks > :last-child {
  margin-bottom: 0;
}

.ngr-eyebrow {
  margin: -0.25em 0 1.5em;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ngr-slate);
}

/* ---------- Aufklappbare Abschnitte (FAQ) */

.wp-block-details {
  border-bottom: 1px solid var(--ngr-line-strong);
}

.ngr-accordion {
  border-top: 1px solid var(--ngr-line-strong);
}

.wp-block-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  font-weight: 580;
  font-stretch: 88%;
  line-height: 1.3;
  color: var(--ngr-ink);
}

.wp-block-details > summary::-webkit-details-marker {
  display: none;
}

.wp-block-details > summary::after {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  background: var(--ngr-slate);
  -webkit-mask: var(--ngr-i-plus) center / contain no-repeat;
  mask: var(--ngr-i-plus) center / contain no-repeat;
  transition: transform 0.35s var(--ngr-ease);
}

.wp-block-details[open] > summary::after {
  transform: rotate(45deg);
}

.wp-block-details > summary:hover {
  color: var(--ngr-slate);
}

.wp-block-details > :not(summary) {
  max-width: 46rem;
}

.wp-block-details > :last-child {
  margin-bottom: 28px;
}

@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .wp-block-details {
      interpolate-size: allow-keywords;
    }

    .wp-block-details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 0.4s var(--ngr-ease), content-visibility 0.4s allow-discrete;
    }

    .wp-block-details[open]::details-content {
      block-size: auto;
    }
  }
}

.ngr-band--faq .ngr-faq-title {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.ngr-faq {
  max-width: 58rem;
  border-top: 1px solid var(--ngr-line-strong);
}

/* ---------- Kontakt */

.ngr-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(36px, 4vw, 56px) 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ngr-line);
  border-bottom: 1px solid var(--ngr-line);
}

.ngr-contact-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 16px;
  padding: 26px 24px 26px 0;
}

.ngr-contact-card + .ngr-contact-card {
  padding-left: 28px;
  border-left: 1px solid var(--ngr-line);
}

.ngr-contact-card svg {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: var(--ngr-slate);
}

.ngr-contact-card .ngr-contact-card__title {
  margin: 0 0 2px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ngr-muted);
}

.ngr-contact-card p {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 540;
  line-height: 1.4;
}

.ngr-contact-card a {
  color: var(--ngr-ink);
  text-decoration: none;
}

.ngr-contact-card a:hover {
  text-decoration: underline;
}

.ngr-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
}

.ngr-contact-box {
  padding: clamp(26px, 3vw, 48px);
  background: var(--ngr-chalk);
  border-radius: var(--ngr-radius-l);
}

.ngr-contact-box h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.5rem);
}

.ngr-contact-box--map {
  display: flex;
  min-height: 480px;
  padding: 0;
  overflow: hidden;
}

@media (max-width: 959px) {
  .ngr-contact-cards,
  .ngr-contact-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ngr-contact-card,
  .ngr-contact-card + .ngr-contact-card {
    padding: 20px 0;
    border-left: 0;
  }

  .ngr-contact-card + .ngr-contact-card {
    border-top: 1px solid var(--ngr-line);
  }
}

/* ---------- Kontaktformular */

.ngr-form {
  position: relative;
}

.ngr-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.ngr-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ngr-form__field--email,
.ngr-form__field--message {
  grid-column: 1 / -1;
}

.ngr-form__label {
  font-size: 0.9375rem;
  font-weight: 560;
  line-height: 1.3;
}

.ngr-form input[type="text"],
.ngr-form input[type="tel"],
.ngr-form input[type="email"],
.ngr-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--ngr-line-strong);
  border-radius: var(--ngr-radius-m);
  background: #fff;
  color: var(--ngr-ink);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ngr-form textarea {
  min-height: 160px;
  resize: vertical;
}

.ngr-form input:focus,
.ngr-form textarea:focus {
  outline: none;
  border-color: var(--ngr-slate);
  box-shadow: 0 0 0 4px rgba(69, 85, 106, 0.18);
}

.ngr-form__consent {
  display: flex;
  gap: 12px;
  margin: 22px 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ngr-muted);
}

.ngr-form__consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ngr-slate);
}

.ngr-form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ngr-form__status {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--ngr-radius-m);
  font-size: 1rem;
}

.ngr-form__status.is-ok {
  background: #e4ede1;
  color: #22401a;
}

.ngr-form__status.is-error {
  background: #f6e4e0;
  color: #6b1d12;
}

@media (max-width: 560px) {
  .ngr-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Karte mit Zustimmung */

.ngr-map {
  position: relative;
  flex: 1;
  min-height: 420px;
  background: var(--ngr-line);
}

.ngr-map__consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background-position: center;
  background-size: cover;
}

.ngr-map__consent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(243, 245, 248, 0.7);
  -webkit-backdrop-filter: grayscale(1) blur(1px);
  backdrop-filter: grayscale(1) blur(1px);
}

.ngr-map__box {
  position: relative;
  max-width: 340px;
  padding: 28px;
  background: #fff;
  border-radius: var(--ngr-radius-l);
  box-shadow: 0 30px 60px -30px rgba(32, 42, 54, 0.45);
}

.ngr-map__box svg {
  width: 30px;
  height: 30px;
  color: var(--ngr-slate);
}

.ngr-map__address {
  margin: 10px 0 18px;
  font-weight: 560;
  line-height: 1.4;
}

.ngr-map__hint {
  margin: 12px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ngr-muted);
}

.ngr-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ngr-map--anfahrt {
  min-height: 520px;
  margin-top: 32px;
  overflow: hidden;
  border-radius: var(--ngr-radius-l);
}

/* ---------- Anfahrt */

.ngr-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  max-width: 64rem;
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--ngr-line);
}

.ngr-route {
  display: grid;
  align-content: start;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ngr-line);
}

.ngr-route::before {
  content: "";
  grid-row: span 2;
  width: 32px;
  height: 32px;
  background: var(--ngr-slate);
  -webkit-mask: var(--ngr-i-car) center / contain no-repeat;
  mask: var(--ngr-i-car) center / contain no-repeat;
}

.ngr-route--bus::before {
  -webkit-mask-image: var(--ngr-i-bus);
  mask-image: var(--ngr-i-bus);
}

.ngr-route--train::before {
  -webkit-mask-image: var(--ngr-i-train);
  mask-image: var(--ngr-i-train);
}

.ngr-route--parking::before {
  -webkit-mask-image: var(--ngr-i-parking);
  mask-image: var(--ngr-i-parking);
}

.ngr-route .ngr-route__label {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 630;
  font-stretch: 78%;
  line-height: 1.2;
}

.ngr-route .ngr-route__text {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ngr-muted);
}

.ngr-mapcards {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}

.ngr-mapcard h2 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.5rem);
}

.ngr-mapcard--route h2 {
  display: none;
}

.ngr-mapcard .ngr-maps-link {
  margin: 0;
}

@media (max-width: 720px) {
  .ngr-routes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Online-Formulare, Downloads */

.ngr-portal {
  margin-top: clamp(32px, 4vw, 56px);
}

.ngr-portal__frame {
  min-height: 480px;
}

.ngr-portal__frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

.ngr-portal__note {
  margin: 16px 0 0;
  font-size: 0.9375rem;
}

.ngr-portal-missing {
  padding: 16px;
  background: #fff5d6;
  border-radius: var(--ngr-radius-m);
}

.ngr-infoblock > h3 {
  margin: clamp(48px, 5vw, 72px) 0 12px;
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem);
}

.ngr-infoblock > h3:first-child {
  margin-top: 0;
}

.ngr-doclist {
  max-width: 58rem;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ngr-line-strong);
}

.ngr-doclist li {
  border-bottom: 1px solid var(--ngr-line-strong);
}

.ngr-doclist a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: var(--ngr-ink);
  font-weight: 520;
  line-height: 1.4;
  text-decoration: none;
}

.ngr-doclist a::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: var(--ngr-slate);
  -webkit-mask: var(--ngr-i-file) center / contain no-repeat;
  mask: var(--ngr-i-file) center / contain no-repeat;
}

.ngr-doclist.is-external a::before {
  -webkit-mask-image: var(--ngr-i-external);
  mask-image: var(--ngr-i-external);
}

.ngr-doclist a:hover {
  color: var(--ngr-slate);
  text-decoration: underline;
}

.ngr-arrowlink a,
.ngr-arrowlink strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 620;
}

.ngr-arrowlink a::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--ngr-i-arrow-right) center / contain no-repeat;
  mask: var(--ngr-i-arrow-right) center / contain no-repeat;
  transition: transform 0.3s var(--ngr-ease);
}

.ngr-arrowlink a:hover::after {
  transform: translateX(4px);
}

.ngr-arrowlink.is-brand {
  margin-bottom: 4px;
  font-size: 1.1875rem;
}

/* ---------- Ausbildung */

.ngr-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(36px, 4vw, 56px);
}

.ngr-boxcol {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ngr-box {
  padding: clamp(26px, 3vw, 44px);
  background: var(--ngr-chalk);
  border-radius: var(--ngr-radius-l);
}

.ngr-band + .ngr-band .ngr-box {
  background: #fff;
}

.ngr-box h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.375rem);
}

.ngr-box.is-dark .wp-block-button__link {
  background: var(--ngr-slate);
  border-color: var(--ngr-slate);
  color: #fff;
}

.ngr-box.is-dark .wp-block-button__link:hover {
  background: var(--ngr-ink);
  border-color: var(--ngr-ink);
}

.ngr-box .ngr-box__eyebrow {
  margin: 0 0 4px;
  color: var(--ngr-muted);
}

.ngr-box .ngr-box__subtitle {
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.375rem);
}

.ngr-box > :last-child,
.ngr-box__inner > :last-child {
  margin-bottom: 0;
}

.ngr-links-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}

.ngr-person--compact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.ngr-person--compact .ngr-person__image {
  width: 140px;
  height: 140px;
}

.ngr-person--compact .wp-block-buttons {
  margin: 0;
}

.ngr-person--compact .wp-block-button__link {
  min-height: 52px;
  padding: 0.7em 1.5em;
  border: 1.5px solid var(--ngr-slate);
  background: var(--ngr-slate);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 959px) {
  .ngr-boxes,
  .ngr-links-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================ Fußbereich */

.ngr-footer {
  padding: clamp(64px, 8vw, 120px) 0 32px;
  background: var(--ngr-ink);
  color: var(--ngr-on-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.ngr-footer a {
  color: #fff;
  text-decoration: none;
}

.ngr-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.ngr-footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px clamp(24px, 5vw, 96px);
  padding-bottom: clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--ngr-line-dark);
}

.ngr-footer__title {
  grid-row: span 2;
  margin: 0;
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem);
  font-weight: 650;
  font-stretch: 68%;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #fff;
}

.ngr-footer__direct {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ngr-footer__direct a {
  display: inline-block;
  font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.5rem);
  font-weight: 460;
  font-stretch: 80%;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.ngr-footer__forms {
  margin: 0;
}

.ngr-footer .ngr-button--light,
.ngr-footer .ngr-button--light:hover {
  color: var(--ngr-ink);
  text-decoration: none;
}

.ngr-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  padding: clamp(48px, 6vw, 80px) 0;
}

.ngr-footer__col--logo img {
  width: 190px;
}

.ngr-footer .ngr-footer__head {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 620;
  font-stretch: 92%;
  letter-spacing: 0;
  line-height: 1.4;
  color: #fff;
}

.ngr-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ngr-footer__links li {
  margin: 0 0 6px;
}

.ngr-hours {
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ngr-hours th {
  padding: 3px 16px 3px 0;
  font-weight: 500;
  text-align: left;
  vertical-align: top;
  color: #fff;
}

.ngr-hours td {
  padding: 3px 0;
}

.ngr-footer__note,
.ngr-footer__fax {
  margin: 12px 0 0;
  font-size: 0.9375rem;
}

.ngr-footer__address {
  margin: 0;
}

.ngr-footer__route {
  display: inline-block;
  margin-top: 12px;
  text-decoration: underline !important;
  text-underline-offset: 0.2em;
}

.ngr-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ngr-line-dark);
  font-size: 0.9375rem;
}

.ngr-footer__legal p {
  margin: 0;
}

.ngr-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1099px) {
  .ngr-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ngr-footer__cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .ngr-footer__title {
    grid-row: auto;
  }

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

/* ============================================================ Blocksatz */

/* Fließtext im Blocksatz ab Tablet-Breite; auf dem Handy linksbündig, weil die schmale
   Spalte sonst große Wortlücken reißt. */
@media (min-width: 768px) {
  .ngr-main p:not([class*="ngr-"]),
  .ngr-hero__lead {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
  }
}

/* ============================================================ 404 */

.ngr-404 {
  padding: var(--ngr-section) var(--ngr-inline);
}

/* ============================================================ Bewegung reduzieren */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
