/*
 * RENNER KANZLEI — Premium Refresh 24.08.2026
 * Rein visuelle Modernisierung. Texte, Linkziele und Funktionen bleiben
 * unverändert. Header und Footer orientieren sich am Fondsrechts-Auftritt.
 */

:root {
  --kr-magenta: #a3005a;
  --kr-magenta-deep: #7d0045;
  --kr-magenta-light: #d35699;
  --kr-ink: #17191d;
  --kr-navy: #092333;
  --kr-navy-deep: #051823;
  --kr-paper: #f6f5f2;
  --kr-surface: #ffffff;
  --kr-muted: #626970;
  --kr-line: rgba(18, 27, 35, .12);
  --kr-shadow: 0 28px 80px rgba(9, 28, 40, .13);
  --kr-shadow-soft: 0 16px 44px rgba(9, 28, 40, .09);
  --kr-radius-xl: 34px;
  --kr-radius-lg: 24px;
  --orange: var(--kr-magenta);
  --orange-soft: var(--kr-magenta-light);
  --navy: var(--kr-navy);
  --navy-deep: var(--kr-navy-deep);
  --ink: var(--kr-ink);
  --muted: var(--kr-muted);
}

html {
  background: var(--kr-paper);
  scroll-padding-top: 104px;
}

body {
  background:
    radial-gradient(circle at 8% 10%, rgba(163, 0, 90, .045), transparent 28rem),
    radial-gradient(circle at 92% 34%, rgba(9, 35, 51, .045), transparent 31rem),
    var(--kr-paper);
  color: var(--kr-ink);
}

::selection {
  color: #fff;
  background: var(--kr-magenta);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline-color: rgba(163, 0, 90, .48) !important;
}

/* Header: Proportionen, Wortmarke und ruhige Glasfläche wie im Referenzobjekt. */
.site-header {
  min-height: 82px;
  color: var(--kr-ink);
  background: rgba(247, 247, 245, .9);
  border-bottom: 1px solid rgba(18, 27, 35, .1);
  box-shadow: 0 10px 34px rgba(9, 28, 40, .075);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
}

.site-header .header-inner {
  width: min(1420px, calc(100% - 48px));
  min-height: 82px;
  gap: 34px;
}

.site-header .brand {
  min-width: 0;
  color: var(--kr-ink);
}

.site-header .brand-name.brand-lockup {
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0;
}

.site-header .brand-lockup .brand-renner {
  color: var(--kr-magenta);
  font-size: 1.18em;
  font-weight: 800;
  letter-spacing: .025em;
  line-height: .92;
}

.site-header .brand-lockup .brand-divider {
  height: 1.55em;
  margin: 0 .56em;
  background: rgba(23, 25, 29, .24);
}

.site-header .brand-lockup .brand-kanzlei {
  color: var(--kr-ink);
  font-size: .72em;
  font-weight: 400;
}

.site-header .main-nav {
  gap: clamp(17px, 2vw, 31px);
  font-size: .9rem;
  font-weight: 600;
}

.site-header .main-nav a {
  position: relative;
  color: #34373c;
  padding: 11px 0;
}

.site-header .main-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 5px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--kr-magenta);
  transition: right .22s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible,
.site-header .main-nav a[aria-current="page"] {
  color: var(--kr-ink);
}

.site-header .main-nav a:hover::after,
.site-header .main-nav a:focus-visible::after,
.site-header .main-nav a[aria-current="page"]::after {
  right: 0;
}

.site-header .menu-toggle {
  border-color: rgba(23, 25, 29, .2);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 8px 24px rgba(9, 28, 40, .08);
}

.site-header .menu-toggle > span:not(.sr-only) {
  background: var(--kr-ink);
}

