/*
 * Frischluft - visuelle Auffrischung ueber dem bestehenden Layout.
 *
 * Grundsatz: nichts wird verschoben. Diese Datei aendert ausschliesslich
 * Farben, Schrift, Rahmen, Rundungen und die Zustaende beim Darueberfahren
 * und Anklicken. Keine Regel fasst position, float, width oder die
 * Spaltenaufteilung der Tabellen an - die Anwendung baut ihr Layout mit
 * verschachtelten Tabellen, dort etwas zu verruecken haette Folgen bis in
 * Ecken, die man beim Testen nicht sieht.
 *
 * Die Hausfarbe #333F93 bleibt. Neu sind vor allem: ruhigere Flaechen,
 * lesbarere Schrift, sichtbare Zeile unter dem Mauszeiger, mitlaufende
 * Tabellenkoepfe und ein deutlicher Fokusrahmen fuer Tastaturbedienung.
 */

:root {
	--luft-marke: #333F93;
	--luft-marke-hell: #4C5CC0;
	--luft-marke-blass: #EEF1FC;
	--luft-flaeche: #FFFFFF;
	--luft-grund: #F5F7FC;
	--luft-linie: #DFE4F2;
	--luft-linie-kraeftig: #C6CEE6;
	--luft-text: #1E2432;
	--luft-text-leise: #5C667C;
	--luft-rot: #B3261E;
	--luft-gruen: #1E7B4F;
	--luft-gelb: #9A6B00;
	--luft-radius: 6px;
	--luft-schatten: 0 1px 2px rgba(30, 36, 50, .06), 0 4px 12px rgba(30, 36, 50, .05);
}

/* ---------- Schrift ---------- */

html body,
html body td,
html body th,
html body p,
html body div,
html body span,
html body li,
html body a {
	font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

html body {
	color: var(--luft-text);
	background: var(--luft-grund);
	font-size: 13px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	color: var(--luft-text);
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.25;
}

h1 { font-size: 20px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }

/* ---------- Verweise ---------- */

html body a {
	color: var(--luft-marke);
	text-decoration: none;
}

html body a:hover {
	color: var(--luft-marke-hell);
	text-decoration: underline;
}

/* Tastaturbedienung: vorher war ueberhaupt nicht zu sehen, wo man gerade ist. */
html body a:focus-visible,
html body button:focus-visible,
html body input:focus-visible,
html body select:focus-visible,
html body textarea:focus-visible {
	outline: 2px solid var(--luft-marke-hell);
	outline-offset: 1px;
	border-radius: 3px;
}

/* ---------- Eingabefelder ---------- */

html body input[type=text],
html body input[type=password],
html body input[type=date],
html body input[type=number],
html body input[type=email],
html body input[type=search],
html body select,
html body textarea {
	font-family: inherit;
	font-size: 13px;
	color: var(--luft-text);
	background: var(--luft-flaeche);
	border: 1px solid var(--luft-linie-kraeftig);
	border-radius: var(--luft-radius);
	/* Der seitliche Abstand bleibt absichtlich klein. Die Anwendung hat Felder
	   mit fest gesetzter Breite - das Rangfeld in der Todo-Liste ist 25 Pixel
	   breit - und rechnet mit box-sizing: border-box. Ein groesserer Abstand
	   frisst dort die Breite auf, dann steht im Feld "9" statt "99". */
	padding: 2px 3px;
	box-sizing: border-box;
	transition: border-color .12s ease, box-shadow .12s ease;
}

html body textarea {
	line-height: 1.5;
	padding: 5px 6px;
}

html body input[type=text]:hover,
html body input[type=date]:hover,
html body select:hover,
html body textarea:hover {
	border-color: var(--luft-marke-hell);
}

html body input[type=text]:focus,
html body input[type=password]:focus,
html body input[type=date]:focus,
html body select:focus,
html body textarea:focus {
	border-color: var(--luft-marke);
	box-shadow: 0 0 0 3px rgba(51, 63, 147, .13);
	outline: none;
}

html body input[disabled],
html body select[disabled],
html body textarea[disabled] {
	background: #F0F2F7;
	color: #97A0B4;
}

/* Die vom Skript erzeugte Kalenderauswahl - schmal halten, damit in den
   Tabellen nichts breiter wird als das Textfeld vorher war. */
html body input[type=date].datumsfeld {
	min-width: 8.5em;
	max-width: 11em;
}

html body input[type=date]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: .55;
	transition: opacity .12s ease;
}

