:root {
  --logo-red: #df231a;
  --logo-blue: #357ba5;
  --logo-green: #039c08;
  --radio-red: #c41f17;
  --sky-blue: #91c6e5;
  --news-navy: #122953;
  --news-green: #75db79;
}

/* Die Logos stehen auf weißem Grund, die Markenfarben auf den Inhaltsflächen. */
.verbund-logo {
  display: block;
  width: clamp(145px, 17vw, 230px);
  height: auto;
}

.top {
  position: relative;
}

.top::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(to right,
    var(--logo-blue) 0 25%, var(--logo-red) 25% 50%,
    var(--logo-green) 50% 75%, #0c1935 75%);
}

.top nav .pill, .pill.light { background: var(--radio-red); color: white; }
.top nav .pill:hover, .pill.light:hover { background: #9f1a13; color: white; }
.hero h1 em { color: var(--sky-blue); }
.hero-bottom { background: #101d3adb; }
.channels span:nth-child(1) { color: #ff796f; }
.channels span:nth-child(2) { color: var(--sky-blue); }
.channels span:nth-child(3) { color: var(--news-green); }

.audience {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(2rem, 5vw, 3.75rem) 0 .75rem;
  overflow: hidden;
  border: 1px solid #30496b;
  border-radius: 10px;
  background: #30496b;
  color: white;
}
.audience > div { padding: clamp(.75rem, 1.65vw, 1.5rem); background: #14264b; }
.audience dt { font-weight: 700; }
.audience dd { margin: .4rem 0 0; }
.audience strong {
  display: block;
  font-size: clamp(1.5rem, 2.5vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.audience span { display: block; margin-top: .25rem; color: #d8e6f7; font-size: .875rem; }
.audience > div:last-child { background: #17385b; }
.audience > div:last-child strong { color: var(--sky-blue); }
.intro .audience-note { font-size: .875rem; }
@media (max-width: 1000px) {
  .audience { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.brands { background: #edf5fa; }

.brand-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.5rem);
}

.brand-grid > .brand {
  --brand-accent: var(--logo-blue);
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-top: 4px solid var(--brand-accent);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  box-shadow: 0 3px 10px #10245108;
}

.brand-grid > :nth-child(1) { --brand-accent: var(--logo-red); }
.brand-grid > :nth-child(3) { --brand-accent: var(--logo-green); }
.brand-grid > :nth-child(4) { --brand-accent: var(--logo-blue); }
.brand-grid > div.brand:hover { transform: none; box-shadow: 0 3px 10px #10245108; }

.brand-logo {
  display: grid;
  place-items: center;
  justify-self: center;
  width: calc(100% - 1.4rem);
  aspect-ratio: 4 / 3;
  margin: .7rem 0 0;
  border-radius: 7px;
  background: #f3f6f9;
}

.brand-logo img {
  display: block;
  width: min(68%, 151px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 3px;
}

/* Die weißen Flächen der beiden Vorlagen gehen im Kachelhintergrund auf. */
.brand-logo img:is([src^="brs-logo-"], [src^="rlp-logo-"]) {
  mix-blend-mode: multiply;
}

.brand-logo img[src^="brs-logo-"] {
  scale: 1.06;
}

.brand-grid .brand-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: .4rem;
  padding: .9rem clamp(.75rem, 1.4vw, 1.3rem) 1.15rem;
  border: 0;
}

.brand-title {
  margin: 0;
  font-size: clamp(.95rem, 1.55vw, 1.2rem);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.brand-grid .brand-bottom small { font-size: .85rem; line-height: 1.4; }
.brand-grid .tag {
  margin-top: auto;
  padding-top: .5rem;
  color: #48566a;
}

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

.service:first-child { background: #f0f7fb; border-color: #cfdfeb; }
.service:last-child { background: #eff9ef; border-color: #d3ead4; }
.abstract { background: radial-gradient(ellipse at 85% 0, #106357, transparent 75%), var(--news-navy); }
.abstract i:nth-child(3n) { background: var(--news-green); }

.region .location .circle { background: #ddf1de; border-color: transparent; color: #1c5c20; }
.contact { background: linear-gradient(112deg, #14264b, #123a5f 65%, #17491b); }
.contact-note a, .footer a[href="impressum.html"] { text-decoration: underline; text-underline-offset: .2em; }
.contact-note a { overflow-wrap: anywhere; }

:focus-visible { outline: 3px solid var(--logo-blue); outline-offset: 4px; }
:is(.hero, .contact) :focus-visible { outline-color: var(--sky-blue); }

@media (max-width: 850px) and (min-width: 701px) {
  .top { width: 94%; gap: 14px; }
  .top nav { gap: 10px; }
  .top nav .pill { padding-inline: 12px; }
}
@media (max-width: 700px) {
  .top { position: static; }
  .top::after { position: absolute; top: 74px; bottom: auto; }
}

.hero {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: calc(100vh - 96px);
  min-height: calc(100svh - 96px);
}

.hero-inner {
  grid-row: 1;
  align-self: center;
  padding-block: clamp(2.5rem, 8svh, 6rem);
}

.hero-bottom {
  position: relative;
  grid-row: 2;
}

.hero::after {
  background:
    linear-gradient(90deg, #081632 0%, #081632da 28%, #08163260 52%, transparent 75%),
    linear-gradient(0deg, #101b35b0, transparent 24%);
}

.hero .actions { flex-wrap: wrap; }

@media (max-width: 700px) {
  .menu {
    display: grid;
    place-items: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border: 0;
    font-size: 25px;
    line-height: 1;
    color: #377ea8;
  }

  .hero { min-height: calc(100svh - 78px); background: #081632; }
  .hero-inner { padding-block: clamp(2.5rem, 8svh, 5rem); }

  .hero::before { background-position: 82% center; }
  .hero::after {
    background:
      linear-gradient(90deg, #081632e8, #081632b5),
      linear-gradient(0deg, #081632a0, transparent 35%);
  }
}

#leistungen.competence { background: #e4eff6; }
.top nav a:not(.pill):hover { color: var(--logo-blue); }
.audience .icon-facebook, .audience .icon-radio { background: #2b6a91; }
.audience .icon-whatsapp { background: #08720c; }
.audience .icon-youtube { background: var(--radio-red); }
.audience .icon-instagram { background: linear-gradient(135deg, #7640ae, #bd2b6d, var(--radio-red)); }
.audience .icon-tiktok svg { filter: drop-shadow(1px 0 #ff796f) drop-shadow(-1px 0 var(--sky-blue)); }
