/* ==========================================================================
   IKS Website 2.0 – Entwurf Startseite (Stand 01.11.2026)
   Grunddesign IKS: Times, Schwarz/Weiß, Regenbogen-Hintergrund, weiße Fläche,
   farbige Hover je Menüpunkt, 1-px-Linien. Aufbau angelehnt an moma.org.
   Raster wie bisher: 450 + 28 + 450 px (ab 1050) · 392 + 18 (ab 850) · 340 + 25 (ab 700)
   ========================================================================== */

:root {
	--ink: #111;
	--line: #000;
	--grey: #f7f7f5;
	--pad: 20px;            /* Innenabstand der weißen Fläche */
	--col: 100%;            /* Breite einer Inhaltsspalte */
	--gap: 0px;             /* Abstand zwischen den Spalten */
}

html {
	font-family: "Times New Roman", Times, serif;
	font-size: 16px;
	color: var(--ink);
	-webkit-text-size-adjust: 100%;
}
body { margin: 0; background: #fff; line-height: 1.35; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #46a82c; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-weight: normal; margin: 0; }
p { margin: 0; }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

/* Farben der Menüpunkte – wie auf der bisherigen Seite */
.c-news:hover, .c-news.cur          { color: #a227d6; }
.c-films:hover, .c-films.cur        { color: #8ecd54; }
.c-exhibition:hover                 { color: #f99a63; }
.c-services:hover                   { color: #46a82c; }
.c-institute:hover                  { color: #ed4ba6; }
.c-archive:hover                    { color: #4fc5e2; }
.c-editions:hover                   { color: #0e6cb8; }
.c-contact:hover                    { color: #bc2729; }
.c-newsletter:hover                 { color: #4ea65b; }
.c-language:hover                   { color: #ff0000; }
.c-iksphoto:hover                   { color: #c9a800; }

/* ---------- Weiße Fläche ---------- */
.page { background: #fff; position: relative; }

/* ---------- Kopf ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; background: #fff;
	padding: 16px var(--pad) 14px;
	display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 22px; text-decoration: none; }
.brand img { width: 120px; margin: 0; }
.brand-title { display: none; font-weight: bold; line-height: 20px; }
.header-tools { display: none; }
.main-nav { display: none; }

.menu-toggle {
	appearance: none; border: 0; background: none; padding: 10px; margin-right: -10px;
	cursor: pointer; display: flex; flex-direction: column; gap: 6px;
}
.menu-toggle span { display: block; width: 32px; height: 3px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Handy-Menü: klappt unter dem Kopf auf, graue Fläche wie bisher */
.mobile-nav {
	display: none; background: var(--grey);
	padding: 18px var(--pad) 26px;
	position: sticky; top: 80px; z-index: 49;
	max-height: calc(100vh - 80px); overflow-y: auto;
}
.menu-open .mobile-nav { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav .mn-main a { display: block; font-size: 26px; line-height: 1.5; text-decoration: none; }
.mobile-nav .mn-meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.mobile-nav .mn-meta a { display: block; font-size: 18px; line-height: 1.75; }

/* ---------- Video ---------- */
.hero { position: relative; margin: 0; background: #000; }
.hero-media { position: relative; aspect-ratio: 8 / 3; overflow: hidden; } /* Startfilm 1920 × 720 */
.hero-media video, .hero-media img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0;
}
.hero-controls {
	position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 2;
}
.hero-controls button {
	appearance: none; border: 0; cursor: pointer;
	font: 15px/1 "Times New Roman", Times, serif;
	color: #fff; background: rgba(0,0,0,.55);
	padding: 9px 12px; min-height: 36px;
	display: inline-flex; align-items: center; gap: 7px;
}
.hero-controls button:hover { background: rgba(0,0,0,.8); }
.hero-controls svg { width: 13px; height: 13px; fill: currentColor; }
.hero-controls [hidden] { display: none; }
@media (max-width: 699px) {
	.hero-media { aspect-ratio: 4 / 5; } /* Handy-Fassung 1080 × 1350 */
	body .draft-note { left: auto; right: 8px; bottom: auto; top: 8px; font-size: 11px; padding: 3px 6px; }
	.hero-controls { right: 8px; bottom: 8px; }
	.hero-controls button { font-size: 13px; padding: 6px 9px; min-height: 30px; }
}
.hero figcaption {
	background: #fff; padding: 8px var(--pad) 0; font-size: 14px; color: #555;
}

/* ---------- Willkommen ---------- */
.welcome { padding: 26px var(--pad) 0; }
.welcome h1 { font-size: 34px; line-height: 1.08; }
.welcome .sub { font-size: 19px; margin-top: 10px; }
.welcome-side { margin-top: 20px; }
.welcome-side p { font-size: 17px; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 16px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 22px;
	background: #111; color: #fff; text-decoration: none; font-size: 17px;
	border: 1px solid #111;
}
.btn:hover { background: #fff; color: #111; }
.btn-light { background: var(--grey); color: #111; border-color: var(--grey); }
.btn-light:hover { background: #111; color: #fff; border-color: #111; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 17px; }

/* ---------- Abschnitte ---------- */
.section { margin: 34px var(--pad) 0; padding-top: 20px; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-head h2 { font-size: 34px; line-height: 1.05; }
.section-head .more { font-size: 17px; }
.section-intro { font-size: 17px; line-height: 1.45; max-width: 30em; margin: -8px 0 20px; }

/* News: zwei Spalten im bisherigen Raster */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 0 var(--gap); }
.news-item { border-top: 1px solid var(--line); padding: 16px 0 26px; }
.news-grid .news-item:nth-child(-n+1) { border-top: 0; padding-top: 0; }
.news-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 12px; }
.news-item .kicker { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #555; margin-bottom: 4px; }
.news-item h3 { font-size: 24px; line-height: 1.1; }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { color: #a227d6; }
.news-item .meta { margin-top: 6px; }
.news-item .teaser { margin-top: 10px; line-height: 1.45; }
.news-item .read { display: inline-block; margin-top: 10px; }

/* Bilderreihen zum Seitwärtsschieben (Filme, Ausstellungen) */
.rail-wrap { position: relative; }
.rail {
	display: grid; grid-auto-flow: column; gap: 18px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding-bottom: 14px; margin: 0; list-style: none; padding-left: 0;
	scrollbar-width: thin;
}
.rail > li { scroll-snap-align: start; }
.rail-films { grid-auto-columns: 62%; }
.rail-exh { grid-auto-columns: 82%; }
.rail a { text-decoration: none; display: block; }
.rail a:hover .card-title { text-decoration: underline; }
.rail img { width: 100%; object-fit: cover; margin-bottom: 10px; background: var(--grey); }
.rail-films img { aspect-ratio: 2 / 3; }
.rail-exh img { aspect-ratio: 4 / 3; }
.card-type { font-size: 14px; color: #555; }
.card-title { font-size: 19px; line-height: 1.15; margin-top: 2px; }
.card-place { margin-top: 3px; }
.rail-nav { display: none; gap: 8px; }
.rail-nav button {
	appearance: none; width: 44px; height: 44px; border: 1px solid #111; background: #fff; cursor: pointer;
	font: 22px/1 "Times New Roman", Times, serif; color: #111;
}
.rail-nav button:hover { background: #111; color: #fff; }
.rail-nav button:disabled { opacity: .25; cursor: default; background: #fff; color: #111; }

/* Dienstleistungen */
.services { display: grid; grid-template-columns: 1fr; gap: 18px var(--gap); align-items: start; }
.services img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0; }
.services h3 { font-size: 26px; line-height: 1.12; }
.services p { font-size: 17px; line-height: 1.45; margin-top: 12px; }
.services ul { margin: 14px 0 0; padding-left: 1.1em; font-size: 17px; line-height: 1.55; }

/* Newsletter */
.newsletter-band {
	margin: 40px var(--pad) 0; background: var(--grey); padding: 24px 22px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px;
}
.newsletter-band h2 { font-size: 26px; line-height: 1.12; }
.newsletter-band p { margin-top: 6px; font-size: 17px; }

/* Weitere Angebote */
.partners { margin: 34px var(--pad) 0; display: grid; grid-template-columns: 1fr; gap: 0 var(--gap); }
.partners a { display: block; text-decoration: none; border-top: 1px solid var(--line); padding: 14px 0 18px; }
.partners strong { display: block; font-size: 22px; font-weight: normal; text-decoration: underline; text-underline-offset: 2px; }
.partners span { display: block; margin-top: 4px; }
.partners a:hover strong { color: #46a82c; }

/* Fußleiste (wie bisher) */
.site-footer {
	margin: 40px var(--pad) 0; padding: 14px 0 34px; border-top: 1px solid var(--line);
	display: grid; grid-template-columns: 1fr; gap: 10px var(--gap); font-size: 15px;
}
.site-footer .links { display: flex; flex-direction: column; gap: 4px; }
.social { display: flex; gap: 16px; margin-top: 6px; }

.draft-note {
	position: fixed; left: 12px; bottom: 12px; z-index: 100;
	background: #111; color: #fff; font-size: 13px; padding: 6px 10px; opacity: .85;
}

/* ==========================================================================
   ab 700 px – Raster 340 + 25 (weiße Fläche ohne Hintergrund wie bisher)
   ========================================================================== */
@media (min-width: 700px) {
	:root { --pad: 30px; --col: 340px; --gap: 25px; }
	.page { width: 760px; }
	.site-header { padding: 34px var(--pad) 22px; }
	.brand img { width: auto; }
	.mobile-nav { top: 113px; max-height: calc(100vh - 113px); }
	.welcome { display: grid; grid-template-columns: var(--col) var(--col); gap: 0 var(--gap); align-items: end; padding-top: 32px; }
	.welcome-side { margin-top: 0; }
	.welcome h1 { font-size: 36px; }
	.news-grid, .services, .partners, .site-footer { grid-template-columns: var(--col) var(--col); }
	.news-grid .news-item:nth-child(-n+2) { border-top: 0; padding-top: 0; }
	.rail-films { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
	.rail-exh { grid-auto-columns: calc((100% - 18px) / 2); }
	.rail-nav { display: flex; }
	.hero-controls { right: 16px; bottom: 16px; }
}

/* ==========================================================================
   ab 900 px – Regenbogen-Hintergrund, weiße Fläche 882 px, Raster 392 + 18
   (bisher ab 850 px mit 915 px – das ergab zwischen 850 und 970 px einen Querbalken)
   ========================================================================== */
@media (min-width: 900px) {
	:root { --pad: 40px; --col: 392px; --gap: 18px; }
	body { background: #f9c400 url("../img/bg_1024.gif") no-repeat; }
	.page { width: 882px; margin: 139px 0 50px clamp(0px, calc((100vw - 882px) / 2), 56px); }
	.social-top {
		position: absolute; top: -38px; right: 0; display: flex; gap: 10px;
	}
	.site-header {
		position: relative; display: grid;
		grid-template-columns: 1fr auto; grid-template-areas: "brand tools" "nav nav";
		align-items: start; padding: 50px var(--pad) 0;
	}
	.brand { grid-area: brand; }
	.brand-title { display: block; }
	.header-tools { grid-area: tools; display: flex; align-items: center; gap: 12px; margin-top: 6px; }
	.header-tools .text-link { padding: 0 10px; }
	.menu-toggle, .mobile-nav, .menu-open .mobile-nav { display: none; }
	.main-nav { grid-area: nav; display: block; margin-top: 30px; padding-bottom: 22px; }
	.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
	.main-nav a { font-size: 19px; text-decoration: none; padding: 6px 0; display: inline-block; }
	.main-nav a.cur { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
	.welcome h1 { font-size: 44px; }
	.welcome .sub { font-size: 21px; }
	.section-head h2 { font-size: 40px; }
	.newsletter-band { padding: 28px 30px; }
}

/* ==========================================================================
   ab 1050 px – weiße Fläche 1039 px, Raster 450 + 28
   ========================================================================== */
@media (min-width: 1050px) {
	:root { --pad: 56px; --col: 450px; --gap: 28px; }
	body { background-image: url("../img/bg.gif"); }
	.page { width: 1039px; margin-left: clamp(0px, calc((100vw - 1039px) / 2), 103px); }
	.main-nav a { font-size: 22px; }
	.main-nav ul { gap: 6px 30px; }
	.welcome h1 { font-size: 52px; }
	.rail-films { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
}

@media (prefers-reduced-motion: reduce) {
	.rail { scroll-behavior: auto; }
}

/* ---------- 01.11.2026: E-Mail sichtbar, News auf dem Handy als Bilderreihe ---------- */
.header-mail { display: none; }
.mail-line { font-size: 17px; line-height: 1.4; }
.site-footer a[href^="mailto"] { white-space: nowrap; }
@media (min-width: 900px) {
	.header-tools { flex-wrap: wrap; justify-content: flex-end; max-width: 460px; row-gap: 8px; }
	.header-mail { display: block; flex: 0 0 100%; text-align: right; font-size: 15px; }
}
@media (max-width: 699px) {
	.news-grid {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
		gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px;
		scrollbar-width: thin;
	}
	.news-grid .news-item, .news-grid .news-item:nth-child(-n+1) { border-top: 0; padding: 0; scroll-snap-align: start; }
	.news-item h3 { font-size: 21px; }
}

.news-item .sub-title { font-size: 19px; line-height: 1.2; margin-top: 4px; }
.news-item .meta + .meta { margin-top: 0; }

/* Etiketten „Jetzt zu sehen“ / „Demnächst“ (Ausstellungen, seit 11/2026) */
.xlabel { display: inline-block; font-size: 13px; line-height: 1; padding: 5px 8px 4px; letter-spacing: .03em; margin: 8px 0 2px; }
.xl-aktuell { background: #111; color: #fff; }
.xl-demnaechst { background: #fff; color: #111; border: 1px solid #111; padding: 4px 7px 3px; }
