/* ---------------- Grundfarben ---------------- */
:root {
	--primary: #1e2a38;    /* Blau für Header/Footer */
	--accent:  #8b0000;    /* Bordeaux für Akzente */
	--text:    #222;       /* Standardtext */
	--background: #f5f5f5; /* Seitenhintergrund */
}

/* ---------------- BODY / LAYOUT ---------------- */
html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	background-color: var(--background);
	color: var(--text);
	height: 100%;
  overflow: hidden;
}
body.js-loading .header-left,
body.js-loading .header-right {
	visibility: hidden; /* bleibt im Layout, wird aber nicht angezeigt */
}

/* Header fixiert und drei gleich breite Spalten */
.custom-header {
	position: fixed;      /* immer oben */
	top: 0;
	left: 0;
	width: 100%;
	height: 300px;        /* Höhe des Headers, passt ggf. an */
	display: grid;
	grid-template-columns: 1fr 1fr 1fr; /* drei gleich breite Spalten */
	align-items: center;   /* vertikal zentrieren */
	background-color: var(--primary);
	color: #fff;
	padding: 0 2rem;
	box-sizing: border-box;
	z-index: 1000;
}

/* Inhalte innerhalb der Spalten zentrieren */
.header-left,
.header-center,
.header-right {
	display: flex;
	justify-content: center;  /* horizontal zentrieren */
	align-items: center;      /* vertikal zentrieren */
}
.header-left li.parent {
	position: relative;
}

/* Alle Untermenüs im Header-Left beim Laden ausblenden */
.header-left .mod-menu__sub {
	display: none; /* versteckt Untermenüs sofort */
}
/* Optional: Header-right ebenfalls versteckt initial */
.header-right {
	display: block; /* block bleibt sichtbar, aber leer */
}
.header-left li.parent ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
}
/* Links in der linken Spalte */
.header-left a {
	color: #fff;
	text-decoration: none;
	margin: 0 0.5rem;
}
.header-left a:hover {
	color: var(--accent);
}

/* Header-Mitte: Bild + Text nebeneinander */
.header-center {
	display: flex;
	align-items: center;        /* vertikal zentriert */
	justify-content: center;    /* horizontal zentriert */
}

/* Abstand zwischen Bild und Text */
.header-center img {
	max-height: 250px;
	width: auto;
	display: block;
	margin-right: 22px;         /* Abstand Text zu Bild */
}

/* Text rechts vom Bild */
.header-center-text {
	text-align: left;           /* linksbündig */
	color: #fff;
	font-size: 32px;            /* größerer Text in Pixel */
	line-height: 1.3;
	display: flex;
	flex-direction: column;
	justify-content: center;    /* vertikal zum Bild ausrichten */
}

/* Untermenü in der rechten Spalte */
/* Rechte Spalte sichtbar */
.header-right ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.header-right a {
	color: #fff;
	text-decoration: none;
	margin: 0 0.5rem;
}
.header-right a:hover {
	color: var(--accent);
}
.header-right li.default-active > a {
	color: #c00;
	background: rgba(200,0,0,0.08);
	border-radius: 4px;
}


.header-left .mod-menu > li.active > a {
	color: #c00;
	border-left: 3px solid #c00;
	padding-left: 8px;
}

/* Untermenü */
/***********************************************************/
/* normal aktiv */
.header-right .mod-menu__sub li.active > a,
.header-right .mod-menu__sub li.current > a {
	color: #c00;
	background: rgba(200,0,0,0.08);
	border-radius: 4px;
}

/* default aktiver erster Unterpunkt */
.header-right .mod-menu__sub li.default-active > a {
	color: #c00;
	background: rgba(200,0,0,0.08);
	border-radius: 4px;
}

/* ---------------- MAIN CONTENT ---------------- */
.main-content {
	max-width: 80%;
	margin: 0 auto;
	padding: 0px 2rem 2rem 2rem; /* Oben 300px Abstand, restlicher Inhalt 2rem */
	box-sizing: border-box;
	text-align: justify; /* Blocksätze */
	min-height: calc(100vh - 300px - 180px); /* viewport minus oberer Abstand + Footer (optional) */
}

/* Scrollbar für Content */
.main-content::-webkit-scrollbar {
	width: 8px;
}

.main-content::-webkit-scrollbar-thumb {
	background-color: var(--primary);
	border-radius: 4px;
}
.main-content {
    padding-bottom: 100px;
}
.main-content a {
    color: #1e2a38; /* Dunkelblau, passend zum Header */
    text-decoration: none; 
    font-weight: 500;
    position: relative;
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent; /* subtiler Unterstrich für Hover */
}

.main-content a:hover {
    color: #8b0000; /* Bordeaux bei Hover */
    border-bottom: 2px solid #8b0000;
}

.main-content a:focus {
    outline: none;
    border-bottom: 2px dashed #8b0000; /* Fokus-Hinweis für Barrierefreiheit */
}

