/* Wichteln – Maggan22
 * Schrift- und Linkfarben kommen aus dem Style, Flächen sind halbtransparent:
 * passt zu hellen und dunklen Styles. Anpassen z. B. in colours.css:
 * :root { --wichteln-akzent: #2e7d32; --wichteln-radius: 6px; }
 */
:root {
	--wichteln-akzent: #c62828;
	--wichteln-gruen: #2e7d32;
	--wichteln-radius: 10px;
	--wichteln-karte: 260px;
}

.wichteln-titel .icon, .wichteln-nav .icon, .wichteln-hinweis .icon { color: var(--wichteln-akzent); }
.wichteln-badge { background-color: var(--wichteln-akzent); color: #fff; }

.wichteln-hinweis {
	margin: 6px 0 8px;
	padding: 6px 10px;
	border-left: 4px solid var(--wichteln-akzent);
	border-radius: var(--wichteln-radius);
	background: rgba(198, 40, 40, 0.07);
}
.wichteln-hinweis p { margin: 2px 0; }

/* Übersicht */
.wichteln-karten {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--wichteln-karte)), 1fr));
	gap: 12px;
	margin-bottom: 12px;
}
a.wichteln-karte {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	border: 1px solid rgba(128, 128, 128, 0.35);
	border-top: 4px solid rgba(128, 128, 128, 0.5);
	border-radius: var(--wichteln-radius);
	background: rgba(128, 128, 128, 0.06);
	color: inherit;
	text-decoration: none;
	position: relative;
}
a.wichteln-karte:hover { background: rgba(128, 128, 128, 0.12); text-decoration: none; }
a.wichteln-karte.wichteln-phase-anmeldung { border-top-color: var(--wichteln-akzent); }
a.wichteln-karte.wichteln-phase-ausgelost { border-top-color: var(--wichteln-gruen); }
.wichteln-karte-titel { font-size: 1.25em; line-height: 1.3; }
.wichteln-karte-zeile { opacity: 0.85; }

.wichteln-status {
	display: inline-block;
	align-self: flex-start;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: bold;
	vertical-align: middle;
	background: rgba(128, 128, 128, 0.2);
}
.wichteln-status.wichteln-phase-anmeldung, .wichteln-phase-anmeldung > .wichteln-status { background: var(--wichteln-akzent); color: #fff; }
.wichteln-status.wichteln-phase-ausgelost, .wichteln-phase-ausgelost > .wichteln-status { background: var(--wichteln-gruen); color: #fff; }
.wichteln-dabei { position: absolute; top: 10px; right: 12px; color: var(--wichteln-gruen); font-weight: bold; font-size: 0.85rem; }

/* Aktion */
.wichteln-daten { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 8px; }
.wichteln-daten dt { font-weight: bold; }
.wichteln-daten dd { margin: 0; }
.wichteln-rest { color: var(--wichteln-akzent); }
.wichteln-klein { font-size: 0.92em; opacity: 0.85; }

.wichteln-ergebnis { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 10px; }
.wichteln-ergebnis > :only-child { grid-column: 1 / -1; }
.wichteln-box {
	padding: 12px 14px;
	border: 1px solid rgba(128, 128, 128, 0.35);
	border-radius: var(--wichteln-radius);
	background: rgba(128, 128, 128, 0.06);
}
.wichteln-box h3 { margin-top: 0; border: 0; text-transform: none; font-size: 1.15em; }
.wichteln-box-geheim { border: 2px dashed var(--wichteln-akzent); background: rgba(198, 40, 40, 0.05); }
.wichteln-adresse {
	font-style: normal;
	font-size: 1.1em;
	line-height: 1.5;
	padding: 8px 12px;
	margin: 8px 0;
	border-left: 4px solid var(--wichteln-akzent);
	background: rgba(128, 128, 128, 0.08);
	border-radius: 4px;
	display: inline-block;
	min-width: 220px;
}
.wichteln-wunsch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.wichteln-wunsch h4 { margin: 0 0 4px; font-size: 1em; }
.wichteln-wunsch-spalte p { margin: 0; white-space: normal; word-wrap: break-word; }
.wichteln-mag .icon { color: var(--wichteln-gruen); }
.wichteln-mag-nicht .icon { color: var(--wichteln-akzent); }
.wichteln-ok { color: var(--wichteln-gruen); font-weight: bold; }
.wichteln-paket-form { margin-top: 10px; }
.wichteln-paket-form p { margin: 0 0 6px; }

/* Formular */
.wichteln-formular fieldset { border: 0; margin: 10px 0; padding: 0; }
.wichteln-formular legend { font-weight: bold; font-size: 1.05em; margin-bottom: 4px; }
.wichteln-felder { display: grid; grid-template-columns: 9em 1fr; gap: 8px 10px; max-width: 640px; }
.wichteln-feld { display: flex; flex-direction: column; gap: 2px; }
.wichteln-feld > span { font-weight: bold; }
.wichteln-feld small { opacity: 0.75; }
.wichteln-breit { grid-column: 1 / -1; }
.wichteln-feld .inputbox { width: 100%; box-sizing: border-box; max-width: none; }
.wichteln-feld textarea.inputbox { resize: vertical; min-height: 6em; }
.wichteln-regeln { display: block; margin: 10px 0; }
.wichteln-knoepfe .button { margin-right: 6px; }

@media (max-width: 700px) {
	.wichteln-ergebnis, .wichteln-wunsch { grid-template-columns: 1fr; }
	.wichteln-felder { grid-template-columns: 7em 1fr; }
	.wichteln-adresse { display: block; min-width: 0; }
	.wichteln-dabei { position: static; }
}
