/* Fuge 0.3.4 · app.css. Kopie aus dem Fuge-Repository, Änderungen dort. Regeln: DESIGN.md.
   Profil App: scrollende Seite für Maus, Tastatur und Telefon. Nach base.css laden. */

body {
	line-height: 1.5;
}
.wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 24px 32px;
}
/* Karten füllen die Breite und brechen von selbst um. */
.grid {
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
/* Höchstens zwei Spalten, für Seiten mit wenigen breiten Karten. */
.grid.two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Nimmt die ganze Zeile, auch als Rahmen um eine Überschrift und ihre Karte. */
.grid > .wide {
	grid-column: 1 / -1;
}
/* Seitenleiste links, Inhalt rechts: <div class="shell"><nav class="nav">…</nav><main class="wrap">…</main></div>
   Unter 720 px wird die Leiste zur waagerechten Zeile über dem Inhalt. */
.shell {
	display: grid;
	grid-template-columns: 244px minmax(0, 1fr);
	min-height: 100dvh;
}
.shell > .nav {
	position: sticky;
	top: 0;
	align-self: start;
	max-height: 100dvh;
	overflow-y: auto;
	padding: 12px;
}
/* Mit seitlichem auto-Rand füllt ein Rasterelement seine Spalte nur mit eigener Breite. */
.shell > .wrap {
	width: 100%;
}
/* Kleine Knöpfe für Kopfzeilen und Werkzeugleisten. */
.btn.sm {
	height: 28px;
	padding: 0 10px;
	font-size: var(--fs-xs);
}
.icon-btn.sm {
	width: 28px;
	height: 28px;
}

@media (hover: hover) {
	a:hover {
		text-decoration: underline;
	}
	.btn:hover,
	.chip:hover,
	.icon-btn:hover,
	.segments > *:hover,
	.nav > a:hover,
	.nav > button:hover,
	a.list-row:hover,
	button.list-row:hover {
		box-shadow: inset 0 0 0 999px var(--press);
		text-decoration: none;
		transition-duration: 0s;
	}
	.btn.primary:hover {
		background: var(--text-press);
		box-shadow: none;
	}
	.btn.ghost:hover,
	.icon-btn:hover,
	.segments > *:hover,
	.nav > a:hover,
	.nav > button:hover {
		color: var(--text);
	}
}

@media (max-width: 720px) {
	.wrap {
		padding: 12px 16px 24px;
	}
	h1 {
		font-size: 24px;
	}
	.grid.two {
		grid-template-columns: minmax(0, 1fr);
	}
	/* Auf dem Telefon füllt die Navigation die Breite, statt überzulaufen. */
	.segments.full-phone {
		display: flex;
	}
	.segments.full-phone > * {
		flex: 1 1 auto;
		justify-content: center;
		padding: 0 6px;
	}
	.shell {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
	}
	.shell > .nav {
		position: static;
		flex-direction: row;
		gap: 4px;
		overflow-x: auto;
		padding: 8px 16px 0;
	}
	.shell > .nav > .nav-title {
		display: none;
	}
	.setting {
		flex-wrap: wrap;
	}
}
