/*
 * ASB-Sonneberg – Anpassungen gegenüber Twenty Eleven.
 * Wird nach dem Eltern-Stylesheet geladen (siehe functions.php).
 */

/* =Links
-------------------------------------------------------------- */

a {
	color: #cc000a;
}

/* =Menu
-------------------------------------------------------------- */

#access {
	background: #c80a14;
	transition: background .25s ease-in-out;
	box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 3px;
}
#access ul {
	opacity: 1;
}
#access a {
	color: #ffd813;
	font-weight: bold;
	font-size: 14px;
	line-height: 2.888em;
}
#access ul ul {
	box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.2);
	top: 2.888em;
	width: 220px;
}
#access ul ul a {
	background: #eee;
	width: 200px;
	transition: background .25s ease-in-out;
}
#access li:hover > a,
#access ul ul :hover > a,
#access a:focus {
	background: #ffd813;
	transition: background .25s ease-in-out;
}

/* Untermenüs weich ein- und ausblenden statt hart umschalten.
 * visibility statt display, weil display sich nicht animieren lässt. */
#access ul ul {
	display: block;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
#access ul li:hover > ul,
#access ul li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
/* Unter-Untermenüs gleiten von links herein. */
#access ul ul ul {
	transform: translateX(-8px);
}
@media (prefers-reduced-motion: reduce) {
	#access ul ul,
	#access ul ul ul {
		transform: none;
		transition: none;
	}
}

/* =Header
-------------------------------------------------------------- */

/* Ist der Header-Text ausgeblendet, wird auch keine Suche angezeigt. */
#branding .only-search {
	display: none;
}
/* Twenty Eleven hält sonst im Menü Platz für diese Suche frei. */
#branding .only-search + #access div {
	padding-right: 0;
}

/* =Content
-------------------------------------------------------------- */

.entry-title,
.entry-title a {
	color: #c80a14;
}
.entry-meta {
	display: none;
}
.singular.page .hentry {
	padding: 0;
}
.asb-posted-on {
	font-size: 11px;
}

/* Abstände und Navigation bei Einzelbeiträgen wie in Twenty Eleven 2.1. */
.singular .hentry {
	padding-top: 4.875em;
}
#nav-single {
	float: right;
	top: -0.3em;
	text-align: right;
}

/* =Sidebar
-------------------------------------------------------------- */

/* Rahmen um Bild-Widgets wie bisher (neuere Twenty-Eleven-Versionen entfernen ihn). */
.widget_media_image img {
	border: 1px solid #ddd;
	padding: 6px;
	max-width: 97.5%;
}

/* =Footer
-------------------------------------------------------------- */

#site-generator {
	line-height: 1.2em;
	padding: 1.2em 0.5em;
}

/* =Fehlerseite
-------------------------------------------------------------- */

.error404 .asb-error-title {
	font-size: 24px;
	font-weight: bold;
}
.error404 .asb-error-text {
	font-weight: bold;
	margin-bottom: 6em;
}
