/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Hintergrund */
body {
  background: linear-gradient(135deg, #f3f8f1, #ffffff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 30px;
}

.header-image {
  width: 300px;
  margin-bottom: 28px;
}

header h1 {
  font-size: 20px;
  color: #4CAF50; /* kräftiges Grün */
  margin-bottom: 5px;
  font-weight: 700;
}

/* Formular-Container */
form {
  background: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  width: 100%;
  transition: transform 0.2s ease;
  border: 2px solid #6ab42f; /* Raiffeisen-Grün */
}

form:hover {
  transform: translateY(-2px);
}

/* Labels */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #4a4a4a;
  font-size: 14px;
}

/* Inputs und Selects */
input[type="number"],
select,
input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 18px;
  border: 1px solid #cdddcf;
  border-radius: 10px;
  background: #f7faf6;
  transition: all 0.3s ease;
  font-size: 14px;
}

input:focus,
select:focus {
  border-color: #6ab42f;
  background: #fff;
  box-shadow: 0 0 6px rgba(106, 180, 47, 0.4);
  outline: none;
}

/* Zaunlänge + Ecken nebeneinander */
.zaun-form {
  display: flex;
  gap: 15px;
}

.zaun-form label {
  flex: 1;
}

.zaun-form input {
  flex: 1;
}

/* Button */
input[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #6ab42f; /* Raiffeisen-Grün */
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

input[type="submit"]:hover {
  background: #4CAF50; /* dunkleres Grün beim Hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dynamische Auswahlfelder (Gartentor/Doppeltor) */
#result_gartentor,
#result_doppeltor {
  margin-top: 10px;
  padding: 15px;
  background: #fffef9;
  border: 1px solid #c48a3a; /* warmes Braun vom Banner */
  border-radius: 10px;
  color: #8b5a2b;
}

/* Responsive */
@media (max-width: 600px) {
  form {
    padding: 20px;
  }

  header h1 {
    font-size: 22px;
  }
}
