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

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

/* ========================================
   1. VARIABLEN & GRUNDSTEUERUNG (CHRISTMAS EDITION)
   ======================================== */
:root {
  --agrar-green: #24522d;
  --agrar-green-light: #316b3c;
  --wheat-gold: #e6be4c;
  --xmas-red: #8f2d2d;
  --xmas-red-glow: rgba(143, 45, 45, 0.35);
  --earth-dark: #161816;
  --panel-bg: #1e211e;
  --panel-border: #313630;
  --text-light: #ece7df;
  --text-muted: #b0b3ae;
  --corner-size: 15px;
  --transition: all 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--earth-dark);
  background-image: radial-gradient(circle at 50% 0%, rgba(36, 82, 45, 0.14) 0%, transparent 65%);
  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;
}

h1,
h2,
h3,
.oswald-font {
  font-family: 'Oswald', sans-serif;
}

h1,
h2,
h3 {
  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;
}

/* ========================================
   2. HEADER & NAVIGATION
   ======================================== */
header {
  background: linear-gradient(180deg, #101411 0%, #141714 100%);
  border-bottom: 4px solid var(--agrar-green);
  padding: 28px 0 20px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Kräftigerer Tannenzweig-Saum oben am Header */
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  pointer-events: none;
  opacity: 0.9;
  background-repeat: repeat-x;
  background-position: top left;
  background-size: 160px 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18' viewBox='0 0 120 18'%3E%3Cpath d='M0 2 Q30 6 60 2 T120 2' stroke='%231e4425' stroke-width='2.5' fill='none'/%3E%3Cpath d='M8 2 L3 10 M16 3 L12 12 M24 3 L21 13 M32 4 L30 13 M40 3 L39 12 M48 2 L48 11 M56 2 L58 10 M68 2 L64 11 M76 3 L73 12 M84 4 L82 13 M92 3 L91 12 M100 3 L101 12 M108 2 L110 11 M115 2 L118 9' stroke='%232d6337' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M12 2 L16 9 M28 3 L33 10 M44 3 L49 9 M72 3 L77 10 M88 3 L93 10 M104 2 L109 9' stroke='%233d7d49' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='31' cy='6' r='2' fill='%23992e2e'/%3E%3Ccircle cx='35' cy='8' r='1.7' fill='%23b53838'/%3E%3Ccircle cx='90' cy='6' r='2' fill='%23992e2e'/%3E%3Ccircle cx='94' cy='8' r='1.7' fill='%23b53838'/%3E%3C/svg%3E");
}

.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;
  padding-left: 0;
  text-align: right;
}

.main-logo-wrapper {
  flex: 0 0 auto;
  padding: 0 40px;
  text-align: center;
}

.main-logo {
  height: 150px;
  filter: drop-shadow(0 0 12px rgba(230, 190, 76, 0.22));
  transition: var(--transition);
}

.main-logo:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(0, 0, 0, 0.42);
  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: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.nav-link:hover {
  background: rgba(36, 82, 45, 0.25);
}

.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%;
}

.main-nav .nav-link.nav-btn-join {
  background: var(--xmas-red);
  border: 1px solid #a83a3a;
  border-radius: 4px;
  padding: 8px 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.main-nav .nav-link.nav-btn-join strong {
  color: #ffffff;
}

.main-nav .nav-link.nav-btn-join span {
  color: var(--wheat-gold);
  opacity: 1;
}

.main-nav .nav-link.nav-btn-join:hover {
  background: var(--wheat-gold);
  border-color: #b89428;
  transform: translateY(-2px);
}

.main-nav .nav-link.nav-btn-join:hover::after {
  width: 0;
}

.main-nav .nav-link.nav-btn-join:hover strong,
.main-nav .nav-link.nav-btn-join:hover span {
  color: #120f0c;
}

/* ========================================
   3. LAYOUT & CARDS (MIT GRÖSSEREN TANNENZWEIG-ECKEN)
   ======================================== */
.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: 30px;
  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(230, 190, 76, 0.03) 0%, transparent 100%);
}

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

/* Größere, sauber platzierte Tannenzweige in den Ecken der Karten */
.agrar-card::before,
.agrar-card::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'%3E%3Cpath d='M3 45 Q16 20 46 4' stroke='%2324522d' stroke-width='2.8' stroke-linecap='round' fill='none'/%3E%3Cpath d='M9 37 L3 26 M15 31 L8 19 M22 25 L15 13 M29 19 L23 7 M37 13 L32 3' stroke='%23336e3f' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M12 37 L23 42 M18 30 L30 34 M25 23 L37 27 M32 16 L43 19' stroke='%233f824c' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='32' r='3' fill='%239c2b2b'/%3E%3Ccircle cx='21' cy='35' r='2.4' fill='%23bd3838'/%3E%3Ccircle cx='19' cy='28' r='2.1' fill='%23e6be4c'/%3E%3C/svg%3E");
}

