* {
  margin: 0;
  padding: 0;
  list-style-type: none;
  outline: none !important;
}

body {
  background: #f6faf6;
  font-family: 'Roboto', sans-serif;
  color: #4C4B4B;
  text-align: center;
}

/* === Header === */

.header {
  background-color: #F9F3F2;
  padding-top: 20px;
}

.header-logo {
  max-width: 250px;
  height: auto;
  animation: fadeInZoom 1.2s ease forwards;
  opacity: 0;
}

@keyframes fadeInZoom {
  to {
    opacity: 1;
    transform: scale(1);
  }

  from {
    opacity: 0;
    transform: scale(0.95);
  }
}

.header-divider {
  height: auto;
  display: block;
  margin-top: 20px;
  background-color: #d6f1f5;
  width: 100%;
}

/* === Hero Section === */

.hero {
  background: linear-gradient(to bottom, #d6f1f5, #f6faf6);
  padding: 40px 20px;
  margin-bottom: 45px;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #2B5A2E;
}

.hero h1 span {
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: nowrap;
}

@media (max-width: 600px) {
  .hero-controls {
    flex-direction: column;
    margin-bottom: 20px;
  }
}

#review-btn {
  padding: 15px 50px 15px 50px;
  background-color: #AFC40E;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  /*box-shadow: 0 6px 15px rgba(154, 198, 60, 0.55);*/
  cursor: pointer;
  transition: background 0.3s ease
    /*, box-shadow 0.3s ease*/
  ;
  /*text-transform: uppercase;*/
}

#review-btn:hover {
  background: #2B5A2E;
  /*box-shadow: 0 8px 18px rgba(43, 90, 46, 0.8);*/
}

.tree-counter {
  display: flex;
  align-items: center;
  font-size: 36px;
  font-weight: 900;
  color: #2B5A2E;
}

.tree-counter-icon {
  margin-right: 15px;
  font-size: 32px;
  color: #2B5A2E;
}

.tick-flip-panel {
  color: #2b5a2e;
  background: #fff;
}

.hero__description {
  /*font-size: 16px;*/
  color: #2B5A2E;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* === Swiper === */

.swiper {
  overflow: hidden;
  width: 100%;
  position: relative;
  height: 430px;
}

.swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}

.swiper-slide {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /*justify-content: flex-end;*/
  flex: 0 0 50%;
}

@media (min-width: 600px) {
  .swiper-slide {
    flex: 0 0 33.33%;
  }
}

@media (min-width: 800px) {
  .swiper-slide {
    flex: 0 0 25%;
  }
}

@media (min-width: 1200px) {
  .swiper-slide {
    flex: 0 0 20%;
  }
}

@media (min-width: 1700px) {
  .swiper-slide {
    flex: 0 0 12.5%;
  }
}

.tree-svg {
  width: 200px;
  max-width: 90vw;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.tree-svg:hover {
  transform: translateY(-8px);
}

.tree-card__name {
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  font-weight: 700;
  /*font-size: 17px;*/
  line-height: 21px;
  color: #2B5A2E;
  letter-spacing: 0;
  width: 220px;
  border-radius: 10px;
  min-height: 40px;
  text-align: center;
  margin-top: 10px;
  cursor: pointer;
}

.tree-ground {
  /*background-image: url('https://plant-my-tree.de/wp-content/uploads/2025/07/Boden-scaled.png');*/
  background-color: #2b5a2e;
  height: 100px;
  width: 100%;
  margin-top: -85px;
  position: relative;
  z-index: -100;
}

.no-reviews {
  font-size: 1rem;
  font-weight: 700;
  padding: 2rem;
  color: #2B5A2E;
}

/* === Popup === */

.tree-popup {
  margin: auto;
  width: 400px;
  box-shadow: 0 16px 40px #0003;
  border: none;
  border-radius: 16px;
  background: #F9F3F2;
}

.tree-popup__img {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 224px;
  position: relative;
  border-radius: 16px 16px 0 0;
}

.tree-popup__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 1;
}

.tree-popup__close {
  position: absolute;
  right: 16px;
  top: 16px;
  border: none;
  border-radius: 4px;
  padding: 4px;
  width: 24px;
  height: 24px;
  background-color: transparent;
  z-index: 2;
}

.tree-popup__close:hover,
.tree-popup__close:focus {
  background-color: transparent;
}

.tree-popup__close-icon {
  color: #fff;
}

.tree-popup__close-icon:hover {
  color: #AFC40E;
}

.tree-popup__header {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  padding: 0 16px 16px;
  text-align: left;
  z-index: 2;
}

.tree-popup__title {
  font-weight: 400;
  /*font-size: 1rem;*/
  line-height: 1.5;
}

.tree-popup__name {
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.5;
}

.tree-popup__subtitle {
  font-weight: 400;
  font-size: .75rem;
  line-height: 1.5;
}

.tree-popup__details {
  padding: 16px;
}

.tree-popup__rating {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}

.star-icon {
  fill: #e3e3e3;
  margin-bottom: 5px;
  width: 20px;
  height: 20px;
}

.star-icon.filled {
  fill: #AFC40E;
  /*#ffbb29*/
}

.tree-popup__review {
  color: #4C4B4B;
  font-weight: 400;
  /*font-size: 16px;*/
  line-height: 1.5;
  margin-bottom: 8px;
  text-align: left;
  max-height: 120px;
  overflow-y: auto;
}

.tree-popup__link {
  font-size: 8px;
  color: #4C4B4B;
  /*text-align: left;*/
}

.tree-popup__link a {
  color: #2B5A2E;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
}

.tree-popup__link a:hover {
  text-decoration: underline;
}

