html, body { margin: 0; padding: 0; font-family: Arial, sans-serif; }

body { background: #f3e4e4; }

header { display: flex; flex-direction: column; align-items: center; padding: 10px; background: #e6dfd1; color: #fff; }

header .logo { max-width: 100%; height: auto; }

header img.logo { height: 50px; }

nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 8px 0; }

nav a { color: #004d25; text-decoration: none; font-weight: bold; }

@media (max-width: 600px) { header { padding: 8px; } nav { gap: 12px; font-size: 14px; } }

.hero {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  text-align: center;
}

.hero img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.hero h1.overlay {
  position: absolute;
  bottom: 10%;
  left: 0; right: 0;
  margin: 0;
  padding: 20px;
  color: #302d2d;
  background: rgba(179, 223, 206, 0.6);
  font-size: 1.6rem;
  line-height: 1.4;
  border-radius: 0 0 8px 8px;
  text-align: center;
}

section { padding: 40px 16px; max-width: 1100px; margin: auto; }

section h2, h3 { color: #004d25; margin-top: 0; }

.grid { display: grid; gap: 2rem; margin-top: 1.5rem; grid-template-columns: 1fr 1fr; }

.card {
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.card img { width: 100%; border-radius: 8px; height: auto; display: block; }

@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

img { max-width: 100%; height: auto; }

form input, form textarea {
  width: 100%; padding: 8px; margin-bottom: 8px;
  border: 1px solid #ccc; border-radius: 4px;
}

form button {
  padding: 10px 16px; border: none;
  background: #0073e6; color: #fff;
  border-radius: 4px; cursor: pointer;
}

form button:hover { background: #005bb5; }

footer {
  background: #e6dfd1;
  color: #004d25;
  text-align: center;
  padding: 20px;
  margin-top: 3rem;
}

footer a { color: #004d25; margin: 0 10px; text-decoration: none; }

p { margin: 0.5em 0; }

a { color: #004d25; text-decoration: none; }

a:hover { color: #e6dfd1; }

/* Kontakt */
#kontakt {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 16px;
  background-color: #f3e4e4;
}

.kontakt-card {
  max-width: 700px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 32px;
  text-align: center;
}

.kontakt-card .button {
  padding: 12px 24px;
  background-color: #004d25;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.kontakt-card .button:hover { background-color: #007a3d; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px 30px;
  border-radius: 8px;
  width: 80%; max-width: 700px;
  color: #333; line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.close {
  color: #333;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover { color: #007a3d; }

.button {
  padding: 10px 20px;
  background-color: #004d25;
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.button:hover { background-color: #007a3d; }

/* ToTop Button */
#toTopBtn {
  display: none;
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  background-color: #004d25;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, opacity 0.22s ease;
  opacity: 0;
  display: inline-flex;
}

#toTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    background-color: #004d25;
    color: white;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    display: none;
    opacity: 0;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  #toTopBtn.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }