KI:SL 2026 - KI in Studium und Lehre
Vielen Dank für Ihre rege und aktive Teilnahme am hochschulweiten Tag zu KI in Studium und Lehre (KI:SL).
Die Veranstaltung bot Lehrenden und Studierenden die Gelegenheit, die Möglichkeiten und Grenzen des Einsatzes von KI in der Lehre und für das Lernen kennenzulernen. Anhand von Praxisbeispielen zeigten Hands-on-Vorträge, Workshops und Info-Stände, wie KI-Tools in Studium und Lehre eingesetzt werden können – von der Unterstützung beim wissenschaftlichen Arbeiten über kreative Anwendungen bis hin zu Fragen der Ethik und institutionellen Einbettung.
Das Interesse an den Angeboten war groß: Ein Vortrag musste spontan ein zweites Mal gehalten werden, da der Raum die Nachfrage nicht fassen konnte.
Den Abschluss des Tages bildeten die Keynote von Prof. Dr. Doris Weßels sowie eine Podiumsdiskussion unter dem Titel „Die Zukunft des Studiums: Lehren und Lernen mit, trotz oder gerade wegen KI?", in der Expert*innen aus verschiedenen Bereichen teils kontrovers über die Zukunft der Hochschullehre diskutierten.
Zahlreiche Dozent*innen haben ihre Präsentationen im Intranet zum Download zur Verfügung gestellt. Sie erreichen die Seite über diesen Link .
Fotos: Universität Göttingen / Jan Vetter
Der hochschulweite Tag zu KI in Studium und Lehre (KI:SL) bietet eine einzigartige Gelegenheit,
die Möglichkeiten und Grenzen des Einsatzes von KI in der Lehre und für das Lernen kennenzulernen.
Anhand von Praxisbeispielen zeigen wir in Hands-on-Vorträgen, Workshops und an Info-Ständen,
wie KI-Tools und innovative Konzepte Studium und Lehre bereichern können.
Die Veranstaltung bietet zudem Raum für offenen Austausch zu Erfahrungen, Perspektiven und Bedenken –
die aktive Beteiligung von Studierenden und Lehrenden ist dabei ausdrücklich erwünscht.
Deshalb entfallen am 21.04.2026 die regulären Lehrveranstaltungen.
09:00 – 17:00 Uhr - Parallele Vorträge, Workshops und Info-Stände
Den ganzen Tag über finden parallel Vorträge und Workshops statt. An Info-Ständen können Sie sich über KI-Tools und -Dienste informieren.
Mehr Informationen
Keynote · Podiumsdiskussion · Ausklang
Um Anmeldung wird gebeten
🇬🇧 Keynote und Podiumsdiskussion werden durch Live-Untertitel auf Englisch begleitet.
Jetzt anmelden →
17:00 – 17:30 Uhr - Keynote: Prof. Dr. Doris Weßels
KI-Agenten ante portas: Hochschulbildung im KI-Stresstest
📍 ZHG, Raum 011
17:30 – 18:30 Uhr - Podiumsdiskussion
Die Zukunft des Studiums: Lehren und Lernen mit, trotz oder gerade wegen KI?
📍 ZHG, Raum 011
Die anschließende Podiumsdiskussion beschäftigt sich mit der Zukunft des Studiums im Zeitalter der Künstlichen Intelligenz.
Expert:innen aus verschiedenen Bereichen diskutieren über Chancen, Herausforderungen und Perspektiven des Lehrens und Lernens mit KI.
Unsere Panelist:innen
Ab 18:30 Uhr - Ausklang
Lassen Sie den Tag bei Gesprächen und Networking ausklingen.
Ansicht wählen: Wie möchten Sie die Angebote sehen?
Zielgruppe
Alle
Studierende
Lehrende
Format
?
Alle
Vorträge
Hands-on
Workshops
Sprache
Alle
Deutsch
Englisch
Raum
Alle
004
005
006
007
008
009
010
MZG 0.113a
Thema
Alle
Lern- & Arbeitsassistenz
Wiss. Arbeiten & Lehre
gestalten, visualisieren & kommunizieren
Ethik & institutionelle Einbettung
Durchgehend 10:00–17:00 Uhr · Fokuszeiten: 12:00–13:00 & 15:30–16:30
Kostenlose Kinderbetreuung
Damit Sie den Tag unbeschwert erleben können, bieten wir eine kostenlose Kinderbetreuung an –
bereitgestellt durch die Kindertagespflege Göttingen e.V.
Eine Anmeldung ist nicht erforderlich – Sie können Ihr Kind jederzeit bringen und abholen
(come & go ).
🕘
Betreuungszeit
09:00 – 18:30 Uhr
📍
Ort
Oeconomicum, Seminarraum 0.169
✅
Anmeldung
Nicht erforderlich
Come & go
👤
Kontakt vor Ort
Information folgt
Während der Veranstaltung werden Foto- und Videoaufnahmen zu Dokumentations- und Öffentlichkeitszwecken erstellt.
Mit Ihrer Teilnahme erklären Sie sich damit einverstanden.
Bei Fragen zur Veranstaltung wenden Sie sich bitte an:
Dr. Isabelle Matthias
';
var TT_ROOM_LINKS = {
'004': 'https://lageplan.uni-goettingen.de?ident=5257_1_EG_0.156',
'005': 'https://lageplan.uni-goettingen.de?ident=5257_1_EG_0.155',
'006': 'https://lageplan.uni-goettingen.de?ident=5257_1_EG_0.154',
'007': 'https://lageplan.uni-goettingen.de?ident=5257_1_EG_0.153',
'008': 'https://lageplan.uni-goettingen.de?ident=5257_1_1.OG_1.150',
'009': 'https://lageplan.uni-goettingen.de?ident=5257_1_1.OG_1.152',
'010': 'https://lageplan.uni-goettingen.de?ident=5257_1_1.OG_1.153',
'MZG 0.113a': 'https://lageplan.uni-goettingen.de?ident=5237_1_EG_0.113A'
};
TT_ROOMS.forEach(function(r) {
var link = TT_ROOM_LINKS[r] || '#';
var label = r === 'MZG 0.113a' ? 'MZG
0.113a ' : 'ZHG ' + r;
h += '';
});
h += '
';
// Zeitachse
h += '
';
// Raumspalten
TT_ROOMS.forEach(function(room) {
h += '
';
});
h += '
';
inner.innerHTML = h;
inner.querySelectorAll('.timetable-event:not(.timetable-event--filtered)').forEach(function(el) {
el.addEventListener('click', function() {
var id = parseInt(this.getAttribute('data-event-id'), 10);
for (var i = 0; i < events.length; i++) {
if (events[i].id === id) { openEventModal(events[i]); break; }
}
});
});
}
// ── Mobile: Agenda-Liste ──────────────────────────────────────────────────────
function generateAgendaTimetable(inner) {
// Alle Events mit Zeitinfo sammeln und sortieren
var all = [];
events.forEach(function(evt) {
var ti = parseEventTime(evt.time);
if (!ti || ti.end <= TT_START || ti.start >= TT_END) return;
all.push({ evt: evt, ti: ti });
});
all.sort(function(a, b) {
return a.ti.start !== b.ti.start
? a.ti.start - b.ti.start
: a.evt.room.localeCompare(b.evt.room);
});
// Nach Startzeit gruppieren
var groups = {};
var groupOrder = [];
all.forEach(function(item) {
var key = item.ti.start;
if (!groups[key]) { groups[key] = []; groupOrder.push(key); }
groups[key].push(item);
});
var h = '
';
groupOrder.forEach(function(startMin) {
var hh = Math.floor(startMin / 60);
var mm = startMin % 60;
var label = (hh < 10 ? '0' : '') + hh + ':' + (mm < 10 ? '0' : '') + mm + ' Uhr';
h += '
' + label + '
';
groups[startMin].forEach(function(item) {
var evt = item.evt;
var ok = ttPasses(evt);
var color = ttColor(evt.topics);
var reg = evt.requiresRegistration
? '
' : '';
h += '
' +
'
' +
'
' +
'
' + evt.time + '
' +
'
' + evt.title + '
' +
'
' +
'Raum ' + evt.room + ' ' +
'' + evt.speaker + ' ' +
reg +
'
' +
'
';
});
h += '
';
});
h += '
';
inner.innerHTML = h;
// Raster-spezifische min-width aufheben
inner.style.minWidth = '0';
inner.querySelectorAll('.agenda-slot:not(.agenda-slot--filtered)').forEach(function(el) {
el.addEventListener('click', function() {
var id = parseInt(this.getAttribute('data-event-id'), 10);
for (var i = 0; i < events.length; i++) {
if (events[i].id === id) { openEventModal(events[i]); break; }
}
});
});
}
function generateTimetable() {
var inner = document.getElementById('timetableInner');
if (!inner) return;
// min-width zurücksetzen
inner.style.minWidth = '';
if (useAgendaView()) {
generateAgendaTimetable(inner);
} else {
generateGridTimetable(inner);
}
}
function setView(view) {
currentView = view;
document.getElementById('eventsGrid').style.display = view === 'grid' ? '' : 'none';
document.getElementById('timetableContainer').style.display = view === 'timetable' ? 'block' : 'none';
document.getElementById('btnGridView').classList.toggle('active', view === 'grid');
document.getElementById('btnTimetableView').classList.toggle('active', view === 'timetable');
if (view === 'timetable') generateTimetable();
}
// ========== PANELISTEN ==========
function generatePanelists() {
var grid = document.getElementById('panelistsGrid');
if (!grid) return;
grid.innerHTML = '';
for (var i = 0; i < panelists.length; i++) {
var panelist = panelists[i];
var div = document.createElement('div');
div.className = 'panelist';
div.setAttribute('data-panelist-id', panelist.id);
var imageHtml = panelist.image
? '
'
: '
' + panelist.initial + '
';
div.innerHTML = imageHtml +
'
' + panelist.name + '
' +
'
' + panelist.affiliation + '
' +
'
Bio ansehen ';
grid.appendChild(div);
}
var elements = grid.querySelectorAll('.panelist');
for (var j = 0; j < elements.length; j++) {
elements[j].addEventListener('click', function() {
var id = parseInt(this.getAttribute('data-panelist-id'), 10);
for (var k = 0; k < panelists.length; k++) {
if (panelists[k].id === id) { openModal(panelists[k]); break; }
}
});
}
}
// ========== STÄNDE ==========
function generateStands() {
var grid = document.getElementById('standsGrid');
if (!grid) return;
grid.innerHTML = '';
for (var i = 0; i < stands.length; i++) {
var stand = stands[i];
var div = document.createElement('div');
div.className = 'stand';
div.setAttribute('data-stand-id', stand.id);
div.setAttribute('data-topic', stand.topic || 'assistenz');
div.innerHTML =
'
' +
'
' + stand.title + ' ' +
'
' + stand.speaker + '
' +
'
' + stand.affiliation + '
' +
'
';
grid.appendChild(div);
}
var elements = grid.querySelectorAll('.stand');
for (var j = 0; j < elements.length; j++) {
elements[j].addEventListener('click', function() {
var id = parseInt(this.getAttribute('data-stand-id'), 10);
for (var k = 0; k < stands.length; k++) {
if (stands[k].id === id) { openStandsModal(stands[k]); break; }
}
});
}
}
// ========== BIO MODAL ==========
function openModal(panelist) {
var existing = document.getElementById('bioModal');
if (existing) existing.parentNode.removeChild(existing);
var overlay = document.createElement('div');
overlay.id = 'bioModal';
overlay.style.cssText = 'position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;background:rgba(0,0,0,0.6)!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:999999!important;padding:24px!important;';
var modal = document.createElement('div');
modal.style.cssText = 'background:#fff!important;border-radius:12px!important;max-width:560px!important;width:100%!important;max-height:90vh!important;overflow:hidden!important;box-shadow:0 25px 50px rgba(0,0,0,0.25)!important;position:relative!important;';
var closeBtn = document.createElement('button');
closeBtn.innerHTML = '×';
closeBtn.style.cssText = 'position:absolute!important;top:16px!important;right:16px!important;width:36px!important;height:36px!important;border:none!important;background:transparent!important;cursor:pointer!important;border-radius:50%!important;font-size:28px!important;color:#666!important;line-height:1!important;z-index:10!important;';
closeBtn.onmouseover = function() { this.style.background = '#e5e7eb'; };
closeBtn.onmouseout = function() { this.style.background = 'transparent'; };
closeBtn.onclick = closeModal;
var header = document.createElement('div');
header.style.cssText = 'display:flex!important;align-items:center!important;gap:24px!important;padding:40px!important;background:#f8f9fb!important;border-bottom:1px solid #e5e7eb!important;';
var avatar = document.createElement('div');
if (panelist.image) {
avatar.style.cssText = 'width:80px!important;height:80px!important;border-radius:50%!important;background-image:url(' + JSON.stringify(panelist.image) + ')!important;background-size:cover!important;background-position:center!important;flex-shrink:0!important;';
} else {
avatar.style.cssText = 'width:80px!important;height:80px!important;border-radius:50%!important;background:linear-gradient(135deg,#b5d4e3,#8ab8cf)!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:28px!important;font-weight:600!important;color:#13306a!important;flex-shrink:0!important;';
avatar.textContent = panelist.initial;
}
var titleGroup = document.createElement('div');
titleGroup.style.cssText = 'flex:1!important;';
var name = document.createElement('div'); name.style.cssText = 'font-size:22px!important;font-weight:700!important;color:#1a1a1a!important;margin-bottom:4px!important;'; name.textContent = panelist.name;
var affiliation = document.createElement('div'); affiliation.style.cssText = 'font-size:15px!important;color:#6b6b6b!important;'; affiliation.textContent = panelist.affiliation;
titleGroup.appendChild(name); titleGroup.appendChild(affiliation);
header.appendChild(avatar); header.appendChild(titleGroup);
var body = document.createElement('div');
body.style.cssText = 'padding:40px!important;overflow-y:auto!important;max-height:calc(90vh - 180px)!important;';
var bio = document.createElement('p');
bio.style.cssText = 'font-size:16px!important;line-height:1.8!important;color:#4a4a4a!important;margin:0!important;';
bio.textContent = panelist.bio;
body.appendChild(bio);
modal.appendChild(closeBtn); modal.appendChild(header); modal.appendChild(body);
overlay.appendChild(modal);
document.body.appendChild(overlay);
document.body.style.overflow = 'hidden';
overlay.onclick = function(e) { if (e.target === overlay) closeModal(); };
}
function closeModal() {
var m = document.getElementById('bioModal');
if (m) m.parentNode.removeChild(m);
document.body.style.overflow = '';
}
// ========== STAND MODAL ==========
function openStandsModal(stand) {
var existing = document.getElementById('standModal');
if (existing) existing.parentNode.removeChild(existing);
// Themenfarbe für Header
var topicColors = { assistenz: 'var(--tt-assistenz)', wissenschaft: 'var(--tt-wissenschaft)', kommunikation: 'var(--tt-kommunikation)', ethik: 'var(--tt-ethik)' };
var topicText = { assistenz: '#1a1a1a', wissenschaft: 'white', kommunikation: 'white', ethik: 'white' };
var hc = topicColors[stand.topic] || 'var(--primary)';
var tc = topicText[stand.topic] || 'white';
var overlay = document.createElement('div');
overlay.id = 'standModal';
overlay.style.cssText = 'position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;background:rgba(0,0,0,0.6)!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:999999!important;padding:24px!important;';
var modal = document.createElement('div');
modal.style.cssText = 'background:#fff!important;border-radius:12px!important;max-width:560px!important;width:100%!important;max-height:90vh!important;overflow:hidden!important;box-shadow:0 25px 50px rgba(0,0,0,0.25)!important;position:relative!important;display:flex!important;flex-direction:column!important;';
var closeBtn = document.createElement('button');
closeBtn.innerHTML = '×';
closeBtn.style.cssText = 'position:absolute!important;top:14px!important;right:14px!important;width:34px!important;height:34px!important;border:none!important;background:rgba(0,0,0,0.1)!important;cursor:pointer!important;border-radius:50%!important;font-size:26px!important;color:' + tc + '!important;line-height:1!important;z-index:10!important;';
closeBtn.onclick = closeStandModal;
var header = document.createElement('div');
header.style.cssText = 'padding:28px 40px 22px!important;background:' + hc + '!important;flex-shrink:0!important;';
var titleEl = document.createElement('div'); titleEl.style.cssText = 'font-size:20px!important;font-weight:700!important;color:' + tc + '!important;margin-bottom:6px!important;line-height:1.3!important;'; titleEl.textContent = stand.title;
var speakerEl = document.createElement('div'); speakerEl.style.cssText = 'font-size:14px!important;opacity:0.8!important;color:' + tc + '!important;'; speakerEl.textContent = stand.speaker + (stand.affiliation ? ' · ' + stand.affiliation : '');
header.appendChild(titleEl); header.appendChild(speakerEl);
var body = document.createElement('div');
body.style.cssText = 'padding:28px 36px 32px!important;overflow-y:auto!important;flex:1!important;';
if (stand.description && stand.description.trim()) {
var desc = document.createElement('p');
desc.style.cssText = 'font-size:15px!important;line-height:1.8!important;color:#4a4a4a!important;margin:0!important;white-space:pre-line!important;';
desc.textContent = stand.description;
body.appendChild(desc);
} else {
var nd = document.createElement('p');
nd.style.cssText = 'font-size:15px!important;color:#6b6b6b!important;font-style:italic!important;';
nd.textContent = 'Weitere Details folgen.';
body.appendChild(nd);
}
modal.appendChild(closeBtn); modal.appendChild(header); modal.appendChild(body);
overlay.appendChild(modal);
document.body.appendChild(overlay);
document.body.style.overflow = 'hidden';
overlay.onclick = function(e) { if (e.target === overlay) closeStandModal(); };
}
function closeStandModal() {
var m = document.getElementById('standModal');
if (m) m.parentNode.removeChild(m);
document.body.style.overflow = '';
}
// ========== EVENT MODAL (Timetable-Klick) ==========
function openEventModal(evt) {
var existing = document.getElementById('eventModal');
if (existing) existing.parentNode.removeChild(existing);
var headerColor = ttColor(evt.topics);
var headerText = ttTextColor(evt.topics);
var targetLabels = (evt.target || []).map(function(t) { return t === 'studierende' ? 'Studierende' : 'Lehrende'; }).join(', ');
var overlay = document.createElement('div');
overlay.id = 'eventModal';
overlay.style.cssText = 'position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;background:rgba(0,0,0,0.55)!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:999999!important;padding:24px!important;';
var modal = document.createElement('div');
modal.style.cssText = 'background:#fff!important;border-radius:12px!important;max-width:580px!important;width:100%!important;max-height:88vh!important;overflow:hidden!important;box-shadow:0 25px 60px rgba(0,0,0,0.28)!important;position:relative!important;display:flex!important;flex-direction:column!important;';
var closeBtn = document.createElement('button');
closeBtn.innerHTML = '×';
closeBtn.style.cssText = 'position:absolute!important;top:14px!important;right:14px!important;width:34px!important;height:34px!important;border:none!important;background:rgba(0,0,0,0.1)!important;cursor:pointer!important;border-radius:50%!important;font-size:26px!important;color:' + headerText + '!important;line-height:1!important;z-index:10!important;';
closeBtn.onclick = closeEventModal;
var header = document.createElement('div');
header.style.cssText = 'padding:28px 40px 22px!important;background:' + headerColor + '!important;color:' + headerText + '!important;flex-shrink:0!important;';
var badge = document.createElement('div');
badge.style.cssText = 'font-size:10px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:0.1em!important;opacity:0.7!important;margin-bottom:8px!important;border:1px solid ' + headerText + '!important;border-opacity:0.35!important;display:inline-block!important;padding:2px 8px!important;border-radius:3px!important;';
badge.textContent = evt.format || evt.type || '';
var titleEl = document.createElement('div'); titleEl.style.cssText = 'font-size:19px!important;font-weight:700!important;line-height:1.35!important;margin-bottom:8px!important;color:' + headerText + '!important;'; titleEl.textContent = evt.title;
var speakerEl = document.createElement('div'); speakerEl.style.cssText = 'font-size:13px!important;opacity:0.75!important;color:' + headerText + '!important;'; speakerEl.textContent = evt.speaker + (evt.affiliation ? ' · ' + evt.affiliation : '');
header.appendChild(badge); header.appendChild(titleEl); header.appendChild(speakerEl);
var body = document.createElement('div');
body.style.cssText = 'padding:24px 36px 32px!important;overflow-y:auto!important;flex:1!important;';
var chips = document.createElement('div');
chips.style.cssText = 'display:flex!important;gap:10px!important;flex-wrap:wrap!important;margin-bottom:20px!important;';
function makeChip(icon, text) {
var c = document.createElement('div');
c.style.cssText = 'display:flex!important;align-items:center!important;gap:5px!important;background:#f5f4f0!important;border-radius:20px!important;padding:4px 12px!important;font-size:13px!important;color:#4a4a4a!important;font-weight:500!important;';
c.innerHTML = '
' + icon + ' ' + text + ' ';
return c;
}
chips.appendChild(makeChip('🕐', evt.time));
chips.appendChild(makeChip('📍', (evt.room === 'MZG 0.113a' ? 'MZG 0.113a' : 'ZHG ' + evt.room)));
chips.appendChild(makeChip('👥', targetLabels));
if (evt.requiresRegistration) {
if (evt.registerLink) {
var regChip = document.createElement('a');
regChip.href = evt.registerLink;
regChip.target = '_blank';
regChip.style.cssText = 'display:flex!important;align-items:center!important;gap:5px!important;background:var(--primary)!important;border-radius:20px!important;padding:4px 12px!important;font-size:13px!important;color:white!important;font-weight:600!important;text-decoration:none!important;cursor:pointer!important;';
regChip.innerHTML = '
📋 Jetzt anmelden → ';
chips.appendChild(regChip);
} else {
chips.appendChild(makeChip('⚠️', 'Anmeldung erforderlich'));
}
}
body.appendChild(chips);
if (evt.description && evt.description.trim()) {
var divider = document.createElement('hr');
divider.style.cssText = 'border:none!important;border-top:1px solid #e5e7eb!important;margin:0 0 18px!important;';
body.appendChild(divider);
var desc = document.createElement('div');
desc.style.cssText = 'font-size:15px!important;line-height:1.8!important;color:#4a4a4a!important;white-space:pre-line!important;';
desc.textContent = evt.description;
body.appendChild(desc);
}
modal.appendChild(closeBtn); modal.appendChild(header); modal.appendChild(body);
overlay.appendChild(modal);
document.body.appendChild(overlay);
document.body.style.overflow = 'hidden';
overlay.onclick = function(e) { if (e.target === overlay) closeEventModal(); };
}
function closeEventModal() {
var m = document.getElementById('eventModal');
if (m) m.parentNode.removeChild(m);
document.body.style.overflow = '';
}
// ========== EVENT CARDS ==========
function generateEventCards() {
var grid = document.getElementById('eventsGrid');
if (!grid) return;
grid.innerHTML = '';
for (var i = 0; i < events.length; i++) {
var event = events[i];
var card = document.createElement('div');
card.className = 'card event-card';
card.setAttribute('data-target', event.target.join(' '));
card.setAttribute('data-type', event.type);
card.setAttribute('data-topics', event.topics.join(' '));
card.setAttribute('data-language', event.language || 'de');
card.setAttribute('data-room', event.room);
var langFlag = (event.language || 'de') === 'en' ? '🇬🇧' : '🇩🇪';
var icon = event.type === 'workshop' ? '🛠️' : '🎤';
var registerButton = event.requiresRegistration
? '
Anmelden '
: '
Keine Anmeldung nötig ';
var targetTags = '';
for (var j = 0; j < event.target.length; j++) {
targetTags += '
' + (event.target[j] === 'studierende' ? 'Studierende' : 'Lehrende') + ' ';
}
card.innerHTML =
'' +
'
' +
'
' + event.time + ' · ' + (event.room === 'MZG 0.113a' ? 'MZG 0.113a' : 'ZHG ' + event.room) + '
' +
'
' + targetTags + '
' +
'
' + event.description + '
' +
'
' +
'';
grid.appendChild(card);
}
var detailBtns = grid.querySelectorAll('.btn-details');
for (var k = 0; k < detailBtns.length; k++) {
detailBtns[k].addEventListener('click', function() {
var card = this.closest('.event-card');
card.classList.toggle('expanded');
this.textContent = card.classList.contains('expanded') ? 'Weniger' : 'Details';
});
}
var registerBtns = grid.querySelectorAll('.btn--register[data-link]');
for (var l = 0; l < registerBtns.length; l++) {
registerBtns[l].addEventListener('click', function() {
var link = this.getAttribute('data-link');
if (link) window.open(link, '_blank');
});
}
}
// ========== FILTER ==========
function filterEvents() {
var cards = document.querySelectorAll('.event-card');
for (var i = 0; i < cards.length; i++) {
var card = cards[i];
var target = card.getAttribute('data-target');
var type = card.getAttribute('data-type');
var topics = card.getAttribute('data-topics').split(' ');
var language = card.getAttribute('data-language') || 'de';
var room = card.getAttribute('data-room') || '';
var matchesTarget = currentFilters.target === 'all' || target.indexOf(currentFilters.target) !== -1;
var matchesFormat = currentFilters.format === 'all' || type === currentFilters.format;
var matchesLanguage = currentFilters.language === 'all' || language === currentFilters.language;
var matchesRoom = currentFilters.room === 'all' || room === currentFilters.room;
var matchesTopic = false;
if (currentFilters.topicMulti === 'all') {
matchesTopic = true;
} else if (Array.isArray(currentFilters.topicMulti)) {
matchesTopic = currentFilters.topicMulti.some(function(topic) { return topics.indexOf(topic) !== -1; });
}
if (matchesTarget && matchesFormat && matchesLanguage && matchesRoom && matchesTopic) {
card.classList.remove('hidden');
} else {
card.classList.add('hidden');
}
}
if (currentView === 'timetable') generateTimetable();
}
function setupFilters() {
var filterButtons = document.querySelectorAll('.filter-btn');
for (var i = 0; i < filterButtons.length; i++) {
filterButtons[i].addEventListener('click', function() {
var filterType = this.getAttribute('data-type');
var filterValue = this.getAttribute('data-filter');
var sameType = document.querySelectorAll('.filter-btn[data-type="' + filterType + '"]');
for (var j = 0; j < sameType.length; j++) sameType[j].classList.remove('active');
this.classList.add('active');
currentFilters[filterType] = filterValue;
filterEvents();
});
}
}
function setupMultiTopicFilters() {
var buttons = document.querySelectorAll('.filter-btn--multi');
var allButton = document.querySelector('.filter-btn--multi[data-filter="all"]');
if (!buttons.length) return;
function updateFilter() {
var selectedTopics = [];
buttons.forEach(function(btn) {
if (btn.classList.contains('active') && btn.getAttribute('data-filter') !== 'all') {
selectedTopics.push(btn.getAttribute('data-filter'));
}
});
currentFilters.topicMulti = allButton.classList.contains('active') ? 'all' : selectedTopics;
filterEvents();
}
buttons.forEach(function(btn) {
btn.addEventListener('click', function() {
var filterValue = this.getAttribute('data-filter');
if (filterValue === 'all') {
buttons.forEach(function(b) { b.classList.remove('active'); });
allButton.classList.add('active');
} else {
allButton.classList.remove('active');
this.classList.toggle('active');
var others = Array.from(buttons).filter(function(b) { return b.getAttribute('data-filter') !== 'all'; });
if (others.every(function(b) { return b.classList.contains('active'); })) {
allButton.classList.add('active');
others.forEach(function(b) { b.classList.remove('active'); });
}
}
updateFilter();
});
});
updateFilter();
}
function setupModal() {
document.addEventListener('keydown', function(e) {
if (e.key === 'Escape') { closeModal(); closeStandModal(); closeEventModal(); closeLightbox(); }
});
}
// ========== LIGHTBOX ==========
function openLightbox(src) {
var existing = document.getElementById('lightboxModal');
if (existing) existing.parentNode.removeChild(existing);
var overlay = document.createElement('div');
overlay.id = 'lightboxModal';
overlay.style.cssText = 'position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;background:rgba(0,0,0,0.92)!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:999999!important;padding:24px!important;cursor:zoom-out!important;';
var img = document.createElement('img');
img.src = src;
img.alt = 'KI:SL 2026';
img.style.cssText = 'max-width:100%!important;max-height:90vh!important;object-fit:contain!important;border-radius:8px!important;box-shadow:0 25px 60px rgba(0,0,0,0.5)!important;';
var closeBtn = document.createElement('button');
closeBtn.innerHTML = '×';
closeBtn.style.cssText = 'position:absolute!important;top:20px!important;right:24px!important;width:44px!important;height:44px!important;border:none!important;background:rgba(255,255,255,0.15)!important;color:white!important;cursor:pointer!important;border-radius:50%!important;font-size:32px!important;line-height:1!important;z-index:10!important;';
closeBtn.onmouseover = function() { this.style.background = 'rgba(255,255,255,0.3)'; };
closeBtn.onmouseout = function() { this.style.background = 'rgba(255,255,255,0.15)'; };
closeBtn.onclick = function(e) { e.stopPropagation(); closeLightbox(); };
overlay.appendChild(img);
overlay.appendChild(closeBtn);
document.body.appendChild(overlay);
document.body.style.overflow = 'hidden';
overlay.onclick = function() { closeLightbox(); };
}
function closeLightbox() {
var m = document.getElementById('lightboxModal');
if (m) m.parentNode.removeChild(m);
document.body.style.overflow = '';
}
// ========== INIT ==========
document.addEventListener('DOMContentLoaded', function() {
generatePanelists();
generateStands();
generateEventCards();
setupFilters();
setupMultiTopicFilters();
setupModal();
setView('timetable');
document.getElementById('btnGridView').addEventListener('click', function() { setView('grid'); });
document.getElementById('btnTimetableView').addEventListener('click', function() { setView('timetable'); });
// Seitennavigation: aktiven Link beim Scrollen hervorheben
var navSections = ['sec-rueckblick','sec-about','sec-agenda','sec-angebote','sec-staende','sec-kinder','sec-kontakt'];
function updateActiveNavLink() {
var navHeight = document.getElementById('pageNav').offsetHeight;
var scrollY = window.scrollY + navHeight + 20;
var current = navSections[0];
navSections.forEach(function(id) {
var el = document.getElementById(id);
if (el && el.offsetTop <= scrollY) current = id;
});
document.querySelectorAll('.page-nav-link').forEach(function(link) {
link.classList.toggle('active', link.getAttribute('href') === '#' + current);
});
}
window.addEventListener('scroll', updateActiveNavLink, { passive: true });
updateActiveNavLink();
// Bei Orientierungswechsel / Resize: Timetable neu rendern
var resizeTimer;
window.addEventListener('resize', function() {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function() {
if (currentView === 'timetable') generateTimetable();
}, 200);
});
});