@charset "UTF-8";
/* CSS Document */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

/*CSS Variablen */
        :root {
            /*Farbdefinitionen gesamte Website*/
            --background_dunkel:rgba(0,0,0,1.00);
			--background_hell:rgba(255,255,255,1.00);
			--schrift_dunkel:rgba(0,0,0,1.00);
			--schrift_hell:rgba(255,255,255,1.00);
			--background_titel:rgba(0,0,0,1.00);
			--background_icon:rgba(205,205,205,1.00);
			--grau:rgba(97,97,97,1.00);
			--gold:rgba(243,201,86,1.00);
			
			/*Effekte*/
			--transition_in:all ease-in-out 0.3s;
            --transition_out:all ease-in-out 0.5s;
			
			/*Elemente*/
			--border_radius:0.25rem;
        }

/* CSS Reset */
 *{
            padding:0;
            margin:0;
            box-sizing:border-box;
        }


/* ======== Allgemeine HTML-Elemente ========*/
body {
	font-family: "Crimson Text", "serif";
	font-weight: 400;
	background-color: var(--background_dunkel);
	margin:0;
}

html, body {
            scroll-behavior: smooth;
        }

img {
	width:100%;
}

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

header {
    position: relative; /* WICHTIG: Der Anker für das Dropdown */
    width:90%;
	max-width: 1600px;
    margin: 0 auto;

}

header img {
	width: 10%;
	display: block;
	margin: 0 auto;
}

.header_bild {
	margin-top:1rem;
}

nav {
	background-color: var(--background_hell);
	margin:1rem 0;
	height: 3rem;
	text-align: center;
	align-items: center;
	display:flex;
	flex-wrap:wrap;
	flex-direction:row;
}

nav ul {
	display:flex;
	flex-wrap:wrap;
	flex-direction:row;
	margin: 0 auto;
	gap: 3rem;

}

nav li {
	list-style-type:none;
}

nav li a {
	color:var(--schrift_dunkel);
	text-decoration:none;
}

nav li a:hover {
	text-decoration:underline;
}


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

footer {
	background-color: var(--background_hell);
	margin:1rem auto;
	max-width: 1600px;
	height: 3rem;
	text-align: center;
	align-items: center;
	display:flex;
	flex-wrap:wrap;
	flex-direction:row;	
}

footer p {
	margin: 0 auto;
}

footer a {
	color:var(--schrift_dunkel);
	text-decoration:none;
}

/* ======== Typografie ======== */

h1, h2, h3 {
	font-weight: 600;
}

h1 {
	color:var(--schrift_hell);
}

h2 {
	color:var(--schrift_hell);
}

/* ======== Hauptcontainer ======== */

main {
	width: 90%;
	display:flex;
	flex-direction:row;
	gap:1rem;
	margin:1rem auto;
	max-width: 1600px;
}

#totop {
	background:var(--background_dunkel);
	padding:0.5rem;
	right:1rem;
	bottom:1rem;
	position:fixed;
	transition:var(--transition_out);
	z-index:555;
	opacity:0;
}

#totop a {
	color:white;
	text-decoration:none;
	font-size: 2rem;
}

#totop:hover {
    background:none;
    transition:var(--transition_in);
}

#totop:hover a {
	color:var(--schrift_dunkel);
}

/* ======== Klassen ========*/

.umbruch {
	display:none;
}

.content {
	width: 80%;
	background-color: var(--background_dunkel);
	display: grid;
	row-gap: 1rem;
	align-self: flex-start;

}

/* ======== Multifilter-System ========*/

.filter {
	background-color: var(--background_hell);
	padding-left: 2rem;
	height: 3rem;
	align-items:center;
	justify-content:space-between;
	display:flex;
	flex-wrap:wrap;
	flex-direction:row;
}

.filter_absenden {
	margin:0 3rem;
	cursor:pointer;
}

.filter ul {
	display:flex;
	flex-wrap:wrap;
	flex-direction:row;
	gap:2rem;
}

.filter ul li {
	list-style-type:none;
}

.filter select {
	border: none;
	font-family: "Crimson Text", "serif";
	font-weight: 400;
	margin: 0 0.5rem;
}

.filter select:first-of-type {
	margin-left: 0;
}

.filter input[type=submit] {
	font-family: "Crimson Text", "serif";
	font-weight: 400;
	background-color:var(--background_hell);
	border: 1px solid black;
	border-radius: var(--border_radius);
	padding: 0 0.5rem 0 0.5rem;
	margin: 0 0.5rem;
	cursor:pointer;
}

