@charset "UTF-8";
/* =============================================================================
   habitat_responsive.css
   Responsives Layout fuer das HABITAT Data Warehouse.

   HERKUNFT
   1:1 abgeleitet von lcrs_responsive.css. Alle responsiven Komponenten
   (Grid, Hamburger, Popup-Seitenspalte, Tabellen, Paginator, Profilseite,
   Projektliste, Adminmenue, Tooltips ...) sind identisch. Abweichungen:
     - Abschnitt 0: Habitat-Farben (#54504F Kopf-/Navileiste, #415B8D Titel
       und Links, #0E3259 Hover, #616161 Untermenues)
     - Abschnitt 3: Banner ist #headerImage mit Standbild statt .wrapper mit
       Video; Logo-Proportionen und Bildaufteilung aus habitat.css
     - Abschnitt 10/11: keine Video-Fallbacks
   Wo die Kommentare unten "lcrs.css" nennen, gilt dasselbe fuer habitat.css -
   beide Dateien haben an diesen Stellen identische Regeln.

   EINBINDUNG
   Diese Datei wird von modules/general/common/jsp/layout_habitat_responsive.jsp
   als LETZTES Stylesheet geladen, also nach global.css und nach habitat.css.
   Sie ist eine Override-Schicht, kein Ersatz: Farben, Logos und Komponenten
   aus habitat.css bleiben aktiv, nur Layout und Typografie werden ersetzt.

   Deshalb steht in Abschnitt 2 (Layout) durchgehend !important - global.css und
   habitat.css setzen dort selbst !important bzw. hoehere Spezifitaet. Ausserhalb
   von Abschnitt 2 wird !important nur dort benutzt, wo es wirklich noetig ist.

   AUFBAU
     0  Design-Tokens
     1  Reset und Typografie
     2  Layout: Float-Hack abschalten -> CSS Grid
     3  Header
     4  Navigation
     5  Seitenspalte (#col2)
     6  Inhalt, Formulare, Bilder
     7  Tabellen
     8  Komponenten
     9  Footer
    10  Breakpoints
    11  Druck, Reduced Motion, Fokus

   RE-THEMING fuer andere Data Warehouses (darwin, bale, ...): nur die Werte in
   :root und ggf. --logo-url / --banner-url tauschen, der Rest ist neutral.
   ========================================================================== */


/* =============================================================================
   0  DESIGN-TOKENS
   ========================================================================== */
:root {
	/* Markenfarben HABITAT (Werte aus habitat.css) */
	--c-brand:        #415B8D;   /* Titel-Schrift im Banner, Links */
	--c-brand-soft:   #5a74a6;
	--c-brand-hover:  #415B8D;   /* habitat.css: Titel aendert beim Hover die Farbe nicht */
	--c-accent:       #00898a;   /* Tuerkis aus dem Banner-Verlauf */
	--c-topbar:       #54504F;   /* Kopfleiste (#header_top) */
	--c-nav-bg:       #54504F;   /* Navigationsleiste */
	--c-nav-sub-bg:   #616161;   /* Untermenues */
	--c-nav-hover:    #0E3259;
	--c-link:         #415B8D;
	--c-link-hover:   #0E3259;

	/* Fokus-Ring und Code-Hintergrund: --c-brand als RGB-Tripel */
	--c-brand-rgb:    65, 91, 141;

	/* Neutrale Flaechen */
	--c-text:         #333a42;
	--c-muted:        #6b7280;
	--c-border:       #dde1e6;
	--c-border-soft:  #edf0f3;
	--c-surface:      #ffffff;
	--c-surface-alt:  #f6f8fa;

	/* Hintergrund AUSSERHALB der Seite: die Raender links und rechts neben
	   der zentrierten Seite (--page-max). Sitzt nur auf body, #header und
	   #colmask/#colmid sind transparent. Die Seite selbst (#colright, Banner)
	   bleibt auf --c-surface. */
	--c-page-bg:      #ffffff;

	/* Eingabefelder und Listboxen: leicht abgesetzt vom weissen Seiten-
	   hintergrund, im Fokus hell. Nur diese zwei Werte drehen, wenn der
	   Kontrast staerker oder schwaecher sein soll. */
	--c-field-bg:       #eef2f7;
	--c-field-bg-focus: #ffffff;

	/* Gemeinsame Hoehe fuer einzeilige Felder, Dropdowns und Buttons.
	   Explizite Hoehe statt Padding: zusammen mit box-sizing:border-box ist
	   damit egal, ob ein Element 1px oder 2px Rahmen hat - sie bleiben gleich
	   hoch. Genau das war der Versatz beim #datasetsearchbutton (2px Rahmen
	   aus lcrs.css) gegenueber dem 1px-Suchfeld daneben. */
	--field-h: 38px;

	/* Masse */
	--page-max:   1440px;
	--sidebar-w:  240px;
	--gap:        32px;
	--pad:        20px;
	--radius:     8px;
	--radius-sm:  5px;

	--shadow:     0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
	--shadow-lg:  0 8px 24px rgba(16,24,40,.14);

	/* Schriftstapel als Token, weil er an zwei Stellen gebraucht wird: in body
	   und in #simpleTooltip_box. Die Tooltip-Box haengt das Plugin per
	   $('*:not(* *)') an <html>, sie liegt also AUSSERHALB von <body> und erbt
	   die Body-Schrift nicht - dort wuerde font:inherit die Browser-
	   Standardschrift ziehen. */
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	             "Helvetica Neue", Arial, sans-serif;

	/* Fluide Schriftgroessen (ersetzen die vw-Werte aus lcrs.css) */
	--fs-base: clamp(15px, 0.95rem + 0.15vw, 17px);
	--fs-h1:   clamp(24px, 1.15rem + 1.50vw, 38px);
	--fs-h2:   clamp(20px, 1.05rem + 0.80vw, 27px);
	--fs-h3:   clamp(17px, 1.00rem + 0.40vw, 21px);
	--fs-h4:   clamp(16px, 0.95rem + 0.25vw, 18px);
	--fs-sm:   clamp(13px, 0.80rem + 0.10vw, 14px);
}


/* =============================================================================
   1  RESET UND TYPOGRAFIE
   ========================================================================== */

/* Deterministisches Boxmodell. global.css setzt bereits * { margin:0; padding:0 } */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font: 400 var(--fs-base)/1.6 var(--font-sans);
	letter-spacing: 0;
	word-spacing: 0;
	color: var(--c-text);
	background: var(--c-page-bg);
	/* faengt einzelne zu breite Legacy-Elemente ab. clip statt hidden, weil
	   hidden einen Scroll-Container erzeugt und damit position:sticky
	   auf #col2 kaputtmachen wuerde. hidden bleibt als Fallback stehen. */
	overflow-x: hidden;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
	color: var(--c-brand);
	text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* gestrichelte Linien aus global.css durch dezente durchgezogene ersetzen */
h2, h3, h4 {
	border-bottom: 1px solid var(--c-border-soft);
	padding-bottom: .3em;
}

a          { color: var(--c-link); text-decoration: none; }
a:hover    { color: var(--c-link-hover); text-decoration: underline; }
#col1 a    { color: var(--c-link); }

hr { border: 0; border-top: 1px solid var(--c-border); margin: 1em 0; }

/* Skip-Link aus layout_responsive.jsp */
.skiplink {
	position: absolute; left: -9999px; top: 0; z-index: 100000;
	background: var(--c-brand); color: #fff; padding: 10px 16px;
	border-radius: 0 0 var(--radius) 0;
}
.skiplink:focus { left: 0; color: #fff; text-decoration: none; }


/* =============================================================================
   2  LAYOUT
   Der "Holy Grail"-Float-Hack aus global.css (#colmask/#colmid/#colright mit
   200% Breite und negativen Margins) wird komplett abgeschaltet und durch ein
   zweispaltiges Grid ersetzt. DOM-Reihenfolge bleibt Mitte -> Links -> Rechts,
   die Grid-Platzierung dreht das visuell um.
   ========================================================================== */

#colmask, #colmid, #colright {
	float: none !important;
	width: auto !important;
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	margin: 0 !important;
	overflow: visible !important;
	border: 0 !important;
	/* transparent, damit an den Raendern --c-page-bg vom body durchscheint */
	background: transparent !important;
}

#colright {
	background: var(--c-surface) !important;
	display: grid;
	grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
	gap: var(--gap);
	max-width: var(--page-max);
	margin: 0 auto !important;
	/*padding: var(--gap) var(--pad) calc(var(--gap) * 1.5) !important;*/
	/* Seitenabstand links/rechts, gleicher Wert wie Kopfleiste, Banner und
	   Footer - dadurch schliessen sie buendig ab. Mobil setzt Abschnitt 10
	   das padding ohnehin komplett neu. */
	padding-left: var(--pad) !important;
	padding-right: var(--pad) !important;
}

