/* Olaf Nachzucht - die Darstellung auf der Webseite.
 *
 * ECKIG, NICHT RUND.
 *
 * Gordon: "Es kann auch ein bisschen eckig und kantig bleiben. Da langt
 * das an Radien. Das muss nicht so doll sein wie bei mir und meiner
 * Mutter." Deshalb 4 Pixel statt 14 - genug, dass es nicht schneidet,
 * wenig genug, dass es sachlich bleibt.
 *
 * KEINE FESTEN FARBEN.
 *
 * Das Theme der Seite ist dunkel, kann sich aber aendern. Statt zu raten,
 * arbeitet alles hier mit einem durchsichtigen Neutralgrau und mit
 * currentColor: Auf Hell wird es dunkler, auf Dunkel heller - von selbst.
 * Dieselbe Loesung wie in den GLX-Count-Widgets, und aus demselben Grund.
 *
 * Nur zwei Farben stehen fest, weil sie etwas BEDEUTEN: Gruen fuer
 * abzugeben, gedaempft fuer abgegeben.
 */

.oln { margin: 2em 0; }

.oln-titel {
	margin: 0 0 .6em;
	font-size: 1.6em;
	line-height: 1.2;
}

.oln-hinweis {
	padding: 18px 20px;
	border: 1px solid rgba(127, 127, 127, .32);
	border-left: 3px solid currentColor;
	border-radius: 4px;
	background: rgba(127, 127, 127, .08);
	font-size: 1.05em;
}

/* ---- Die Liste ---- */

.oln-liste {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	margin: 1.2em 0;
}

.oln-karte {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(127, 127, 127, .32);
	border-radius: 4px;
	background: rgba(127, 127, 127, .07);
	overflow: hidden;
	transition: border-color .18s ease, transform .18s ease;
}
.oln-karte:hover {
	border-color: rgba(127, 127, 127, .55);
	transform: translateY(-2px);
}

/* Ein abgegebenes Tier steht noch da, tritt aber zurueck. Loeschen waere
   falsch: Wer Nachzuchten sucht, will sehen, was schon einmal da war. */
.oln-karte.ist-weg { opacity: .62; }

.oln-bild { line-height: 0; background: rgba(0, 0, 0, .25); }
.oln-bild img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.oln-inhalt { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }

.oln-name { margin: 0; font-size: 1.15em; line-height: 1.25; }
.oln-wiss { margin: 0; opacity: .75; font-size: .95em; }

.oln-daten {
	margin: 0;
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
	opacity: .85;
}

.oln-text { margin: 4px 0 0; line-height: 1.55; }

.oln-pflicht {
	margin: 4px 0 0;
	padding: 8px 10px;
	border-left: 2px solid rgba(127, 127, 127, .45);
	background: rgba(127, 127, 127, .07);
	font-size: .9em;
	opacity: .9;
}

.oln-fuss {
	margin: auto 0 0;
	padding-top: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.oln-marke {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 3px;
	font-size: .82em;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	background: rgba(31, 122, 51, .22);
	border: 1px solid rgba(31, 122, 51, .55);
	color: inherit;
}
.oln-marke-weg {
	background: rgba(127, 127, 127, .18);
	border-color: rgba(127, 127, 127, .45);
}

.oln-preis { font-weight: 700; font-variant-numeric: tabular-nums; }

.oln-zahlung,
.oln-eigen {
	margin: 1em 0 0;
	padding: 12px 14px;
	border: 1px solid rgba(127, 127, 127, .28);
	border-radius: 4px;
	background: rgba(127, 127, 127, .06);
	line-height: 1.55;
}

/* ---- Die Anfrage ---- */

.oln-anfrage {
	margin: 2em 0 0;
	padding: 20px 22px;
	border: 1px solid rgba(127, 127, 127, .32);
	border-radius: 4px;
	background: rgba(127, 127, 127, .07);
}
.oln-anfrage h3 { margin: 0 0 .6em; font-size: 1.25em; }
.oln-anfrage p { margin: 0 0 12px; }
.oln-anfrage label { display: block; margin-bottom: 4px; font-weight: 600; }

.oln-anfrage input[type="text"],
.oln-anfrage input[type="email"],
.oln-anfrage textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid rgba(127, 127, 127, .45);
	border-radius: 3px;
	background: rgba(255, 255, 255, .06);
	color: inherit;
	font: inherit;
}
.oln-anfrage input:focus,
.oln-anfrage textarea:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.oln-knopf {
	padding: 10px 22px;
	border: 1px solid currentColor;
	border-radius: 3px;
	background: rgba(127, 127, 127, .16);
	color: inherit;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease;
}
.oln-knopf:hover { background: rgba(127, 127, 127, .3); }

.oln-ok {
	padding: 10px 12px;
	border-left: 3px solid rgba(31, 122, 51, .8);
	background: rgba(31, 122, 51, .14);
}

/* Die Falle fuer Maschinen. Nicht display:none - manche Roboter fuellen
   gerade das aus, was versteckt ist, und erkennen den Trick daran. So
   steht es ausserhalb des Bildes, ohne dass die Seite scrollt. */
.oln-falle {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.oln-karte { transition: none; }
	.oln-karte:hover { transform: none; }
}

/* ---- Die Wege: Abholung, Vorkasse und so weiter ---- */

.oln-wege { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.oln-weg {
	display: inline-block;
	padding: 2px 7px;
	border: 1px solid rgba(127, 127, 127, .38);
	border-radius: 3px;
	font-size: .78em;
	opacity: .9;
}

/* ---- Die Statistik ---- */

.oln-stat { padding: 18px 20px; border: 1px solid rgba(127,127,127,.28);
	border-radius: 4px; background: rgba(127,127,127,.06); }
.oln-gross { margin: 0 0 12px; font-size: 1.15em; }
.oln-gross strong { font-size: 1.7em; vertical-align: -2px; }

.oln-balken { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; }
.oln-zeile { display: flex; align-items: center; gap: 10px; }
.oln-jahr { flex: 0 0 3.4em; font-variant-numeric: tabular-nums; opacity: .85; }
.oln-bar { flex: 1 1 auto; height: 12px; background: rgba(127,127,127,.16);
	border-radius: 2px; overflow: hidden; }
.oln-bar i { display: block; height: 100%; background: rgba(110, 154, 78, .75); }
.oln-n { flex: 0 0 2em; text-align: right; font-variant-numeric: tabular-nums;
	font-weight: 700; }

.oln-arten { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }

