/* oswald-regular - latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/oswald-v49-latin-regular.woff2') format('woff2'), /* Moderne Browser */
       url('../fonts/oswald-v49-latin-regular.woff') format('woff');   /* Ältere Browser */
}

/* oswald-700 - latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/oswald-v49-latin-700.woff2') format('woff2'),
       url('../fonts/oswald-v49-latin-700.woff') format('woff');
}

/* Jetzt kannst du die Schrift wie gewohnt nutzen */
h1, h2, h3, .oswald-font {
  font-family: 'Oswald', sans-serif;
}

/* ========================================
    1. VARIABLEN & GRUNDSTEUERUNG
    ======================================== 
*/
:root {
    --agrar-green: #2d5a27;
    --agrar-green-light: #3a7532;
    --wheat-gold: #e1b300;
    --earth-dark: #1a1612;
    --panel-bg: #211d19;
    --panel-border: #332c26;
    --text-light: #eae1d6;
    --text-muted: #b0b0b0;
    --corner-size: 15px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
    background-color: var(--earth-dark);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    animation: fadeIn 0.6s ease-in;
}

/* ========================================
    2. HEADER & NAVIGATION
    ======================================== 
*/
header { 
    background: #120f0c; 
    border-bottom: 4px solid var(--agrar-green); 
    padding: 20px 0; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.header-container { 
    max-width: 1600px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.header-side { flex: 1; min-width: 250px; }

.info-box { 
    font-family: 'Oswald', sans-serif; 
    text-transform: uppercase; 
    border-left: 3px solid var(--wheat-gold); 
    padding-left: 15px; 
}

.info-box.right { 
    border-left: none; 
    border-right: 3px solid var(--wheat-gold); 
    padding-right: 15px; 
    text-align: right; 
}

.main-logo-wrapper { flex: 0 0 auto; padding: 0 40px; text-align: center; }
.main-logo { height: 120px; filter: drop-shadow(0 0 10px rgba(45, 90, 39, 0.5)); transition: var(--transition); }
.main-logo:hover { transform: scale(1.05); }

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 10px;
    border-bottom: 2px solid var(--agrar-green);
}

.nav-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 15px;
    transition: var(--transition);
    position: relative;
    min-width: 100px;
}

.nav-link strong {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link span {
    font-size: 0.7rem;
    color: var(--wheat-gold);
    text-transform: lowercase;
    opacity: 0.8;
}

.nav-link:hover { background: rgba(45, 90, 39, 0.2); }
.nav-link.active strong, .nav-link:hover strong { color: var(--wheat-gold); }

.nav-link::after { 
    content: ""; position: absolute; bottom: 0; left: 50%; width: 0%; height: 2px; 
    background: var(--wheat-gold); transition: var(--transition); transform: translateX(-50%);
}
.nav-link:hover::after { width: 80%; }

/* ========================================
    3. LAYOUT & CARDS
    ======================================== 
*/
.content-wrapper { 
    display: grid; 
    grid-template-columns: 300px 1fr 300px; 
    gap: 25px; 
    max-width: 1600px; 
    margin: 40px auto; 
    padding: 0 20px; 
    flex: 1; 
    align-items: start;
}

.agrar-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    padding: 25px;
    position: relative;
    margin-bottom: 25px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.4);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.agrar-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.5); 
}

/* Die grünen Ecken */
.agrar-card::before, .agrar-card::after {
    content: ""; position: absolute; width: var(--corner-size); height: var(--corner-size);
}
.agrar-card::before { top: -2px; left: -2px; border-top: 3px solid var(--agrar-green); border-left: 3px solid var(--agrar-green); }
.agrar-card::after { bottom: -2px; right: -2px; border-bottom: 3px solid var(--agrar-green); border-right: 3px solid var(--agrar-green); }

/* Typografie in Karten */
h1, h2, h3 { font-family: 'Oswald', sans-serif; text-transform: uppercase; color: var(--wheat-gold); margin-top: 0; }
h3 { border-bottom: 1px solid var(--agrar-green); padding-bottom: 8px; margin-bottom: 15px; font-size: 1.3rem; }