.agrar-card::before {
  top: -8px;
  left: -8px;
}

.agrar-card::after {
  bottom: -8px;
  right: -8px;
  transform: rotate(180deg);
}

/* ========================================
   4. SPEZIAL-KOMPONENTEN (MODS, PARTNER, FORM)
   ======================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.2);
}

th {
  background: #121512;
  color: var(--wheat-gold);
  font-family: 'Oswald', sans-serif;
  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 #2b2f2b;
  font-size: 0.95rem;
  color: var(--text-light);
}

.mod-row {
  transition: background 0.2s;
  cursor: pointer;
}

.mod-row:hover {
  background: rgba(36, 82, 45, 0.22);
}

.details {
  display: none;
  background: #151715;
  color: #a8d8c8;
  font-style: italic;
  font-size: 0.85rem;
}

.details td {
  padding: 15px 15px 15px 40px;
  border-bottom: 2px solid var(--panel-border);
}

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

#modSearch {
  width: 100%;
  padding: 10px;
  background: #121512;
  border: 1px solid var(--agrar-green);
  color: #ffffff;
  font-family: inherit;
  margin-top: 10px;
}

input,
textarea,
select {
  width: 100%;
  background: #121512;
  border: 1px solid var(--panel-border);
  padding: 12px;
  color: #ffffff;
  outline: none;
  margin-bottom: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--wheat-gold);
}

.btn-action,
.btn-submit {
  background: var(--agrar-green);
  color: #ffffff;
  border: 1px solid rgba(230, 190, 76, 0.25);
  padding: 15px;
  font-family: 'Oswald', sans-serif;
  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);
  border-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: #ffffff;
  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.85;
}

.bg-facebook { background: #3b5998; }
.bg-whatsapp { background: #25d366; }
.bg-discord { background: #5865f2; }
.bg-copy { background: var(--agrar-green); cursor: pointer; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.partner-item {
  background: rgba(34, 38, 34, 0.6);
  border: 1px solid rgba(230, 190, 76, 0.22);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partner-item:hover {
  background: rgba(36, 82, 45, 0.18);
  border-color: var(--wheat-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(230, 190, 76, 0.16);
}

.partner-img {
  max-width: 180px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.35s ease;
  margin-bottom: 15px;
}

.partner-item:hover .partner-img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

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

input[type="file"]::file-selector-button {
  background: var(--agrar-green);
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 15px;
  font-family: 'Oswald', sans-serif;
}

/* ========================================
   5. FOOTER & BACK-TO-TOP
   ======================================== */
footer {
  background: #0b0d0b;
  border-top: 4px solid var(--agrar-green);
  padding: 50px 0 32px 0;
  margin-top: 60px;
  position: relative;
}

/* Kräftigerer Tannenzweig-Saum unten am Footer */
footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 26px;
  pointer-events: none;
  opacity: 0.85;
  transform: scaleY(-1);
  background-repeat: repeat-x;
  background-position: top left;
  background-size: 160px 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18' viewBox='0 0 120 18'%3E%3Cpath d='M0 2 Q30 6 60 2 T120 2' stroke='%231e4425' stroke-width='2.5' fill='none'/%3E%3Cpath d='M8 2 L3 10 M16 3 L12 12 M24 3 L21 13 M32 4 L30 13 M40 3 L39 12 M48 2 L48 11 M56 2 L58 10 M68 2 L64 11 M76 3 L73 12 M84 4 L82 13 M92 3 L91 12 M100 3 L101 12 M108 2 L110 11 M115 2 L118 9' stroke='%232d6337' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='31' cy='6' r='1.8' fill='%23992e2e'/%3E%3Ccircle cx='90' cy='6' r='1.8' fill='%23992e2e'/%3E%3C/svg%3E");
}

.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: #888d87;
  border-top: 1px solid #1b1f1b;
  padding-top: 20px;
}

#backToTop {
  display: none;
  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: #161a16;
  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: #000000;
  transform: translateY(-5px);
}

/* ========================================
   6. MEDIA QUERIES (RESPONSIVE)
   ======================================== */
@media (max-width: 1200px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .header-side {
    display: none;
  }
}

@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: 20px;
  }
}

/* ========================================
   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;
  }
}