/* --- Seitenbreite --------------------------------------------------------
   Kopfleiste, Banner und Footer laufen auf dieselbe Breite wie die
   Inhaltsspalte, die Seite steht damit als zentrierte Karte im Fenster.
   Alle vier benutzen --pad als horizontalen Innenabstand, dadurch schliessen
   Login, Logo, Content und Footertext buendig ab.
   Randlos (Farbbalken bis zur Fensterkante) waere: diesen Block loeschen. */
#header_top,
#headerImage,
#footer {
	max-width: var(--page-max);
	margin-left: auto !important;
	margin-right: auto !important;
}

/* minmax(0,1fr) oben ist wichtig: sonst sprengen breite Tabellen die Spalte */
#col2     { grid-column: 1; grid-row: 1; }  /* linke Spalte  */
#col1wrap { grid-column: 2; grid-row: 1; }  /* Inhaltsspalte */

/* Rechte Spalte: in lcrs.css per visibility:hidden versteckt, belegte aber
   weiter Platz. display:none nimmt sie ganz aus dem Grid.
   Wieder einblenden: hier display:block setzen und in Abschnitt 10 die
   grid-template-columns um eine dritte Spalte ergaenzen. */
#col3 { display: none !important; }

#col1wrap, #col2 {
	float: none !important;
	width: auto !important;
	min-width: 0;
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	margin: 0 !important;
	padding-top: 0 !important;
	overflow: visible !important;
}

#col1pad {
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
}

#col1 {
	width: auto !important;
	min-height: 0 !important;
	padding-top: 0 !important;
	position: static !important;
	overflow: visible !important;
}

#content, #contextLinks {
	padding: 0 !important;
}
#content { min-height: 40vh; }

/* Clearfix-Divs aus den JSPs braucht das Grid-/Flex-Layout nicht mehr */
#header_top > .clear,
#headerImage > .clear,
#navigation > .clear,
#contextLinks > .clear { display: none; }


/* =============================================================================
   3  HEADER
   ========================================================================== */

#header { background: transparent; }

/* global.css hat #header_top auf position:fixed gesetzt, ohne den Inhalt
   darunter auszugleichen - die Leiste ueberlagerte den Seitenanfang.
   Hier laeuft sie wieder im normalen Fluss. */
#header_top {
	position: static !important;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	border: 0 !important;
	background: var(--c-topbar);
	color: #fff;
	padding: 7px var(--pad) !important;

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 18px;
	font-size: var(--fs-sm);
}
#header_top.dev { background: #7a2020; }

/* Sprachwahl als Text-Buttons, Stil wie .TMFButton in der Kopfleiste.
   Ueber das href selektiert, weil in #language auch der Projektlink
   aus page.header.subtitle liegt. .langactive setzt language.jsp. */
#header_top #language a[href*="switch_language"] {
	display: inline-block;
	min-width: 32px;
	padding: 5px 8px !important;
	border: 1px solid rgba(255,255,255,.4);
	border-radius: var(--radius-sm);
	background: rgba(255,255,255,.16);
	color: #fff;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	text-decoration: none;
}
#header_top #language a[href*="switch_language"]:hover { background: rgba(255,255,255,.28); }
#header_top #language a.langactive {
	background: #fff;
	border-color: #fff;
	color: var(--c-brand-soft);
}
#header_top #language a.langactive:hover { background: #fff; }

#header_top #language,
#header_top #login {
	float: none !important;
	margin: 0 !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
}

/* login.jsp haengt .fleft an die Formulare - im Flex-Kontext stoert das */
#header_top .fleft,
#header_top .fright { float: none !important; }

#login form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin: 0;
}
#login form > div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
}
#login input, #login label {
	float: none !important;
	display: inline-flex;
	align-items: center;
	margin: 0;
}
#login label { color: #cfe0ef; }
#login a, #login a span { color: #cfe0ef; }
#login input[type="text"],
#login input[type="password"] {
	width: clamp(90px, 12vw, 150px);
	height: 28px;
	padding: 0 7px;
	font-size: var(--fs-sm);
	border: 1px solid rgba(255,255,255,.35);
	border-radius: var(--radius-sm);
	background: rgba(255,255,255,.12);
	color: #fff;
}
#login input[type="text"]::placeholder,
#login input[type="password"]::placeholder { color: rgba(255,255,255,.6); }

/* --- Banner mit Standbild (#headerImage) ---------------------------------
   Markup aus layout_habitat_responsive.jsp + header_ssf.jsp:
     #headerImage > a#logoTMF, h1.fleft, div#logos, div.clear
   Anders als bei LCRS gibt es keinen .gradient-Wrapper und kein Video.

   habitat.css legt Verlauf UND Foto als background-image mit !important auf
   #headerImage, das Foto rechts auf 53% Breite bei fester Hoehe 179px. Bei
   fluider Hoehe wuerde "53% auto" oben/unten Luecken lassen. Deshalb:
     - #headerImage selbst: Hintergrund per Shorthand + !important geloescht
     - ::before traegt das Foto, rechts 53% breit, per cover immer voll
     - ::after  traegt den Verlauf aus habitat.css (weiss 4% -> tuerkis) */
#headerImage {
	position: relative;
	height: auto !important;
	min-height: clamp(110px, 14vw, 200px);
	padding: clamp(10px, 1.6vw, 22px) var(--pad) !important;
	overflow: hidden;
	background: var(--c-surface) !important;

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(-4px, 1vw, 7px);
}

#headerImage::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 77%;
	background: url(../pix/logos/habitat/DSC_2339-Bearbeitet_hessenneu_blaugrau_80_small.jpg) no-repeat 78% 43%;
	background-size: 130% auto;        /* Zoom */
	pointer-events: none;
	z-index: 0;
}


#headerImage::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(90deg, rgba(255,255,255,1) 30%, rgba(2,136,137,.16));
	pointer-events: none;
	z-index: 1;
}

/* alle echten Kinder ueber die beiden Ebenen heben */
#headerImage > * {
	position: relative;
	z-index: 2;
}

/* Logo: Seitenverhaeltnis 190:173 und background-size 86% aus habitat.css */
#logoTMF {
	float: none !important;
	flex: 0 0 auto;
	display: block;
	width: clamp(104px, 14vw, 180px) !important;
	height: clamp(95px, 12.75vw, 150px) !important;
	background-size: 86% auto !important;
	background-position: left center !important;
	background-repeat: no-repeat !important;
	padding: 0 !important;
}

/* habitat.css: #header h1 { padding: 50px 0 5px; line-height: 34px } */
#headerImage > h1 {
	float: none !important;
	flex: 1 1 260px;
	margin: 0;
	padding: 0 !important;
	border: 0;
	line-height: 1.15 !important;
	min-width: 0;
}
#header h1 a {
	color: var(--c-brand);
	font-size: clamp(19px, 0.7rem + 2vw, 34px) !important;
	letter-spacing: 1px;
	padding: 0 !important;
	line-height: 1.15;
}
#header h1 a:hover { color: var(--c-brand-hover); text-decoration: none; }

/* "Funded by: LOEWE". layout_habitat.jsp setzt padding-top:80px und
   color:white inline - das padding ist nur mit !important zu ueberschreiben.
   Die weisse Schrift bleibt auf dem Desktop (steht ueber dem Foto). */
#logos {
	position: relative !important;
	z-index: 2;
	float: none !important;
	right: auto !important;
	top: auto !important;
	flex: 0 1 auto;
	padding-top: 0 !important;
	text-align: right;
	font-size: var(--fs-sm);
}
#logos > .clear { display: block; }
#logos a { float: none !important; display: inline-block; }
#logos img {
	width: clamp(120px, 15vw, 200px) !important;
	max-width: 100%;
	height: auto;
}


/* =============================================================================
   4  NAVIGATION
   #navigation war in lcrs.css absolut auf left:198px / width:100% gesetzt und
   lief rechts aus dem Viewport. Hier ist es ein normaler Block am Kopf der
   Inhaltsspalte; die dunkle Leiste sitzt auf #nav selbst, damit die Breadcrumbs
   darunter und nicht darin stehen.
   ========================================================================== */

#navigation {
	position: static !important;
	top: auto !important;
	left: auto !important;
	width: auto !important;
	margin: 0 0 var(--gap) !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}

#nav {
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	background: var(--c-nav-bg);
	border-radius: var(--radius);
	font-size: 1em;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

#nav li {
	float: none !important;
	margin: 0 !important;
	position: relative;
	list-style: none;
}

#nav a {
	display: block;
	color: #fff;
	font-weight: 600;
	font-size: 1em !important;
	line-height: 1.35 !important;
	padding: 6px 16px !important;
	margin: 0 !important;
	text-decoration: none;
	border-radius: var(--radius);
}
#nav > li > a:hover,
#nav > li:hover > a,
#nav > li:focus-within > a,
#nav > li.nav1 > a:hover {
	background-color: var(--c-nav-hover) !important;
	color: #fff !important;
	text-decoration: none;
	font-weight: 600; !important;
}

/* --- Untermenues --------------------------------------------------------- */
#nav li ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}
#nav li ul a {
	font-weight: 500; !important;
	border-radius: 0;
	border-left: 4px solid transparent !important;
	background-color: var(--c-nav-sub-bg) !important;
	color: #fff !important;
	padding: 9px 15px !important;
}
#nav li ul a:hover {
	border-left-color: var(--c-accent) !important;
	background-color: var(--c-nav-hover) !important;
	font-weight: 500; !important;

}

/* Umschalter fuer schmale Schirme: auf dem Desktop unsichtbar */
/* Nicht zu ".navtoggle" vereinfachen: global.css:115 setzt
   input[type="checkbox"] { display:block; float:left } mit Spezifitaet (0,1,1)
   und wuerde eine reine Klassenregel (0,1,0) schlagen - die Checkbox waere
   dann auf dem Desktop sichtbar. #navigation davor bringt (1,1,0). */
#navigation .navtoggle,
#navigation .navtoggle-label { display: none; }


/* =============================================================================
   5  SEITENSPALTE (#col2)
   ========================================================================== */

.columnModule {
	background: var(--c-surface-alt);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 14px 16px;
	margin-bottom: 16px;
	font-size: var(--fs-sm);
	line-height: 1.55;
}
.columnModule h3 {
	font-size: 1.05em;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--c-border);
	color: var(--c-brand);
}
.columnModule ul { list-style: none; margin: 0; padding: 0; }
.columnModule li { margin: 0 0 6px; }
.columnModule a { font-size: inherit; }
.columnModule form { margin: 0 0 8px; }
.columnModule_input {
	width: 100% !important;
	padding: 6px 9px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background-color: var(--c-field-bg);
}
.columnModule img { vertical-align: middle; }


/* =============================================================================
   6  INHALT, FORMULARE, BILDER
   ========================================================================== */

/* global.css setzt * { margin:0 } - hier kommt ein Grundrhythmus zurueck */
#content p,
#content ul,
#content ol,
#content table,
#content form,
#content blockquote { margin-bottom: 1em; }
#content h2 { margin: 1.6em 0 .7em; }
#content h3 { margin: 1.4em 0 .6em; }
#content h4 { margin: 1.2em 0 .5em; }
/* erstes Kind von #content ist der Sprungmarken-Anker <a name="header_top"> */
#content > :first-child,
#content > a[name] + * { margin-top: 0; }
#content ul, #content ol { padding-left: 1.4em; }
#col1 ul { list-style-type: disc; list-style-position: outside; }

#content img,
#content video,
#content iframe,
#content embed,
#content object { max-width: 100%; height: auto; }
#content table img { vertical-align: middle; }

/* lcrs.css stylt ein blankes video {} fuer das Headervideo und trifft damit
   auch Inhalts-Videos (dfgsciencetv.jsp, virtualfieldtrip.jsp). Zuruecksetzen. */
#content video {
	position: static !important;
	top: auto !important;
	width: 100% !important;
	height: auto !important;
	object-fit: initial;
}

/* Formularelemente */
input, select, textarea, button { font: inherit; max-width: 100%; }

/* Textfelder und Listboxen (auch <select multiple size="10">) heben sich vom
   weissen Seitenhintergrund ab. Checkboxen, Radios und Buttons bleiben aussen
   vor - die behalten ihr natives bzw. eigenes Aussehen.
   #header_top ist bewusst nicht dabei, dort liegen die Felder auf der dunklen
   Leiste und haben ihre eigene halbtransparente Variante. */
#content :is(
	input[type="text"], input[type="password"], input[type="email"],
	input[type="url"], input[type="tel"], input[type="number"],
	input[type="search"], input[type="date"], input:not([type]),
	select, textarea
),
.columnModule :is(input[type="text"], select, textarea) {
	height: var(--field-h);
	padding: 0 10px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background-color: var(--c-field-bg);
	color: inherit;
	max-width: 100%;
}

/* mehrzeilige Elemente brauchen ihre eigene Hoehe zurueck */
#content textarea,
.columnModule textarea {
	height: auto;
	width: 100%;
	padding: 7px 10px;
	line-height: 1.5;
}
/* Listboxen: <select multiple> bzw. <select size="10">, z.B. die Autoren-
   auswahl in publication.jsp - die duerfen nicht auf eine Zeile gestaucht werden */
#content select[multiple],
#content select[size]:not([size="1"]),
.columnModule select[multiple],
.columnModule select[size]:not([size="1"]) {
	height: auto;
	padding: 6px 8px;
}

#content :is(
	input[type="text"], input[type="password"], input[type="email"],
	input[type="url"], input[type="tel"], input[type="number"],
	input[type="search"], input[type="date"], input:not([type]),
	select, textarea
):focus,
.columnModule :is(input[type="text"], select, textarea):focus {
	background-color: var(--c-field-bg-focus);
	border-color: var(--c-brand);
	outline: none;
	box-shadow: 0 0 0 3px rgba(var(--c-brand-rgb), .12);
}

/* deaktivierte Felder klar als solche erkennbar */
#content :is(input, select, textarea):disabled,
#content :is(input, select, textarea)[readonly] {
	background-color: var(--c-surface-alt);
	color: var(--c-muted);
	cursor: not-allowed;
}

input[type="submit"], input[type="button"], button, .TMFButton {
	font-size: 1em;
	height: var(--field-h);
	padding: 0 14px;
	line-height: 1;
	border: 1px solid var(--c-brand);
	border-radius: var(--radius-sm);
	background: var(--c-brand);
	color: #fff;
	cursor: pointer;
}
input[type="submit"]:hover, input[type="button"]:hover,
button:hover, .TMFButton:hover {
	background: var(--c-brand-soft);
	border-color: var(--c-brand-soft);
}
/* Kopfleiste: eigene, flachere Hoehe - die 38px aus --field-h wuerden die
   schmale Leiste unnoetig aufblaehen. Feld und Button sind hier gleich hoch. */
#header_top .TMFButton,
#header_top input[type="submit"],
#header_top input[type="button"] {
	height: 28px;
	padding: 0 10px;
	font-size: var(--fs-sm);
	background: rgba(255,255,255,.16);
	border-color: rgba(255,255,255,.4);
}
#header_top .TMFButton:hover,
#header_top input[type="submit"]:hover { background: rgba(255,255,255,.28); }

/* Feste Breiten aus global.css / lcrs.css aufweichen */
#homePic {
	float: none !important;
	width: auto !important;
	max-width: 512px;
	margin: 0 0 20px !important;
	border-radius: var(--radius);
	overflow: hidden;
}
.feedback_input { width: 100% !important; }

#Website_Uptime, #key_figures, #cit_per_subpro,
#dat_per_subpro_ph1, #dat_per_subpro_ph2, #dat_per_subpro_ph3 {
	width: 100% !important;
	max-width: 800px;
	margin: 0 auto !important;
}

.box {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}
.attrTree { width: 100% !important; max-width: 100%; float: none !important; }
.diagramContainer .diagram { max-width: 100%; }


/* =============================================================================
   7  TABELLEN
   ========================================================================== */

#content table {
	border-collapse: collapse;
	max-width: 100%;
}
.tabledefault {
	width: 100% !important;
	font-size: var(--fs-sm);
}
#content th, #content td { padding: 3px 5px; }
#content thead th {
	background: var(--c-surface-alt);
	border-bottom: 2px solid var(--c-border);
	text-align: left;
}



/* =============================================================================
   8  KOMPONENTEN
   ========================================================================== */

/* --- Personenliste: Floats -> Grid ---------------------------------------
   Container ist ein blankes <ul> mit <li class="staffitem">, siehe
   modules/general/aboutUs/jsp/content_project_staff_woprojects_lcrs.jsp.
   ACHTUNG: .stafflist ist projektweit ein generischer Content-Block und darf
   hier NICHT angefasst werden.
   Das ganze Block haengt an :has() - Browser ohne :has() behalten das
   funktionierende Float-Raster aus lcrs.css. */
