/* =========
   GRID: Wrapper
   ========= */
.numberwrapper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 10px;
	align-items: stretch; /* alle Grid-Items gleiche Zellhöhe in der Reihe */
	margin-bottom: 10px;
}

/* =========
   KARTEN (= .numberbox)
   Flex-Layout: oben Titel/Bild/Text (natürlich hoch), unten 3 Nummer-Boxen
   ========= */
.numberwrapper > div.numberbox {
	/* Kartenstil */
	padding: 0 15px 10px 15px;
	border: 1px solid #dfdfdf;
	background-color: #fafafa;
	border-radius: 2%;
	transition: background-color 250ms, border 250ms ease-out;

	/* Layout */
	display: flex;
	flex-direction: column;
	height: 100%; /* füllt die Grid-Zelle vollständig */
}

.numberwrapper > div.numberbox:hover {
	border: 1px solid #d5d5b4;
	background-color: #fffff0;
}

/* Titel / Bild */
.numberbox a.title,
.numberbox a.title:link,
.numberbox span.title {
	display: block;
	position: relative;
	font-family: "Open Sans Condensed", sans-serif;
	font-weight: bold;
	font-size: 1.4em;
	text-align: center;
	margin: 0;
	padding: 5px 0;
	color: #990033;
	text-decoration: none;
}

.numberbox > a:nth-of-type(2) { /* Bild-Link als Block */
	display: block;
}

.numberbox img {
	width: 100%;
	height: auto;
	position: relative;
	z-index: 1;
	margin-bottom: 10px;
}

.numberbox span.desc {
	display: block;
	margin: 0 0 15px 0;
	font-size: 0.85em;
	line-height: 1.5em;
	text-align: justify;
}

.numberbox .number_de,
.numberbox .number_at,
.numberbox .number_ch {
	position: relative;
	padding: 10px 5px;
	margin-bottom: 5px;
	text-align: center;
	border-radius: 5px;
	text-shadow: 1px 1px 3px #000;
	box-shadow: 1px 1px 8px rgba(153, 0, 51, 0.6);
	color: #dadada;
	background-color: #333;
	border: 1px solid #111;
	z-index: 2;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	min-height: 72px;     /* je nach Geschmack z. B. 64–84px */
	margin-top: auto;  /* bei Bedarf 64–84px justieren */
	/* KEIN height:100%; damit kein Leerraum erzwungen wird */
}

/* Typo innerhalb der Nummer-Boxen */
.numberbox > div .number {
	display: block;
	color: #fff;
	font-weight: bold;
	font-size: 1.6em;
	margin: 0;
}

.numberbox > div .handy_de {
	font-size: 1.1em;
	display: block;
	margin: 0;
	margin-top: 5px;
}

.numberbox > div.number_ch .number span {
	color: #dadada;
	font-weight: normal;
	font-size: .8em;
}

.numberbox span sup,
.numberbox div sup,
.bottompreis sup {
	font-size: 9px !important;
	font-weight: normal !important;
	position: relative;
	line-height: 0;
	margin: 0;
	top: -10px;
	text-shadow: none;
}

.numberbox > div .handy_de sup { top: -5px; }

.numberbox span sup,
.numberbox div sup { padding: 0 0 0 2px; color: #aaa; }

.bottompreis sup { padding: 0 2px 0 0; color: #777; }

.numberbox > div span.flag_de { background-image: url('/bilder/flags/ribbon-de.png'); }
.numberbox > div span.flag_at { background-image: url('/bilder/flags/ribbon-at.png'); }
.numberbox > div span.flag_ch { background-image: url('/bilder/flags/ribbon-ch.png'); }

.numberbox > div span.flag_de,
.numberbox > div span.flag_at,
.numberbox > div span.flag_ch {
	display: block;
	position: absolute;
	padding: 0;
	margin: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 5;
	width: 28px;
	height: 28px;
	top: -4px;
	left: -4px;
}

.numberbox > div b { color: #fff; }

.numberbox > div a,
.numberbox > div a:link {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: #990033;
	text-decoration-style: dashed;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.numberbox > div a:hover { text-decoration: none; }

.bottompreis { text-align: right; }
.bottompreis div { display: inline-block; margin-left: 10px; }

/* =========
   Responsive
   ========= */
@media only screen and (max-width: 1169px) {
	.numberwrapper { grid-template-columns: repeat(3, 1fr); }
}
@media only screen and (max-width: 960px) {
	.numberwrapper { grid-template-columns: repeat(3, 1fr); }
	.numberbox > div .number { font-size: 1.2em; }
	.numberbox > div .handy_de { font-size: .95em; }
}
@media only screen and (max-width: 767px) {
	.numberwrapper { grid-template-columns: repeat(2, 1fr); }
	.numberbox span.desc { font-size: .95em; }
}
@media only screen and (max-width: 480px) {
	.numberwrapper { grid-template-columns: repeat(1, 1fr); }
	.numberbox > div .number { font-size: 1.6em; }
	.numberbox > div .handy_de { font-size: 1.1em; margin-top: 5px; }
	.numberbox > div span.flag_de,
	.numberbox > div span.flag_at,
	.numberbox > div span.flag_ch {
		width: 38px;
		height: 38px;
		top: -5px;
		left: -5px;
	}
	/* etwas kleinere Mindesthöhe auf Mobile möglich */
	.numberbox .number_de,
	.numberbox .number_at,
	.numberbox .number_ch { min-height: 64px; }
}