/* Optional: Icon am Ende von externen Links */
.main-content a[href^="http"]:after {
    content: " ↗"; 
    font-size: 0.9em;
    vertical-align: super;
    margin-left: 2px;
}

/* Optional: sanfte Animation beim Hover */
.main-content a:hover::after {
    transform: translateX(2px);
    transition: transform 0.25s ease;
}

/* ---------------- FOOTER ---------------- */
footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--primary);
	color: #fff;
	text-align: center;
	padding: 1rem 1rem;
	box-sizing: border-box;
	z-index: 1000;
	
	
}

/* Bilder in Liste */
li { 
	/*	display: flex;
	align-items: flex-start;	*/
}

li img {
    width: 200px;
    height: auto;
    margin-left: 30px;   /* Abstand zum Text */
    margin-bottom: 25px; /* Abstand nach unten */
    order: 2;            /* Bild rechts */
}

li > *:not(img) {
    order: 1;            /* Text links */
}

/* ---------------- ABSCHNITTE / TRENNER ---------------- */
section {
	padding: 2rem 0;
	border-bottom: 1px solid #e5e5e5;
}

section:last-child {
	border-bottom: none;
}

/* ---------------- PUBLIKATIONEN / LISTEN ---------------- */
ul.publications {
	list-style-type: none;
	padding-left: 0;
}

ul.publications li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #e5e5e5;
}

ul.publications li:last-child {
	border-bottom: none;
}

/* ---------------- ZITATE ---------------- */
blockquote {
	font-family: Georgia, serif;
	font-style: italic;
	border-left: 4px solid var(--accent);
	padding-left: 1rem;
	margin: 2rem 0;
}


:root {
    --header-height: 160px;
    --footer-height: 90px;
    --content-gap: 10px;
}

footer {
    position: fixed;
    bottom: 0;
    height: var(--footer-height);
    width: 100%;
}

.container {
    position: fixed;
    top: calc(var(--header-height) + var(--content-gap) + 150px);
    
    bottom: calc(var(--footer-height) + var(--content-gap) - 50px);
    left: 0;
    right: 0;
}

.main-content {
    height: 100%;
    overflow-y: auto;
}



/* ===============================
   FORM BASIS – Professoren Stil
   =============================== */

.rscontact,
.com-users-login.login {
    max-width: 1190px;
    margin: 60px auto 80px auto; /* gleicher Abstand oben */
    padding: 60px 80px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border: 1px solid #ececec;
}

/* Fieldset Reset */
.rscontact fieldset,
.com-users-login fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Abstand zwischen Feldern */
.rscontact .control-group,
.com-users-login .control-group {
    margin-bottom: 26px;
}

/* Labels */
.com-users-login .control-label label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

/* ===============================
   INPUTS
   =============================== */

.rscontact input,
.rscontact select,
.rscontact textarea,
.com-users-login input[type="text"],
.com-users-login input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #fafafa;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* Fokus */
.rscontact input:focus,
.rscontact select:focus,
.rscontact textarea:focus,
.com-users-login input:focus {
    outline: none;
    background: #ffffff;
    border-color: #1f1f1f;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

/* Textarea */
.rscontact textarea {
    min-height: 160px;
    resize: vertical;
}

/* ===============================
   PASSWORD TOGGLE
   =============================== */

.com-users-login .input-password-toggle {
    border: 1px solid #d4d4d4;
    border-left: none;
    background: #f2f2f2;
    border-radius: 0 6px 6px 0;
    padding: 0 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.com-users-login .input-password-toggle:hover {
    background: #e6e6e6;
}

/* ===============================
   CHECKBOX
   =============================== */

.com-users-login .form-check {
    margin-top: 5px;
    margin-bottom: 30px;
}

.com-users-login .form-check-input {
    margin-right: 6px;
}

/* ===============================
   BUTTONS
   =============================== */

.rscontact .submit,
.com-users-login .btn-primary {
    display: inline-block;
    padding: 14px 34px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    background: #1f1f1f;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.rscontact .submit:hover,
.com-users-login .btn-primary:hover {
    background: #3a3a3a;
}

.rscontact .submit:active,
.com-users-login .btn-primary:active {
    transform: translateY(1px);
}

/* Secondary Button (Passkey) */
.com-users-login .btn-secondary {
    padding: 14px 30px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #d4d4d4;
    background: #f4f4f4;
    cursor: pointer;
    transition: all 0.25s ease;
}

.com-users-login .btn-secondary:hover {
    background: #e9e9e9;
}

/* ===============================
   LOGIN OPTION LINKS
   =============================== */

.com-users-login__options {
    margin-top: 35px;
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
}

.com-users-login__options a {
    display: inline-block;
    margin-right: 30px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.com-users-login__options a:hover {
    color: #000;
}


