/* ==========================================================================
   10 – AKTUELLES (NEWS, MESSEN), MAGAZIN, GLOSSAR, DOWNLOADS
   ==========================================================================
   Gemeinsames Stylesheet für alle Seiten, die Beiträge in Karten mit
   Kategorie-Filter und Modal-Vorleser zeigen (News, Messen, Magazin – Klassen
   mit Präfix "ak-") sowie für Glossar und Downloads (eigene Abschnitte weiter
   unten). Die Modal-/Filter-Logik selbst steht in
   assets/js/aktuelles-filter-modal.js.
   ========================================================================== */

/* --------------------------------------------------------------------
   HERO (Breadcrumb, Eyebrow, H1, Lead) – eigenes Präfix "ak-", gleiches
   Aussehen wie kt-hero (Kompetenzen) und ub-hero (Unternehmen).
   -------------------------------------------------------------------- */
.ak-hero { background: var(--gray-lt); border-bottom: 1px solid var(--line); padding: 56px 40px 44px; text-align: center; }
.ak-hero-inner { max-width: 760px; margin: 0 auto; }
.ak-breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 18px; }
.ak-breadcrumb a { color: var(--gray); text-decoration: none; }
.ak-breadcrumb a:hover { color: var(--blue); }
.ak-breadcrumb span { color: var(--black); font-weight: 700; }
.ak-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.ak-hero .eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--blue); }
.ak-hero h1 { font-size: clamp(2rem,4vw,2.9rem); font-weight: 700; color: var(--black); letter-spacing: -.02em; line-height: 1.12; margin-bottom: 16px; }
.ak-hero h1 span { color: var(--blue); }
.ak-hero-sub { font-size: 17px; line-height: 1.6; color: var(--gray); max-width: 620px; margin: 0 auto; }

/* --------------------------------------------------------------------
   FILTER-LEISTE (Kategorie-Chips + Treffer-Zähler)
   -------------------------------------------------------------------- */
.ak-filter-bar { max-width: 1200px; margin: 0 auto; padding: 36px 40px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.ak-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ak-chip { font-size: 13.5px; font-weight: 700; color: var(--gray); background: var(--gray-lt); border: 1px solid var(--line); border-radius: 20px; padding: 9px 18px; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.ak-chip:hover { border-color: rgba(0,150,255,.4); }
.ak-chip.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.ak-count { font-size: 13.5px; color: var(--gray); white-space: nowrap; }

/* --------------------------------------------------------------------
   KARTEN-RASTER (News, Magazin)
   -------------------------------------------------------------------- */
.ak-grid { max-width: 1200px; margin: 0 auto; padding: 26px 40px 70px; display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.ak-card { border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; cursor: pointer; transition: box-shadow .2s, transform .2s, border-color .2s; scroll-margin-top: 120px; }
.ak-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.1); transform: translateY(-3px); border-color: rgba(0,150,255,.3); }
.ak-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ak-card-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--gray-lt); position: relative; }
.ak-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-card-badge { position: absolute; left: 14px; top: 14px; background: rgba(28,28,27,.78); backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; border-radius: 8px; }
.ak-card-body { padding: 22px 24px 24px; }
.ak-card-date { font-size: 12.5px; color: var(--gray); margin-bottom: 8px; }
.ak-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--black); line-height: 1.32; margin-bottom: 10px; }
.ak-card p { font-size: 14px; line-height: 1.6; color: var(--gray); margin-bottom: 16px; }
.ak-card-more { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--blue); }
.ak-card-more svg { width: 15px; height: 15px; }

.ak-empty { display: none; grid-column: 1 / -1; text-align: center; padding: 50px 20px; font-size: 15px; color: var(--gray); }
.ak-empty.show { display: block; }

/* --------------------------------------------------------------------
   MESSEN & TERMINE – eigene Kartenform ohne Bild (Datum-Spalte + Text)
   -------------------------------------------------------------------- */
.ms-abschnitt { max-width: 1200px; margin: 0 auto; padding: 10px 40px 0; }
.ms-abschnitt h2 { font-size: 1.25rem; font-weight: 700; color: var(--black); margin: 34px 0 18px; }
.ms-liste { display: flex; flex-direction: column; gap: 14px; padding-bottom: 20px; }