html body input[type=date]:hover::-webkit-calendar-picker-indicator {
	opacity: 1;
}

/* ---------- Schaltflaechen ---------- */

html body input[type=submit],
html body input[type=button],
html body input[type=reset],
html body button {
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: #FFFFFF;
	background: var(--luft-marke);
	border: 1px solid var(--luft-marke);
	border-radius: var(--luft-radius);
	padding: 4px 12px;
	cursor: pointer;
	transition: background-color .12s ease, box-shadow .12s ease;
}

html body input[type=submit]:hover,
html body input[type=button]:hover,
html body input[type=reset]:hover,
html body button:hover {
	background: var(--luft-marke-hell);
	border-color: var(--luft-marke-hell);
	box-shadow: 0 1px 3px rgba(51, 63, 147, .3);
}

html body input[type=submit]:active,
html body input[type=button]:active,
html body button:active {
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2);
}

html body input[type=checkbox],
html body input[type=radio] {
	accent-color: var(--luft-marke);
	cursor: pointer;
	width: 14px;
	height: 14px;
}

/* ---------- Datentabellen ---------- */

/* Bewusst nur ueber die bekannten Klassen und Kennungen der Datentabellen.
   Eine Regel auf table/td wuerde auch die Layouttabellen treffen. */

html body .table_container {
	background: var(--luft-flaeche);
	border: 1px solid var(--luft-linie);
	border-radius: var(--luft-radius);
	box-shadow: var(--luft-schatten);
	overflow: hidden;
}

html body .table_head,
html body .table_head_2,
html body .table_head_links,
html body .table_head_rechts,
html body .table_head_rechts_v2,
html body .table_head_icon {
	background: var(--luft-marke-blass);
	color: var(--luft-marke);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .02em;
	border-bottom: 1px solid var(--luft-linie-kraeftig);
}

/* Bei langen Listen bleibt die Ueberschrift stehen. Die Todo-Liste hat
   ueber 500 Zeilen - vorher wusste man nach dem dritten Bildschirm nicht
   mehr, welche Spalte welche ist.

   Die Todo-Tabelle baut ihre Kopfzeile aus th-Zellen ohne Klasse und ohne
   thead, die Farbe steht direkt am tr. Ein festklebendes th zeichnet den
   Hintergrund der Zeile nicht mit, deshalb steht die Farbe hier noch einmal
   an der Zelle - sonst scrollt der Inhalt sichtbar durch die Ueberschrift. */
html body #thetodohover th {
	position: sticky;
	top: 0;
	z-index: 5;
	background-color: #AAC4FF;
}

html body .table_container .table_head {
	position: sticky;
	top: 0;
	z-index: 5;
}

html body #thetodohover tr:hover > td {
	background-color: var(--luft-marke-blass);
}

html body .table_inhalt {
	border-bottom: 1px solid var(--luft-linie);
}

/* ---------- Ampelfarben lesbarer ---------- */

html body .rot { color: var(--luft-rot); }
html body .gruen { color: var(--luft-gruen); }
html body .gelb { color: var(--luft-gelb); }

