/*** UNIVERSAL ***/

:root {
	--color-pri: #e2e2e2;				/* grau */
	--color-sec: #f7f5e7;				/* beige */
	--color-acc: #93c11c;				/* grün */
}
* {
	box-sizing: border-box;
	font-family: arial,sans-serif;
	color: dimgray;
}
p {
	margin: 0;
	padding: 0;
	line-height: 1.5;
}
button {								/* .CARD und .CLOSE */
	padding: 0;
	border: none;
	background-color: transparent;
	font-size: 1rem;
	cursor: pointer;
}
:focus-visible {
	outline: 3px solid var(--color-acc);
	outline-offset: 3px;
}



/*** WRAPPER ***/

html {
	scrollbar-gutter: stable both-edges;
}
body {
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 45px 30px 45px 30px;
	background-color: var(--color-pri);
}
.WRAPPER {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 45px;
	height: auto;
	width: 100%;
	max-width: 1020px;
}



/*** HEADER ***/

header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 45px;
}
header img {
	height: 60px;
	width: auto;
}
header h1 {
	margin: 0;
	font-size: 1.8rem;
	font-weight: normal;
}



/*** CARDS (BILD + BESCHRIFTUNG + PFEIL) ***/

.CARD-BOX {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	height: auto;
	width: 100%;						/* von .WRAPPER */
}
.CARD {
	display: flex;
	flex-direction: column;
	height: 180px;
	width: 180px;
	border-radius: 15px;
	overflow: hidden;
	background-color: var(--color-sec);
	box-shadow: 0 6px 9px rgba(0,0,0,0.1);
	text-decoration: none;
}
.CARD:active,
.CARD:hover,
.CARD:focus-visible,
.CARD[aria-expanded='true'] {
	box-shadow: 0 9px 18px rgba(0,0,0,0.2);
}
.CARD:active > img,
.CARD:hover > img,
.CARD:focus-visible > img,
.CARD[aria-expanded='true'] > img {
	opacity: 1;
}
.CARD:active > span,
.CARD:hover > span,
.CARD:focus-visible > span,
.CARD[aria-expanded='true'] > span {
	color: black;
}

.CARD img {
	height: 120px;
	width: 100%;
	flex-shrink: 0;
	object-fit: cover;
	object-position: center;
	border-bottom: 3px solid var(--color-acc);
	opacity: 0.9;
}
.CARD span {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	height: 100%;
	width: 100%;
}



/*** CARDS (PFEILE) ***/

.LINK::after {
	content: '↗';
	margin-left: 6px;
	color: var(--color-acc);
}
.CARD:active .LINK::after,
.CARD:hover .LINK::after,
.CARD:focus-visible .LINK::after {
	color: black;
}



/*** PANEL ***/

.PANEL-BOX {
	display: none;
	width: 100%;						/* von .WRAPPER */
	padding: 30px 45px;
	border-radius: 15px;
	background-color: var(--color-sec);
	box-shadow: 0 6px 9px rgba(0,0,0,0.1);
	overflow: hidden;
	scroll-margin-top: 20px;			/* für Scroll-Funktion */
}
.PANEL-BOX.open {
	display: block;
}



/*** PANEL (HEADER) ***/

.PANEL-HEADER {
	display: flex;
	justify-content: space-between;
}
.PANEL-HEADER h2 {
	margin: 0;
	font-size: 1.2rem;
	font-weight: normal;
	color: black;
}
.PANEL-HEADER svg {
	height: 24px;
	width: 24px;
}
.PANEL-HEADER button {
	display: flex;
	border-radius: 5px;
}
.PANEL-HEADER button:active svg,
.PANEL-HEADER button:hover svg,
.PANEL-HEADER button:focus-visible svg {
	stroke: black;	
	stroke-width: 3;
}



/*** PANEL (LISTE + PFEIL) ***/

.PANEL-LIST {
	display: flex;
	flex-direction: column;
	list-style: none;
	margin: 0;
	padding: 0;
}
.PANEL-LIST li {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid var(--color-pri);
}
.PANEL-LIST a {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
	border-radius: 5px;
	line-height: 1.5;
	text-decoration: none;
}
.PANEL-LIST a:active,
.PANEL-LIST a:hover,
.PANEL-LIST a:focus-visible {
	color: black;
}
.PANEL-LIST a[data-type]::after {
	flex-shrink: 0;
	content: attr(data-type);
	font-size: 0.8rem;
	font-weight: bold;
	color: var(--color-acc);
}
.PANEL-LIST a[data-type]:active::after,
.PANEL-LIST a[data-type]:hover::after,
.PANEL-LIST a[data-type]:focus-visible::after {
	color: black;
}
.PANEL-LIST img {
	height: 180px;
	width: auto;
	margin-top: 15px;
	border-radius: 15px;
}
.PANEL-LIST p a {					/* Links ohne Zeilenumbrüche */
	display: inline;
	color: var(--color-acc);
}



/*** FOOTER ***/

footer {
	display: flex;
	flex-direction: row;
	gap: 30px;
}
footer a,
footer button {
	border-radius: 5px;
	font-size: inherit;
	text-decoration: none;
}
footer a:active,
footer a:hover,
footer a:focus-visible,
footer button:active,
footer button:hover,
footer button:focus-visible,
footer button[aria-expanded='true'] {
	color: black;
}
