@charset "utf-8";
/* CSS Document */

/*-------------------*/
/***** Font-Face *****/
/*-------------------*/
@font-face {
	font-family: "Annie";
	src: url("font/AnnieUseYourTelescope-Regular.ttf") format("truetype");
}
@font-face {
	font-family: "Roboto-Light";
	src: url("font/Roboto-Light.ttf") format("truetype");
}
@font-face {
	font-family: "Roboto-Bold";
	src: url("font/Roboto-Bold.ttf") format("truetype");
}
/*-------------------*/
/***** Allgemein *****/
/*-------------------*/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* mindestens volle Höhe */
}
main, .content {
    flex: 1; /* füllt den restlichen Platz zwischen Header und Footer */
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
/*------------------------------*/
/***** Mobile - max. 1024px *****/
/*------------------------------*/
@media screen and (max-width: 1024px) {
	main {display: block;}
	/*----------------*/
	/***** Header *****/
	/*----------------*/
	#header-firstbar {
		background: #F0F0F0;
		display:flex;
		align-items:center;
		justify-content:space-between;
	}
	#header-logo {
		display: flex;
		align-items:center;
	}
	#logo-img {
		max-width: 56px;
		height: auto;
	}
	#logo {
		font: 1.45rem Annie;
		color: #363940;
		margin-left: 0.95rem;
	}
	/* Navigation */
	#navchecker {display: none;}
	#navcheckerlabel {
		position: absolute;
		right: 0px;
		height: 40px;
		width: 40px;
	}
	#navcheckerlabel span {
		width: 20px;
		height: 2px;
		border-radius: 99px;
		background: #363940;
		position: absolute;
		transition: 0.5s 0.2s;
	}
	#navOverlay {
		position: fixed;
		top: 56px; /* direkt unter Header */
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		pointer-events: none; /* keine Klicks solange unsichtbar */
		transition: opacity 0.3s ease;
		z-index: 998; /* unter der Navigation (9999) */
	}
	#navchecker:checked ~ #navOverlay {
		opacity: 1;
		pointer-events: auto; /* klickbar, wenn sichtbar */
	}	
	#nav {
		position: fixed;
		top: 56px;
		right: 0;
		bottom: 0;
		width: 250px;
		background: #F0F0F0;
		transform: translateX(100%);
		transition: transform 0.4s ease-in-out;
		overflow-y: scroll;
		z-index: 9999;
	}
	.line1 {top: calc(35% - 1px);}
	.line2 {top: calc(50% - 1px);}
	.line3 {top: calc(65% - 1px);}
	#nav ul {list-style: none;}
	#nav a, label {
		text-decoration: none;
		color: #363940;
		font: 0.8rem Roboto-Light;
		text-transform: uppercase;
		line-height: 40px;
		white-space: nowrap;
		display: block;
		margin-left: 20px;
	}
	hr {border-top: 2px solid #363940;}
	#navchecker:checked ~ #nav {transform: translate(0%, 0%);}
	#navchecker:checked + label .line1 {
		transform: rotate(45deg);
		top: calc(50% - 1px);
	}
	#navchecker:checked + label .line2 {transform: scale(0);}
	#navchecker:checked + label .line3 {
		transform: rotate(-45deg);
		top: calc(50% - 1px);
	}
	.nav-hauptlink {
		position: absolute;
		cursor: pointer;
        top: 0;
        left: 0;
		width: 2%;
        height: 40px;
        z-index: 100;
	}
	#searchbar {
		display: flex;
		align-items: center;
		gap: 8px;
		line-height: 50px;
		white-space: nowrap;
		padding: 20px;
		width: 100%;
		box-sizing: border-box; /* verhindert Überlaufen */
	}
	#searchbar input {
		flex: 1;
		min-width: 0; /* verhindert, dass Input überläuft */
		padding: 6px 8px;
		border: none;
		font: 0.8rem Roboto-Light;
	}
	#searchbar button {
		background-color: #363940;
		color: white;
		font: 0.8rem Roboto-Bold;
		padding: 5px 10px;
		border: none;
		flex-shrink: 0; /* verhindert, dass der Button schmaler wird */
	}
	/* Dropdown */
	.dropdown {
		margin-left: 40px;
		max-height: 0;
		overflow: hidden;
		transition: max-height 1s, overflow 0s;
	}
	#mainnav > li {position: relative;}
	.ddmenue:checked ~ .dropdown {
		max-height: 490px;
		overflow-y: hidden;
		transition: max-height 1s, overflow 1s 1s;
	}
	.ddmenue {
		position: absolute;
		cursor: pointer;
		top: 0;
		left: 0;
		width: 100%;
		height: 40px;
		z-index: 100;
		opacity: 0;
	}
	nav img {
		display: inline-block;
		width: 6px;
		margin-bottom: 3px;
		margin-left: 2px;
	}
	.ddmenue:checked + label img {transform: rotate(180deg);}
	label img {transition: transform 0.5s;}
	/*--------------*/
	/***** Main *****/
	/*--------------*/
	h2 {
		margin: 5%;
		font: 1.6rem Annie;
	}
	.rezeptblock {margin: 5%;}
	.rezeptblock a {text-decoration: none;}
	.rezeptkarte {
		width:100%;
		display: flex;
		flex-direction: column;
		overflow: hidden; /* optional: verhindert, dass Bilder/Text überlaufen */
		background: #363940;
		margin: 5% 0;
	}
	.rezeptkarte > div {
		padding: 10px 15px;
		display: flex;
		flex-direction: column;
	}
	.rezeptkarte-img {
		width:100%; 
		height:200px; 
		object-fit:cover;
		flex-shrink: 0; /* verhindert, dass das Bild schrumpft */
	}
	.rezeptkarte p {
		font: 0.8rem Roboto-Light;
		color: #ffffff;
		text-transform: uppercase;
	}
	.rezeptkarte h3 {
		font: 1.8rem Annie;
		color: #ffffff;
		margin: 5px 0;
		word-break: break-word; /* lange Wörter umbrechen */
	}
	.btn-mehr a {
		font: 0.8rem Roboto-Light;
		color: #363940;
		text-transform: uppercase;
		margin: 5% 6%;
		text-decoration: none;
		display: block;
		line-height: 40px;
		white-space: nowrap;
		display: flex;
		gap: 5px;
		justify-content: flex-end;
	}
	/* === Scroll-to-top Button === */
	#scrollTopBtn {
		position: fixed;
		bottom: 25px;
		right: 25px;
		width: 40px;
		height: 40px;
		background: #d8d8d8;
		cursor: pointer;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s;
		z-index: 999;
		border: none;
	}
	#scrollTopBtn img {
		width: 15px;
		height: 15px;
		margin-top: 3px;
		transform-origin: center;
		transform: rotate(180deg);
		display: block;
		margin: auto;
	}
	#scrollTopBtn.visible {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	.rez-notfound {
		font: 1rem Roboto-Light;
		color: #363940;
		margin: 5%;
	}
	.rezept-title {
		background-size: cover;
        background-position: center;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
        position: relative;
	}
	.rezept-title h2 {
		position: absolute;
		left: 0;
		bottom: 0;
		display: block;
		width: 100%;
		font: 1.9rem Annie;
		color: #363940;
		text-align: center;
		margin: 8px 0;
	}
	.rezept-title div {
		background-image: url(img/blur.png);
		position: absolute;
		left: 0;
		bottom: 0;
		opacity: 60%;
		width: 100%;
		height: 55px;
	}
	.detail_kategorie {
		margin: 5%;
		font: 0.8rem Roboto-Light;
		color: #363940;
		text-transform: uppercase;
	}
	.detail-infos {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 20px 40px;
		margin: 8% 5%;
	}
	.detail-infos p {
		font: 0.9rem Roboto-Light;
		color: #363940;
		text-transform: uppercase;
		text-align: center;
	}
	.portionsrechner {
		margin: 5%;
		font: 0.8rem Roboto-Bold;
		color: #363940;
		text-transform: uppercase;
	}
	.portionsrechner button {
		padding: 8px;
		background-color: #363940;
		font: 0.8rem Roboto-Bold;
		color: white;
		border: none;
	}
	.portionsrechner input {
		padding: 6px;
		font: 0.8rem Roboto-Bold;
		color: #363940;
		border: 2px solid;
		border-color: #363940;
		width: 10%;
		text-align: center;
	}
	.zutaten {padding: 0 5%;}
	#zutatenTabelle {
		font: 0.9rem Roboto-Light;
		width: 100%;
	}
	#zutatenTabelle tr:nth-child(even) {background: #F0F0F0;}
	#zutatenTabelle td {padding: 10px;}
	/* Checkbox verstecken, aber im Flow lassen */
	input.zutat-check {
		position: relative;
		width: 20px;
		height: 20px;
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		border: none;
		cursor: pointer;
		background-color: white; /* Standardfarbe */
	}
	/* Abwechselndes Färben der Checkboxen */
	#zutatenTabelle tr:nth-child(odd) input.zutat-check {
		background-color: #F0F0F0;
	}
	#zutatenTabelle tr:nth-child(even) input.zutat-check {
		background-color: #ffffff;
	}
	/* Häkchen bei checked */
	input.zutat-check:checked::after {
		content: '';
		position: absolute;
		left: 6px;
		top: 1px;
		width: 6px;
		height: 12px;
		border: solid #363940;
		border-width: 0 2px 2px 0;
		transform: rotate(45deg);
	}
	.menge {text-align: right;}
	.add-einzel {
		background: none;
		border: none;
		font: 1.5rem Roboto-Light;
		color: #363940;
	}
	.zutaten-actions {
		display: flex;
		justify-content: space-between;
		margin-top: 15px;
	}
	#alleReset, #alleZurListe {
		padding: 10px;
		font: 0.8rem Roboto-Light;
		background-color: white;
		color: #363940;
		text-align: center;
		border: 1px solid #363940;
	}
	.zubereitung {margin: 40px 5% 0;}
	.zubereitung h3 {
		font: 0.9rem Roboto-Bold;
		color: #363940;
		text-transform: uppercase;
	}
	.zubereitung p {
		font: 0.9rem Roboto-Light;
		margin-top: 12px;
	}
	.vorschlag-title {
		margin: 80px 5% 0;
		font: 0.9rem Roboto-Bold;
		color: #363940;
		text-transform: uppercase;
	}
	.rezept-bearb, .rezept-loe {
		margin: 0 5%;
		text-decoration: none;
		padding: 10px;
		font: 0.8rem Roboto-Light;
		background-color: white;
		color: #363940;
		text-align: center;
		border: 1px solid #363940;
	}
	.login-form {
		padding: 0;
		padding-right: 5%;
	}
	.login label {
		font: 0.9rem Roboto-Bold;
		color: #363940;
		text-transform: uppercase;
	}
	.login-benutzer, .login-pass, #mengeInput, #artikelInput {
		border: none;
		background-color: #F0F0F0;
		padding: 5px;
		width: 100%;
		font: 0.9rem Roboto-Light;
	}
	.login-submit {
		margin: 0 5%;
		text-decoration: none;
		padding: 10px 15px;
		font: 0.9rem Roboto-Bold;
		background-color: #363940;
		color: white;
		text-align: center;
		border: none;
	}
	.login-error {
		font: 0.9rem Roboto-Bold;
		margin: 5%;
		color: red;
	}
	.einkaufsliste-eingabe {
		display: flex;
		padding: 0 5%;
		justify-content: space-between;
		gap: 10px;
	}
	#mengeInput {width: 40%;}
	#addBtn {
		padding: 10px 15px;
		font: 0.9rem Roboto-Bold;
		background-color: #363940;
		color: white;
		text-align: center;
		border: none;
	}
	/* Einkaufsliste Tabelle */
	#einkaufslisteTabelle {
		width: 90%;
		margin: 20px auto;
		border-collapse: collapse;
		font: 0.9rem Roboto-Light;
		color: #363940;
	}
	#einkaufslisteTabelle th, 
	#einkaufslisteTabelle td {
		padding: 10px;
		text-align: left;
	}
	#einkaufslisteTabelle th {
		background-color: #363940;
		color: white;
		text-transform: uppercase;
		font: 0.8rem Roboto-Bold;
	}
	#einkaufslisteTabelle tr:nth-child(even) {
		background-color: #F0F0F0;
	}
	#einkaufslisteTabelle tr:nth-child(odd) {
		background-color: #ffffff;
	}
	#einkaufslisteTabelle button.deleteBtn {
		background: none;
		border: none;
		cursor: pointer;
	}
	.deleteBtn {
		display: block;
		margin: auto;
		text-transform: uppercase;
		font: 1.4rem Roboto-Bold;
		width: 30px;
	}
	.remember-checkbox {
		width: 16px;
		height: 16px;
		background-color: #F0F0F0;
		border: none;
		appearance: none;       /* Standard-Styling entfernen */
		-webkit-appearance: none;
		-moz-appearance: none;
		border-radius: 3px;     /* optional: leicht abgerundet */
		cursor: pointer;
		position: relative;
	}
	/* Häkchen anzeigen, wenn aktiviert */
	.remember-checkbox:checked::after {
		content: '';
		position: absolute;
		left: 4px;
		top: 0px;
		width: 5px;
		height: 10px;
		border: solid #363940;
		border-width: 0 2px 2px 0;
		transform: rotate(45deg);
	}
	form.sortieren {
		display: inline-block;
		background-color: white;
		font: 0.9rem 'Roboto-Light', sans-serif;
	}
	form.sortieren label {
		display: flex;
		align-items: center;
		gap: 8px;
	}
	form.sortieren select {
		font: 0.9rem 'Roboto-Light', sans-serif;
		padding: 4px 8px;
		border: 1px solid #363940;   /* gewünschte Border */
		border-radius: 3px;           /* gewünschte Abrundung */
		background-color: white;      /* Hintergrundfarbe */
		color: #363940;               /* Textfarbe */
		appearance: none;             /* Standard-Browser-Styling entfernen */
		-webkit-appearance: none;
		-moz-appearance: none;
		cursor: pointer;
		background-image: url('img/dropdown.svg'); /* Pfeil rechts */
		background-repeat: no-repeat;
		background-position: right 8px center;
		background-size: 12px;
		padding-right: 25px; /* Platz für den Pfeil */
	}	
	/* =============================== */
	/* 🟢 Kategorie-Checkbox Styling   */
	/* =============================== */
	.kategorien-auswahl {
		display: flex;
		flex-direction: column;
		border: none;
		margin-top: 10px;
	}
	.kat-label {
		display: flex;
		align-items: center;
		gap: 10px;
		font: 0.9rem 'Roboto-Light', sans-serif;
		color: #363940;
		cursor: pointer;
	}
	.kat-label.subkat {
		padding: 0 20px;
		font: 0.9rem 'Roboto-Light', sans-serif;
	}
	/* Custom Checkbox */
	.kat-checkbox {
		width: 18px;
		height: 18px;
		background-color: #F0F0F0;
		border: none;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		border-radius: 3px;
		cursor: pointer;
		position: relative;
	}
	.kat-checkbox:checked::after {
		content: '';
		position: absolute;
		left: 5px;
		top: 1px;
		width: 5px;
		height: 10px;
		border: solid #363940;
		border-width: 0 2px 2px 0;
		transform: rotate(45deg);
	}
	/* =============================== */
	/* 🟢 Datei-Upload Styling         */
	/* =============================== */
	.file-upload {
		width: 100%;
		border: none;
		font: 0.9rem 'Roboto-Light', sans-serif;
		color: #363940;
		cursor: pointer;
		margin-top: 10px;

	}
	.file-upload::file-selector-button {
		background-color: #363940;
		color: white;
		border: none;
		padding: 6px 12px;
		font: 0.8rem 'Roboto-Bold', sans-serif;
		cursor: pointer;
	}
	.file-upload::file-selector-button:hover {
		background-color: #55585c;
	}
	.marg-btm {margin-bottom: 20px;}
	textarea.auto-expand {
		overflow: hidden;
		transition: height 0.2s ease;
		resize: none; /* verhindert manuelles Ziehen unten rechts */
	  }
	  #unsavedModal {
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.5);
		display: none;
		justify-content: center;
		align-items: center;
		z-index: 9999;
	  }
	  #unsavedModal .modal-content {
		background: #fff;
		padding: 2rem;
		max-width: 400px;
		text-align: center;
		font-family: Roboto, sans-serif;
		box-shadow: 0 0 10px rgba(0,0,0,0.2);
	  }
	  #unsavedModal h3 {
		margin-bottom: 1rem;
		font-size: 1.2rem;
		color: #363940;
	  }
	  #unsavedModal p {
		font-size: 0.9rem;
		color: #363940;
		margin-bottom: 1.5rem;
	  }
	  #unsavedModal .btn-group {
		display: flex;
		justify-content: space-around;
		gap: 10px;
	  }
	  #unsavedModal button {
		border: 1px solid #363940;
		background: white;
		font: 0.9rem Roboto-Light;
		padding: 0.4rem 1rem;
		cursor: pointer;
	  }
	  #unsavedModal button:hover {
		background: #f2f2f2;
	  }
	  #unsavedModal .danger {
		background: #363940;
		color: white;
	  }
	  #unsavedModal .danger:hover {
		background: #2a2c2e;
	  }
	  footer p {
		font: 0.8rem Roboto-Light;
		text-align: center;
		padding: 20px;
		background: #F0F0F0;
		color: #363940;
		margin-top: 20px;
	}
}
/*-------------------------------------------*/
/***** Tablet - min. 1024px max. 1622px *****/
/*-------------------------------------------*/
@media screen and (min-width: 1024px) and (max-width: 1622px) {
	main {display: block;}
	/*----------------*/
	/***** Header *****/
	/*----------------*/
	#header-firstbar {
		background: #F0F0F0;
		display:flex;
		align-items:center;
		justify-content:space-between;
	}
	#header-logo {
		display: flex;
		align-items:center;
	}
	#logo-img {
		max-width: 80px;
		height: auto;
	}
	#logo {
		font: 2rem Annie;
		color: #363940;
		margin-left: 0.95rem;
	}
	/* Navigation */
	#navchecker {display: none;}
	#navcheckerlabel {
		position: absolute;
		right: 0px;
		height: 50px;
		width: 60px;
	}
	#navcheckerlabel span {
		width: 25px;
		height: 3px;
		border-radius: 99px;
		background: #363940;
		position: absolute;
		transition: 0.5s 0.2s;
	}
	#navOverlay {
		position: fixed;
		top: 80px; /* direkt unter Header */
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		pointer-events: none; /* keine Klicks solange unsichtbar */
		transition: opacity 0.3s ease;
		z-index: 998; /* unter der Navigation (9999) */
	}
	#navchecker:checked ~ #navOverlay {
		opacity: 1;
		pointer-events: auto; /* klickbar, wenn sichtbar */
	}	
	#nav {
		position: fixed;
		top: 80px;
		right: 0;
		bottom: 0;
		width: 250px;
		background: #F0F0F0;
		transform: translateX(100%);
		transition: transform 0.4s ease-in-out;
		overflow-y: scroll;
		z-index: 9999;
	}
	.line1 {top: calc(35% - 1px);}
	.line2 {top: calc(50% - 1px);}
	.line3 {top: calc(65% - 1px);}
	#nav ul {list-style: none;}
	#nav a, label {
		text-decoration: none;
		color: #363940;
		font: 0.9rem Roboto-Light;
		text-transform: uppercase;
		line-height: 40px;
		white-space: nowrap;
		display: block;
		margin-left: 20px;
	}
	hr {border-top: 2px solid #363940;}
	#navchecker:checked ~ #nav {transform: translate(0%, 0%);}
	#navchecker:checked + label .line1 {
		transform: rotate(45deg);
		top: calc(50% - 1px);
	}
	#navchecker:checked + label .line2 {transform: scale(0);}
	#navchecker:checked + label .line3 {
		transform: rotate(-45deg);
		top: calc(50% - 1px);
	}
	.nav-hauptlink {
		position: absolute;
		cursor: pointer;
        top: 0;
        left: 0;
        height: 40px;
        z-index: 100;
	}
	#searchbar {
		display: flex;
		align-items: center;
		gap: 8px;
		line-height: 50px;
		white-space: nowrap;
		padding: 20px;
		width: 100%;
		box-sizing: border-box; /* verhindert Überlaufen */
	}
	#searchbar input {
		flex: 1;
		min-width: 0; /* verhindert, dass Input überläuft */
		padding: 6px 8px;
		border: none;
		font: 0.8rem Roboto-Light;
	}
	#searchbar button {
		background-color: #363940;
		color: white;
		font: 0.8rem Roboto-Bold;
		padding: 5px 10px;
		border: none;
		flex-shrink: 0; /* verhindert, dass der Button schmaler wird */
	}
	/* Dropdown */
	.dropdown {
		margin-left: 40px;
		max-height: 0;
		overflow: hidden;
		transition: max-height 1s, overflow 0s;
	}
	#mainnav > li {position: relative;}
	.ddmenue:checked ~ .dropdown {
		max-height: 490px;
		overflow-y: hidden;
		transition: max-height 1s, overflow 1s 1s;
	}
	.ddmenue {
		position: absolute;
		cursor: pointer;
		top: 0;
		left: 0;
		width: 100%;
		height: 40px;
		z-index: 100;
		opacity: 0;
	}
	nav img {
		display: inline-block;
		margin-bottom: 3px;
		margin-left: 2px;
	}
	.ddmenue:checked + label img {transform: rotate(180deg);}
	label img {transition: transform 0.5s;}
	/*--------------*/
	/***** Main *****/
	/*--------------*/
	h2 {
		margin: 5% 5% 0;
		font: 2rem Annie;
		text-align: center;
	}
	.rezeptblock {
		margin: 0 5%;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between; /* gleichmäßiger Abstand */
		gap: 20px;
	}
	.rezeptblock a {
		flex: 1 1 calc(50% - 20px); /* 4 Spalten mit Abstand */
		text-decoration: none;
	}
	.rezeptkarte {
		width:100%;
		display: flex;
		flex-direction: column;
		overflow: hidden; /* optional: verhindert, dass Bilder/Text überlaufen */
		background: #363940;
		margin: 5% 0;
	}
	.rezeptkarte > div {
		padding: 10px 15px;
		display: flex;
		flex-direction: column;
	}
	.rezeptkarte-img {
		width:100%; 
		height:350px; 
		object-fit:cover;
		flex-shrink: 0; /* verhindert, dass das Bild schrumpft */
	}
	.rezeptkarte p {
		font: 0.9rem Roboto-Light;
		color: #ffffff;
		text-transform: uppercase;
	}
	.rezeptkarte h3 {
		font: 2rem Annie;
		color: #ffffff;
		margin: 5px 0;
		word-break: break-word; /* lange Wörter umbrechen */
	}
	.btn-mehr a {
		font: 0.8rem Roboto-Light;
		color: #363940;
		text-transform: uppercase;
		margin: 5% 6%;
		text-decoration: none;
		display: block;
		line-height: 40px;
		white-space: nowrap;
		display: flex;
		gap: 5px;
		justify-content: flex-end;
	}
	/* === Scroll-to-top Button === */
	#scrollTopBtn {
		position: fixed;
		bottom: 25px;
		right: 25px;
		width: 40px;
		height: 40px;
		background: #d8d8d8;
		cursor: pointer;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s;
		z-index: 999;
		border: none;
	}
	#scrollTopBtn img {
		width: 15px;
		height: 15px;
		margin-top: 3px;
		transform-origin: center;
		transform: rotate(180deg);
		display: block;
		margin: auto;
	}
	#scrollTopBtn.visible {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	.rez-notfound {
		font: 1rem Roboto-Light;
		color: #363940;
		margin: 5%;
	}
	.rezept-title {
		background-size: cover;
        background-position: center;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
        position: relative;
	}
	.rezept-title h2 {
		position: absolute;
		left: 0;
		bottom: 0;
		display: block;
		width: 100%;
		font: 1.9rem Annie;
		color: #363940;
		text-align: center;
		margin: 8px 0;
	}
	.rezept-title div {
		background-image: url(img/blur.png);
		position: absolute;
		left: 0;
		bottom: 0;
		opacity: 60%;
		width: 100%;
		height: 55px;
	}
	.detail_kategorie {
		margin: 5%;
		font: 0.8rem Roboto-Light;
		color: #363940;
		text-transform: uppercase;
	}
	.detail-infos {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 20px 40px;
		margin: 8% 5%;
	}
	.detail-infos p {
		font: 0.9rem Roboto-Light;
		color: #363940;
		text-transform: uppercase;
		text-align: center;
	}
	.portionsrechner {
		margin: 5%;
		font: 0.8rem Roboto-Bold;
		color: #363940;
		text-transform: uppercase;
	}
	.portionsrechner button {
		padding: 8px;
		background-color: #363940;
		font: 0.8rem Roboto-Bold;
		color: white;
		border: none;
	}
	.portionsrechner input {
		padding: 6px;
		font: 0.8rem Roboto-Bold;
		color: #363940;
		border: 2px solid;
		border-color: #363940;
		width: 10%;
		text-align: center;
	}
	.zutaten {padding: 0 5%;}
	#zutatenTabelle {
		font: 0.9rem Roboto-Light;
		width: 100%;
	}
	#zutatenTabelle tr:nth-child(even) {background: #F0F0F0;}
	#zutatenTabelle td {padding: 10px;}
	/* Checkbox verstecken, aber im Flow lassen */
	input.zutat-check {
		position: relative;
		width: 20px;
		height: 20px;
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		border: none;
		cursor: pointer;
		background-color: white; /* Standardfarbe */
	}
	/* Abwechselndes Färben der Checkboxen */
	#zutatenTabelle tr:nth-child(odd) input.zutat-check {
		background-color: #F0F0F0;
	}
	#zutatenTabelle tr:nth-child(even) input.zutat-check {
		background-color: #ffffff;
	}
	/* Häkchen bei checked */
	input.zutat-check:checked::after {
		content: '';
		position: absolute;
		left: 6px;
		top: 1px;
		width: 6px;
		height: 12px;
		border: solid #363940;
		border-width: 0 2px 2px 0;
		transform: rotate(45deg);
	}
	.menge {text-align: right;}
	.add-einzel {
		background: none;
		border: none;
		font: 1.5rem Roboto-Light;
		color: #363940;
	}
	.zutaten-actions {
		display: flex;
		justify-content: space-between;
		margin-top: 15px;
	}
	#alleReset, #alleZurListe {
		padding: 10px;
		font: 0.8rem Roboto-Light;
		background-color: white;
		color: #363940;
		text-align: center;
		border: 1px solid #363940;
	}
	.zubereitung {margin: 40px 5% 0;}
	.zubereitung h3 {
		font: 0.9rem Roboto-Bold;
		color: #363940;
		text-transform: uppercase;
	}
	.zubereitung p {
		font: 0.9rem Roboto-Light;
		margin-top: 12px;
	}
	.vorschlag-title {
		margin: 80px 5% 0;
		font: 0.9rem Roboto-Bold;
		color: #363940;
		text-transform: uppercase;
	}
	.rezept-bearb, .rezept-loe {
		margin: 0 5%;
		text-decoration: none;
		padding: 10px;
		font: 0.8rem Roboto-Light;
		background-color: white;
		color: #363940;
		text-align: center;
		border: 1px solid #363940;
	}
	.login-form {
		padding: 0;
		padding-right: 5%;
	}
	.login label {
		font: 0.9rem Roboto-Bold;
		color: #363940;
		text-transform: uppercase;
	}
	.login-benutzer, .login-pass, #mengeInput, #artikelInput {
		border: none;
		background-color: #F0F0F0;
		padding: 5px;
		width: 100%;
		font: 0.9rem Roboto-Light;
	}
	.login-submit {
		margin: 0 5%;
		text-decoration: none;
		padding: 10px 15px;
		font: 0.9rem Roboto-Bold;
		background-color: #363940;
		color: white;
		text-align: center;
		border: none;
	}
	.login-error {
		font: 0.9rem Roboto-Bold;
		margin: 5%;
		color: red;
	}
	.einkaufsliste-eingabe {
		display: flex;
		padding: 0 5%;
		justify-content: space-between;
		gap: 10px;
	}
	#mengeInput {width: 40%;}
	#addBtn {
		padding: 10px 15px;
		font: 0.9rem Roboto-Bold;
		background-color: #363940;
		color: white;
		text-align: center;
		border: none;
	}
	/* Einkaufsliste Tabelle */
	#einkaufslisteTabelle {
		width: 90%;
		margin: 20px auto;
		border-collapse: collapse;
		font: 0.9rem Roboto-Light;
		color: #363940;
	}
	#einkaufslisteTabelle th, 
	#einkaufslisteTabelle td {
		padding: 10px;
		text-align: left;
	}
	#einkaufslisteTabelle th {
		background-color: #363940;
		color: white;
		text-transform: uppercase;
		font: 0.8rem Roboto-Bold;
	}
	#einkaufslisteTabelle tr:nth-child(even) {
		background-color: #F0F0F0;
	}
	#einkaufslisteTabelle tr:nth-child(odd) {
		background-color: #ffffff;
	}
	#einkaufslisteTabelle button.deleteBtn {
		background: none;
		border: none;
		cursor: pointer;
	}
	.deleteBtn {
		display: block;
		margin: auto;
		text-transform: uppercase;
		font: 1.4rem Roboto-Bold;
		width: 30px;
	}
	.remember-checkbox {
		width: 16px;
		height: 16px;
		background-color: #F0F0F0;
		border: none;
		appearance: none;       /* Standard-Styling entfernen */
		-webkit-appearance: none;
		-moz-appearance: none;
		border-radius: 3px;     /* optional: leicht abgerundet */
		cursor: pointer;
		position: relative;
	}
	/* Häkchen anzeigen, wenn aktiviert */
	.remember-checkbox:checked::after {
		content: '';
		position: absolute;
		left: 4px;
		top: 0px;
		width: 5px;
		height: 10px;
		border: solid #363940;
		border-width: 0 2px 2px 0;
		transform: rotate(45deg);
	}
	form.sortieren {
		display: inline-block;
		background-color: white;
		font: 0.9rem 'Roboto-Light', sans-serif;
	}
	form.sortieren label {
		display: flex;
		align-items: center;
		gap: 8px;
	}
	form.sortieren select {
		font: 0.9rem 'Roboto-Light', sans-serif;
		padding: 4px 8px;
		border: 1px solid #363940;   /* gewünschte Border */
		border-radius: 3px;           /* gewünschte Abrundung */
		background-color: white;      /* Hintergrundfarbe */
		color: #363940;               /* Textfarbe */
		appearance: none;             /* Standard-Browser-Styling entfernen */
		-webkit-appearance: none;
		-moz-appearance: none;
		cursor: pointer;
		background-image: url('img/dropdown.svg'); /* Pfeil rechts */
		background-repeat: no-repeat;
		background-position: right 8px center;
		background-size: 12px;
		padding-right: 25px; /* Platz für den Pfeil */
	}	
	/* =============================== */
	/* 🟢 Kategorie-Checkbox Styling   */
	/* =============================== */
	.kategorien-auswahl {
		display: flex;
		flex-direction: column;
		border: none;
		margin-top: 10px;
	}
	.kat-label {
		display: flex;
		align-items: center;
		gap: 10px;
		font: 0.9rem 'Roboto-Light', sans-serif;
		color: #363940;
		cursor: pointer;
	}
	.kat-label.subkat {
		padding: 0 20px;
		font: 0.9rem 'Roboto-Light', sans-serif;
	}
	/* Custom Checkbox */
	.kat-checkbox {
		width: 18px;
		height: 18px;
		background-color: #F0F0F0;
		border: none;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		border-radius: 3px;
		cursor: pointer;
		position: relative;
	}
	.kat-checkbox:checked::after {
		content: '';
		position: absolute;
		left: 5px;
		top: 1px;
		width: 5px;
		height: 10px;
		border: solid #363940;
		border-width: 0 2px 2px 0;
		transform: rotate(45deg);
	}
	/* =============================== */
	/* 🟢 Datei-Upload Styling         */
	/* =============================== */
	.file-upload {
		width: 100%;
		border: none;
		font: 0.9rem 'Roboto-Light', sans-serif;
		color: #363940;
		cursor: pointer;
		margin-top: 10px;

	}
	.file-upload::file-selector-button {
		background-color: #363940;
		color: white;
		border: none;
		padding: 6px 12px;
		font: 0.8rem 'Roboto-Bold', sans-serif;
		cursor: pointer;
	}
	.file-upload::file-selector-button:hover {
		background-color: #55585c;
	}
	.marg-btm {margin-bottom: 20px;}
	textarea.auto-expand {
		overflow: hidden;
		transition: height 0.2s ease;
		resize: none; /* verhindert manuelles Ziehen unten rechts */
	  }
	  #unsavedModal {
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.5);
		display: none;
		justify-content: center;
		align-items: center;
		z-index: 9999;
	  }
	  #unsavedModal .modal-content {
		background: #fff;
		padding: 2rem;
		max-width: 400px;
		text-align: center;
		font-family: Roboto, sans-serif;
		box-shadow: 0 0 10px rgba(0,0,0,0.2);
	  }
	  #unsavedModal h3 {
		margin-bottom: 1rem;
		font-size: 1.2rem;
		color: #363940;
	  }
	  #unsavedModal p {
		font-size: 0.9rem;
		color: #363940;
		margin-bottom: 1.5rem;
	  }
	  #unsavedModal .btn-group {
		display: flex;
		justify-content: space-around;
		gap: 10px;
	  }
	  #unsavedModal button {
		border: 1px solid #363940;
		background: white;
		font: 0.9rem Roboto-Light;
		padding: 0.4rem 1rem;
		cursor: pointer;
	  }
	  #unsavedModal button:hover {
		background: #f2f2f2;
	  }
	  #unsavedModal .danger {
		background: #363940;
		color: white;
	  }
	  #unsavedModal .danger:hover {
		background: #2a2c2e;
	  }
	  footer p {
		font: 0.8rem Roboto-Light;
		text-align: center;
		padding: 20px;
		background: #F0F0F0;
		color: #363940;
		margin-top: 20px;
	}
}