/* ADOMANN — Ergänzungen
 * Prägemotive · Videoband · Meldungen
 * Palette und Typografie folgen dem bestehenden Corporate Design.
 */

:root {
  --ad-anthrazit:      #1C1C1A;
  --ad-flaeche:        #242320;
  --ad-flaeche-alt:    #2A2823;
  --ad-flaeche-news:   #322E25;
  --ad-messing:        #A87C3D;
  --ad-messing-hell:   #C79A4A;
  --ad-text:           #E6E1D6;
  --ad-text-leise:     #A29D92;
  --ad-spalte:         560px;
}

/* ============================================================
   1  PRÄGEMOTIVE
   ============================================================ */

.ad-motif-wrap {
  position: absolute;
  top: 50%;
  right: clamp(-40px, -2vw, 0px);
  transform: translateY(-50%);
  width: clamp(280px, 26vw, 360px);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.ad-motif { display: block; width: 100%; height: auto; }

.ad-motif-shadow { stroke: rgba(0, 0, 0, .85); opacity: .06; }
.ad-motif-light  { stroke: color-mix(in srgb, var(--ad-messing) 15%, #FFFFFF); opacity: .10; }
.ad-motif-base   { stroke: color-mix(in srgb, var(--ad-messing) 20%, var(--ad-text)); opacity: .06; }

/* Rückfall für Browser ohne color-mix */
@supports not (color: color-mix(in srgb, red, blue)) {
  .ad-motif-light { stroke: #F0E4D0; }
  .ad-motif-base  { stroke: #CFC8B8; }
}

/* Der Text bleibt links und läuft nie über das Motiv */
.ad-motif-wrap ~ * { position: relative; z-index: 1; }

@media (max-width: 1024px) {
  .ad-motif-wrap { display: none; }
}

/* ============================================================
   2  VIDEOBAND
   ============================================================ */

.ad-video-band {
  position: relative;
  overflow: hidden;
  background-color: var(--ad-anthrazit);
  background-size: cover;
  background-position: center;
  min-height: 40vh;
}

@media (min-width: 768px) {
  .ad-video-band { min-height: 56vh; }
}

.ad-video-band > .ad-video,
.ad-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

/* Schleier, damit die Marke ruhig bleibt */
.ad-video-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 26, .35);
  pointer-events: none;
}

.ad-video-band.is-fallback { background-color: var(--ad-anthrazit); }

/* ============================================================
   3  MELDUNGEN
   ============================================================ */

.ad-news-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 780px;
}

.ad-news-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(230, 225, 214, .10);
}

.ad-news-item:last-child { border-bottom: 0; padding-bottom: 0; }

.ad-news-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ad-flaeche-alt);
}

.ad-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(.95);
  transition: filter 300ms ease, transform 300ms ease;
}

.ad-news-item:hover .ad-news-media img,
.ad-news-item:focus-visible .ad-news-media img {
  filter: grayscale(0) contrast(1);
}

/* Fehlendes Bild: ruhige Fläche mit Monogramm */
.ad-news-media.is-empty::after {
  content: "A";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: 3rem;
  letter-spacing: .08em;
  color: var(--ad-text);
  opacity: .12;
}

.ad-news-body { display: block; }

.ad-news-title {
  display: block;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ad-text);
  transition: color 200ms ease;
}

.ad-news-item:hover .ad-news-title,
.ad-news-item:focus-visible .ad-news-title { color: var(--ad-messing-hell); }

.ad-news-meta {
  display: block;
  margin-top: 10px;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--ad-text-leise);
}

.ad-news-item:focus-visible {
  outline: 1px solid var(--ad-messing);
  outline-offset: 6px;
}

.ad-news-sources,
.ad-news-empty {
  margin-top: 28px;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--ad-text-leise);
}

.ad-news-group + .ad-news-group { margin-top: 56px; }

.ad-news-group-title {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 400;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ad-messing);
  margin: 0 0 6px;
}

.ad-news-group-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin-top: 14px;
  margin-bottom: 24px;
  background: var(--ad-messing);
}

/* Ladezustand: das Layout darf nicht springen */
.ad-news-item.is-loading { pointer-events: none; }
.ad-news-line {
  display: block;
  height: 12px;
  background: rgba(230, 225, 214, .07);
  margin-bottom: 12px;
}
.ad-news-line.short { width: 45%; }

@media (max-width: 640px) {
  .ad-news-item { grid-template-columns: 110px 1fr; gap: 16px; }
  .ad-news-title { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ad-news-media img,
  .ad-news-title { transition: none; }
}
