* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, sans-serif;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: #f4f4f4;
	background:#489334 url(pix/bg2.gif) repeat-x;
    min-height: 94vh;
    display: flex;
    flex-direction: column;	
}

.header {
    position: relative;
}

.hamburger {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 4px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
}

.hero {
    height: 180px;
    background-image: url("pix/logo1920.svg");
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;

    display: flex;
    justify-content: flex-end;  /* der Wrapper rechts im Hero */
    align-items: flex-start;
    padding: 32px 16px 0 0;
    color: #fff;
}

.hero-text {
    display: flex;
    flex-direction: column;  /* H1 + Untertext untereinander */
    align-items: center;     /* Untertext zentriert unter H1 */
}

.hero h1 {
    font-size: 5mm;
    margin: 0;
}

.hero .subtitle {
    font-size: 3mm;
    margin-top: 5px; /* Abstand unter H1 */
    text-align: center; /* zentriert unter H1 */
}

.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    background: #0C3E00;
    color: #fff;
    overflow-y: auto;
    transition: left 0.3s ease;
    padding-top: 60px;
    z-index: 1000;
}

.side-menu.active {
    left: 0;
}

.side-menu ul {
    list-style: none;
}

.side-menu > ul > li {
    padding: 10px 20px;
    border-bottom: 1px solid #444;
}

.side-menu li ul {
    margin-top: 5px;
    padding-left: 15px;
}

.side-menu li ul li {
    font-size: 14px;
    padding: 5px 0;
}

.side-menu a {
    color: #fff;
    text-decoration: none;
}

.side-menu a:visited {
    color: #fff;
}


.content {
    padding: 15px;
	flex: 1;
}






.search-wrapper {
    display: flex;
    gap: 5px; /* Abstand zwischen Input und Button */
}

.input-container {
    position: relative;
    flex: 1; /* Input nimmt den Platz ein */
}

.input-container input {
    width: 100%;
    padding-right: 30px; /* Platz für X */
    box-sizing: border-box;
}

.clear-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    color: #888;
    display: none; /* initial unsichtbar */
    user-select: none;
}







.search-section form {
    display: flex;
    gap: 10px;
    margin: 16px 0 36px 0;
	width:100%;
}

.search-section input {
    flex: 1 1 auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 24px;
	font-size:20px;
	min-width:0;
}

.search-section button {
    padding: 10px 15px;
    border: none;
    background: #aabd25;
    color: #fff;
    border-radius: 24px;
    cursor: pointer;
	font-size:20px;
	flex: 0 0 auto;
}


.results-section table {
    width: 100%;
    border-collapse: separate;
    background: #ddd;
	border: 0px solid #ddd;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

.results-section th,
.results-section td {
    padding: 6px;
    border: 0px solid #fff;
    text-align: left;
    font-size: 15px;
	overflow-wrap: anywhere;
    word-break: break-all;
	vertical-align: top;
}

.results-section table tbody td a,
.results-section table tbody td a:link,
.results-section table tbody td a:visited,
.results-section table tbody td a:hover,
.results-section table tbody td a:active {
    color: inherit;
    text-decoration: none;
}


.results-section table tbody td a {
    position: relative;
    display: inline-block;
    padding-left: 16px;
}

.results-section table tbody td a:before {
    content: "▸";
    font-size: 22px;
    color: red;
    position: absolute;
    left: 0;
    transform: translateY(-2px);
    line-height: 1;
}


.results-section table tbody td a.mit-foto:before {
    color: blue;
}





/* iOS-spezifischer Fix für das Dreieck */
@supports (-webkit-overflow-scrolling: touch) {
    .results-section table tbody td a:before {
        transform: translateY(-3px);
    }
}

.results-section th {
    background: #0C3E00;
	color: #fff;
}

/* Alternierende Tabellenzeilen */
.results-section table tbody tr:nth-child(odd of :not([style*="display"])) {
/*    background-color: #657515; */
	background-color: #cddc7a;
/*    background-color: #eeeeee; */
}

.results-section table tbody tr:nth-child(even of :not([style*="display"])) {
/*    background-color: #758525; */
    background-color: #e6f19a; 
/*    background-color: #ffffff; */
}

/* Spaltenbreiten (2 Spalten: 77% / 23%) */
.results-section table {
    table-layout: fixed;
}

.results-section th:nth-child(1),
.results-section td:nth-child(1) {
    width: 75%;
}

.results-section th:nth-child(2),
.results-section td:nth-child(2) {
    width: 25%;
}



/* Toggle */

.filter-toggle {
    margin: 25px 0 15px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: block;
    text-align: center;
    user-select: none;
}


/* Panel */
.filter-panel {
    background: #aabd25;
    padding: 15px;
    border-radius: 24px;
    margin-bottom: 15px;
}

/* Zeilen */
.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* Item: Text + Mini-Select nebeneinander */
.filter-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Textfelder */
.filter-item input[type="text"] {
    font-size: 20px;
    border-radius: 24px 0 0 24px;
    padding: 6px 20px;
    height: 48px;
    box-sizing: border-box;
	width: 328px;
	//width: 100%;
}

/* Mini-Select */
.filter-item select {
    width: 24px;
    height: 46px;
    font-size: 16px;
    border-radius: 0 24px 24px 0;
	padding-right:8px;
	padding-left:8px;
	margin:-4px;
}

/* Preisfelder */
#preisVon,
#preisBis {
    width: 174px;
	height: 48px;
    min-width: 160px;
    padding: 6px 20px;
    font-size: 20px;
    border-radius: 24px;
    box-sizing: border-box;
}