.filter label {
	font-family: "Crimson Text", "serif";
	font-weight: 400;
	padding: 0 0.5rem 0 0.5rem;
	font-size:0.9rem;
	}

.filter button {
	margin: 0 0.5rem;
	border: 1px solid black;
	border-radius: 3px;
	background-color:var(--background_hell);
}

.filter button a {
	font-family: "Crimson Text", "serif";
	font-weight: 400;
	padding: 0 0.5rem 0 0.5rem;
	color:var(--schrift_dunkel);
	text-decoration:none;
}

.filter select {
	cursor: pointer;
}

.sort {
	color: var(--schrift_hell);
	margin-bottom:-0.75rem;
	font-size:0.9rem;
}

.sort input[type=radio] {
	display: none;
}

.sort label {
	cursor: pointer;
}

.produkt {
	background-color: var(--background_hell);
}

.produkt h2 {
	background-color: var(--background_titel);
	margin: 0.5rem 0 1rem 0;
	padding-left: 0.5rem;
}

.produkt p {

}

.icon {
	background-color: var(--background_icon);
	border:0.5px solid black;
	height:3rem;
	width:2rem;
	display: flex;
	flex-direction: column;
    justify-content: center;
    align-items: center;
}

.icon img {
	width: 85%;
}

.icon h4 {
	padding: 0.2rem 0 0 0;
}

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

.menu {
	flex: 20%;
	background-color: var(--background_hell);
	align-self:flex-start;
}

.menu h3 {
	background-color: var(--background_titel);
	color: var(--schrift_hell);
	margin: 1rem 1rem 1rem 0;
	padding: 0.25rem 0 0.25rem 1rem;
}

.menu ul li {
	list-style-type: none;
}

.menu li a {
	color:var(--schrift_dunkel);
	text-decoration:none;
}

#menu-toggle i {
	display: none;
	float: right;
	margin-right: 1rem;
}

.hauptmenu {
	padding:0 1rem;
}

.submenu {
	padding:0 1rem 0 1.5rem;
	font-size: 0.9rem;
}

.submenu li {
	padding-top: 0.25rem;
}

.hauptmenu ul {
	padding-bottom:1rem;
}

/* ======== Suchfunktion ========*/

#search-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--background_hell);
    padding: 20px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
}

#search-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#search-dropdown input {
    width: 60%;
    padding: 10px;
    font-size: 1.1em;
    border: var(--background_dunkel);
}

#search-dropdown input:focus, 
#search-dropdown input:active {
    outline: none !important;
    border: var(--background_dunkel);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2) !important;
}

#search-dropdown button {
    padding: 10px 20px;
    background: var(--background_dunkel);
    color: var(--schrift_hell);
    border: none;
    border-radius: var(--border_radius);
    cursor: pointer;
}

/* Suchresultate farbig hervorheben*/
mark.highlight {
    background-color: var(--gold);
    color: black;
    padding: 0 2px;
    border-radius: 2px;
    display: inline-block; /* Verhindert, dass es als reines Inline-Element komisch bricht */
    line-height: 1; /* Verhindert, dass die Zeilenhöhe der Überschrift explodiert */
}


/* ======== Grid für Produktkarte ========*/

.grid {
	display: grid;
	grid-template-columns: 1rem 1fr 2fr 10fr 7fr;
	gap: 0 1rem;
	grid-template-areas:
		"pad kategorie kategorie kategorie kategorie"
		"pad titel titel titel titel"
		"pad nummer icons anzahl_standort bild"
		"pad nummer icons beschreibung bild";
	padding: 1rem 0;
}

.grid_pad {
	grid-area: pad;
}

.grid_kategorie {
	grid-area:kategorie;
	
}

