:root {
  --green: #1f5f23;
  --green-dark: #154a19;
  --green-light: #256d2a;
  --green-hover: #1d5a22;
  --text-dark: #111111;
  --text-mid: #222222;
  --text-light: #2e2e2e;
  --bg-light: #f5f5f0;
  --bg-white: #ffffff;
  --border: #ddd;
  --shadow: 0 0.125rem 0.75rem rgba(0,0,0,0.08);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --nav-height: 4.0rem;
}

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

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.7;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: #154a19;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  z-index: 10000;
  border: 0.125rem solid #ffffff;
}
.skip-link:focus {
  position: fixed;
  left: 0.5rem;
  top: 0.5rem;
  background: #154a19 !important;
  color: #ffffff !important;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; }

a { color: var(--green-dark); text-decoration: underline; }
a:visited { color: #3b3b5c; }
a:hover, a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  color: var(--green-dark);
} 

nav a { text-decoration: none; }

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  color: #154a19;
  background: #ffffff;
}

header {
  background: var(--bg-white);
  border-bottom: 0.1875rem solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.1);
}
.logo-img {
  height: 2.8125rem;
  width: auto;
  display: block;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;      
  transition: transform 0.3s ease; 
  outline: none;              
}
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;         
  font-weight: 400;          
  letter-spacing: 0.125rem;
  color: #154a19;
  text-transform: none;     
  line-height: 1;
  font-style: italic;
}
.logo a:hover {
  transform: scale(1.05);     
  text-decoration: none;      
}

.header-inner {
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-logo:visited { color: var(--green-dark); }
.site-logo svg { width: 2.0rem; height: 2.0rem; flex-shrink: 0; }

nav { display: flex; align-items: center; gap: 0.25rem; }

nav a {
  padding: 0.45rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111111 !important; 
  background-color: transparent; 
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
nav a:hover { 
  background: var(--green-dark) !important;
  color: #ffffff !important;                
}
nav a.active {
  background: #154a19 !important;
  color: #ffffff !important;
  border-radius: 0.25rem;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0.125rem solid var(--green);
  border-radius: 0.25rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  color: var(--green-dark);
  font-size: 1.2rem;
  line-height: 1;
}

.hero, .hero-sub {
  color: #ffffff !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 6rem 1.5rem; 
  background-color: #154a19;
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.8)), url('img/hatter.jpg');
}

.hero.hero-sub {
  padding: 3.5rem 1.5rem; 
  background-color: #1a421d;
  background-image: linear-gradient(rgba(0, 50, 0, 0.8), rgba(0, 20, 0, 0.85)), url('img/ronkok.jpg') !important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-content { 
  position: relative; 
  max-width: 48rem; 
  margin: 0 auto; 
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem; 
}
.hero h1 { 
  font-size: clamp(1.5rem, 4vw, 2.5rem); 
  color: #ffffff; 
  margin-bottom: 1rem; 
  text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.7); 
}
.hero p { 
  font-size: 1.1rem;
  color: #ffffff; 
  margin-bottom: 2rem; 
  text-shadow: 0 0.063rem 0.25rem rgba(0, 0, 0, 0.7);
}

