.erfahrio-ad { box-sizing: border-box; clear: both; margin: 32px 0; padding: clamp(18px,3vw,28px); border: 1px solid var(--line); border-radius: 16px; background: var(--cream); color: var(--ink); overflow-wrap: anywhere; }
.erfahrio-ad .erfahrio-ad-label { margin: 0 0 16px; color: var(--muted); font: 700 12px/1.5 system-ui,sans-serif; letter-spacing: .04em; }
.erfahrio-ad-layout { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.erfahrio-ad .erfahrio-ad-image { flex: 0 1 200px; display: block; max-width: 100%; border: 0; }
.erfahrio-ad .erfahrio-ad-image img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; margin: 0; border-radius: 8px; }
.erfahrio-ad-copy { flex: 1 1 220px; min-width: 0; }
.erfahrio-ad .erfahrio-ad-title { margin: 0 0 10px; font-size: 21px; font-weight: 750; color: var(--ink); }
.erfahrio-ad-copy p { margin: 0 0 16px; line-height: 1.6; }
.erfahrio-ad .erfahrio-ad-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; box-sizing: border-box; padding: 12px 20px; border-radius: 9px; border: 1px solid transparent; background: var(--brand-fill,#29483d); color: #fff; text-decoration: none; font: 700 15px/1.4 system-ui,sans-serif; }
.erfahrio-ad .erfahrio-ad-button:hover { background: var(--brand-hover,#355c4e); }
.erfahrio-ad a:focus-visible, .ad-table :focus-visible, #ad-form :focus-visible { outline: 3px solid var(--focus,#b95f38); outline-offset: 4px; }
.ad-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ad-table { overflow-x: auto; }.ad-table table { min-width: 850px; }.ad-table td form { margin: 8px 0; }.ad-table summary { cursor: pointer; padding: 8px 0; }
.ad-check { display: flex; align-items: center; gap: 10px; }.ad-check input { width: 20px; min-height: 20px; flex: 0 0 20px; }
.ad-admin-image { display: block; max-width: 260px; width: 100%; height: auto; max-height: 220px; object-fit: contain; }
.ad-safe-placeholder { border: 2px dashed var(--line); border-radius: 12px; padding: 24px; color: var(--muted); background: var(--paper); }
.erfahrio-ad[hidden] { display: none !important; }
.erfahrio-ad-google .erfahrio-ad-mount { min-height: 250px; width: 100%; }
#ad-form [hidden], .ad-admin-image[hidden] { display: none; }
@media(max-width:600px) { .erfahrio-ad-layout { gap: 16px; }.erfahrio-ad .erfahrio-ad-image { flex-basis: 100%; }.erfahrio-ad .erfahrio-ad-image img { max-height: 220px; } }

/* Affiliate only: compact single-column card, sized to its image/button area. */
.erfahrio-ad[data-affiliate] {
  --ad-padding: clamp(20px, 3vw, 28px);
  width: calc(240px + var(--ad-padding) * 2 + 2px);
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
  padding: var(--ad-padding);
  background: var(--paper);
}
.erfahrio-ad[data-affiliate] .erfahrio-ad-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.erfahrio-ad[data-affiliate] .erfahrio-ad-media {
  display: grid;
  gap: 14px;
  min-width: 0;
  width: 100%;
}
.erfahrio-ad[data-affiliate] .erfahrio-ad-image {
  display: grid;
  justify-items: start;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  text-decoration: none;
}
.erfahrio-ad[data-affiliate] .erfahrio-ad-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  margin: 0;
  border-radius: 10px;
}
.erfahrio-ad[data-affiliate] .erfahrio-ad-copy { min-width: 0; text-align: left; }
.erfahrio-ad[data-affiliate] .erfahrio-ad-copy-only { grid-column: 1 / -1; }
.erfahrio-ad[data-affiliate] .erfahrio-ad-title {
  margin: 0 0 12px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3;
  text-wrap: pretty;
}
.erfahrio-ad[data-affiliate] .erfahrio-ad-copy > p { overflow-wrap: anywhere; }
.erfahrio-ad[data-affiliate] .erfahrio-ad-copy > p:last-child { margin-bottom: 0; }
.erfahrio-ad[data-affiliate] .erfahrio-ad-button {
  min-height: 48px;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  padding: 13px 18px;
}
.erfahrio-ad[data-affiliate] .erfahrio-ad-media .erfahrio-ad-button { width: 100%; }
@media (max-width: 600px) {
  .erfahrio-ad[data-affiliate] { --ad-padding: 20px; text-align: center; margin-left: auto; margin-right: auto; }
  .erfahrio-ad[data-affiliate] .erfahrio-ad-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .erfahrio-ad[data-affiliate] .erfahrio-ad-media { width: 100%; }
  .erfahrio-ad[data-affiliate] .erfahrio-ad-image { justify-items: center; }
  .erfahrio-ad[data-affiliate] .erfahrio-ad-image img { max-width: min(100%, 280px); }
  .erfahrio-ad[data-affiliate] .erfahrio-ad-copy { text-align: center; }
  .erfahrio-ad[data-affiliate] .erfahrio-ad-button { width: 100%; }
}
