/* Grundlayout fuer Kopf, Menue und Inhalt.
   Ersetzt das Basis-CSS, das frueher mit dem Template von einundzwanziggramm.de kam.
   Farben, Schriften und Abstaende stehen weiter in style.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; border: 0; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
ul.menu, ul#leistungen { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; text-align: left; }
hr { border: 0; height: 0; }
figure { margin-left: 0; margin-right: 0; }

/* Logo */
#logo h2 { margin-top: 0.6em; }
#logo:hover { text-decoration: none; }

/* Menue
   Mobil: aufklappbar ueber den runden MENU-Button (Checkbox, ohne JavaScript).
   Ab 640px: fest sichtbar als waagerechte Leiste, ohne Button. */
#header #menu { margin-top: 1.5em; margin-bottom: 0; }
#menuToggle { position: absolute; opacity: 0; pointer-events: none; }
#menuIcon {
	display: block;
	cursor: pointer;
	font-size: 0.8em;
	font-weight: bold;
	user-select: none;
}
#menuToggle:focus-visible + #menuIcon { outline: 2px solid #768187; outline-offset: 3px; }
#menu .menu { display: none; }
#menuToggle:checked ~ .menu { display: block; }
#menu .menu > li > a { display: block; }
#menu .menu > li > a.active { font-weight: bold; }

@media screen and (min-width: 640px){
	#header #menu { margin-top: 2em; }
	#menuIcon { display: none; }
	#menu .menu,
	#menuToggle:checked ~ .menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		margin-top: 0;
	}
	#menu .menu > li > a.active { color: #fff; background: #a3adb2; }
}

/* Buttons */
.button { display: inline-block; }
.button:hover { text-decoration: none; }

/* Listen im Inhalt mittig mit Aufzaehlungspunkt am Text */
#content ul:not(.menu):not(#leistungen) { list-style-position: inside; padding: 0; }

/* Icons der Leistungen halb ueber den Kasten schieben (top-Wert steht in style.css) */
#leistungen .icon.thumb { position: relative; }