/* Hero: dunkles, präzises Textfenster auf großzügigem Bild — elegant und tech-nah. */
.hero {
  width: min(1440px, calc(100% - 48px));
  min-height: min(780px, calc(100svh - 108px));
  margin: 28px auto 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 38px;
  background: #dfe4e6;
  box-shadow: var(--kr-shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 24, 35, .3) 0%, rgba(5, 24, 35, .08) 44%, transparent 66%),
    linear-gradient(0deg, rgba(5, 24, 35, .18), transparent 34%);
}

.hero .hero-visual {
  z-index: 0;
}

.hero .hero-visual::after {
  background:
    linear-gradient(90deg, rgba(5, 24, 35, .2), transparent 46%),
    linear-gradient(0deg, rgba(5, 24, 35, .18), transparent 34%);
}

.hero .hero-visual > img {
  filter: saturate(.86) contrast(1.03);
  transform: scale(1.012);
}

.hero .hero-copy {
  z-index: 3;
  width: min(610px, 43vw);
  margin: clamp(32px, 4.4vw, 68px);
  padding: clamp(38px, 4.5vw, 64px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(211, 86, 153, .18), transparent 13rem),
    rgba(5, 24, 35, .87);
  box-shadow: 0 30px 85px rgba(2, 12, 18, .32);
  -webkit-backdrop-filter: saturate(125%) blur(16px);
  backdrop-filter: saturate(125%) blur(16px);
}

.hero .eyebrow {
  color: #f08abd;
}

.hero h1 {
  max-width: 580px;
  color: #fff;
  font-size: clamp(3rem, 4.5vw, 5.55rem);
  font-weight: 500;
  letter-spacing: -.055em;
}

.hero .hero-copy > p {
  color: rgba(255, 255, 255, .76);
}

.hero .hero-location {
  color: rgba(255, 255, 255, .7) !important;
  letter-spacing: .02em;
}

.primary-button {
  position: relative;
  min-height: 58px;
  padding: 14px 28px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(135deg, var(--kr-magenta), var(--kr-magenta-deep));
  box-shadow: 0 16px 38px rgba(125, 0, 69, .28);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: linear-gradient(135deg, #b60065, #88004b);
  box-shadow: 0 21px 48px rgba(125, 0, 69, .38);
}

.ai-image-notice--hero {
  width: min(1420px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
  color: #777b80;
}

/* Einheitliche Premium-Fenster. */
.topic-section,
.offices-section,
.process-section,
.homepage-main-window,
.legal-title-window,
.legal-body-window,
.direct-page-window,
.contact-section {
  border-color: var(--kr-line);
  border-radius: var(--kr-radius-xl);
  background:
    radial-gradient(circle at 8% 8%, rgba(163, 0, 90, .075), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(238, 240, 240, .92));
  box-shadow: var(--kr-shadow-soft);
}

.section-kicker,
.section-heading > span,
.eyebrow {
  color: var(--kr-magenta);
}

.section-heading h2,
.offices-heading h2,
.process-copy h2,
.contact-copy h2,
.legal-hero h1 {
  color: var(--kr-navy-deep);
  font-weight: 500;
  letter-spacing: -.05em;
}

/* Bild-Buttons: Motive werden sichtbar und tragen die Navigation. */
.topic-section .topic-grid {
  gap: 18px;
}

.topic-section .topic-card,
.topic-section .topic-card:nth-child(2) {
  min-height: 340px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 26px;
  background: #23333d;
  box-shadow: 0 20px 44px rgba(5, 24, 35, .18);
  overflow: hidden;
  transform: translateZ(0);
}

.topic-section .topic-card::before {
  z-index: 4;
  left: 30px;
  width: 58px;
  height: 4px;
  background: linear-gradient(90deg, var(--kr-magenta-light), var(--kr-magenta));
  box-shadow: 0 8px 20px rgba(163, 0, 90, .28);
}

.topic-section .topic-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(5, 24, 35, .1) 8%, rgba(5, 24, 35, .86) 86%),
    linear-gradient(110deg, rgba(163, 0, 90, .11), transparent 48%);
  transition: background .28s ease;
  pointer-events: none;
}

