/* Dashboard – Aufbau wie data/dashboard.php der Filmliste (Kachelreihen mit großen Zahlen,
   Bezeichnung/Anzahl-Raster, Buchstabentabelle, Monatsraster), in den Farben der Bücherliste */

.dashboard {
	width: min(95%, 1200px) ;
	margin: 0 auto ;
	text-align: center ;
	letter-spacing: 0.15rem ;
}

.dashboard a {
	color: inherit ;
	text-decoration: none ;
}

.dashboard h2 {
	padding-top: 1.5rem ;
}

.hinweis {
	font-size: clamp(1rem, 1.8vw, 1.4rem) ;
	padding-bottom: 2rem ;
}

/* Kopfzeilen aller Tabellen: gleicher Verlauf wie der Tabellenkopf der Bücherliste */
.tdZahlenwerte,
.thABC,
.monat {
	background-image: linear-gradient(#2379df 2%, #1b6bcd, #012a81, #001047, #00082b) ;
	border-bottom: thin solid #eee ;
	font-style: italic ;
}

/* Kacheln mit Zahlenwerten ----------------------------------------------------------------- */
.Zahlenwerte {
	width: 100% ;
	margin: 0 auto 1.5rem ;
	border-spacing: 0 ;
	table-layout: fixed ;
	font-size: clamp(0.95rem, 1.6vw, 1.5rem) ;
}

.Zahlenwerte td {
	padding: 0.5rem 0.3rem ;
	vertical-align: middle ;
	overflow-wrap: break-word ;
}

.Zahlenwerte .tdZahlenwerte {
	padding: 0.4rem 0.3rem 0.25rem ;
}

.trZahlenwerte {
	background-color: var(--farbe-flaeche) ;
}

/* Beschriftungsspalte links (Bücher / Seiten) */
.width {
	width: 18% ;
}

.Namen {
	font-size: clamp(1.2rem, 2.4vw, 2rem) ;
	font-style: italic ;
}

/* Große Zahl in der Kachel */
.Anzahl {
	display: inline-block ;
	font-size: clamp(1.8rem, 4vw, 3.5rem) ;
	line-height: 1.1 ;
	color: #eee ;
	text-shadow: 2px 2px black ;
}

/* Farbcode: grün = vorhanden/gelesen, gelb = noch nicht (wie der Rahmen in der Kachelansicht), rot = gelöscht.
   Mit .dashboard davor, damit die Farbe auch auf den verlinkten Zahlen greift (".dashboard a" setzt sonst inherit) */
.dashboard .zahl-gruen {
	color: #1bc71b ;
}

.dashboard .zahl-gelb {
	color: #e6e63a ;
}

.dashboard .zahl-rot {
	color: #ff4040 ;
}

.dashboard .zahl-hardcover {
	color: #f0952a ;
}

.dashboard .zahl-softcover {
	color: #32bddd ;
}

.dashboard .zahl-grau {
	color: #a0a0a0 ;
}

.dashboard .zahl-lila {
	color: #cf9cff ;
}

.dashboard .zahl-rose {
	color: #f09a9a ;
}

.dashboard .zahl-lesen {
	color: #9fb4ff ;
}

.dashboard .zahl-kauf {
	color: #f2c94c ;
}

.dashboard .zahl-signiert {
	color: #ff8ad8 ;
}

/* Bezeichnung/Anzahl-Raster (Listenübersicht) -------------------------------------------------- */
.Paare {
	width: 100% ;
	margin: 0 auto 1.5rem ;
	border-spacing: 0 ;
	table-layout: fixed ;
	font-size: clamp(1rem, 1.8vw, 1.5rem) ;
}

.Paare td {
	padding: 0.4rem 0.3rem ;
	overflow-wrap: break-word ;
}

.leftG {
	width: 24% ;
	text-align: left ;
	border-bottom: solid 2px #2379df ;
}

.rightG {
	width: 9% ;
	text-align: right ;
	white-space: nowrap ;
	border-bottom: solid 2px #2379df ;
}

.leftG + .rightG {
	padding-right: 1.2rem ;
}

.leftG.leer,
.rightG.leer {
	border-bottom: none ;
}

/* Buchstabentabelle ------------------------------------------------------------------------- */
#ABC {
	width: 100% ;
	margin: 0 auto 1.5rem ;
	border-spacing: 0 ;
	table-layout: fixed ;
	font-size: clamp(0.95rem, 1.6vw, 1.5rem) ;
}