@supports selector(:has(*)) {
	ul:has(> li.staffitem) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
	gap: 18px;
	list-style: none;
	padding: 0;
		margin-bottom: 1em;
}
	ul:has(> li.staffitem) > li.staffitem {
	float: none !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 10px !important;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	background: #fff;
}
	/* der Clearfix-<li> am Listenende braucht im Grid keine eigene Zelle */
	ul:has(> li.staffitem) > li.clear { display: none; }
}
.staffitem img { max-width: 100%; height: auto; }
.staffpic_staffpage,
.staffpic_staffpage .staffpic { width: auto !important; max-width: 100%; }

.staffitem_tmf {
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-surface-alt);
}
.stafftitle_tmf { background: var(--c-border-soft); padding: 8px 10px; }
.staffpic_tmf img { max-width: 100%; height: auto; }

/* --- Nutzer-Profilseite --------------------------------------------------
   Gilt fuer modules/user/viewUser/jsp/showdetaileduserview_responsive.jsp.
   Der Scope ist .userprofile (steht dort am .entry) - bewusst eine echte
   Klasse statt :has(), weil das Markup dieser Seite uns gehoert. Die Regeln
   greifen damit auch in Browsern ohne :has().

   .staffpic ist projektweit doppelt belegt: hier ein <div>, in der Staffliste
   ein <a> (staffitem_noboring.jsp:22). Deshalb ueberall div.staffpic bzw.
   .userprofile davor - die Liste bleibt unberuehrt. */

/* Foto. div.staffpic (0,1,1) schlaegt .staffpic aus global.css:505, und
   .userprofile .staffpic img (0,2,1) schlaegt .staffpic img aus global.css:510
   - deshalb kommt dieser Block ganz ohne !important aus. Das raeumt zugleich
   padding:4px, background:#FFF und den harten 1px-Schatten von dort ab. */
.userprofile div.staffpic {
	float: right;
	width: clamp(200px, 28vw, 360px);
	max-width: 100%;
	margin: 4px 0 20px 28px;
	padding: 0;
}
.userprofile div.staffpic img {
	display: block;
	width: 100%;
	/* kein Crop: Hoch- wie Querformat bleiben vollstaendig sichtbar */
	height: auto;
	padding: 0;
	background: none;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}
/* Ohne Foto rendert die JSP das div gar nicht erst - :empty waere hier
   wirkungslos, weil der Zeilenumbruch im div als Textknoten zaehlt. */

/* Alles, was neben dem Foto steht, braucht einen eigenen BFC. Ein normaler
   Block ueberlappt den Float und nur seine Zeilenboxen werden kuerzer - der
   Kartenhintergrund von .staffcontact und der border-bottom der h3 aus
   Abschnitt 1 liefen sonst unter das Bild. */
.userprofile h3,
.userprofile .staffcontact,
.userprofile .profile-richtext { display: flow-root; }

.userprofile > h2 { margin-bottom: 6px; }
.userprofile h3   { margin: 28px 0 12px; }
.userprofile h4   { margin: 16px 0 8px; }

/* Aktionslinks (Edit, Disable, Forms, Stationpass) als Chip-Reihe */
.userprofile .profile-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 16px;
	font-size: var(--fs-sm);
}
.userprofile .profile-actions a {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--c-border);
	border-radius: 999px;
	background: var(--c-surface);
	line-height: 1.3;
}
.userprofile .profile-actions a:hover {
	background: var(--c-brand);
	border-color: var(--c-brand);
	color: #fff;
	text-decoration: none;
}

/* Alumni-Marker und Projektmitgliedschaften */
.userprofile .profile-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 18px;
}
.userprofile .profile-tag {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--c-border-soft);
	color: var(--c-muted);
	font-size: var(--fs-sm);
	line-height: 1.5;
}
.userprofile a.profile-tag:hover {
	background: var(--c-brand);
	color: #fff;
	text-decoration: none;
}
/* Hat die Person weder Alumni-Marker noch Projektrollen, bleibt der Flex-
   Container 0 hoch; sein margin-bottom faellt mit dem margin-top der
   folgenden h3 zusammen - es entsteht also keine zusaetzliche Luecke. */

/* Kontaktblock als abgesetzte Karte */
.userprofile .staffcontact {
	margin: 0 0 10px;
	padding: 14px 18px;
	border: 1px solid var(--c-border);
	border-left: 3px solid var(--c-accent);
	border-radius: var(--radius);
	background: var(--c-surface-alt);
	line-height: 1.75;
}

/* CV und Scientific interest sind rohes CKEditor-HTML */
.userprofile .profile-richtext { margin-bottom: 18px; }
.userprofile .profile-richtext > :last-child { margin-bottom: 0; }

/* Rollen-Tabellen (nur fuer DW-Admins sichtbar). Die CSS-border schlaegt das
   praesentationale border="1" am #user_roleTable. */
.userprofile .profile-table {
	width: 100%;
	max-width: 680px;
	margin: 0 0 18px;
	border: 1px solid var(--c-border);
	border-collapse: collapse;
	font-size: var(--fs-sm);
}
.userprofile .profile-table :is(th, td) {
	border: 1px solid var(--c-border);
	padding: 7px 10px;
	text-align: left;
	vertical-align: top;
}
.userprofile .profile-table th { background: var(--c-surface-alt); }
.userprofile .profile-table th h4 { margin: 0; border: 0; padding: 0; }
/* die .account_table-Zeilen beginnen mit einer leeren Einrueck-Zelle */
.userprofile .profile-table td:first-child:empty { width: 0; padding: 0; border-right: 0; }

/* --- Paginator .pagingArea (publications.jsp, data_for816.jsp) -----------
   Gemischtes Markup, drei verschiedene Elementtypen in einer Zeile:
     <li class="prevnext"><a class="paging_prev"></a></li>   leerer Icon-Link
     <li><a>3</a></li>                                        Zahl im <a>
     <li class="paging_current">2</li>                        Zahl blank im <li>
   global.css gibt .pagingArea a und .paging_current feste 16x16 mit.
   Zwei Regeln aus dieser Datei haben das gekippt:
     - box-sizing:border-box staucht li.paging_current von 26px auf 16px,
       weil dessen padding 5px/10px jetzt in die 16px hineingerechnet wird;
     - line-height 1.6 erzeugt in den 16px hohen <a> eine ~26px hohe Zeilenbox,
       die Ziffern rutschen dadurch nach unten heraus.
   Deshalb bekommen hier alle drei Varianten explizit dieselbe Box. */
/* display !important: publications.jsp:158 und :485 setzen
   <ol style="display:table; margin:0 auto;"> inline. Ein Inline-Style schlaegt
   jede normale Regel - ohne !important bliebe das ol eine Tabelle, waehrend
   die <li> ihren Float verlieren, und die Zahlen stuenden untereinander.
   data_for816.jsp hat den Inline-Style nicht, dort faellt es nicht auf. */
.pagingArea ol {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pagingArea li {
	float: none !important;
	display: flex;
	margin: 0;
	padding: 0 !important;
	list-style: none;
}
.pagingArea li > a,
.pagingArea li > span,
.pagingArea li.paging_current {
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	width: auto !important;
	height: 32px !important;
	padding: 0 8px;
	line-height: 1 !important;
	font-weight: 600;
	border-radius: var(--radius-sm);
}
.pagingArea li > a { color: var(--c-link) !important; }
.pagingArea li > a:hover {
	background: var(--c-border-soft) !important;
	color: var(--c-link-hover) !important;
	text-decoration: none;
}
.pagingArea li.paging_current {
	background: var(--c-brand);
	color: #fff;
	cursor: default;
}
/* die Icon-Buttons tragen ihr 16x16-Hintergrundbild - jetzt mittig statt
   links oben, damit sie in der 32px-Box auf der Zahlenlinie sitzen */
.pagingArea .paging_first,
.pagingArea .paging_prev,
.pagingArea .paging_next,
.pagingArea .paging_last {
	background-position: center center !important;
	background-repeat: no-repeat !important;
	padding: 0;
}

/* --- Pagination (data_for816_bale / _nature40 / _onlydetailed) ----------- */
.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 16px 0;
	padding: 0;
}
.pagination a {
	float: none !important;
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	min-width: 40px;
	text-align: center;
}
.pagination a.active {
	background-color: var(--c-brand) !important;
	color: #fff !important;
}
.pagination a:hover:not(.active) { background-color: var(--c-border-soft); }

/* --- News ---------------------------------------------------------------- */
#news_latest_list {
	width: auto !important;
	max-width: 100%;
	margin: 0 0 20px !important;
	border: 1px solid var(--c-border) !important;
	border-radius: var(--radius);
	background: var(--c-surface-alt);
}
.newsitem_latest { display: block; width: auto; }
.newsitem_latest a { float: none !important; display: block; width: auto !important; }
.newsitem_latest_date { border-radius: var(--radius-sm); }

/* --- Datensatzsuche ------------------------------------------------------ */
.datasetsearchform {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	width: auto !important;
	margin: 14px 0 !important;
}
.datasetsearchfield {
	flex: 1 1 220px;
	min-width: 0;
	height: var(--field-h);
	padding: 0 14px !important;
	border: 1px solid var(--c-border) !important;
	border-radius: var(--radius-sm);
	/* !important, weil lcrs.css hier background:rgba(50,50,50,.2) setzt */
	background-color: var(--c-field-bg) !important;
	background-image: none !important;
}
#datasetsearchbutton {
	position: static !important;
	left: auto !important;
	height: var(--field-h);
	padding: 0 18px !important;
	border-radius: var(--radius-sm);
	/* lcrs.css setzt hier border:2px - der Rahmen war die Ursache dafuer, dass
	   der Button hoeher war als das Suchfeld daneben */
	border-width: 1px !important;
	border-color: var(--c-nav-bg) !important;
	background-color: var(--c-nav-bg) !important;
}
#datasetsearchbutton:hover {
	background-color: var(--c-brand) !important;
	border-color: var(--c-brand) !important;
	color: #fff !important;
}
.datasetoptions { padding-left: 0; }
.datasetoptions li { list-style: none; }

/* --- Quicksearch in der Seitenspalte -------------------------------------
   submenulayout.jsp legt pro Suche ein <input type="text"> und direkt
   dahinter ein <input type="image"> (das kleine Icon) in ein <div>. Da das
   Textfeld hier 100% breit ist, hatte das Icon daneben keinen Platz mehr und
   rutschte in die naechste Zeile.
   Loesung: das <div> wird Bezugsrahmen, das Icon liegt absolut im Feld, und
   das Feld bekommt rechts so viel Innenabstand, dass der eingegebene Text
   nicht unter das Icon laeuft.
   Steht bewusst in Abschnitt 8 und nicht bei .columnModule_input in
   Abschnitt 5: die generische Feldregel in Abschnitt 6 setzt padding: 0 10px
   mit gleicher Spezifitaet und wuerde ein frueher stehendes padding-right
   wieder ueberschreiben. */
.columnModule_search {
	position: relative;
	display: block;
}
.columnModule_search input[type="text"] {
	/* 16px Icon + 10px Abstand rechts + 8px Luft zum Text */
	padding-right: 34px;
}
.columnModule_search input[type="image"] {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	opacity: .6;
	cursor: pointer;
}
.columnModule_search input[type="image"]:hover,
.columnModule_search input[type="text"]:focus ~ input[type="image"] { opacity: 1; }

/* --- Twitter / Mastodon-Box ---------------------------------------------- */
#twitter_news_box {
	width: auto !important;
	max-width: 320px;
	padding: 0 !important;
}
#twitter_news ul li { border-radius: var(--radius-sm); }

/* --- Carousel ------------------------------------------------------------ */
.jcarousel { max-width: 100%; }
.jcarousel li { max-width: 100vw; }
.jcarousel img { max-width: 100%; height: auto; }
/* home_start.jsp setzt style="width: 512px" inline auf .jcarousel */
#homePic .jcarousel { width: auto !important; max-width: 100%; }

/* --- Mastodon-Timeline (home_start.jsp) ----------------------------------
   .mt-container aus mastodon.css bringt height:100% + overflow-y:auto schon
   mit, aber .dummy-wrapper-timeline hat keine Hoehe - damit faellt die 100%
   auf auto zurueck und die Timeline waechst endlos nach unten.
   Eine feste Hoehe am Wrapper aktiviert den vorhandenen Scrollbereich. */
.dummy-wrapper-timeline {
	width: clamp(260px, 26vw, 320px);
	max-width: 100%;
	height: clamp(420px, 68vh, 760px);
	margin: 0 0 20px 20px;
	overflow: hidden; /* beschneidet die Scrollbox auf den border-radius */
}
.dummy-wrapper-timeline .mt-container {
	height: 100%;
	overflow-y: auto;
}

/* --- Sonstiges ----------------------------------------------------------- */
#horizontalnavlist {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	padding: 0;
	margin: 0 0 12px;
}
#horizontalnavlist li { display: block !important; padding: 0 !important; }

#account_userPic { max-width: min(300px, 100%); height: auto; }

/* Breadcrumbs stehen jetzt unter der dunklen Leiste auf weissem Grund.
   lcrs.css faerbt #navigation a per !important weiss - hier zuruecksetzen,
   sonst waeren die Links unsichtbar. */
#breadcrumbs {
	padding: 12px 2px 0 !important;
	font-size: var(--fs-sm);
	color: var(--c-muted);
}
#navigation #breadcrumbs,
#navigation #breadcrumbs a { color: var(--c-muted) !important; }
#navigation #breadcrumbs a:hover { color: var(--c-link) !important; }

#jsBox {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 14px var(--pad);
}

/* =============================================================================
   VARIANTE: linke Spalte als Popup-Leiste
   Gehoert zu modules/general/common/jsp/submenulayout_responsive.jsp.

   Alles hier ist auf .menupop* bzw. auf das Vorhandensein von .menupop-bar
   gescoped. Solange site.menu.tilesmenu noch auf submenulayout.jsp zeigt,
   existiert diese Markup nicht und der gesamte Abschnitt ist wirkungslos -
   das bestehende Design bleibt also unberuehrt.

   AKTIVIEREN - zwei Zeilen in WEB-INF/tiles-defs_new_modules_base.xml:
     1. Zeile 1178, site.menu.tilesmenu:
          template von submenulayout.jsp auf submenulayout_responsive.jsp
     2. im base.definition ergaenzen:
          <put name="sidebarstyle" value="popup" />
   Schritt 2 ist nicht optional - er steuert sowohl die body-Klasse als auch,
   dass layout_responsive.jsp die Leiste in #col1 statt in #col2 rendert.
   ========================================================================== */

/* Das Grid muss hier NICHTS umsortieren.
   layout_responsive.jsp rendert die Leiste in der Popup-Variante direkt in
   #col1, also zwischen Navigation und Inhalt. DOM-Reihenfolge und sichtbare
   Reihenfolge stimmen damit ueberein - kein Nachrutschen beim Laden.
   Zu tun bleibt nur: eine Spalte statt zwei, und das leere #col2 wegnehmen.

   PRIMAERWEG ist die Klasse sidebar-popup am <body> (gesetzt ueber das
   Tiles-Attribut sidebarstyle). Sie steht beim ersten Paint schon im DOM, das
   Layout ist also von der ersten Zeile an einspaltig.

   Der :has()-Block darunter ist der Rueckfall, falls sidebarstyle nicht gesetzt
   ist. Er greift erst, wenn die Leiste geparst ist - also ein kurzer Moment
   zweispaltig waehrend der Navigation. Deshalb ist die body-Klasse die
   empfohlene Variante. */
body.sidebar-popup #colright {
	grid-template-columns: minmax(0, 1fr);
}
body.sidebar-popup #colright > #col2 {
	display: none;
}
/* grid-column MUSS hier zurueck auf 1. Die Basisregel in Abschnitt 2 setzt
   #col1wrap auf Spalte 2 - bei nur einer expliziten Spalte ist das eine
   IMPLIZITE, auto-breite Spalte, und die leere 1fr-Spalte davor schluckt den
   freien Platz und schiebt den Inhalt nach rechts. */
body.sidebar-popup #colright > #col1wrap {
	grid-column: 1;
	grid-row: 1;
}

@supports selector(:has(*)) {
	#colright:has(.menupop-bar) {
		grid-template-columns: minmax(0, 1fr);
	}
	#colright:has(.menupop-bar) > #col2 {
		display: none;
	}
	#colright:has(.menupop-bar) > #col1wrap {
		grid-column: 1;
		grid-row: 1;
	}
	}

/* Navigation und Menueleiste gehoeren zusammen, deshalb enger aneinander als
   der normale Abstand zum Inhalt */
body.sidebar-popup #navigation {
	margin-bottom: 12px !important;
}

/* Navigationsleiste so breit wie der Header: der Innenabstand von #colright
   (--pad) wird per negativem Margin wieder aufgehoben. Der Content behaelt
   seinen Abstand. !important, weil die Basisregel in Abschnitt 4
   margin mit !important setzt. Nur Desktop - mobil steht dort der
   Hamburger-Button. */