html body .bg_rot { background-color: #FCE9E7; }
html body .bg_gruen { background-color: #E7F5ED; }
html body .bg_gelb { background-color: #FCF3DF; }

/* ---------- Hauptnavigation ---------- */

html body .hauptnavigation {
	background: linear-gradient(180deg, #4657B5 0%, var(--luft-marke) 100%);
	box-shadow: 0 1px 4px rgba(30, 36, 50, .18);
}

html body a.navigation {
	border-radius: var(--luft-radius);
	padding: 4px 9px;
	/* Der negative Aussenabstand nimmt genau die Polsterbreite wieder zurueck.
	   Sonst waechst jeder Menuepunkt um 18px und der letzte Eintrag (Admin)
	   rutscht in eine zweite Zeile unterhalb der Leiste. */
	margin: 0 -9px;
	transition: background-color .12s ease;
}

html body a.navigation:hover {
	background: rgba(255, 255, 255, .16);
	text-decoration: none;
}

/* ---------- Reiter ---------- */

html body li.reiter_aktiv,
html body li.reiter_aktiv_rechts {
	background: var(--luft-flaeche);
	border-top-left-radius: var(--luft-radius);
	border-top-right-radius: var(--luft-radius);
	font-weight: 600;
}

html body li.reiter_inaktiv,
html body li.reiter_inaktiv_rechts {
	border-top-left-radius: var(--luft-radius);
	border-top-right-radius: var(--luft-radius);
	transition: background-color .12s ease;
}

html body li.reiter_inaktiv:hover,
html body li.reiter_inaktiv_rechts:hover {
	background: var(--luft-marke-blass);
}

/* ---------- Kleinigkeiten ---------- */

html body ::selection {
	background: rgba(51, 63, 147, .18);
}

html body hr {
	border: 0;
	border-top: 1px solid var(--luft-linie);
}

/* Der Zeiger soll zeigen, was anklickbar ist. */
html body .pointer,
html body [onclick] {
	cursor: pointer;
}

/* Bildlaufleisten in der Anwendungsfarbe statt Betriebssystemgrau. */
html body * {
	scrollbar-color: var(--luft-linie-kraeftig) transparent;
	scrollbar-width: thin;
}

html body ::-webkit-scrollbar {
	width: 11px;
	height: 11px;
}

html body ::-webkit-scrollbar-thumb {
	background: var(--luft-linie-kraeftig);
	border-radius: 6px;
	border: 3px solid transparent;
	background-clip: content-box;
}

html body ::-webkit-scrollbar-thumb:hover {
	background: #A9B3D0;
	background-clip: content-box;
}

html body ::-webkit-scrollbar-track {
	background: transparent;
}

/* ---------- Hinweis in der Spalte Tagesplan ---------- */

/* Gruen: der Schritt steht auf einem Plan, der heute oder spaeter liegt.
   Grau: auf keinem. Das Datum steht im Mouseover. */
html body .tagesplanmarke {
	font-size: 11px;
	line-height: 1;
	vertical-align: middle;
	cursor: help;
}

html body .tagesplanmarke_gesetzt { color: var(--luft-gruen); }
html body .tagesplanmarke_offen   { color: #C3CADB; }

/* Ein-Klick-Weg auf den Tagesplan, direkt in der Zeile. */
html body .tagesplan_schnell {
	display: inline-block;
	width: 15px;
	height: 15px;
	line-height: 14px;
	text-align: center;
	font-weight: 600;
	color: var(--luft-marke);
	border: 1px solid var(--luft-linie-kraeftig);
	border-radius: 3px;
	text-decoration: none;
	margin-left: 2px;
}

html body .tagesplan_schnell:hover {
	background: var(--luft-marke);
	color: #FFFFFF;
	border-color: var(--luft-marke);
	text-decoration: none;
}

html body .tagesplan_schnell_fertig {
	border-color: var(--luft-gruen);
	color: var(--luft-gruen);
}

html body .tagesplan_auswahl {
	display: inline-block;
	margin-left: 4px;
	white-space: nowrap;
}

html body .tagesplan_auswahl a {
	display: inline-block;
	padding: 1px 6px;
	margin-left: 2px;
	font-size: 11px;
	background: var(--luft-marke);
	color: #FFFFFF;
	border-radius: 3px;
	text-decoration: none;
}

html body .tagesplan_auswahl a:hover {
	background: var(--luft-marke-hell);
	color: #FFFFFF;
	text-decoration: none;
}