#ABC td {
	padding: 0.35rem 0.2rem ;
}

.tdABC {
	padding-bottom: 1.2rem !important ;
	font-size: clamp(1.1rem, 2vw, 1.8rem) ;
}

/* Monatsraster: Gelesen (Bücher/Seiten) und Gekauft (Bücher/Betrag) pro Jahr ------------------------ */
.tabellenScroll {
	width: 100% ;
	overflow-x: auto ;
	margin-bottom: 1.5rem ;
}

.Monatsraster {
	width: 100% ;
	border-spacing: 0 ;
	table-layout: fixed ;
	font-size: clamp(0.85rem, 1.5vw, 1.4rem) ;
}

.Monatsraster td {
	padding: 0.35rem 0.15rem ;
	overflow-wrap: break-word ;
}

.Monatsraster .zeilenLabel {
	width: 10% ;
	text-align: left ;
	padding-left: 0.5rem ;
	font-style: italic ;
}

.jahreszahl {
	background-color: var(--farbe-flaeche-alt) ;
	border-top: thin solid #eee ;
	font-size: clamp(1.1rem, 2.2vw, 1.9rem) ;
	padding: 0.5rem 0.3rem !important ;
}

.Monatsraster .farbe {
	background-color: var(--farbe-flaeche) ;
}

/* Detailseite (dashBuecher.php): Überschrift, Anzahl und Dashboard-Button über der Buchtabelle ------ */
.dashKopf {
	text-align: center ;
	margin: 0 auto 0.5rem ;
	padding: 0 1rem ;
}

.dashKopf h2 {
	padding-bottom: 0.3rem ;
}

.dashAnzahl {
	font-size: clamp(1rem, 2vw, 1.5rem) ;
	text-shadow: 3px 3px black ;
}

/* Wie der Button "Ansicht ändern" der Bücherliste */
.dashButton {
	display: inline-block ;
	margin-top: 0.8rem ;
	padding: 0.3rem 2rem ;
	border: solid 1px #ffffff ;
	border-radius: 0.5rem ;
	background-image: linear-gradient(#2379df 2%, #1b6bcd, #012a81, #001047, #00082b) ;
	color: white ;
	text-decoration: none ;
	font-family: Text, Arial, Verdana ;
	letter-spacing: 0.15rem ;
	font-size: clamp(1rem, 2vw, 1.3rem) ;
}

/* Zusätzliche Spalten der Detailtabelle (die Standardspalten kommen aus buecherListe.css) */
#datumSpalte,
#standSpalte,
#vonBisSpalte {
	width: 14% ;
}

#preisSpalte {
	width: 11% ;
}

#signaturSpalte {
	width: 14% ;
}

#kaufortSpalte {
	width: 20% ;
}

#bandSpalte {
	width: 8% ;
}

/* Handy --------------------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.dashboard {
		width: calc(100% - 2rem) ;
		letter-spacing: 0.05rem ;
	}

	.Zahlenwerte,
	.Paare,
	#ABC {
		font-size: 0.8rem ;
	}

	.Anzahl {
		font-size: 1.6rem ;
	}

	.Namen {
		font-size: 1rem ;
	}

	.tdABC {
		font-size: 1rem ;
	}

	/* Drei Paare pro Zeile bleiben; Zahlenspalte breit genug für dreistellige Werte */
	.Paare td {
		padding: 0.3rem 0.15rem ;
	}

	.leftG {
		width: 19% ;
	}

	.rightG {
		width: 14% ;
	}

	.leftG + .rightG {
		padding-right: 0.5rem ;
	}

	/* 13 Spalten passen nicht auf ein Handy – die Tabelle wird seitlich scrollbar */
	.Monatsraster {
		min-width: 40rem ;
		font-size: 0.8rem ;
	}

	.jahreszahl {
		font-size: 1rem ;
	}
}