@media (min-width: 900px) {
	body.sidebar-popup #navigation {
		margin-left: calc(-1 * var(--pad)) !important;
		margin-right: calc(-1 * var(--pad)) !important;
	}
	/* buendig mit dem Header: keine runden Ecken mehr */
	body.sidebar-popup #nav {
		border-radius: 0;
	}
	/* Breadcrumbs bleiben auf der Flucht des Contents */
	body.sidebar-popup #breadcrumbs {
		padding-left: var(--pad) !important;
		padding-right: var(--pad) !important;
	}
}

.menupop-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: var(--gap);
}

.menupop { position: relative; }

/* Checkbox bleibt fokussierbar, ist aber unsichtbar.
   display:none waere hier falsch - dann kaeme man nicht per Tab hin. */
.menupop .menupop-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.menupop-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: var(--field-h);
	padding: 0 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-surface-alt);
	color: var(--c-brand);
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
}
/* Caret aus CSS, kein Bild */
.menupop-btn::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}
.menupop:hover > .menupop-btn,
.menupop:focus-within > .menupop-btn,
.menupop-toggle:checked + .menupop-btn {
	background: var(--c-brand);
	border-color: var(--c-brand);
	color: #fff;
}
.menupop-toggle:checked + .menupop-btn::after {
	transform: translateY(1px) rotate(-135deg);
}
.menupop-toggle:focus-visible + .menupop-btn {
	outline: 2px solid var(--c-brand);
	outline-offset: 2px;
}

/* Das Panel traegt zusaetzlich .columnModule, damit die bestehenden
   Kartenregeln (h3, Listen, .columnModule_input) weiter greifen. */
.menupop-panel {
	position: absolute;
	top: calc(var(--field-h) + 6px);
	left: 0;
	z-index: 500;
	width: max-content;
	min-width: 240px;
	max-width: min(380px, calc(100vw - 2 * var(--pad)));
	max-height: 70vh;
	overflow-y: auto;
	margin: 0 !important;
	background: var(--c-surface) !important;
	box-shadow: var(--shadow-lg) !important;

	/* visibility/opacity statt display:none, damit Ein- und Ausblenden
	   animierbar sind - display laesst sich nicht weich schalten.
	   (jquery.tagcloud.js setzt nur Schriftgroessen per .css() und misst
	   nichts, display:none waere hier also auch unkritisch.) */
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity .13s ease, transform .13s ease, visibility .13s;
	/* Verzoegert nur das SCHLIESSEN (die Basisregel ist der zu-Zustand).
	   Gibt Zeit, mit der Maus vom Button ins Panel zu wechseln. */
	transition-delay: .25s;
}

/* Hover-Bruecke ueber den Spalt zwischen Button und Panel.
   Ohne sie verliert man beim Runterfahren kurz den Hover und das Panel
   schliesst wieder - genau der Effekt bei mehreren Popups nebeneinander.
   Die Bruecke liegt innerhalb von .menupop, haelt .menupop:hover also aufrecht.
   Im zu-Zustand erbt sie pointer-events:none, kann das Panel also nicht
   versehentlich aufziehen. */
.menupop-panel::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 12px;
}

/* Hover = kurz reinschauen, Fokus = offen bleiben beim Tippen,
   Klick/Touch = per Checkbox festpinnen */
.menupop:hover > .menupop-panel,
.menupop:focus-within > .menupop-panel,
.menupop-toggle:checked ~ .menupop-panel {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: none;
	transition-delay: 0s; /* oeffnen ohne Verzoegerung */
}

/* Keyword-Wolke braucht mehr Platz als ein Menue */
.menupop-panel-wide { min-width: 300px; max-width: min(520px, calc(100vw - 2 * var(--pad))); }

/* die letzten zwei Buttons klappen nach links aus, damit die Panels nicht
   aus der Seite laufen */
.menupop-bar > .menupop:nth-last-child(-n+2) > .menupop-panel {
	left: auto;
	right: 0;
}

/* Keine Aufzaehlungspunkte in den Panels.
   Noetig, weil #col1 ul { list-style-type: disc } aus Abschnitt 6 (Zeile 574)
   mit seiner ID-Spezifitaet (1,0,1) die Regel .columnModule ul (0,1,1)
   schlaegt. Seit die Leiste in #col1 statt in #col2 gerendert wird, liegen die
   Panel-Listen in deren Geltungsbereich. #col1 davorgestellt ergibt (1,1,1). */
#col1 .menupop-panel ul,
#col1 .menupop-panel ol,
.menupop-panel ul,
.menupop-panel ol {
	list-style: none;
	margin: 0;
	padding-left: 0;
}
#col1 .menupop-panel li,
.menupop-panel li {
	list-style: none;
}
/* verschachtelte Untermenues aus submenu.jsp (ul.fontSize_small) behalten
   eine Einrueckung, damit die Hierarchie lesbar bleibt */
.menupop-panel li > ul {
	padding-left: 12px;
	margin-top: 4px;
}

/* im Panel ist die Ueberschrift die Panelueberschrift - der vom submenu.jsp
   erzeugte <li class="listHeader"> braucht keinen Listenpunkt */
.menupop-panel .listHeader { list-style: none; margin-left: 0; }
.menupop-panel .listHeader h3 { margin-top: 0; }
.menupop-panel > h3:first-child { margin-top: 0; }

@media (max-width: 639px) {
	/* Auf dem Handy ein Akkordeon statt Popups: ein Button pro Zeile, das
	   Panel klappt im Fluss darunter auf. Absolut positionierte Panels wuerden
	   sich hier mit den darunterliegenden Buttons ueberlagern. */
	.menupop-bar { flex-direction: column; align-items: stretch; }
	.menupop { flex: 1 1 100%; }
	.menupop-btn { width: 100%; justify-content: space-between; }

	.menupop-panel {
		position: static;
		width: auto;
		min-width: 0;
		max-width: none;
		max-height: none;
		margin-top: 6px !important;
		transform: none;
		border: 1px solid var(--c-border);
		box-shadow: none !important;
		/* im Fluss muss der zu-Zustand Platz freigeben, deshalb hier
		   display statt visibility - ohne Animation, dafuer ohne Luecke */
		display: none;
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
	}
	.menupop-panel::before { content: none; } /* Bruecke unnoetig, kein Spalt */

	/* Nur die Checkbox oeffnet. Die Hover-/Fokus-Regeln von oben schalten nur
	   visibility und opacity, nicht display - sie greifen hier also nicht und
	   muessen auch nicht zurueckgesetzt werden. */
	.menupop-toggle:checked ~ .menupop-panel { display: block; }

	/* rechtsbuendige Ausrichtung der letzten Buttons entfaellt */
	.menupop-bar > .menupop:nth-last-child(-n+2) > .menupop-panel {
		left: auto;
		right: auto;
	}
}



/* --- Projektliste (content_project_subprojects_responsive.jsp) ------------
   Schlanke Liste statt Karten: pro Zeile Titel, PI-Namen und Status.
   Abgrenzung nur ueber Trennlinien, kein Rahmen und kein Schatten. */
.projectgroup-abstract {
	margin: .4em 0 1.2em;
	max-width: 75ch;
}

.projectrow {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 10px 2px;
	border-bottom: 1px solid var(--c-border-soft);
}
.projectrow:hover { background: var(--c-surface-alt); }

.projectrow-main {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	min-width: 0;
	flex: 1 1 auto;
}

.projectrow-title {
	font-weight: 600;
	min-width: 0;
}
.projectrow-title a { text-decoration: none; }
.projectrow-title a:hover { text-decoration: underline; }

.projectrow-pis {
	font-size: var(--fs-sm);
	color: var(--c-muted);
	min-width: 0;
}
/* die PI-Links sollen die Zeile nicht dominieren */
.projectrow-pis a { color: var(--c-muted); }
.projectrow-pis a:hover { color: var(--c-link); }

.projectrow-badge {
	flex: 0 0 auto;
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}
.projectrow-badge.is-running {
	background: var(--c-accent);
	color: #fff;
}
.projectrow-badge.is-expired {
	background: var(--c-border-soft);
	color: var(--c-muted);
	border: 1px solid var(--c-border);
}

/* Abgelaufen: gedaempft ueber opacity, NICHT ueber filter - damit bleibt der
   Text normal selektierbar und der Kontrast kalkulierbar. */
.projectrow-expired { opacity: .66; }
.projectrow-expired:hover { opacity: 1; }

@media (max-width: 639px) {
	/* Badge unter den Titel statt daneben */
	.projectrow { align-items: flex-start; }
	.projectrow-main { flex: 1 1 100%; flex-direction: column; }
}


