﻿/* Grunddesign & Variablen */
:root {
    --primary-green: #4CAF50;
    --dark-green: #2E7D32;
    --apple-red: #A52A2A;
    --light-bg: #f9fbf9;
    --text-color: #333;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
    
    /* Vollbild-Hintergrund für die gesamte Seite */
    background: url('../images/hintergrund8.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
}

/* Header mit echtem Overlay */
header {
    color: white;
    padding: clamp(2rem, 10vh, 5rem) 1rem; /* Dynamisches Padding */
    text-align: center;
}

.main-header { background: white; border-bottom: 4px solid var(--primary); padding: 10px 0; sticky: top;}
.header-container { 
	display:flex; 
	justify-content: space-between; 
	align-items: center; 
	max-width: 1100px; 
	height: 9vH; 
	margin: 0 auto; 
	padding: 0 40px;  
	
	background: url('https://www.allergiker-apfel.com/images/ostgarten-logo-1200-1000.jpg') no-repeat center center/cover;"
	}
}


/* Hero */
.hero { 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	text-align: center; 
	color: white; 
	margin-bottom: 40px; 

}
.hero h1 { color: white; font-size: 2.5rem; margin: 0; text-align:center;}

.hero-content {
	height: 150px;
}


/* Navigation - Bereinigt (nur eine Definition!) */
nav {
    background: white;
    border-bottom: 1px solid #ddd;
    position: sticky;
    margin-top:-100px;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Wichtig für kleine Bildschirme */
}

nav a {
    color: var(--dark-green);
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: block;
    font-weight: bold;
    transition: all 0.3s;
}

nav a:hover {
    /*color: var(--primary-green);*/
    color: #000000;
    background: #f0fdf0;
}

/* Hauptinhalt */

main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    background: transparent; 
    box-shadow: none;
}

section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.9); /* 90% Weiß, 10% transparent */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px); /* Erzeugt einen edlen Milchglas-Effekt */
}

/* Apfel-Karten Optimierung */
.sorten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.sorten-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.sorten-grid3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.apfel-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.apfel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.apfel-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.apfel-card .content { padding: 1.5rem; }

/* Tabelle & Info-Box */
.table-container { overflow-x: auto; border-radius: 8px; }

table { width: 100%; border-collapse: collapse; }

th { 
    background-color: var(--dark-green); 
    color: white; 
    padding: 15px; 
}

td { padding: 12px; border-bottom: 1px solid #eee; }

.info-box {
    background: #f0fdf0;
    border-left: 5px solid var(--primary-green);
    padding: 1.5rem ;
    border-radius: 0 5px 5px 0;
}

.info-box a {
    text-decoration:underline;
    color: #000000;
}

.info-box a:hover{
    text-decoration:underline;
    color: #000000;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--dark-green);
    color: white !important;
    text-decoration: none;
    border-radius: 30px; /* Abgerundeter Look */
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover { background: var(--primary-green); }

.footer {
    text-decoration: none;
    color: #FFFFFF;
}

.footer a {
    text-decoration:underline;
    color: #FFFFFF;
}

.footer a:hover {
    text-decoration:underline;
    color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul { flex-direction: row; justify-content: space-around; }
    nav a { padding: 0.8rem 0.5rem; font-size: 0.9rem; }
    header h1 { font-size: 1.8rem; }
    .header-container { 
    	flex-direction: column; 
    	background: url('https://www.allergiker-apfel.com/images/kopf-html5-1200.jpg') no-repeat center;
    	height: 70px;
    	width: 320px;
    	max-width: 480px;
    }
}

