/*
	Mobile Ansicht (bis 768 px Breite). Desktop bleibt unveraendert.
	Eingebunden aus views/www/layout_header.php. Bewusst nur reine Darstellung,
	keine Aenderung am Bestellvorgang.
*/

@media only screen and (max-width: 768px)
{
	/* Lesbarkeit und Bedienbarkeit */
	body
	{
		font-size   : 16px;
		line-height : 1.5;
		min-width   : 0;
		max-width   : 100%;
	}

	h1
	{
		font-size     : 22px;
		line-height   : 1.25;
		margin-bottom : 12px;
	}

	h2
	{
		font-size : 18px;
	}

	img
	{
		max-width : 100%;
		height    : auto;
	}

	/* Mindestens 44 px hohe Tipp-Flaechen */
	.header .topnavi ul li a,
	.main .navi ul li a,
	.startbutton,
	.header .wrapper .warenkorb,
	input[type="submit"],
	button
	{
		min-height : 44px;
		box-sizing : border-box;
	}

	.main .navi ul li a
	{
		padding-top    : 12px;
		padding-bottom : 12px;
		font-size      : 15px;
	}

	.header .topnavi ul
	{
		display         : flex;
		flex-wrap       : wrap;
		justify-content : center;
	}

	.header .topnavi ul li a
	{
		display   : block;
		padding   : 10px 8px;
		font-size : 14px;
	}

	/* Inhalt vor Menue: Die Seite beginnt mit dem Text, nicht mit der Navigation */
	.main
	{
		display        : flex;
		flex-direction : column;
		padding-top    : 12px;
		padding-bottom : 24px;
	}

	.main .content
	{
		order          : -1;
		padding-left   : 16px;
		padding-right  : 16px;
		padding-top    : 20px;
		min-height     : 0;
	}

	.main .navi
	{
		min-height  : 0;
		padding-top : 12px;
		margin-top  : 16px;
	}

	/* Adresse und Siegel mit etwas Abstand zum Rand */
	.main .navi .address,
	.main .navi .siegel
	{
		padding-left  : 12px;
		padding-right : 12px;
	}

	/* Vertrag-widerrufen-Knopf gut tippbar */
	.startbutton
	{
		font-size : 16px;
		padding   : 12px 8px;
	}

	/* Telefonnummer als Blickfang */
	.main .navi [style*="font-size: 24px"]
	{
		font-size : 22px;
	}

	/* Zu grosse feste Breiten auf dem Handy aufheben */
	.artikeltext
	{
		width : 100%;
	}

	.artikeldiv
	{
		padding : 8px;
	}

	.warenkorb-unten
	{
		width      : 100%;
		box-sizing : border-box;
	}
}

/* Ausklappbares Menue (ohne JavaScript): am Desktop unsichtbar */
.mnav-check,
.mnav-btn
{
	display : none;
}

@media only screen and (max-width: 768px)
{
	/* Farben wie die Desktop-Seite: Blau, Dunkelblau, Orange */
	body
	{
		background-color : #EEF3FA;
		color            : #000055;
	}

	.header,
	.main .navi ul li a
	{
		background-color : #0055AA;
	}

	.main .navi ul li a:hover,
	.main .navi ul li a.active
	{
		background-color : #F1A551;
		color            : #000055;
	}

	.main .content
	{
		background-color : #ffffff;
	}

	h1,
	h2
	{
		color : #000055;
	}

	.startbutton,
	.header .wrapper .warenkorb
	{
		background-color : #F1A551;
		color            : #000055;
	}

	/* Menue: zuerst nur der Knopf, Liste erst nach Klick */
	.mnav-btn
	{
		display          : block;
		min-height       : 48px;
		line-height      : 48px;
		padding          : 0 12px;
		margin           : 0 0 12px 0;
		background-color : #0055AA;
		color            : #ffffff;
		font-weight      : bold;
		text-align       : center;
		cursor           : pointer;
	}

	.mnav-check
	{
		display : none;
	}

	.mnav-check:not(:checked) ~ ul
	{
		display : none;
	}
}