/* --- Administrative menu (administrativemenu_responsive.jsp) -------------- */
.adminmenu h3 {
	margin-top: 2em;
}
.adminmenu h3:first-of-type { margin-top: 1.4em; }

/* Kopfdaten: Datenbankverbindung und Build */
.adminmenu-meta {
	background: var(--c-surface-alt);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 14px 16px;
	margin-bottom: 1.5em;
}
.adminmenu-meta dl {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 6px 18px;
	margin: 0;
	font-size: var(--fs-sm);
}
.adminmenu-meta dt {
	color: var(--c-muted);
	font-weight: 600;
}
.adminmenu-meta dd {
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Aktionslinks als Kachelraster statt Punktliste */
.adminmenu-actions {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
	margin-bottom: 1em;
}
.adminmenu-action {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 12px 14px;
	border: 1px solid var(--c-border);
	border-left: 3px solid var(--c-accent);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	box-shadow: var(--shadow);
	text-decoration: none;
}
.adminmenu-action:hover {
	border-left-color: var(--c-brand);
	background: var(--c-surface-alt);
	text-decoration: none;
}
.adminmenu-action-title {
	font-weight: 600;
	color: var(--c-brand);
}
.adminmenu-action-hint {
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

.adminmenu-table {
	width: 100%;
	font-size: var(--fs-sm);
	border-collapse: collapse;
}
.adminmenu-table th,
.adminmenu-table td {
	text-align: left;
	padding: 7px 10px;
	border-bottom: 1px solid var(--c-border-soft);
	vertical-align: top;
}
.adminmenu-table thead th {
	background: var(--c-surface-alt);
	border-bottom: 2px solid var(--c-border);
	color: var(--c-brand);
}
/* Alternierende Zeilen ueber die projektweiten Zebra-Klassen. Die Werte aus
   lcrs.css (#eee / #f9f9f9) werden hier auf die neue Palette gezogen, das
   Muster bleibt dasselbe: ein heller Streifen, ein leicht getoenter. */
.adminmenu-table tbody tr.zebraColor2 { background-color: var(--c-surface); }
.adminmenu-table tbody tr.zebraColor1 { background-color: var(--c-surface-alt); }

/* Hover muss beide Zebra-Regeln schlagen, daher mit den Klassen zusammen -
   .adminmenu-table tbody tr:hover allein waere mit (0,2,2) zu schwach
   gegen (0,3,2) der Streifenregeln. */
.adminmenu-table tbody tr:hover,
.adminmenu-table tbody tr.zebraColor1:hover,
.adminmenu-table tbody tr.zebraColor2:hover {
	background-color: #e4ecf4;
}

.adminmenu-table td:first-child { white-space: nowrap; }

.adminmenu-empty {
	color: var(--c-muted);
	font-style: italic;
}
.adminmenu code,
.adminmenu-table code {
	font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
	font-size: .92em;
	/* leichter Markenton statt --c-surface-alt: letzteres ist genau die Farbe
	   des dunkleren Zebrastreifens, der Hintergrund waere dort unsichtbar */
	background: rgba(var(--c-brand-rgb), .06);
	border: 1px solid rgba(var(--c-brand-rgb), .10);
	border-radius: 3px;
	padding: 1px 5px;
	overflow-wrap: anywhere;
}

@media (max-width: 639px) {
	.adminmenu-meta dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.adminmenu-meta dt { margin-top: 8px; }
	.adminmenu-table td:first-child { white-space: normal; }
}


/* --- Feedbackformular (fancybox-Popup aus layout_responsive.jsp) ---------- */
.feedbackbox {
	width: min(520px, 90vw);
	padding: 4px;
}
.feedbackbox h3 {
	margin: 0 0 14px;
	padding-bottom: .4em;
	border-bottom: 1px solid var(--c-border);
	color: var(--c-brand);
}
.feedbackbox-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.feedbackbox-intro {
	margin: 0;
	color: var(--c-muted);
	font-size: var(--fs-sm);
}
.feedbackbox-label {
	font-weight: 600;
	font-size: var(--fs-sm);
	color: var(--c-brand);
}
/* .feedback_input traegt in Abschnitt 6 schon width:100% !important */
.feedbackbox .feedback_input {
	min-height: 140px;
	padding: 8px 10px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background-color: var(--c-field-bg);
	font: inherit;
	resize: vertical;
}
.feedbackbox .feedback_input:focus {
	background-color: var(--c-field-bg-focus);
	border-color: var(--c-brand);
	outline: none;
	box-shadow: 0 0 0 3px rgba(var(--c-brand-rgb), .12);
}
.feedbackbox-actions {
	display: flex;
	justify-content: flex-end;
}


/* --- Mouseover-Tooltips --------------------------------------------------
   Ueberschreibt modules/general/common/css/tmf_tooltip.css (laedt in
   standardheader.jsp:20, diese Datei spaeter -> kein !important noetig).
   Gebunden wird per jquery.tmf_custom.js:2 -> $(".toolTip").simpleTooltip().

   ACHTUNG, drei Dinge duerfen hier NICHT angefasst werden, sonst bricht die
   Positionierung in jquery.tmf_tooltip.js:
     1. display von #simpleTooltip_box      - das JS toggelt per show()/hide()
     2. display von .simpleTooltip_arrowUpper - steht auf none, JS schaltet um
     3. die 9px Hoehe der Pfeile - Zeile 52 rechnet
        pos.top - box.height() - padding-top - padding-bottom - arrow.height()
   Deshalb werden die Dreiecke per clip-path gezeichnet und nicht mit der
   Border-Technik: die braeuchte width/height:0, jQuery wuerde 0 melden und der
   Tooltip saesse 9px zu tief.
   position:absolute bleibt ebenfalls stehen, das JS setzt top/left. */
#simpleTooltip_box {
	font-family: var(--font-sans);
	font-size: var(--fs-sm);
	font-weight: 400;
	line-height: 1.5;
	padding: 10px 12px;
	max-width: min(360px, calc(100vw - 32px));
	background: var(--c-brand);
	color: #fff;
	border: 0;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	overflow-wrap: anywhere;
}

/* Die "Titel::Text"-Syntax des Plugins wird von den Message-Bundles stark
   genutzt (z.B. search.party.text = "Help::Search for staff members by ...").
   jquery.tmf_tooltip.js:17-20 baut daraus <p><strong>Titel</strong></p> + Text. */
#simpleTooltip_box p { margin: 0 0 5px; }
#simpleTooltip_box p strong { font-weight: 700; font-size: 1.05em; }
#simpleTooltip_box p:last-child { margin-bottom: 0; }
#simpleTooltip_box a { color: #cfe0ef; }
#simpleTooltip_box a:hover { color: #fff; }
.simpleTooltip_text { color: #fff; }

.simpleTooltip_arrow,
.simpleTooltip_arrowUpper {
	background-image: none;
	background-color: var(--c-brand);
	width: 14px;
	height: 9px;
}
.simpleTooltip_arrow      { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.simpleTooltip_arrowUpper { clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* Rein dekorative Icon-Trigger auf eine verlaessliche Box bringen.
   :empty trifft nur Elemente ohne Textinhalt - HTML-Kommentare wie
   <!-- help --> verhindern das laut Spec nicht. .iconLink MIT Text daneben
   (z.B. <strong class="iconLink iconWarning">System message</strong>) bleibt
   damit unberuehrt. */
.iconLink:empty {
	display: inline-block;
	min-height: 16px;
	background-size: 16px 16px;
	vertical-align: middle;
}


/* =============================================================================
   9  FOOTER
   ========================================================================== */

#contextLinks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	justify-content: space-between;
	margin-top: 36px;
	padding-top: 14px !important;
	border-top: 1px solid var(--c-border);
	font-size: var(--fs-sm);
}
#backHomeLink, #toTopLink { float: none !important; }

#footer {
	background: var(--c-surface-alt);
	border-top: 1px solid var(--c-border);
	padding: 26px var(--pad) !important;
	text-align: center;
	font-size: var(--fs-sm) !important;
	color: var(--c-muted);
}
#footer p { margin: 8px 0; }
#footer a { color: var(--c-link); }

/* footer.jsp setzt width:600px inline - nur mit !important zu ueberschreiben */
#footer > div[style] {
	width: auto !important;
	max-width: 100% !important;
	flex-wrap: wrap !important;
	gap: 14px;
	padding: 6px 0;
}
#footer .fleft, #footer .fright { float: none !important; }
#footer img { max-width: 100%; height: auto; max-height: 50px; width: auto; }


/* =============================================================================
   10  BREAKPOINTS
   ========================================================================== */

/* --- grosse Schirme: etwas mehr Luft ------------------------------------- */
@media (min-width: 1400px) {
	:root { --sidebar-w: 260px; --gap: 4px; }
}

/* --- ab Tablet quer: Seitenspalte bleibt beim Scrollen stehen ------------- */
@media (min-width: 1100px) {
	#col2 {
		position: sticky !important;
		top: 16px;
		align-self: start;
	}
}