.topic-section .topic-card > img {
  z-index: 0;
  opacity: 1;
  object-fit: cover;
  filter: saturate(.82) contrast(1.03);
  transform: scale(1.025);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .3s ease;
}

.topic-section .topic-card > .topic-copy {
  z-index: 2;
  justify-content: flex-end;
  padding-top: 96px;
}

.topic-section .topic-copy strong {
  color: #fff;
  font-size: clamp(1.4rem, 1.8vw, 1.72rem);
  letter-spacing: -.03em;
}

.topic-section .topic-copy small {
  max-width: 255px;
  color: rgba(255, 255, 255, .76);
}

.topic-section .topic-icon {
  color: var(--kr-magenta);
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 34px rgba(5, 24, 35, .18);
}

@media (hover: hover) {
  .topic-section .topic-card:hover {
    color: #fff;
    border-color: rgba(211, 86, 153, .65);
    background: #23333d;
    box-shadow: 0 28px 58px rgba(5, 24, 35, .25);
    transform: translateY(-7px);
  }

  .topic-section .topic-card:hover::before {
    width: 92px;
  }

  .topic-section .topic-card:hover::after {
    background:
      linear-gradient(180deg, rgba(5, 24, 35, .03) 8%, rgba(5, 24, 35, .79) 86%),
      linear-gradient(110deg, rgba(163, 0, 90, .18), transparent 50%);
  }

  .topic-section .topic-card:hover > img {
    opacity: 1;
    filter: saturate(.98) contrast(1.04);
    transform: scale(1.085);
  }

  .topic-section .topic-card:hover strong {
    color: #fff;
  }

  .topic-section .topic-card:hover small {
    color: rgba(255, 255, 255, .82);
  }
}

.topic-section .topic-card:focus-visible {
  color: #fff;
  border-color: var(--kr-magenta-light);
  background: #23333d;
  outline: 3px solid rgba(163, 0, 90, .28);
  box-shadow: 0 28px 58px rgba(5, 24, 35, .25);
}

.topic-section .topic-card:focus-visible strong {
  color: #fff;
}

.topic-section .topic-card:focus-visible small {
  color: rgba(255, 255, 255, .82);
}

/* Standorte: ruhige Banking-Karten mit präziser Magenta-Signatur. */
.offices-section .offices-grid {
  gap: 16px;
}

.offices-section .office-card,
.offices-section .office-card:nth-child(2) {
  min-height: 250px;
  padding: 32px;
  border-color: var(--kr-line);
  border-radius: var(--kr-radius-lg);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .96), rgba(244, 243, 241, .87));
  box-shadow: 0 14px 36px rgba(9, 28, 40, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.offices-section .office-card::before {
  left: 32px;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--kr-magenta), rgba(163, 0, 90, .18));
  box-shadow: 0 8px 20px rgba(163, 0, 90, .18);
}

.offices-section .office-card h3 {
  color: var(--kr-navy);
}

@media (hover: hover) {
  .offices-section .office-card:hover {
    border-color: rgba(163, 0, 90, .24);
    box-shadow: 0 22px 48px rgba(9, 28, 40, .11);
    transform: translateY(-4px);
  }
}

/* Prozessfenster: dunkle Tech-/Banking-Bühne mit hellen Arbeitskarten. */
.process-section {
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle at 8% 10%, rgba(211, 86, 153, .2), transparent 22rem),
    radial-gradient(circle at 92% 88%, rgba(62, 112, 139, .2), transparent 28rem),
    linear-gradient(145deg, var(--kr-navy-deep), #102d3e);
  box-shadow: 0 30px 78px rgba(5, 24, 35, .23);
}

.process-copy .section-kicker {
  color: #f08abd;
}

.process-copy h2 {
  color: #fff;
}

.process-copy li {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 44px rgba(2, 12, 18, .22);
}