.details-section {
    padding: 10px 0;
	position:relative;
}

.plant-detail {
    background: #657515;
    border-radius: 8px;
    padding: 15px;
	position:relative;
}

.details-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.plant-image img {
    width: 100%;
    height: auto;
	max-height: 95vh;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 15px;
}





.plant-image {
    position: relative;
}

.delete-photo-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.66);
    cursor: pointer;
    font-size: 18px;
    z-index: 20;
}

.delete-photo-box {
    position: absolute;
    top: 45px;
    right: 8px;
    width: 220px;
    background: rgba(255,255,255,0.66);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 21;
}

#deletePassword {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

#deletePhotoOk {
    margin-top: 8px;
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.4;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
	background: #dd0000;
	color: #fff;
}





.plant-header {
    margin-bottom: 15px;
}

.plant-header h1 {
    font-size: 24px;
    margin-bottom: 4px;
	font-style: italic;
	color: #ffffc0;
}

.plant-header h2 {
    font-size: 32px;
    color: #ffffc0;
}
.botanical-name {
    font-size: 24px;
    margin-bottom: 4px;
	font-style: italic;
	color: #ffffc0;
}

.german-name {
    font-size: 32px;
    color: #ffffc0;
}

.plant-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.plant-meta div {
    font-size: 20px;
    line-height: 1.4;
}

.plant-meta span {
    display: block;
    color: #aabd25;
}
.plant-meta p {
    display: block;
    color: #ffffc0;
}

.plant-meta strong {
    display: block;
    font-weight: 600;
	color: #ffffc0;
}

.plant-description span {
    font-size: 20px;
    margin-bottom: 5px;
	color: #aabd25;
}

.plant-description p {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 15px;
	color: #ffffc0;
}

.details-section .plant-image .photo-upload {
    display: block;
    margin-top: 50px;
    text-align: center;
}

.details-section .plant-image .photo-upload button {
    padding: 10px 15px;
    border: none;
    background: #aabd25;
    color: #fff;
    border-radius: 24px;
    cursor: pointer;
	font-size:24px;
	width:100%;
	max-width:280px;
}
/* Kennworteingabefeld: */
.photo-upload input:not([type="checkbox"],[type="file"]) {
    width: 100%;
    max-width: 280px;
    margin: 5px auto;
    padding: 8px;
    font-size: 24px;
    line-height: 1.2;
    border-radius: 24px;
    display: block;
	background: #ffffc0;
	text-align:center;
	color:black;
}

.remember-password {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    margin: 6px auto;
    font-size: 14px;
    gap: 6px;
}

.remember-password input {
    margin: 0;
}



.plant-image {
    position: relative;
}


/* Uploadbereich */

.photo-upload {
    margin-top: 10px;
}


.site-footer {
    background: #0D3D00;
    color: #fff;
    padding: 20px 15px;
    text-align: center;
    margin-top: 30px;
}

.site-footer a {
    color: #aabd25;
    text-decoration: none;
    font-size: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.floating-search {
    position: fixed;
    right: 30px;
    bottom: 0px;
    width: 56px;
    height: 48px;
    border-radius: 50%;
    background: rgba(170, 189, 37, 0.75);
    color: white;
    font-size: 20px;
    text-align: center;
    line-height: 44px;
    text-decoration: none;
    z-index: 9999;
	backdrop-filter: blur(2px);
}

@media (min-width: 1280px) {

    /* Hamburger ausblenden */
    .hamburger {
        display: none;
    }

    /* Menüleiste */
    .side-menu {
        position: relative;
        left: 0;
        width: 100%;
        height: auto;
        padding-top: 0;
		overflow: visible;
    }

    /* Hauptmenü horizontal */
    .side-menu > ul {
        display: flex;
        list-style: none;
    }

    .side-menu > ul > li {
        position: relative;
        padding: 12px 18px;
        border-bottom: none;
    }

	/* Hauptmenüpunkte Hover-Effekt */
	.side-menu > ul > li:hover {
		background: #657515; /* Farbe beim Hover, kann angepasst werden */
	}

	/* Hauptmenüpunkte ohne Link zeigen Pfeil-Cursor */
	.side-menu > ul > li:not(:has(> a)) {
		cursor: pointer;
	}

    /* Mobile Einrückung entfernen */
    .side-menu li ul {
        padding-left: 0;
        margin-top: 0;
    }

    /* Dropdown */
    .side-menu > ul > li > ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #0C3E00;
        min-width: 200px;
    }
	
/* Abstand links für Untermenüpunkte */
.side-menu > ul > li > ul li {
    padding: 6px 16px; /* links/rechts Abstand */
    white-space: nowrap; /* verhindert Umbruch */
}

	.side-menu > ul > li > ul li:hover {
		background:#657515;
	}
	
    .side-menu > ul > li:hover > ul {
        display: block;
    }

}