/* --- schmaler Desktop / Tablet ------------------------------------------- */
@media (max-width: 1099px) {
	:root { --sidebar-w: 210px; --gap: 4px; }
	#nav a { padding: 10px 12px !important; }
}

/* --- Desktop-Navigation: Flyout-Untermenues ------------------------------ */
@media (min-width: 900px) {
	#nav li > ul {
		position: absolute;
		top: 100%;
		left: 0 !important;
		right: auto;
		width: max-content;
		/*min-width: 15em;*/
		/*max-width: 24em;*/
		max-width: 18em;
		display: block;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-4px);
		transition: opacity .13s ease, transform .13s ease, visibility .13s;
		background-color: var(--c-nav-sub-bg) !important;
		border-radius: 0 0 var(--radius) var(--radius);
		box-shadow: var(--shadow-lg);
		overflow: hidden;
		z-index: 10000;
	}
	/* letzte Menuepunkte nach links ausklappen, damit sie nicht rausragen */
	#nav > li:nth-last-child(-n+2) > ul { left: auto !important; right: 0; }

	#nav > li:hover > ul,
	#nav > li:focus-within > ul {
		visibility: visible;
		opacity: 1;
		transform: none;
	}
	#nav li ul li { width: auto !important; }
}

/* =============================================================================
   Einspaltig ab hier: Inhalt zuerst, Seitenspalte darunter.
   Umdrehen (Seitenspalte oben): #col1wrap grid-row 2, #col2 grid-row 1.
   ========================================================================== */
@media (max-width: 899px) {

	#colright {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 20px var(--pad) 32px !important;
	}
	#col1wrap { grid-column: 1; grid-row: 1; }
	#col2     { grid-column: 1; grid-row: 2; }

	/* --- Navigation: Hamburger ------------------------------------------
	   Zugeklappt sieht man nur den Button, aufgeklappt das volle Menue mit
	   allen Untermenues in voller Zeilenbreite. Breadcrumbs stehen darunter. */
	#navigation {
		position: relative !important;
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 8px;
	}
	#breadcrumbs { flex: 1 1 100%; }

	/* display:block ist wichtig: ein display:none-Input laesst sich zwar per
	   Label umschalten, ist aber nicht mehr per Tab fokussierbar.
	   #navigation davor ist noetig, damit diese Regeln die Desktop-Regel
	   "#navigation .navtoggle { display:none }" oben schlagen. */
	#navigation .navtoggle {
		display: block;
		position: absolute;
		width: 1px; height: 1px;
		opacity: 0;
		pointer-events: none;
	}
	#navigation .navtoggle-label {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 46px;
		height: 44px;
		border-radius: var(--radius);
		background: var(--c-nav-bg);
		cursor: pointer;
	}
	.navtoggle-label:hover { background: var(--c-nav-hover); }
	/* Hamburger-Icon, rein aus CSS gezeichnet */
	.navtoggle-icon,
	.navtoggle-icon::before,
	.navtoggle-icon::after {
		display: block;
		width: 20px;
		height: 2px;
		background: #fff;
		border-radius: 2px;
		transition: transform .16s ease, opacity .16s ease;
	}
	.navtoggle-icon { position: relative; }
	.navtoggle-icon::before,
	.navtoggle-icon::after { content: ""; position: absolute; left: 0; }
	.navtoggle-icon::before { top: -6px; }
	.navtoggle-icon::after  { top:  6px; }
	/* geoeffnet -> X */
	.navtoggle:checked + .navtoggle-label .navtoggle-icon { background: transparent; }
	.navtoggle:checked + .navtoggle-label .navtoggle-icon::before { top: 0; transform: rotate(45deg); }
	.navtoggle:checked + .navtoggle-label .navtoggle-icon::after  { top: 0; transform: rotate(-45deg); }
	.navtoggle:focus-visible + .navtoggle-label {
		outline: 2px solid var(--c-brand);
		outline-offset: 2px;
	}

	/* Zugeklappt: Leiste komplett aus, es bleibt nur der Hamburger.
	   Eine zusaetzlich sichtbare Scrollleiste waere doppelte Navigation. */
	#nav { display: none; }

	/* Aufgeklappt: vollstaendiges Panel mit allen Untermenues */
	.navtoggle:checked ~ #nav {
		display: block;
		flex: 1 1 100%;
		overflow-y: auto;
		max-height: 72vh;
		padding: 6px !important;
		box-shadow: var(--shadow-lg);
	}
	.navtoggle:checked ~ #nav > li { display: block; width: 100%; }
	.navtoggle:checked ~ #nav li ul {
		display: block !important;
		position: static !important;
		left: auto !important;
		top: auto !important;
		width: auto !important;
		max-width: none;
		visibility: visible !important;
		opacity: 1 !important;
		transform: none !important;
		box-shadow: none;
		background: transparent;
		margin: 0 0 6px;
	}
	.navtoggle:checked ~ #nav li ul a {
		padding-left: 30px !important;
		font-weight: 400;
		background-color: rgba(0,0,0,.14) !important;
	}

	/* --- Header kompakter ------------------------------------------------- */
	#header_top { justify-content: center; }
	#headerImage { justify-content: center; text-align: center; }
	#headerImage > h1 { flex: 0 1 auto; }
	#logos { flex: 1 1 100%; text-align: center; }
	/* Foto ueber die volle Breite, darueber ein heller Schleier - Logo, Titel
	   und das inline weiss gesetzte "Funded by" stehen jetzt gestapelt auf
	   dem Bild und waeren sonst unlesbar. */
	#headerImage::before { width: 100%; }
	#headerImage::after {
		background-image: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.97));
	}
	#logos { color: var(--c-brand) !important; }

	/* --- Tabellen horizontal scrollbar ------------------------------------ */
	#content table {
		display: block;
		width: 100% !important;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.datasetTable tr td:first-child,
	.datasetAreaTable tr td:first-child,
	.elementAreaTable tr td:first-child { width: auto !important; }
	#createAttributeContainer label,
	#userAddContainer label { width: auto !important; }
	.creategeographiccoveragecontainer > * { min-width: 0 !important; }

	/* Timeline traegt .fright - einspaltig soll sie nicht mehr floaten */
	.dummy-wrapper-timeline {
		float: none !important;
		width: auto;
		height: clamp(340px, 55vh, 520px);
		margin: 0 0 20px !important;
	}

	/* --- Touch-Ziele ------------------------------------------------------
	   Ein Token statt separater min-height-Regeln: so wachsen Felder UND
	   Buttons gemeinsam und bleiben gleich hoch. Die Kopfleiste bleibt bei
	   ihren 28px, weil #header_top ... hoeher spezifisch ist. */
	:root { --field-h: 42px; }
}

/* --- Handy --------------------------------------------------------------- */
@media (max-width: 639px) {
	:root { --pad: 4px; --gap: 4px; }

	#header_top { font-size: 13px; padding: 6px var(--pad) !important; }
	#login input[type="text"],
	#login input[type="password"] { width: 100%; flex: 1 1 130px; }

	#footer > div[style] { flex-direction: column; }
	#contextLinks { justify-content: center; }

	.staffitem, .columnModule { box-shadow: none; }

	/* Profilfoto: der Float wuerde den schmalen Fliesstext zerschneiden -
	   stattdessen zentriert ueber dem Inhalt und deutlich kleiner. */
	.userprofile div.staffpic {
		float: none;
		width: min(200px, 55%);
		margin: 0 auto 18px;
	}
	.userprofile .staffcontact { padding: 12px 14px; }
	.userprofile h3 { margin-top: 22px; }
}


/* =============================================================================
   11  DRUCK, REDUCED MOTION, FOKUS
   ========================================================================== */

:focus-visible {
	outline: 2px solid var(--c-brand);
	outline-offset: 2px;
	border-radius: 2px;
}
#nav :focus-visible, #header_top :focus-visible {
	outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}

@media print {
	.skiplink, #header_top, #navigation, #col2, #col3,
	#contextLinks, .navtoggle, .navtoggle-label { display: none !important; }
	#colright { display: block; padding: 0 !important; }
	body { color: #000; font-size: 11pt; }
}