.process-copy li::after {
  background: var(--kr-magenta);
  box-shadow: 0 8px 20px rgba(163, 0, 90, .3);
}

.process-copy li > .process-marker {
  color: var(--kr-magenta);
  border-color: rgba(163, 0, 90, .18);
  background: #fff;
  box-shadow: 0 12px 28px rgba(5, 24, 35, .12), inset 0 0 0 4px rgba(163, 0, 90, .055);
}

.process-copy .process-marker::after {
  background: var(--kr-magenta);
  box-shadow: 0 6px 14px rgba(163, 0, 90, .28);
}

.process-copy li strong,
.process-copy li p {
  color: var(--kr-navy-deep);
}

/* Lange Fach- und Rechtstexte: mehr Weißraum, weniger optisches Altlastgefühl. */
.homepage-main-window,
.legal-body-window,
.direct-offices.direct-page-window {
  background:
    radial-gradient(circle at 8% 4%, rgba(163, 0, 90, .055), transparent 20rem),
    linear-gradient(145deg, #fff, #f2f2f0 78%);
}

.legacy-content {
  color: #29343c;
}

.legacy-content .RotSehrGross1,
.legacy-content a {
  color: var(--kr-magenta-deep);
}

.legacy-content a {
  text-decoration-color: rgba(163, 0, 90, .32);
}

.legacy-section-heading {
  border-color: rgba(163, 0, 90, .14) !important;
}

.legacy-section-icon,
.legacy-cruise-icon {
  color: var(--kr-magenta) !important;
  border-color: rgba(163, 0, 90, .15) !important;
  box-shadow: 0 12px 28px rgba(9, 28, 40, .09) !important;
}

.legal-title-window,
.direct-contact-intro.direct-page-window {
  background:
    radial-gradient(circle at 82% 18%, rgba(211, 86, 153, .16), transparent 20rem),
    linear-gradient(135deg, #edf0f0, #faf9f7 65%);
}

/* Kontakt: klarer Abschluss mit hochwertigem Formular. */
.contact-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(163, 0, 90, .08), transparent 24rem),
    linear-gradient(145deg, #edf0f1, #fbfbfa 58%, #efefed);
}

.contact-direct a {
  border-color: var(--kr-line);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 26px rgba(9, 28, 40, .055);
}

.contact-direct a:hover,
.contact-direct a:focus-visible {
  border-color: rgba(163, 0, 90, .36);
  background: #fff;
}

.contact-direct strong,
.contact-form label > span {
  color: var(--kr-navy);
}

.contact-form {
  border-color: rgba(18, 27, 35, .12);
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(9, 28, 40, .14);
}

.contact-form::before {
  background: linear-gradient(90deg, var(--kr-magenta), var(--kr-magenta-light));
}

.contact-form input,
.contact-form textarea {
  border-color: rgba(18, 27, 35, .16);
  background: #f6f6f4;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--kr-magenta);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(163, 0, 90, .09);
}

.contact-form > button {
  background: linear-gradient(135deg, var(--kr-magenta), var(--kr-magenta-deep));
  box-shadow: 0 14px 32px rgba(125, 0, 69, .24);
}

.contact-form > button:hover,
.contact-form > button:focus-visible {
  background: linear-gradient(135deg, #b60065, #88004b);
}

/* Funktionsleiste: dunkles Glas, präziser Magenta-Hover. */
.contact-dock {
  color: rgba(255, 255, 255, .82);
  border-color: rgba(255, 255, 255, .18);
  background: linear-gradient(145deg, rgba(18, 25, 31, .93), rgba(5, 24, 35, .88));
  box-shadow: 0 24px 70px rgba(5, 24, 35, .24);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.contact-dock a {
  color: rgba(255, 255, 255, .74);
}

.contact-dock a + a::before {
  background: rgba(255, 255, 255, .14);
}

.contact-dock a:hover,
.contact-dock a:focus-visible {
  color: #ff8bc2;
}

.contact-dock a:focus-visible {
  outline-color: rgba(211, 86, 153, .58) !important;
}

/* Footer wie beim Fondsrechts-Auftritt: dunkle Fläche, klare Dreiteilung. */
.site-footer {
  color: #fff;
  padding: 80px max(24px, calc(50% - 610px)) 30px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 9% 8%, rgba(163, 0, 90, .15), transparent 22rem),
    #1b1d20;
}

.site-footer .footer-grid {
  grid-template-columns: 1.5fr .75fr .75fr;
  gap: 60px;
}

.site-footer .brand-name.brand-lockup {
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
}

.site-footer .brand-lockup .brand-renner {
  color: #e04b98;
}

.site-footer .brand-lockup .brand-kanzlei {
  color: #fff;
}

.site-footer .brand-lockup .brand-divider {
  background: rgba(255, 255, 255, .42);
}

.site-footer .footer-label {
  color: #f08abd;
}

.site-footer .footer-grid a:not(.brand) {
  color: rgba(255, 255, 255, .78);
}

.site-footer .footer-grid a:not(.brand):hover,
.site-footer .footer-grid a:not(.brand):focus-visible {
  color: #fff;
}

.site-footer .footer-bottom {
  color: rgba(255, 255, 255, .45);
  border-top-color: rgba(255, 255, 255, .13);
}

/* Zurückhaltende Bewegung statt dekorativer Effekthascherei. */
@media (prefers-reduced-motion: no-preference) {
  .hero,
  .topic-section,
  .offices-section,
  .process-section,
  .homepage-main-window,
  .contact-section {
    animation: kr-enter .7s both;
  }

  .topic-section { animation-delay: .04s; }
  .offices-section { animation-delay: .08s; }
  .process-section { animation-delay: .12s; }

  @keyframes kr-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1120px) {
  .site-header .header-inner {
    width: min(100% - 34px, 980px);
  }

  .site-header .main-nav {
    background: rgba(247, 247, 245, .98);
    border-top: 1px solid rgba(18, 27, 35, .1);
    box-shadow: 0 24px 55px rgba(9, 28, 40, .14);
  }

  .site-header .main-nav a {
    border-bottom-color: rgba(18, 27, 35, .1);
  }

  .hero {
    width: calc(100% - 40px);
    min-height: auto;
    border-radius: 32px;
  }

  .hero .hero-copy {
    width: min(760px, calc(100% - 64px));
    margin: 32px auto;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(5, 24, 35, .13), transparent 48%);
  }

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

@media (max-width: 720px) {
  html {
    scroll-padding-top: 84px;
  }

  .site-header {
    min-height: 78px;
  }

  .site-header .header-inner {
    min-height: 78px;
  }

  .site-header .brand-name.brand-lockup {
    font-size: clamp(1.03rem, 5.5vw, 1.36rem);
  }

  .hero {
    width: calc(100% - 24px);
    margin-top: 12px;
    border-radius: 24px;
  }

  .hero .hero-copy {
    width: calc(100% - 24px);
    margin: 12px;
    padding: 34px 24px 32px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 4.25rem);
  }

  .hero .hero-visual {
    aspect-ratio: 4 / 3;
    background: #eeefed;
  }

  .hero .hero-visual > img {
    object-fit: cover;
  }

  .ai-image-notice--hero {
    width: calc(100% - 36px);
  }

  .topic-section,
  .offices-section,
  .process-section,
  .homepage-main-window,
  .legal-title-window,
  .legal-body-window,
  .direct-page-window,
  .contact-section {
    border-radius: 22px;
  }

  .topic-section .topic-grid,
  .offices-section .offices-grid {
    grid-template-columns: 1fr;
  }

  .topic-section .topic-card,
  .topic-section .topic-card:nth-child(2) {
    min-height: 270px;
    padding: 24px;
    border-radius: 20px;
  }

  .topic-section .topic-card::before {
    left: 24px;
  }

  .offices-section .office-card,
  .offices-section .office-card:nth-child(2) {
    min-height: 0;
    padding: 26px 24px;
    border-radius: 20px;
  }

  .offices-section .office-card::before {
    left: 24px;
  }

  .contact-dock {
    color: rgba(255, 255, 255, .82);
    border-color: rgba(255, 255, 255, .18);
    background: linear-gradient(145deg, rgba(18, 25, 31, .96), rgba(5, 24, 35, .94));
  }

  .site-footer {
    padding-top: 62px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 380px) {
  .site-header .brand-name.brand-lockup {
    font-size: .95rem;
  }

  .hero .hero-copy {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topic-section .topic-card,
  .topic-section .topic-card > img,
  .offices-section .office-card,
  .site-header .main-nav a::after {
    transition: none;
  }
}

/*
 * Hero-Endkorrektur nach visueller Prüfung:
 * Alle früheren absoluten Zentrierungen werden hier bewusst zurückgesetzt.
 * Der identische Innenabstand des äußeren Rahmens erzeugt konstruktiv gleiche
 * Abstände ober- und unterhalb der Textkarte; dadurch kann sie weder aus dem
 * Bildfenster ragen noch Text abschneiden.
 */
@media (min-width: 821px) {
  .hero {
    position: relative !important;
    display: block !important;
    min-height: 0 !important;
    padding: clamp(34px, 3.6vw, 54px) 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .hero .hero-visual {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  .hero .hero-copy {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 3 !important;
    display: flex !important;
    align-self: auto !important;
    width: min(580px, 48vw) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 0 clamp(18px, 2.2vw, 34px) !important;
    padding: clamp(34px, 3.4vw, 52px) !important;
    transform: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .hero .hero-visual > img {
    object-fit: cover !important;
    object-position: 2% 50% !important;
    transform: scale(1.004) !important;
  }
}

@media (max-width: 820px) {
  .hero {
    position: relative !important;
    display: flex !important;
    width: calc(100% - 20px) !important;
    min-height: 0 !important;
    margin: 10px auto 0 !important;
    padding: 10px !important;
    flex-direction: column !important;
    border-radius: 24px !important;
    background: #dfe2e1 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .hero::after {
    display: none;
  }

  .hero .hero-visual {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    order: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .hero .hero-visual::after {
    background: linear-gradient(0deg, rgba(5, 24, 35, .12), transparent 38%);
  }

  .hero .hero-visual > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: 27% 50% !important;
    transform: none !important;
  }

  .hero .hero-copy {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 3 !important;
    order: 2 !important;
    align-self: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 10px 0 0 !important;
    padding: clamp(28px, 7vw, 38px) clamp(21px, 6vw, 30px) !important;
    transform: none !important;
    border-radius: 18px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.75rem);
    line-height: .98;
  }

  .hero .hero-actions {
    margin-top: 30px;
  }

  .hero .primary-button {
    width: 100%;
  }

  .hero .hero-location {
    margin-top: 28px !important;
  }
}

/*
 * Rechtsbereiche – finale Bildkarten:
 * textfreie, thematisch eindeutige Fotografien in einer ruhigen dunklen
 * Kanzleiästhetik. Die Beschriftungen bleiben bewusst kleiner und klarer;
 * sämtliche Kreis-Icons verwenden ein einheitliches Neutralgrau.
 */
.topic-section .topic-card,
.topic-section .topic-card:nth-child(2) {
  min-height: 320px !important;
  padding: 28px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, #172731, #0b1820) !important;
  box-shadow:
    0 18px 42px rgba(5, 24, 35, .2),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.topic-section .topic-card::before {
  top: auto !important;
  right: auto !important;
  bottom: 0 !important;
  left: 28px !important;
  width: 52px !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--kr-magenta-light), var(--kr-magenta)) !important;
  box-shadow: 0 -5px 16px rgba(163, 0, 90, .2) !important;
}

.topic-section .topic-card::after {
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: inherit !important;
  background:
    linear-gradient(180deg,
      rgba(5, 24, 35, .08) 0%,
      rgba(5, 24, 35, .18) 38%,
      rgba(5, 24, 35, .82) 72%,
      rgba(5, 24, 35, .98) 100%),
    linear-gradient(120deg, rgba(163, 0, 90, .08), transparent 52%) !important;
}

.topic-section .topic-card > img {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: .88 !important;
  object-fit: cover !important;
  object-position: 58% 50% !important;
  filter: saturate(.72) contrast(1.04) brightness(.78) !important;
  transform: scale(1.01) !important;
}

.topic-section .topic-card > .topic-copy {
  padding-top: 112px !important;
}

.topic-section .topic-copy strong {
  color: #fff !important;
  font-size: clamp(1.18rem, 1.42vw, 1.4rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.018em !important;
  line-height: 1.16 !important;
}

.topic-section .topic-copy small {
  max-width: 250px !important;
  margin-top: 8px !important;
  color: rgba(255, 255, 255, .72) !important;
  font-size: .86rem !important;
  line-height: 1.44 !important;
}

/* Einheitliches Grau – oben in den Karten und unten im großen Textfenster. */
.topic-section .topic-icon,
.legacy-section-icon,
.legacy-cruise-icon {
  color: #7e7f80 !important;
  border-color: rgba(126, 127, 128, .34) !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 10px 26px rgba(5, 24, 35, .16) !important;
}

.topic-section .topic-icon svg,
.legacy-section-icon svg,
.legacy-cruise-icon svg {
  stroke: currentColor !important;
}

@media (hover: hover) {
  .topic-section .topic-card:hover {
    border-color: rgba(211, 86, 153, .5) !important;
    background: linear-gradient(145deg, #172731, #0b1820) !important;
    box-shadow: 0 26px 54px rgba(5, 24, 35, .27) !important;
    transform: translateY(-5px) !important;
  }

  .topic-section .topic-card:hover::before {
    width: 72px !important;
  }

  .topic-section .topic-card:hover::after {
    background:
      linear-gradient(180deg,
        rgba(5, 24, 35, .03) 0%,
        rgba(5, 24, 35, .12) 38%,
        rgba(5, 24, 35, .76) 72%,
        rgba(5, 24, 35, .97) 100%),
      linear-gradient(120deg, rgba(163, 0, 90, .11), transparent 54%) !important;
  }

  .topic-section .topic-card:hover > img {
    opacity: .94 !important;
    filter: saturate(.82) contrast(1.05) brightness(.82) !important;
    transform: scale(1.055) !important;
  }

  .topic-section .topic-card:hover .topic-icon {
    color: #7e7f80 !important;
  }
}

.topic-section .topic-card:focus-visible {
  color: #fff !important;
  border-color: var(--kr-magenta-light) !important;
  background: linear-gradient(145deg, #172731, #0b1820) !important;
  outline: 3px solid rgba(163, 0, 90, .26) !important;
}

.topic-section .topic-card:focus-visible .topic-icon {
  color: #7e7f80 !important;
}

@media (max-width: 1120px) {
  .topic-section .topic-card,
  .topic-section .topic-card:nth-child(2) {
    min-height: 286px !important;
  }
}

@media (max-width: 720px) {
  .topic-section .topic-card,
  .topic-section .topic-card:nth-child(2) {
    min-height: 232px !important;
    padding: 24px !important;
    border-radius: 20px !important;
  }

  .topic-section .topic-card::before {
    left: 24px !important;
  }

  .topic-section .topic-card > .topic-copy {
    padding-top: 82px !important;
  }

  .topic-section .topic-copy strong {
    font-size: 1.24rem !important;
  }
}