.ms-card { display: flex; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 20px 24px; cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.ms-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.07); border-color: rgba(0,150,255,.3); }
.ms-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ms-card.past { opacity: .55; }

.ms-date { flex-shrink: 0; width: 74px; text-align: center; }
.ms-date .d-day { display: block; font-size: 1.4rem; font-weight: 700; color: var(--blue); line-height: 1; }
.ms-date .d-mon { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--black); margin-top: 4px; }
.ms-date .d-year { display: block; font-size: 11.5px; color: var(--gray); }

.ms-body { flex: 1; min-width: 0; }
.ms-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.ms-meta { font-size: 13.5px; color: var(--gray); }
.ms-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--blue-dk); background: var(--blue-lt); border-radius: 14px; padding: 5px 12px; margin-left: 10px; white-space: nowrap; }
.ms-tag--aussteller { color: #b3760a; background: #fdf3e2; }

.ms-arrow { flex-shrink: 0; width: 20px; height: 20px; color: var(--blue); }

/* --------------------------------------------------------------------
   MODAL (News, Messen, Magazin – gemeinsam)
   -------------------------------------------------------------------- */
body.ak-lock { overflow: hidden; }
.ak-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.ak-modal.open { display: flex; }
.ak-modal-backdrop { position: fixed; inset: 0; background: rgba(28,28,27,.6); backdrop-filter: blur(2px); }
.ak-modal-panel { position: relative; z-index: 1; width: 100%; max-width: 760px; background: var(--white); border-radius: 18px; overflow: hidden; max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.ak-modal-close { position: absolute; right: 16px; top: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(28,28,27,.65); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ak-modal-close:hover { background: rgba(28,28,27,.85); }
.ak-modal-close svg { width: 18px; height: 18px; }

.ak-modal-hero { position: relative; aspect-ratio: 21/9; background: var(--gray-lt); overflow: hidden; }
.ak-modal-hero--leer { display: none; }
.ak-modal-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-modal-badge { position: absolute; left: 20px; bottom: 20px; background: rgba(28,28,27,.78); backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 7px 13px; border-radius: 8px; }

.ak-modal-body { padding: 30px 34px 40px; }
.ak-modal-meta { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.ak-modal-status { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 12px; border-radius: 14px; margin-bottom: 14px; }
.ak-modal-status.upcoming { color: var(--blue-dk); background: var(--blue-lt); }
.ak-modal-status.past { color: var(--gray); background: var(--gray-lt); }
.ak-modal-title { font-size: 1.5rem; font-weight: 700; color: var(--black); line-height: 1.25; margin-bottom: 20px; }

.ak-modal-content p { font-size: 15px; line-height: 1.7; color: var(--gray); margin-bottom: 16px; }
.ak-modal-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--black); margin: 24px 0 10px; }
.ak-modal-content ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.ak-modal-content li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.55; color: var(--gray); }
.ak-modal-content li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.ak-modal-content .ak-cta-inline { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* --------------------------------------------------------------------
   CTA-BAND (wiederverwendbare Info-Fläche am Seitenende)
   -------------------------------------------------------------------- */
.ak-cta { max-width: 700px; margin: 0 auto; padding: 60px 40px 80px; text-align: center; }
.ak-cta .sec-header { align-items: center; }
.ak-cta p { font-size: 15px; line-height: 1.6; color: var(--gray); margin-bottom: 22px; }
.ak-cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* --------------------------------------------------------------------
   GLOSSAR – Suchleiste, A-Z-Navigation, Buchstaben-Gruppen
   -------------------------------------------------------------------- */
.gl-suchbereich { max-width: 900px; margin: 0 auto; padding: 30px 40px 0; }
.gl-suche-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.gl-suchfeld-wrap { position: relative; flex: 1; min-width: 240px; }
.gl-suchfeld-wrap input { width: 100%; font: inherit; font-size: 15px; padding: 13px 40px 13px 16px; border: 1px solid var(--line); border-radius: 10px; }
.gl-suchfeld-wrap input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.gl-clear { display: none; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: none; background: var(--gray-lt); border-radius: 50%; color: var(--gray); font-size: 16px; cursor: pointer; line-height: 1; }
.gl-clear.show { display: block; }
.gl-count { font-size: 13.5px; color: var(--gray); white-space: nowrap; }
.gl-az { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 24px; }
.gl-az a, .gl-az span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }
.gl-az a { color: var(--black); background: var(--gray-lt); transition: background .18s, color .18s; }
.gl-az a:hover, .gl-az a.disabled:hover { background: var(--gray-lt); }
.gl-az a.disabled { color: var(--gray); opacity: .5; pointer-events: none; }
.gl-az span.disabled { color: var(--line); background: transparent; }

.gl-group { margin-bottom: 34px; }
.gl-group h2 { font-size: 1.3rem; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.gl-item { border-bottom: 1px solid var(--line); padding: 14px 0; scroll-margin-top: 120px; }
.gl-item summary { cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 700; color: var(--black); position: relative; padding-right: 26px; }
.gl-item summary::-webkit-details-marker { display: none; }
.gl-item summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 18px; color: var(--blue); }
.gl-item[open] summary::after { content: '−'; }
.gl-def { font-size: 14.5px; line-height: 1.65; color: var(--gray); margin-top: 10px; }
.gl-item.gl-flash { animation: glFlash 1.6s ease; }
@keyframes glFlash { 0%, 100% { background: transparent; } 20% { background: var(--blue-lt); } }
.gl-empty { display: none; text-align: center; padding: 40px 20px; color: var(--gray); }
.gl-empty.show { display: block; }

/* --------------------------------------------------------------------
   DOWNLOADS – Klassennamen 1:1 aus der Vorschau übernommen (vorher
   abweichend .br-hero/.dl-grid/.dl-cert-links/.dl-bald/.dl-fussnote,
   siehe KORREKTUREN.md)
   -------------------------------------------------------------------- */
.dl-hero { background: var(--gray-lt); border-bottom: 1px solid var(--line); padding: 56px 40px; }
.dl-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.dl-hero-text { min-width: 0; }
.dl-hero-media { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.14); aspect-ratio: 16/10; position: relative; }
.dl-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); animation: dlZoom 20s ease-out forwards; }
@keyframes dlZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dl-hero-media img { animation: none; transform: none; } }
@media (max-width: 820px) { .dl-hero-inner { grid-template-columns: 1fr; gap: 30px; } .dl-hero-media { aspect-ratio: 16/9; } }
.dl-crumb { font-size: 13px; color: var(--gray); margin-bottom: 18px; }
.dl-crumb a { color: var(--gray); text-decoration: none; }
.dl-crumb a:hover { color: var(--blue); }
.dl-crumb span { color: var(--black); font-weight: 700; }
.dl-hero .eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.dl-hero .eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--blue); }
.dl-hero h1 { font-size: clamp(2rem,4vw,2.9rem); font-weight: 700; color: var(--black); letter-spacing: -.02em; line-height: 1.12; margin-bottom: 16px; }
.dl-hero h1 span { color: var(--blue); }
.dl-hero p.lead { font-size: 1.06rem; line-height: 1.7; color: var(--gray); max-width: 52ch; }
.dl-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dl-quick a { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--gray); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; transition: .2s; }
.dl-quick a:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-1px); }