.hero a:not(.btn) { color: #ffffff; }
.hero a:not(.btn):visited { color: #c8e6c9; }

.hero .btn { background: #fff; color: var(--green-dark); font-weight: 700; padding: 0.8rem 2rem; border-radius: 3.125rem; text-decoration: none; display: inline-block; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 0.25rem 0.875rem rgba(0,0,0,0.18); }
.hero .btn:focus {
  background-color: #ffffff !important;
  color: #154a19 !important;
  outline: 0.1875rem solid #ffffff !important; 
  outline-offset: 0.125rem;
  box-shadow: 0 0 0 0.25rem rgba(0,0,0,0.3);
}
.hero .btn:hover { transform: translateY(-0.125rem); box-shadow: 0 0.375rem 1.25rem rgba(0,0,0,0.22); color: var(--green-dark); }

.carousel {
  position: relative;
  max-width: 35.0rem;
  margin: 0 auto;
  background: rgba(0,0,0,0.2);
  border-radius: 0.5rem;
  overflow: hidden;
}
.carousel-inner { display: flex; transition: transform 0.5s ease; }
.carousel-inner figure { min-width: 100%; margin: 0; }
.carousel-inner figure img { width: 100%; height: 17.5rem; object-fit: cover; display: block; }
.carousel-inner figure figcaption {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;           
  background: rgba(0,0,0,0.85); 
  color: #ffffff;
  font-weight: 600;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 2.5rem; height: 2.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }
.carousel-btn:hover { background: #fff; }

main { max-width: 68.75rem; margin: 0 auto; padding: 2.5rem 1.5rem; }

.section { margin-bottom: 3rem; }
.section-header { margin-bottom: 1.5rem; }
.section-header h2 { color: var(--green-dark); position: relative; padding-bottom: 0.5rem; }
.section-header h2::after { content: ''; display: block; width: 3rem; height: 0.1875rem; background: var(--green); margin-top: 0.4rem; border-radius: 0.125rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.feature-list { list-style: none; }
.feature-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  border-bottom: 0.0625rem solid var(--border);
  font-size: 1rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
}
.feature-list strong { color: var(--green-dark); }

.img-wrap {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.img-wrap behajt { cursor: zoom-in; transition: transform 0.3s; }
.img-wrap behajt:hover { transform: scale(1.02); }

.info-card {
  background: var(--bg-white);
  border: 0.0625rem solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.info-card h3 { color: var(--green-dark); margin-bottom: 1rem; }
.contact-detail { margin-bottom: 0.4rem; font-size: 0.95rem; }
.contact-detail strong { display: inline-block; min-width: 7.5rem; color: var(--text-mid); }

.scroll-fade {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-fade.appear {
  opacity: 1;
  transform: translateY(0);
}
.feature-list li.appear:nth-child(1) { transition-delay: 0.1s; }
.feature-list li.appear:nth-child(2) { transition-delay: 0.2s; }
.feature-list li.appear:nth-child(3) { transition-delay: 0.3s; }

#siker-uzenet {
  display: none;
  background-color: #d4edda;
  color: #155724;
  padding: 0.9375rem; 
  border-radius: 0.3125rem; 
  margin-top: 1.25rem; 
  border: 0.0625rem solid #c3e6cb;
}

.video-transcript-box {
  padding: 1rem;
  background: var(--bg-light);
  font-size: 0.9rem;
  border: 0.0625rem solid var(--border);
  border-top: none;
  border-radius: 0 0 0.25rem 0.25rem;
}

.form-select-custom {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 0.0625rem solid var(--border);
  border-radius: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fafafa;
}
.img-caption-custom {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
  background: var(--bg-light);
}

a.btn-primary,
.btn-primary {
  display: inline-block;
  background: var(--green-dark);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 0.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: var(--font-body);
  margin-top: 1rem;
}
a.btn-primary:hover, a.btn-primary:focus,
.btn-primary:hover, .btn-primary:focus {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-0.0625rem);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--green-dark);
  padding: 0.6rem 1.25rem;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 0.125rem solid var(--green);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-body);
  margin-top: 0.5rem;
}
.btn-outline:hover { background: var(--green); color: #fff; }

details { margin-bottom: 1.5rem; }
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: var(--green-dark);
  color: #fff;
  border-radius: 0.25rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: '▶'; font-size: 0.75rem; transition: transform 0.2s; }
details[open] summary::before { transform: rotate(90deg); }
summary:hover { background: #0d3610; }

.price-table-wrap {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: var(--bg-white);
  border: 0.0625rem solid var(--border);
  border-top: none;
  border-radius: 0 0 0.25rem 0.25rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  flex: 1;
  min-width: 17.5rem;
}
table caption { font-weight: 700; font-size: 1rem; color: var(--green-dark); margin-bottom: 0.5rem; text-align: left; }
th, td { padding: 0.65rem 1rem; text-align: left; border: 0.0625rem solid var(--border); }
th { background: var(--green-dark); color: #fff; font-family: var(--font-heading); font-size: 0.95rem; }
tr:nth-child(even) { background: #f0f7f0; }

.table-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.75rem; }
.table-icons { display: flex; gap: 1rem; font-size: 1.5rem; }
.table-icons a:not(.btn-primary) { text-decoration: none; color: var(--green-dark); }
.table-icons a:not(.btn-primary):hover { color: var(--green-light); }

.video-wrap {
  display: grid;
  grid-template-columns: 20.0rem 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--bg-white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.video-wrap video { width: 100%; border-radius: 0.375rem; }
.video-desc { font-size: 0.95rem; color: var(--text-mid); }
.video-desc h3 { color: var(--green-dark); margin-bottom: 0.75rem; }

#adatkezeles {
  font-weight: bold;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #222222;
  padding: 0.75rem;
  border: 0.0625rem solid var(--border);
  border-radius: 0.25rem;
  background: var(--bg-white);
}

.form-section h2 { color: var(--green-dark); margin-bottom: 1.5rem; font-size: 1.4rem; }
.form-group { margin-bottom: 1.25rem; }
label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-mid);
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 0.0625rem solid var(--border);
  border-radius: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 0.1875rem rgba(46,125,50,0.15);
  background: #fff;
}
textarea { resize: vertical; min-height: 7.5rem; }

.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 0.4rem; }
.radio-group label, .checkbox-group label {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 400; font-size: 0.95rem; color: var(--text-dark);
  cursor: pointer;
}
input[type="radio"], input[type="checkbox"] { accent-color: var(--green); width: 1rem; height: 1rem; cursor: pointer; }

footer {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1.5rem;
  font-size: 0.875rem;
}
footer nav { justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
footer nav a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-bottom: 0.125rem solid rgba(255,255,255,0.55);
  transition: border-color 0.2s;
}
footer nav a:visited { color: #c8e6c9 !important; border-bottom-color: rgba(200,230,201,0.55); }
footer nav a:hover { border-bottom-color: #fff; }
footer p { margin-top: 0.75rem; color: rgba(255,255,255,0.9); font-size: 0.8rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--bg-white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 0.0625rem solid var(--border);
  display: flex;
  flex-direction: column;
}
.product-card a { text-decoration: none; color: var(--green-dark); }
.product-card .card-img { display: block; color: #154a19; }
.product-card .card-img img {
  width: 100%; height: 12.5rem; object-fit: cover; display: block;
  transition: transform 0.3s;
}
.product-card:hover .card-img img { transform: scale(1.04); }
.product-card .card-body { padding: 1.25rem; flex: 1; }
.product-card .card-body h3 { color: var(--green-dark); font-size: 1.05rem; margin-bottom: 0.5rem; }
.product-card .card-body p { font-size: 0.9rem; color: var(--text-mid); margin: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

body.high-contrast {
  --green: #00aa00;
  --green-dark: #006600;
  --green-light: #00cc00;
  --text-dark: #000;
  --text-mid: #111;
  --bg-light: #fff;
  --bg-white: #fff;
  --border: #000;
  background: #fff;
  color: #000;
  font-size: 1.2rem;
}
body.high-contrast .btn-primary,
body.high-contrast .btn,
body.high-contrast nav a.active {
  background-color: CanvasText !important; 
  color: Canvas !important;             
  border: 0.125rem solid ButtonText !important;
}
body.high-contrast .hero a,
body.high-contrast footer a {
  color: #ffff00 !important; 
  text-decoration: underline;
}

.a11y-bar {
  color: var(--green-dark);
  padding: 0.5rem 1.5rem;
  display: flex !important; 
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.a11y-bar span {
  margin-right: auto !important; 
  font-weight: 600;
}
.a11y-bar button {
  background-color: #ffffff;
  color: var(--green-dark);
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  white-space: nowrap; 
}
.a11y-bar button:hover { background: #ddd; }
.a11y-bar button.active-hc { background: #000; color: #fff; border-color: #000; }

@media (max-width: 56.25rem) { 
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .video-wrap { grid-template-columns: 1fr; }
  .video-wrap video { max-width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .price-table-wrap { flex-direction: column; }
}

/* === MOBIL NÉZET BEÁLLÍTÁSAI (600PX ALATT) === */
@media (max-width: 37.5rem) { 
  .header-inner { padding: 0 1rem; }
  header nav { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: #fff; border-bottom: 0.125rem solid var(--green); padding: 1rem; gap: 0.25rem; box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1); }
  header nav.open { display: flex; }
  .menu-toggle { display: flex; align-items: center; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .carousel-inner figure img { height: 12.5rem; }
  main { padding: 1.5rem 1rem; }
  .form-section { padding: 1.25rem; }
  .video-wrap { padding: 1rem; }
  
  header h1, 
  .logo-text, 
  header a span { 
    font-size: 1.5rem !important;    
    line-height: 1.2 !important;     
    margin-left: 0.5rem !important;  
    display: block !important;
  }

  /* RESZPONZÍV KÁRTYÁS MOBIL TÁBLÁZAT KÓDJA */
  table {
    display: block !important;
    width: 100% !important;
  }
  
  thead {
    display: none !important; /* Rejtett felső léc mobilon */
  }
  
  tbody, tr, td {
    display: block !important;
    width: 100% !important;
  }
  
  tr {
    margin-bottom: 1.5rem !important;
    border: 0.0625rem solid var(--green, #1f5f23) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem !important;
    background: #fff !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.05) !important;
  }
  
  td {
    text-align: right !important; /* Értékek jobbra tolása */
    padding: 0.65rem 0.5rem !important;
    border: none !important;
    border-bottom: 0.0625rem dashed #eee !important;
    position: relative !important;
    padding-left: 45% !important; /* Hely a fix CSS feliratnak */
    font-size: 0.95rem !important;
  }
  
  td:last-child {
    border-bottom: none !important;
  }

  /* A tulajdonság neve (zöld kiemelt dobozként felül) */
  td:first-child {
    text-align: center !important;
    font-weight: 700 !important;
    background: #f0f7f0 !important;
    border-radius: 0.25rem !important;
    padding-left: 0.5rem !important;
    color: var(--green-dark) !important;
    font-size: 1.05rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Fix szöveg generálása a második oszlopnak (Akácfa) */
  td:nth-child(2)::before {
    content: "Akácfa:" !important;
    position: absolute !important;
    left: 0.5rem !important;
    top: 0.65rem !important;
    width: 35% !important;
    text-align: left !important;
    font-weight: 700 !important;
    color: var(--green-dark) !important;
  }
  
  /* Fix szöveg generálása a harmadik oszlopnak (Tölgyfa) */
  td:nth-child(3)::before {
    content: "Tölgyfa:" !important;
    position: absolute !important;
    left: 0.5rem !important;
    top: 0.65rem !important;
    width: 35% !important;
    text-align: left !important;
    font-weight: 700 !important;
    color: var(--green-dark) !important;
  }
}

@media print {
  .a11y-bar, header, footer, .hero .btn, .btn-primary, .btn-outline, .carousel-btn, .menu-toggle { display: none !important; }
  body { background: #fff; font-size: 12pt; color: #000; }
  header { display: block !important; position: static; box-shadow: none; border-bottom: 0.0625rem solid #000; }
  main { max-width: 100%; padding: 1rem; }
  img, video { max-width: 60% !important; page-break-inside: avoid; }
  .info-card, .form-section, .video-wrap, .product-card { box-shadow: none; border: 0.0625rem solid #ccc; page-break-inside: avoid; }
}