@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900');

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
	display: grid;
	grid-template-columns: 7% 1fr 7%;
    grid-template-rows: auto 1fr auto;
    background-color: #FFF;    
    color: #000;
	font-family: 'Roboto Condensed', Arial, sans-serif;
    font-weight: 300;
	font-size: 100%;
	line-height: 120%;
}

body.raster {
    grid-template-columns: 0 1fr 0;
}

/* ========= S E I T E ========================================================================================== */

header {
	grid-column: 1 / -1;
	grid-row: 1 / 2;
    padding: 0 20px 0 7%;
    display: flex;
    flex-wrap: wrap;
}

header.raster {
    padding: 0;
}

#kopf {
	background-color: #666;
    color: #FFF;
    text-align: center;
	width: 100%;
	height: 80px;
    padding: 0;
    margin: 0;
}

nav.raster, .kopftext, main.raster {
    margin: 0 4% 0 4%;
}

main {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    min-height: 0;
    background-color: #F3F3F3;
}

main.raster {
    background-color: #FFF;
    align-self: start;
}

main.einzel a, main.einzel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

#vorh {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

#next {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

#vorh, #next {
    display: flex;
    margin: 0 10px 0 10px;
    align-self: center;
}

footer {
    grid-column: 1 / -1;
	grid-row: 3 / 4;
}

/* ========= P F E I L E ========================================================================================== */

#vorh a, #next a { 
    display: block;
    width: 100%; 
    max-width: 90px; 
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#vorh a {
    background-image: url('../_ii/pfeil-li-rgb100.svg');
}
#next a {
    background-image: url('../_ii/pfeil-re-rgb100.svg');
}

#vorh a:hover {
    background-image: url('../_ii/pfeil-li-rolli.svg');
}
#next a:hover {
    background-image: url('../_ii/pfeil-re-rolli.svg');
}

/* ------------------------------------------------------------- */
/* ========= Ü B E R S I C H T ========================================================================================== */

.matrix {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
}

.matrix figure {
    margin: 0;
    padding: 0;
}

/*.matrix figure:nth-of-type(4n+0) {
    padding: 0 0 5% 0;
}*/

.matrix figure img {
    width: 100%;           /* Füllt die Zelle horizontal aus */
    aspect-ratio: 1 / 1;   /* Erzwingt eine quadratische Form */
    object-fit: cover;     /* Füllt das Quadrat aus & schneidet den Rest ab (Zentrierung ist Standard) */
}

figcaption {
    padding: 5px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 400;
    color: #555;
}
/*
.umbruch {
	clear:both;
}
*/

/* ========= T Y P O ========================================================================================== */

a, a:visited {
    text-decoration: none;
    color: rgb(85, 107, 47);
}

a:hover {
	color: #adad25;
}

p {
    font-weight: 400;
}

.ausz-p {
    /*color: #000;*/
    font-weight: 600;
}

p.smart {
    display: none;
}

p.compi {
    display: block;
}

footer p {
    text-align: center;
    padding-top: 10px;
}

header p {
    padding: 0 2px 0;
}

/* ------------------------------------------------------------- */

h1 {
	line-height: 110%;
	margin: 25px 0 5px 0;
}

h2 {
    display: inline-block;
    min-width: 240px;
    text-align: center;
	font-weight: 400;
	font-size: 2em;
	margin: 10px 20px 0 0;
    padding: 12px 15px 10px 15px;
    border: solid 1px #b6b6b6;
    border-radius: 7px;
    color: #000;
    box-sizing: border-box;
}

h2:not(:has(a)) {
    border: none;
}

/* ----- Seitenanpassung ab 800 ---------------------------------------------------------*/

@media screen and (max-width:800px) {

.matrix {
    grid-template-columns: 1fr 1fr 1fr;
}

}

/* ----- Seitenanpassung smart ---------------------------------------------------------*/

@media screen and (max-width:520px) {
    
body {
	grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto 1fr auto6
    /*background-color: red !important;*/
}

header {
	padding: 0 10px 0 10px;
    margin: 0 0 10px 0;
}

#kopf {
    height: 50px;
}
              
.kopftext {
    margin-top: 10px;
}

nav {
    margin-bottom: 10px;   
}
    
#vorh {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    justify-content: flex-start;
}

main.einzel {
    grid-column: 1 / -1;
    grid-row: 3 / 4;
    min-height: 0;
}

main.einzel a, main.einzel img {
    width: 100%;
    height: auto;
}

.matrix {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#next {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    justify-content: flex-end;
}

footer {
    display: none;
	grid-row: 5 / 6;
}

/* ------------------------------------------------------------- */

#vorh a, #next a {
    width: 25%;
    max-width: 90px;
    height: auto;
}

/* ------------------------------------------------------------- */

p.smart {
    display: block;
    margin-bottom: 0;
}

p.compi {
    display: none;
}

h1 {
    margin-top: 10px
}
    
h2 {
	font-size: 1.2em;
	margin: 5px 10px 0 0;
    min-width: 170px;
    padding: 5px 5px 2px 5px;
}
    
h2:nth-of-type(2) {
    margin-right: 0;
}

header p {
    font-size: 0.9em;
    margin: 0;
}
    
}


/* ----- Seitenanpassung ab 400 ---------------------------------------------------------*/

@media screen and (max-width:400px) {

.matrix {
    grid-template-columns: 1fr;
}
    
#kopf {
    height: 90px;
}
  
}


/* === DEBUGGING-RAHMEN === */

/*main {
    outline: 5px solid blue;
}

#vorh {
    outline: 5px solid green;
}

#next {
    outline: 5px solid yellow;
}

footer {
    outline: 5px solid red;
}*/