.grid_titel {
	grid-area:titel;
	display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid_titel a {
	color:var(--schrift_hell);
	text-decoration:none;
}

.grid_nummer {
	grid-area:nummer;
	font-size: 1.5rem;
}

.grid_icons {
	grid-area:icons;
	display: flex;
	flex-direction:row;
	flex-wrap:wrap;
	gap: 0.2rem;
	align-content: flex-start;
}

.grid_anzahl_standort {
	grid-area:anzahl_standort;
	padding-bottom:1rem;
}

.grid_beschreibung {
	grid-area:beschreibung;
	column-count: 3;
    column-gap: 1rem;
	font-size:0.9rem;
	align-content: flex-start;
}

.grid_bild {
	grid-area:bild;
	overflow:hidden;
	aspect-ratio:4/3;
}

.fa-file-pdf {
	padding-right:1rem;
	font-size:1.2rem;
}

/* ======== Admin-Funktionen ========*/

.admin-nav {
	margin: 20px 0; 
	text-align: right;
}

.add-new {
	background: var(--gold); 
	color: var(--schrift_dunkel); 
	padding: 0.7rem 1rem; 
	text-decoration: none; 
	border-radius: var(--border_radius);
}

.add-new:hover {
	text-decoration:underline;
}

.logout {
	margin-left: 0.5rem;;
	color: var(--grau); 
	font-size: 0.8em;
}

.admin-tools {
	margin-left:2rem;
	font-size:0.8rem;
}

.admin-tools a {
	color: var(--grau);
	text-decoration:none;
}

.admin-tools a:hover {
	text-decoration:underline;
}

.login {
	text-align: center;
	width:100%;
	margin:2rem 0;
}

.login h1 {
	padding-bottom:1rem;
}

.login-fehler {
	color:red;
}

.login button[type=submit] {
	font-family: "Crimson Text", "serif";
	font-weight: 400;
	background-color:var(--background_hell);
	border: 1px solid black;
	border-radius: var(--border_radius);
	padding: 0 0.5rem 0 0.5rem;
	margin: 0 0.5rem;
}

/* ==============================================================*/
/* ======== Formulare ========*/
/* ==============================================================*/

.formular {
	width: 90%;
	margin:1rem auto;
	max-width: 1600px;
}

.formular h2 {
	color:var(--schrift_dunkel);
	margin: 1rem 0;
}

.formular h1 {
	text-align:center;
}

.artikel_erfassen {
	max-width: 800px;
	margin: 20px auto;
	padding: 20px;
	background-color:var(--background_hell);
	color:var(--schrift_dunkel);
}

.row {
	display: flex;
	flex-wrap:wrap;
	flex-direction:row;
	gap: 1rem; 
	margin-bottom: 1rem;
}
        
.col {
	flex: 1;
}
        
.artikel_erfassen label {
	font-weight: bold;
	display: block;
	margin-bottom: 5px;
}
        
.artikel_erfassen input[type="text"], .artikel_erfassen input[type="number"], .artikel_erfassen select, .artikel_erfassen textarea {
	width: 100%; 
	padding: 8px; 
	box-sizing: border-box;
	font-family:"Crimson Text", "serif"; 
}

.bildtypen {
	font-size: 0.8em;
	color: gray;
}

.vorschaubild {
	max-width: 200px;
	display: block;
	margin-bottom: 10px;
}

.submit_button {
	margin-top: 30px; 
	padding-top: 20px; 
	border-top: 1px solid #eee;
	position:relative;
}

.submit_button a {
	margin-left: 1rem;
	color: var(--grau);
}

.artikel_erfassen input[type="submit"] {
	background: var(--gold); 
	color: var(--schrift_dunkel);
	font-family:"Crimson Text", "serif";
	font-size:1rem;
	padding: 0.7rem 1rem;
	margin-bottom:1rem;
	text-decoration: none;
	border:none;
	border-radius: var(--border_radius);
	cursor: pointer;
}

.artikel_erfassen input[type="submit"]:hover {
	text-decoration:underline
}

.loeschen_button {
	position:absolute;
	right:0rem;
	color: rgba(188,0,3,1.00)!important;
	text-decoration: none;
	padding: 10px;
}

.loeschen_button:hover {
	text-decoration:underline;
}

.angaben_gespeichert {
	background: #d4edda;
	color: #155724;
	padding: 1rem;
	margin-bottom: 1rem;
	border-radius: var(--border_radius);
}

textarea {
	height:10rem;
}

/* Login Formular */

.login_formular {
	max-width: 800px;
	margin: 20px auto;
	padding: 20px;
	background-color:var(--background_hell);
	color:var(--schrift_dunkel);
}

.login_formular input[type="text"], .login_formular input[type="password"] {
	width: 40%; 
	padding: 8px; 
	box-sizing: border-box;
	font-family:"Crimson Text", "serif"; 
}

.login_formular button[type="submit"] {
	background: var(--gold); 
	color: var(--schrift_dunkel);
	font-family:"Crimson Text", "serif";
	font-size:0.8rem;
	padding: 0.7rem 1rem;
	margin-bottom:1rem;
	text-decoration: none;
	border:none;
	border-radius: var(--border_radius);
	cursor: pointer;
}

.login_formular button[type="submit"]:hover {
	text-decoration:underline;
}


/*Honeypot im Kontaktformular für Spamschutz*/
.hp-feld {
    display: none;
    visibility: hidden;
}


/* =============================================== */
/* Breakpoints für verschiedene Bildschirmbreiten */
/* =============================================== */

/* ======== Bildschirmbreite unter 1400px ======== */
@media screen and (max-width: 1400px) {
    
    body {
        
    }
    
    .grid {
        display: grid;
        grid-template-columns: 1rem 1fr 3fr 2fr;
        gap: 0 1rem;
        grid-template-areas:
            "pad kategorie kategorie kategorie"
            "pad titel titel titel"
            "pad nummer anzahl_standort bild"
            "pad icons beschreibung bild";
        padding: 1rem 0;
    }
    
    .grid_beschreibung {
        column-count: 2;
    }
	
	.grid_bild {
		aspect-ratio: 4/3;
	}

} /* Hier endet der Breakpoint für Bildschirmbreite unter 1400 px */

/* ======== Bildschirmbreite unter 1260px ======== */
@media screen and (max-width: 1260px) {
	
	header {
		width:95%;
	}
	
	main {
		width:95%;
	}
	
	nav {
		width:100%;
	}
	
	.filter {
		height: auto;
		padding: 1rem 1rem 1rem 2rem;
		flex-direction:column;
		align-items:flex-start;
		gap: 1rem;
	}

	.dropdown {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;
	}
	
	.filter_absenden {
		margin: 0.5rem 0 0 0;
		width:100%;
		justify-content:flex-end;
		padding-left:0;
		display: flex;
		
	}
	
} /* Hier endet der Breakpoint für Bildschirmbreite unter 1260 px */

	
/* ======== Bildschirmbreite unter 1080px ======== */
@media screen and (max-width: 1080px) {
	
	
	.filter {
		flex-direction:column;
		gap: none;
		align-content: center;
		padding-left:1rem;
	}
	
	.filter select {
		margin: 0;
	}
	
	.dropdown {
		display:flex;
		flex-direction:column;
		gap: none;
	}
	
	.filter_absenden {
		justify-content:center;
	
	}
	
	.grid {
	display: grid;
	grid-template-columns: 1rem 1fr;
	gap: 0 1rem;
	grid-template-areas:
		"pad kategorie kategorie"
		"pad titel titel"
		"pad nummer nummer"
		"pad icons icons"
		"pad anzahl_standort anzahl_standort"
		"pad beschreibung beschreibung"
		"pad bild bild";
	padding: 1rem 0;
    }
	
	.grid_beschreibung {
		padding-right: 2rem;
    }
	
	.grid_bild {
		aspect-ratio: auto;
		padding: 1rem 2rem 0 0;
	}
	
	.grid_icons {
		margin-bottom:1rem;
	}
	
} /* Hier endet der Breakpoint für Bildschirmbreite unter 1080 px */

/* ======== Bildschirmbreite unter 700px ======== */
@media screen and (max-width: 700px) {
	
	nav {
		height: auto;
		padding: 0.5rem 0;
		width: 100%;
	}
	
	nav ul {
		flex-direction:column;
		gap: 0;
	}
	
	main {
		flex-direction: column;
	}
	
	#menu-toggle {
		cursor: pointer;
	}
	
	#menu-toggle i {
		display: block;
	}
	
	.menu {
		width: 100%;
		text-align: center;
	}
	
	.hauptmenu {
		display: none;
		padding-top: 1rem;
	}
	
	.hauptmenu.open {
		display:block;
	}
	
	.menu h3 {
		margin-right: 0;
	}
	
	.content {
		width: 100%;
	}
	
} /* Hier endet der Breakpoint für Bildschirmbreite unter 700 px */

/* ======== Bildschirmbreite unter 500px ======== */
@media screen and (max-width: 500px) {
	
	.umbruch {
	display:inherit;
	}
	
	.grid_beschreibung {
		column-count: 1;
    }
	
	.row {
		flex-direction:column;
	}
	
	.loeschen_button {
		position:inherit;
	}
	
} /* Hier endet der Breakpoint für Bildschirmbreite unter 500 px */
	
	
	
	
	
 
	