/* Handy-Preiskarte auf den Produktseiten: am Desktop unsichtbar */
.mobile-preiskarte
{
	display : none;
}

@media only screen and (max-width: 768px)
{
	.mobile-preiskarte
	{
		display          : block;
		background-color : #ffffff;
		border           : 2px solid #0055AA;
		border-radius    : 8px;
		padding          : 14px;
		margin           : 0 0 20px 0;
	}

	.mobile-preiskarte .mp-preis
	{
		font-size   : 32px;
		font-weight : bold;
		color       : #000055;
	}

	.mobile-preiskarte .mp-hinweis
	{
		font-size : 14px;
		color     : #555555;
		margin    : 4px 0 10px 0;
	}

	.mobile-preiskarte .mp-liste
	{
		margin     : 0 0 14px 18px;
		padding    : 0;
		list-style : disc;
	}

	.mobile-preiskarte .mp-knopf,
	.mobile-preiskarte .mp-anruf
	{
		display         : block;
		min-height      : 48px;
		line-height     : 48px;
		text-align      : center;
		font-weight     : bold;
		border-radius   : 4px;
		text-decoration : none;
		margin-bottom   : 8px;
	}

	.mobile-preiskarte .mp-knopf
	{
		background-color : #F1A551;
		color            : #000055;
	}

	.mobile-preiskarte .mp-anruf
	{
		background-color : #0055AA;
		color            : #ffffff;
	}
}

/* Handy-Kacheln auf der Startseite: am Desktop unsichtbar */
.mobile-kacheln
{
	display : none;
}

@media only screen and (max-width: 768px)
{
	.mobile-kacheln
	{
		display : block;
		margin  : 0 0 24px 0;
	}

	.mobile-kacheln .mk-frage
	{
		font-size     : 18px;
		color         : #000055;
		margin        : 0 0 12px 0;
	}

	.mobile-kacheln .mk-kachel
	{
		display          : block;
		min-height       : 64px;
		padding          : 14px 16px;
		margin-bottom    : 10px;
		background-color : #0055AA;
		color            : #ffffff;
		border-radius    : 6px;
		text-decoration  : none;
	}

	.mobile-kacheln .mk-kachel span
	{
		display     : block;
		font-size   : 18px;
		font-weight : bold;
	}

	.mobile-kacheln .mk-kachel small
	{
		display   : block;
		font-size : 14px;
		color     : #EEF3FA;
	}

	.mobile-kacheln .mk-kachel:hover,
	.mobile-kacheln .mk-kachel:focus
	{
		background-color : #F1A551;
		color            : #000055;
	}

	.mobile-kacheln .mk-kachel:hover small,
	.mobile-kacheln .mk-kachel:focus small
	{
		color : #000055;
	}

	.mobile-kacheln .mk-vertrauen
	{
		display          : block;
		background-color : #EEF3FA;
		border-radius    : 6px;
		padding          : 12px 14px;
		font-size        : 15px;
	}

	.mobile-kacheln .mk-vertrauen div
	{
		padding : 4px 0;
	}
}

/* Mobile Kontaktleiste: am Desktop unsichtbar */
.mobile-kontaktleiste
{
	display : none;
}

@media only screen and (max-width: 768px)
{
	.mobile-kontaktleiste
	{
		display         : flex;
		position        : fixed;
		left            : 0;
		right           : 0;
		bottom          : 0;
		z-index         : 1000;
		background-color: #0055AA;
	}

	.mobile-kontaktleiste a
	{
		flex            : 1;
		min-height      : 52px;
		display         : flex;
		flex-direction  : column;
		align-items     : center;
		justify-content : center;
		color           : #ffffff;
		font-weight     : bold;
		font-size       : 15px;
		text-align      : center;
		text-decoration : none;
	}

	.mobile-kontaktleiste .mk-anruf
	{
		background-color : #F1A551;
		color            : #000055;
	}

	.mobile-kontaktleiste a span
	{
		font-size   : 12px;
		font-weight : normal;
	}

	/* Platz schaffen, damit die Leiste den Fussbereich nicht verdeckt */
	body
	{
		padding-bottom : 60px;
	}
}