.tree-popup__list {
  margin: 16px 0;
  border-bottom: 1px solid #D4D4D4;
  padding-top: 16px;
  border-top: 1px solid #D4D4D4;
}

.tree-popup__item {
  color: #4C4B4B;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tree-popup__list a {
  color: #2B5A2E;
  font-weight: 500;
  text-decoration: none;
}

.tree-popup__list a:hover {
  text-decoration: underline;
}

.tree-popup__impact {
  margin-bottom: 6px;
}

.tree-popup__impact li {
  display: flex;
  color: #4C4B4B;
  margin-bottom: 12px;
  text-align: left;
  align-items: center;
}

.tree-popup__impact li:last-child {
  margin-bottom: 0;
}

.caption {
  font-weight: 400;
  font-size: .75rem;
  line-height: 1.5;
}

dialog::backdrop {
  background-color: rgba(100, 100, 100, 0.6);
}

/* === Search === */

.tree-search {
  padding: 60px 20px;
  background-color: #2B5A2E;
  color: white;
}

.tree-search h2 {
  /*font-size: 2em;*/
  font-weight: bold;
  margin-bottom: 10px;
}

.tree-search p {
  margin-bottom: 20px;
}

#search-form {
  display: flex;
  justify-content: center;
}

#search-input {
  padding: 10px 20px;
  width: 80%;
  max-width: 400px;
  width: 80%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 25px;
  /*font-size: 1em;*/
}

.tree-icon {
  color: white;
  /*font-size: 1.2em;*/
  margin-left: 6px;
}

/* === Info === */

.treeview-info {
  background-color: #F9F3F2;
  padding: 60px 20px;
  text-align: left;
}

.treeview-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1000px;
  margin: auto;
}

@media(min-width: 768px) {
  .treeview-wrapper {
    flex-direction: row;
    align-items: center;
  }
}

.treeview-info h2 {
  color: #2B5A2E;
  font-weight: bold;
}

.treeview-img {
  max-width: 400px;
  object-fit: contain;
  display: block;
}

.treeview-list-button {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.treeview-list-button ul {
  padding-left: 0;
  list-style: none;
}

.treeview-list-button ul li {
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: #2B5A2E;
}

.treeview-btn {
  background: #AFC40E;
  color: white;
  border: none;
  border-radius: 30px;
  /*font-size: 18px;*/
  font-weight: bold;
  /*box-shadow: 0 6px 15px rgba(154, 198, 60, 0.55);*/
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 15px 50px 15px 50px;
  white-space: nowrap;
}

.treeview-btn:hover {
  background: #2B5A2E;
  color: white;
  /*box-shadow: 0 8px 18px rgba(43, 90, 46, 0.8);*/
}

.check-icon {
  color: #2B5A2E;
  margin-right: 12px;
  font-size: 1.1em;
}

/* === Shop === */

.shop-divider {
  height: auto;
  display: block;
  background-color: white;
  width: 100%;
}

.shop-section {
  background-color: white;
  padding: 60px 20px;
  text-align: center;
}

.shop-box {
  background-color: #2B5A2E;
  color: white;
  padding: 40px 30px;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.shop-box h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.shop-box p {
  /*font-size: 16px;*/
  margin-bottom: 20px;
}

.shop-btn {
  background-color: #AFC40E;
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.shop-btn:hover {
  background-color: white;
  color: #AFC40E;
}

/* === Footer === */

.footer {
  background-color: #2B5A2E;
  color: #fff;
}

.footer-divider {
  width: 100%;
  height: auto;
  display: block;
  background-color: #fff;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo-section {
  flex: 1 1 300px;
  min-width: 280px;
}

.footer-logo {
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
}

.footer-logo-section p {
  margin-bottom: 20px;
  line-height: 1.6;
  /*font-size: 16px;*/
}

.footer-seals-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  /*margin: 20px 0 20px;*/
}

@media (max-width: 768px) {
  .footer-seals-row {
    gap: 20px;
  }
}

.footer-seals-row img {
  max-height: 60px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.footer-bekannt-aus {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.footer-bekannt-img {
  max-width: 250px;
  display: block;
}

.footer-contact-section {
  flex: 1 1 220px;
  min-width: 200px;
}

.footer-contact-section strong {
  /*font-size: 24px;*/
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: block;
  /*margin-bottom: 20px;*/
}

.footer-contact-section strong + p {
  margin-top: 10px;
}

.footer-contact-section strong:not(:first-of-type) {
  margin-top: 30px;
  display: block;
}

.phone-icon {
  margin-right: 8px;
  /*font-size: 18px;*/
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #AFC40E;
  text-decoration: underline;
}

/* === Sub-Footer === */

.sub-footer {
  width: 100%;
  background-color: #163518;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  padding: 12px 0;
  display: flex;
  justify-content: center;
}

.sub-footer-inner {
  max-width: 1200px;
  width: 100%;
  padding: 12px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sub-footer-left,
.sub-footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.sub-footer-right a {
  margin: 0 12px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sub-footer-right a:hover {
  color: #AFC40E;
  text-decoration: underline;
}


@media (max-width: 600px) {
  .sub-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .sub-footer-left,
  .sub-footer-right {
    justify-content: center;
  }
}

/* === Scrollbar === */

.scrollbar {
  position: absolute;
  /*bottom: 0px;*/
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 10px;
  background: #fff;
  border-radius: 5px;
  margin-top: 10px;
  z-index: 10000;
}

.scroll-thumb {
  position: absolute;
  width: 20%;
  height: 100%;
  background: #AFC40E;
  border-radius: 5px;
  cursor: pointer;
}