/* Bilder (29.11.2026): Fotos im Stil von ict-bildung.ch, ruhig und gross. Reine Dekoration, ausser Hero. */
.alp-foto { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: var(--alp-radius, 10px); background: #eef1f5; }
.alp-hero { overflow: hidden; }
.alp-hero-foto { display: none; }
@media (min-width: 1000px) {
  .alp-hero-foto { display: block; position: absolute; z-index: 1; right: max(24px, calc((100vw - 1180px) / 2)); top: 50%; transform: translateY(-50%); width: min(38vw, 470px); }
  .alp-hero-foto .alp-foto { aspect-ratio: 4 / 3; box-shadow: 0 24px 60px rgba(15, 23, 42, .28); border: 1px solid rgba(255, 255, 255, .22); }
  /* border-box: sonst rechnet max-width ohne den Fotoplatz, ab ca. 1300 px lief der Text ins Foto (29.11.2026) */
  .alp-hero:has(.alp-hero-foto) > .alp-container { box-sizing: border-box; padding-right: calc(min(38vw, 470px) + 56px); }
  .alp-hero:has(.alp-hero-foto) h1, .alp-hero:has(.alp-hero-foto) .alp-hero-label, .alp-hero:has(.alp-hero-foto) p { max-width: none; }
}
.alp-karte-bild { margin: -32px -32px 18px; width: calc(100% + 64px); max-width: none; border-radius: var(--alp-radius, 10px) var(--alp-radius, 10px) 0 0; aspect-ratio: 16 / 9; }
.alp-band-foto { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.alp-band-foto .alp-foto { aspect-ratio: 4 / 3; }
@media (max-width: 800px) { .alp-band-foto { grid-template-columns: 1fr; gap: 24px; } }
/* nur Karten mit Bild kappen - sonst wird z. B. das Badge «Empfohlen» (top:-13px) oben abgeschnitten (29.11.2026) */
.alp-card:has(.alp-karte-bild) { overflow: hidden; }
.alp-banner { aspect-ratio: 21 / 8; margin: 0 0 24px; }
@media (max-width: 640px) { .alp-banner { aspect-ratio: 16 / 9; } }

/* Bildstreifen in Abschnitten: 2 bis 3 Fotos nebeneinander */
.alp-streifen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 4px 0 28px; }
.alp-streifen--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.alp-streifen .alp-foto { aspect-ratio: 3 / 2; }
@media (max-width: 700px) { .alp-streifen, .alp-streifen--2 { grid-template-columns: 1fr; } }

/* Prüfung Gemini/Grok/Browser 29.11.2026 */
.alp-streifen:has(> :only-child) { grid-template-columns: 1fr; }
/* ict.css gibt dem Hero-Container width:100% plus Innenabstand - ohne border-box 40 px zu breit (Plattformen am Handy) */
.alp-hero .alp-container { box-sizing: border-box; }
@media (max-width: 640px) {
  /* lange Wörter wie «Zukunftskompetenzen» liefen aus dem Hero (ict.css: word-break keep-all) */
  .alp-hero h1 { max-width: 100%; word-break: normal; overflow-wrap: break-word; hyphens: auto; }
  /* CTA-Band: Inline min-width 280px + flex-shrink 0 der Knopfgruppe schoben die Knöpfe aus dem Bild */
  .ict-r4f-band > div { min-width: 0 !important; flex: 1 1 100% !important; }
}