/* ========================================
    4. SPEZIAL-KOMPONENTEN (MODS, PARTNER, FORM)
    ======================================== 
*/
/* Mod-Tabelle */
table { width: 100%; border-collapse: collapse; }
th { background: #120f0c; color: var(--agrar-green); font-family: 'Oswald'; text-transform: uppercase; padding: 12px; text-align: left; border-bottom: 2px solid var(--agrar-green); }
td { padding: 12px; border-bottom: 1px solid #2a2622; font-size: 0.95rem; }
.mod-row:hover { background: rgba(45, 90, 39, 0.15); cursor: pointer; }

/* Partner Grid */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.partner-item { 
    background: #1a1612; border: 1px solid var(--panel-border); padding: 20px; 
    text-align: center; transition: var(--transition); text-decoration: none; color: inherit; 
}
.partner-item:hover { border-color: var(--agrar-green); transform: scale(1.02); background: #1f1b17; }
.partner-img { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--agrar-green); margin-bottom: 15px; background: #fff; padding: 5px; object-fit: contain; }

	
/* --- MOD TABELLE KORREKTUR --- */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 15px;
    background: rgba(0,0,0,0.2); /* Etwas dunklerer Hintergrund für die Tabelle */
}

th { 
    background: #120f0c; 
    color: var(--agrar-green); 
    font-family: 'Oswald'; 
    text-transform: uppercase; 
    padding: 12px; 
    text-align: left; 
    border-bottom: 2px solid var(--agrar-green); 
    font-size: 0.9rem;
}

td { 
    padding: 12px; 
    border-bottom: 1px solid #2a2622; 
    font-size: 0.95rem; 
    color: var(--text-light);
}

/* Die klickbare Zeile */
.mod-row { 
    transition: background 0.2s; 
    cursor: pointer; 
}

.mod-row:hover { 
    background: rgba(45, 90, 39, 0.2) !important; 
}

/* Die versteckten Details (Das war das Hauptproblem) */
.details { 
    display: none; /* Standardmäßig aus */
    background: #161412; 
    color: #a0d8ff; /* Ein leichtes Blau für technische Daten */
    font-style: italic; 
    font-size: 0.85rem; 
}

.details td {
    padding: 15px 15px 15px 40px; /* Einrücken für bessere Optik */
    border-bottom: 2px solid var(--panel-border);
}

/* Der kleine Pfeil */
.arrow { 
    color: var(--wheat-gold); 
    font-weight: bold; 
    margin-right: 10px; 
    display: inline-block;
    width: 15px;
    transition: transform 0.2s;
}

/* Suchfeld Styling (damit es in der Sidebar gut aussieht) */
#modSearch {
    width: 100%;
    padding: 10px;
    background: #120f0c;
    border: 1px solid var(--agrar-green);
    color: white;
    font-family: inherit;
    margin-top: 10px;
}
/* Formulare */
input, textarea, select { 
    width: 100%; background: #120f0c; border: 1px solid var(--panel-border); 
    padding: 12px; color: #fff; outline: none; margin-bottom: 15px; 
    font-family: inherit; transition: border-color 0.3s;
}
input:focus, textarea:focus { border-color: var(--wheat-gold); }

.btn-action, .btn-submit { 
    background: var(--agrar-green); color: #fff; border: none; padding: 15px; 
    font-family: 'Oswald'; text-transform: uppercase; cursor: pointer; 
    font-size: 1.1rem; transition: var(--transition); width: 100%; font-weight: bold;
}
.btn-action:hover, .btn-submit:hover { background: var(--agrar-green-light); color: var(--wheat-gold); }

	
.share-bar {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.share-btn {
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}
.share-btn:hover { opacity: 0.8; }
.bg-facebook { background: #3b5998; }
.bg-whatsapp { background: #25d366; }
.bg-discord { background: #5865f2; }
.bg-copy { background: var(--agrar-green); cursor: pointer; }
	
	
	
/* Partner-Grid Styling */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.partner-item {
    background: rgba(34, 34, 34, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Der Leuchteffekt beim Hover */
.partner-item:hover {
    background: rgba(45, 90, 39, 0.15); /* Dezenter Grünschimmer */
    border-color: var(--wheat-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.partner-img {
    max-width: 180px;
    height: auto;
    filter: grayscale(30%); /* Leicht entsättigt im Normalzustand */
    transition: all 0.4s ease;
    margin-bottom: 15px;
}

.partner-item:hover .partner-img {
    filter: grayscale(0%); /* Volle Farben beim Hover */
    transform: scale(1.05);
}

/* Formular Grid Optimierung */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* Dateiupload Button-Styling */
input[type="file"]::file-selector-button {
    background: var(--agrar-green);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 15px;
    font-family: 'Oswald';
}	
	
	
	
	
	
/* ========================================
    5. FOOTER
    ======================================== 
*/
footer { 
    background: #0a0908; border-top: 4px solid var(--agrar-green); 
    padding: 50px 0 20px 0; margin-top: 60px; 
}

.footer-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); 
    max-width: 1400px; margin: 0 auto; gap: 25px; padding: 0 20px; 
}

.copyright { 
    text-align: center; margin-top: 40px; font-size: 0.8rem; color: #444; 
    border-top: 1px solid #1a1a1a; padding-top: 20px; 
}
/* Back-to-Top Button Style */
#backToTop {
    display: none; /* Standardmäßig unsichtbar */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    border: 2px solid var(--wheat-gold);
    outline: none;
    background-color: #1a1a1a;
    color: var(--wheat-gold);
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

#backToTop:hover {
    background-color: var(--wheat-gold);
    color: #000;
    transform: translateY(-5px); /* Kleiner Sprung-Effekt beim Hovern */
}	
/* ========================================
    6. MEDIA QUERIES (RESPONSIVE)
    ======================================== 
*/
@media (max-width: 1200px) {
    .content-wrapper { grid-template-columns: 1fr; }
    .header-side { display: none; } /* Spart Platz auf Tablets */
}

@media (max-width: 850px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .header-container { flex-direction: column; text-align: center; }
    .main-logo-wrapper { padding: 20px 0; }
    .nav-link span { display: none; }
}

@media (max-width: 480px) {
    .nav-link { min-width: 80px; padding: 5px; }
    .nav-link strong { font-size: 0.85rem; }
    .agrar-card { padding: 15px; }
}

/* ========================================
    7. ANIMATIONEN & EFFEKTE
    ======================================== 
*/
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.live-blink {
    width: 10px; height: 10px; background: #ff0000; border-radius: 50%;
    box-shadow: 0 0 8px #ff0000; animation: blink 1.5s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }