@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #11131f;
  --muted: #4f566b;
  --primary: #f3cd2f;
  --primary-deep: #d8b41f;
  --navy: #0a1030;
  --line: #d8deea;
  --almost-white: #f6f8ff;
  --radius: 6px;
  --image-radius: 6px;
  --button-radius: 6px;
  --shadow: 0 14px 36px rgba(8, 16, 48, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% -10%, rgba(10, 16, 48, 0.1), transparent 48%),
    radial-gradient(circle at 0% 70%, rgba(10, 16, 48, 0.06), transparent 52%),
    var(--bg);
  font-family: "Avenir Next", "Figtree", "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

main p a,
main li a,
main blockquote a,
.footer-col p a {
  color: inherit;
  text-decoration: none;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(var(--primary), var(--primary));
  background-size: 100% 1px, 0 2px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  background-origin: content-box;
  transition: background-size 0.28s ease;
}

main p a:hover,
main li a:hover,
main blockquote a:hover,
.footer-col p a:hover {
  background-size: 0 1px, 100% 2px;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.header-top {
  background-color: #f3cd2f;
  background-image:
    url("../images/standort-himmel-ausschnitt-header.jpg"),
    linear-gradient(92deg, #f3cd2f 0%, #f0d85b 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid rgba(10, 16, 48, 0.1);
}

.header-top-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  width: 280px;
  max-width: 58vw;
}

.top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--button-radius);
  background: #fff;
  color: var(--navy);
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(10, 16, 48, 0.14);
  transition: transform 0.2s ease;
}

.top-cta,
.button,
.newsletter-row button {
  position: relative;
  isolation: isolate;
}

.top-cta::after,
.button::after,
.newsletter-row button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(currentColor 0 0) top left / 0 2px no-repeat,
    linear-gradient(currentColor 0 0) top right / 2px 0 no-repeat,
    linear-gradient(currentColor 0 0) bottom right / 0 2px no-repeat,
    linear-gradient(currentColor 0 0) bottom left / 2px 0 no-repeat;
}

.top-cta:hover {
  transform: translateY(-1px);
}

.top-cta:hover::after,
.button:hover::after,
.newsletter-row button:hover::after {
  opacity: 1;
  animation: button-border-draw 0.55s linear 1;
  animation-fill-mode: forwards;
}

@keyframes button-border-draw {
  0% {
    background-size: 0 2px, 2px 0, 0 2px, 2px 0;
  }
  25% {
    background-size: 100% 2px, 2px 0, 0 2px, 2px 0;
  }
  50% {
    background-size: 100% 2px, 2px 100%, 0 2px, 2px 0;
  }
  75% {
    background-size: 100% 2px, 2px 100%, 100% 2px, 2px 0;
  }
  100% {
    background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
  }
}

.main-nav {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--primary);
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  overflow: visible;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  font-weight: 700;
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(var(--primary), var(--primary));
  background-size: 100% 1px, 0 2px;
  background-position: 0 calc(100% - 0.2rem), 0 calc(100% - 0.2rem);
  background-repeat: no-repeat;
  background-origin: content-box;
  transition: background-size 0.28s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-size: 0 1px, 100% 2px;
}

.lang {
  color: #f8faff;
  font-size: 0.95rem;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  width: 46px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

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

.burger {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: background 0.22s ease, transform 0.22s ease;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.22s ease, top 0.22s ease, opacity 0.22s ease;
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.mobile-nav[open] .burger {
  background: transparent;
}

.mobile-nav[open] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-nav[open] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

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

.mobile-nav[open] ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #0e1541;
  margin: 0;
  padding: 0.65rem 0.7rem;
  list-style: none;
  border-radius: 10px;
  width: min(320px, calc(100vw - 2rem));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 50;
}

.mobile-nav li a {
  display: inline-block;
  padding: 0.55rem 0.4rem;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(var(--primary), var(--primary));
  background-size: 100% 1px, 0 2px;
  background-position: 0 calc(100% - 0.2rem), 0 calc(100% - 0.2rem);
  background-repeat: no-repeat;
  background-origin: content-box;
  transition: background-size 0.28s ease, color 0.2s ease;
}

.mobile-nav li a:hover {
  color: #fff2a8;
  background-size: 0 1px, 100% 2px;
}

.hero {
  padding: 3.8rem 0 2.8rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.kicker {
  display: inline-block;
  background: #fff4b7;
  color: #6d5700;
  border-radius: 0;
  padding: 0.22rem 0.85rem;
  clip-path: polygon(
    7px 0,
    calc(100% - 10px) 0,
    calc(100% - 3px) 8%,
    100% 21%,
    calc(100% - 4px) 35%,
    calc(100% - 1px) 49%,
    calc(100% - 6px) 63%,
    100% 81%,
    calc(100% - 9px) 100%,
    6px 100%,
    0 86%,
    4px 72%,
    1px 58%,
    6px 44%,
    0 29%,
    5px 14%,
    1px 4%
  );
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-top: 0.9rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: 0.9rem;
  margin-bottom: 2rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 65ch;
}

.home-main h1 + p,
.home-main h2 + p {
  margin-top: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.leistungen-actions .actions-break {
  flex-basis: 100%;
  height: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  border-radius: var(--button-radius);
  padding: 0.65rem 1rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(10, 16, 48, 0.12);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button::before {
  content: "\2192";
  flex: 0 0 auto;
}

.button.primary {
  background: var(--primary);
  color: #251e00;
}

.button.primary:hover {
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(10, 16, 48, 0.14);
}

.button.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.button.ghost:hover {
  border-color: #bcc5d8;
  box-shadow: 0 8px 20px rgba(10, 16, 48, 0.12);
}

.hero-card,
.card,
.section-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-card {
  border-radius: var(--image-radius);
}

.intro-split .side-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.leistungen-context-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.leistungen-mobile-hero {
  display: none;
}

@media (min-width: 961px) {
  .leistungen-context-image {
    margin-top: 0.9rem;
  }
}

.mobile-image-heading {
  display: none;
}

main section {
  padding: 2.1rem 0;
}

main section:last-of-type {
  padding-bottom: 4.2rem;
}

.home-main section {
  padding: 4.2rem 0;
}

.home-main > section + section {
  position: relative;
}

/* Decorative divider between main sections on the homepage */
.home-main > section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(92%, 1080px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(10, 16, 48, 0) 0%,
    rgba(10, 16, 48, 0.08) 20%,
    rgba(243, 205, 47, 0.24) 50%,
    rgba(10, 16, 48, 0.08) 80%,
    rgba(10, 16, 48, 0) 100%
  );
}

main {
  flex: 1 0 auto;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  box-shadow: none;
  background-color: #fff;
  background-image:
    radial-gradient(circle at 0 0, rgba(243, 205, 47, 0.24) 0%, rgba(243, 205, 47, 0.08) 26%, rgba(243, 205, 47, 0) 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, #fff 100%);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.testimonials-stack {
  display: grid;
  gap: 4.4rem;
}

.split.testimonial-entry {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
  padding: 1.1rem;
  border: 0;
  border-radius: var(--radius);
  box-shadow: inset 1px 1px 0 rgba(10, 16, 48, 0.09);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.18) 52%, rgba(255, 255, 255, 0) 100%);
}

.testimonial-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.testimonial-image {
  margin: 0;
  width: 300px;
  max-width: 100%;
  background: transparent;
  box-shadow: none;
}

.testimonial-entry .side-image {
  background: transparent;
  box-shadow: none;
}

.testimonial-entry blockquote {
  margin-top: 0;
}

@media (min-width: 961px) {
  .testimonial-entry blockquote {
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  }
}

.testimonial-author,
.testimonial-meta {
  margin: 0.45rem 0 0;
}

.testimonial-author {
  color: #2a314a;
  font-size: 1rem;
  font-weight: 700;
}

.testimonial-meta {
  color: var(--muted);
}

.news-teaser-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-teaser {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(10, 16, 48, 0.08);
}

.news-teaser img {
  aspect-ratio: 1200 / 627;
  object-fit: cover;
}

.news-teaser-body {
  padding: 1.05rem 1.1rem 1.2rem;
}

.news-meta {
  margin: 0;
  color: #5d6786;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.news-teaser h2 {
  margin: 0.55rem 0 0.75rem;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.news-teaser p {
  margin: 0;
}

.news-teaser .button {
  margin-top: 1rem;
}

.news-post-wrap {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
}

.news-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(10, 16, 48, 0.08);
  overflow: hidden;
}

.news-post img {
  aspect-ratio: 1200 / 627;
  object-fit: cover;
}

.news-post-body {
  padding: 1.25rem;
}

.news-post-body h1 {
  margin-top: 0.6rem;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.news-post-body p {
  margin: 0 0 1rem;
}

.news-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

blockquote {
  margin: 1.6rem 0 0.2rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--image-radius) var(--image-radius) 0;
  color: #2a314a;
  font-style: italic;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.5;
}

.split {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (min-width: 961px) {
  .leistungen-main-kicker,
  .leistungen-main-heading {
    display: none;
  }

  .leistungen-mobile-hero {
    display: block;
    position: relative;
    width: 100%;
    margin-top: 1.25rem;
  }

  .home-main .hero-grid,
  .home-main .split.intro-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .home-main .hero-grid > *,
  .home-main .split.intro-split > * {
    min-width: 0;
  }

  .home-main .hero .hero-card,
  .home-main .intro-split .side-image,
  .leistungen-mobile-hero {
    order: -1;
    position: relative;
    width: 100%;
    margin-top: 0;
  }

  .home-main .hero-card img,
  .home-main .intro-split .side-image img,
  .leistungen-mobile-hero img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .home-main .hero-copy .hero-main-kicker,
  .home-main .hero-copy .hero-main-heading,
  .home-main .intro-copy .intro-main-heading {
    display: none;
  }

  .home-main .hero-copy .lead,
  .home-main .intro-copy > p:first-of-type {
    margin-top: 0;
  }

  .home-main .hero-card .mobile-image-heading,
  .home-main .intro-split .side-image .mobile-image-heading,
  .leistungen-mobile-hero .mobile-image-heading {
    position: absolute;
    inset: 0 auto auto 0;
    display: block;
    width: 100%;
    padding: 2rem 1.5rem 1.6rem;
    color: var(--text);
  }

  .home-main .mobile-image-heading h1,
  .home-main .mobile-image-heading h2,
  .leistungen-mobile-hero .mobile-image-heading h1 {
    margin: 0.35rem 0 0;
    display: inline;
    padding: 0.35rem 0.55rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 0;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    font-size: clamp(1.75rem, 3.4vw, 3rem);
    line-height: 1.15;
  }

  .home-main .mobile-image-heading .mobile-image-heading-block,
  .leistungen-mobile-hero .mobile-image-heading .mobile-image-heading-block {
    display: block;
  }

  .home-main .mobile-image-heading .mobile-image-heading-block h1,
  .leistungen-mobile-hero .mobile-image-heading .mobile-image-heading-block h1 {
    margin-top: 0.35rem;
    margin-bottom: 0;
  }

  .home-main .intro-split .side-image .mobile-image-heading {
    padding-top: 3.4rem;
  }

  .home-main .mobile-image-heading .kicker,
  .leistungen-mobile-hero .mobile-image-heading .kicker {
    background: #fff4b7;
    color: #6d5700;
    margin-bottom: 0.85rem;
  }
}

.profile-split {
  display: flex;
  align-items: flex-start;
}

.profile-split > * {
  flex: 1 1 0;
  min-width: 0;
}

.profile-split .profile-image {
  flex: 0 0 30%;
  max-width: 30%;
}

.profile-split .split-copy {
  flex: 1 1 70%;
}

.profile-split .split-copy h2 {
  margin-top: 0;
}

.profile-split .profile-image img {
  width: min(100%, 300px);
  max-width: 300px;
  max-height: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.split.split-top {
  align-items: flex-start;
}

.split.split-top > * {
  align-self: flex-start;
}

.split-copy,
.split-top .side-image {
  align-self: flex-start;
}

.value-split .side-image {
  margin-top: 0.9rem;
}

.book-split {
  align-items: flex-start;
}

.book-split .side-image {
  display: flex;
  justify-content: center;
}

.book-split .book-image-wrap {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.book-split .book-image {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: transparent;
}

@media (min-width: 961px) {
  .home-main .book-split .book-image {
    max-height: var(--book-max-height, 420px);
  }
}

.book-split .book-image-sm {
  max-height: 350px;
}

.book-image-wrap a {
  display: inline-block;
  box-shadow: 0 4px 12px rgba(10, 16, 48, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-origin: center center;
}

.book-image-wrap a:hover {
  transform: rotate(1.5deg);
  box-shadow: 0 8px 20px rgba(10, 16, 48, 0.14);
}

.social-actions {
  margin-top: 1.05rem;
}

.icon-button {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 16, 48, 0.12);
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.icon-linkedin {
  color: var(--text);
}

.icon-whatsapp {
  color: var(--text);
}

.icon-linkedin:hover {
  opacity: 1;
}

.side-image {
  border-radius: var(--image-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-image {
  background: transparent;
  box-shadow: none;
  border-radius: var(--image-radius);
  overflow: hidden;
}

.profile-image img {
  background: transparent;
}

.checks {
  list-style: none;
  margin: 0.8rem 0;
  padding: 0;
}

.checks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
}

.checks li::before {
  content: "✓";
  color: var(--primary-deep);
  font-weight: 900;
  position: absolute;
  left: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f9fbff;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.leistungen-module-grid {
  grid-template-columns: repeat(2, minmax(0, 600px));
  justify-content: flex-start;
}

.module-tile {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(243, 205, 47, 0.12) 0%, #fff 42%, #fff 100%);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(10, 16, 48, 0.12);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.module-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
  z-index: 0;
}

.module-tile > * {
  position: relative;
  z-index: 1;
}

.module-tile-icon {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  width: 24px;
  height: 24px;
  color: var(--primary);
  transform: translateY(-50%);
  transition: transform 0.22s ease;
}

.module-tile-icon::before,
.module-tile-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.module-tile-icon::before {
  width: 16px;
  height: 4px;
}

.module-tile-icon::after {
  width: 4px;
  height: 16px;
  transition: opacity 0.2s ease;
}

.module-tile-icon svg {
  display: none;
}

.module-tile:hover,
.module-tile:focus-visible,
.module-tile.is-active {
  border-color: #d3b326;
  color: #201900;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 16, 48, 0.14);
}

.module-tile:hover::before,
.module-tile:focus-visible::before,
.module-tile.is-active::before {
  transform: scaleX(1);
}

.module-tile:hover .module-tile-icon,
.module-tile:focus-visible .module-tile-icon,
.module-tile.is-active .module-tile-icon {
  transform: translate(1px, -50%);
}

.module-tile.is-active .module-tile-icon::after {
  opacity: 0;
}

.module-tile-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.module-tile-text {
  color: var(--muted);
  transition: color 0.24s ease;
}

.module-tile:hover .module-tile-text,
.module-tile:focus-visible .module-tile-text,
.module-tile.is-active .module-tile-text {
  color: #3d2f00;
}

.module-modal {
  width: min(92vw, 720px);
  max-height: min(85vh, 860px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
  overflow: auto;
}

.module-modal::backdrop {
  background: rgba(8, 16, 48, 0.48);
}

.module-modal-close-wrap {
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.module-modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.module-modal h3 {
  margin-bottom: 0.35rem;
}

.module-modal-subtitle {
  margin-top: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.module-modal-focus,
.module-modal-list-title,
.module-modal-result-title {
  margin-top: 2rem;
  margin-bottom: 0.35rem;
}

.module-modal-focus-text,
.module-modal-list-title,
.module-modal-result-title {
  font-weight: 700;
}

.module-modal-focus-text,
.module-modal-list {
  margin-top: 0;
}

.module-modal-result-highlight {
  margin-top: 0;
  padding: 0.9rem 0 0.9rem 1rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--image-radius) var(--image-radius) 0;
}

.module-modal-list {
  padding-left: 1.15rem;
}

.module-modal-list li + li {
  margin-top: 0.45rem;
}

.module-modal-cta {
  margin-top: 0.6rem;
}

.cta-band {
  margin-top: 1.2rem;
  background: linear-gradient(90deg, #000000 0%, #2a2a2a 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.3rem;
}

footer {
  margin-top: auto;
  background: #070b23;
  color: var(--almost-white);
  padding: 2rem 0;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.4rem;
  align-items: start;
}

.footer-newsletter {
  display: block;
  visibility: visible;
  opacity: 1;
}

@media (min-width: 961px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 1.15fr);
  }

  .footer-main > * {
    min-width: 0;
  }

  .footer-main > .footer-col,
  .footer-main > nav.footer-col {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .footer-main > .footer-newsletter {
    grid-column: 3;
    justify-self: stretch;
  }
}

.footer-col h3 {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.footer-col p {
  margin: 0 0 0.45rem;
  color: #d5dcf3;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-legal a {
  color: var(--almost-white);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.footer-menu a {
  display: inline-block;
  color: var(--almost-white);
  text-decoration: none;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(var(--primary), var(--primary));
  background-size: 100% 1px, 0 2px;
  background-position: 0 calc(100% - 0.08rem), 0 calc(100% - 0.08rem);
  background-repeat: no-repeat;
  background-origin: border-box;
  transition: background-size 0.28s ease;
}

.footer-menu a:hover {
  background-size: 0 1px, 100% 2px;
}

.footer-col p a {
  color: var(--almost-white);
  text-decoration: none;
}

.footer-legal {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.wp-block-social-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.wp-block-social-link {
  display: inline-flex;
  color: var(--almost-white);
}

.wp-block-social-link-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.wp-block-social-link-anchor:hover {
  color: var(--primary);
  opacity: 1;
}

.wp-block-social-link-anchor svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

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

.newsletter-form label {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #d5dcf3;
}

.newsletter-row {
  display: flex;
  gap: 0.55rem;
}

.newsletter-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #415083;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  background: var(--almost-white);
  color: #12182e;
}

.newsletter-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(243, 205, 47, 0.35);
}

.newsletter-row button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-weight: 800;
  background: var(--primary);
  color: #1a1600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(10, 16, 48, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-row button:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 16, 48, 0.14);
}

.small {
  color: #ccd4f0;
  font-size: 0.9rem;
}

.kontakt-newsletter {
  padding-top: 0;
}

.kontakt-locations-heading {
  margin-top: 3rem;
}

.kontakt-newsletter .small {
  color: var(--text);
}

.page-head {
  padding: 2.8rem 0 1rem;
}

.page-head p {
  max-width: 72ch;
}

.value-pillars-section {
  padding-top: 0.4rem;
}

.value-image-bottom {
  margin-top: 2rem;
}

@media (max-width: 960px) {
  .leistungen-main-kicker {
    display: none;
  }

  .leistungen-main-heading {
    display: none;
  }

  .leistungen-mobile-hero {
    display: block;
    position: relative;
    width: 100%;
    margin-top: 1rem;
  }

  .leistungen-mobile-hero img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .leistungen-mobile-hero .mobile-image-heading {
    position: absolute;
    inset: 0 auto auto 0;
    display: block;
    width: 100%;
    padding: 1rem;
    color: var(--text);
  }

  .leistungen-context-image {
    display: none;
  }

  .home-main section {
    padding: 2.8rem 0;
  }

  .hero-grid,
  .split,
  .grid-3,
  .news-teaser-grid {
    grid-template-columns: 1fr;
  }

  .split.testimonial-entry {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonial-image {
    width: min(240px, 100%);
    max-width: 100%;
    background: transparent;
    box-shadow: none;
  }

  .testimonial-image img {
    height: 200px;
    width: auto;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: var(--image-radius);
    background: transparent;
  }

  .home-main .hero-card,
  .home-main .intro-split .side-image {
    order: -1;
    position: relative;
    width: 100%;
  }

  .home-main .hero-card img,
  .home-main .intro-split .side-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .home-main .hero-copy .hero-main-kicker,
  .home-main .hero-copy .hero-main-heading,
  .home-main .intro-copy .intro-main-heading {
    display: none;
  }

  .home-main .hero-copy .lead,
  .home-main .intro-copy > p:first-of-type {
    margin-top: 0;
  }

  .home-main .hero-card .mobile-image-heading,
  .home-main .intro-split .side-image .mobile-image-heading {
    position: absolute;
    inset: 0 auto auto 0;
    display: block;
    width: 100%;
    padding: 1rem;
    color: var(--text);
  }

  .home-main .mobile-image-heading h1,
  .home-main .mobile-image-heading h2,
  .leistungen-mobile-hero .mobile-image-heading h1 {
    margin: 0.35rem 0 0;
    display: inline;
    padding: 0.35rem 0.55rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 0px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    font-size: clamp(1.45rem, 6.2vw, 2rem);
    line-height: 1.15;
  }

  .home-main .mobile-image-heading .mobile-image-heading-block,
  .leistungen-mobile-hero .mobile-image-heading .mobile-image-heading-block {
    display: block;
  }

  .home-main .mobile-image-heading .mobile-image-heading-block h1,
  .leistungen-mobile-hero .mobile-image-heading .mobile-image-heading-block h1 {
    margin-top: 0.35rem;
    margin-bottom: 0;
  }

  .home-main .intro-split .side-image .mobile-image-heading {
    padding-top: 3rem;
  }

  .home-main .mobile-image-heading .kicker,
  .leistungen-mobile-hero .mobile-image-heading .kicker {
    background: #fff4b7;
    color: #6d5700;
    margin-bottom: 0.6rem;
  }

  .home-main .book-split .side-image {
    justify-content: flex-start;
  }

  .home-main .book-split .book-image {
    max-height: 350px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .leistungen-module-grid {
    grid-template-columns: minmax(0, min(100%, 600px));
    justify-content: flex-start;
  }

  .profile-split {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-split > * {
    flex: none;
  }

  .context-book-section .book-split .side-image {
    justify-content: flex-start;
    margin-top: 1.1rem;
  }

  .context-book-section {
    padding-bottom: 3rem;
  }

  .profile-image {
    display: block !important;
    visibility: visible;
    opacity: 1;
    width: fit-content;
    max-width: 300px;
  }

  .profile-image img {
    display: block !important;
    visibility: visible;
    opacity: 1;
    max-height: 250px;
    max-width: 250px;
    width: min(100%, 250px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .kontakt-newsletter {
    margin-top: 2.6rem;
    width: min(100%, 600px);
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .kontakt-newsletter .newsletter-form label,
  .kontakt-newsletter .newsletter-row input {
    color: var(--text);
  }

  .nav-links,
  .lang {
    display: none;
  }

  .mobile-nav {
    display: block;
    margin-left: auto;
  }

  .nav-inner {
    justify-content: flex-end;
  }

  .header-top-inner {
    min-height: 84px;
  }

  .top-cta {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-main > nav.footer-col {
    display: none;
  }

  .newsletter-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}