.dl-main { max-width: 1100px; margin: 0 auto; padding: 72px 40px; }
@media (max-width: 640px) { .dl-main { padding: 48px 22px; } .dl-hero { padding: 44px 22px; } }

.dl-group { margin-bottom: 64px; }
.dl-group:last-child { margin-bottom: 0; }
.dl-group-head { margin-bottom: 26px; }
.dl-group-head .eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.dl-group-head .eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--blue); }
.dl-group-head h2 { font-size: clamp(1.5rem,2.6vw,2rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.dl-group-head p { margin-top: 8px; color: var(--gray); max-width: 64ch; line-height: 1.65; font-size: .98rem; }

/* Zertifikate: Karten mit Vorschau-Thumbnail */
.dl-cert-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 22px; }
.dl-cert { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: .25s cubic-bezier(.22,1,.36,1); }
.dl-cert:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.12); border-color: #cfe8ff; }
.dl-cert-thumb { aspect-ratio: 1/1.1; background: var(--gray-lt); overflow: hidden; position: relative; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.dl-cert-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .5s ease; }
.dl-cert-thumb svg { width: 46px; height: 46px; color: var(--gray); }
.dl-cert:hover .dl-cert-thumb img { transform: scale(1.04); }
.dl-cert-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.dl-cert-body h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.dl-cert-body .dl-cert-sub { font-size: .85rem; color: var(--gray); line-height: 1.4; flex: 1; }
.dl-cert-meta { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .78rem; font-weight: 700; color: var(--blue); letter-spacing: .02em; }
.dl-cert-meta svg { width: 15px; height: 15px; stroke: var(--blue); stroke-width: 2.2; fill: none; }

/* Dokument-Liste (Werkstoffe, Fertigung & Branchen, Fachbeiträge, Unternehmen) */
.dl-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 16px; }
.dl-doc { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1.5px solid var(--blue); border-radius: 12px; padding: 20px 20px 18px; text-decoration: none; color: inherit; transition: .22s cubic-bezier(.22,1,.36,1); }
.dl-doc:hover { box-shadow: 0 14px 34px rgba(0,150,255,.18); transform: translateY(-2px); }
.dl-doc-top { display: flex; align-items: flex-start; gap: 16px; flex: 1; }
.dl-doc .dl-doc-file { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: .82rem; font-weight: 700; color: var(--white); background: var(--blue); border-radius: 8px; padding: 11px 16px; text-transform: uppercase; letter-spacing: .05em; transition: .2s; }
.dl-doc .dl-doc-file svg { width: 16px; height: 16px; stroke: var(--white); }
.dl-doc .dl-doc-file .dl-ext { color: #cdeaff; }
.dl-doc:hover .dl-doc-file { background: var(--blue-dk); }
.dl-doc:hover .dl-doc-file .dl-ext { color: var(--white); }
.dl-doc.dl-doc--bald { border-color: var(--line); cursor: default; }
.dl-doc.dl-doc--bald .dl-doc-file { background: var(--gray-lt); color: var(--gray); }
.dl-doc.dl-doc--bald .dl-doc-file svg { stroke: var(--gray); }
.dl-doc.dl-doc--bald:hover { transform: none; box-shadow: none; }
.dl-doc-ic { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--blue-lt); display: grid; place-items: center; }
.dl-doc-ic svg { width: 22px; height: 22px; stroke: var(--blue); stroke-width: 2; fill: none; }
.dl-doc-txt { min-width: 0; }
.dl-doc-txt h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.dl-doc-txt p { font-size: .85rem; color: var(--gray); line-height: 1.45; }

.dl-note { margin-top: 14px; background: var(--blue-lt); border: 1px solid #cfe8ff; border-radius: 12px; padding: 16px 20px; font-size: .9rem; color: var(--gray); line-height: 1.6; }
.dl-note strong { color: var(--black); }

.dl-cta { background: var(--gray); color: var(--white); padding: 56px 40px; text-align: center; }
.dl-cta-inner { max-width: 720px; margin: 0 auto; }
.dl-cta .eyebrow { justify-content: center; color: #7cc4ff; }
.dl-cta .eyebrow::before { background: #7cc4ff; }
.dl-cta h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 700; margin-bottom: 14px; letter-spacing: -.01em; }
.dl-cta p { color: #c8ced2; line-height: 1.7; margin-bottom: 26px; }
.dl-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
	.ak-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
	.ak-hero { padding: 44px 20px 34px; }
	.ak-filter-bar, .ms-abschnitt { padding-left: 20px; padding-right: 20px; }
	.ak-grid { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; }
	.ms-card { flex-wrap: wrap; gap: 14px; padding: 16px 18px; }
	.ms-date { width: auto; text-align: left; display: flex; align-items: baseline; gap: 8px; }
	.ms-date .d-year { display: none; }
	.ak-modal-panel { max-height: calc(100vh - 40px); }
	.ak-modal-body { padding: 24px 22px 32px; }
	.gl-suchbereich { padding-left: 20px; padding-right: 20px; }
	.gl-suche-inner { flex-direction: column; align-items: stretch; }
}
