/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Hintergrund */
body {
  background: linear-gradient(135deg, #e6ecf2, #f9fbfc);
  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: 150px;
  margin-bottom: 10px;
}

header h1 {
  font-size: 28px;
  color: #222;
  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;
}

form:hover {
  transform: translateY(-2px);
}

/* Labels */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
  font-size: 14px;
}

/* Inputs und Selects */
input[type="number"],
select,
input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fafafa;
  transition: all 0.3s ease;
  font-size: 14px;
}

input:focus,
select:focus {
  border-color: #0077cc;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 119, 204, 0.25);
  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: #0077cc;
  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: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Dynamische Auswahlfelder (Gartentor/Doppeltor) */
#result_gartentor,
#result_doppeltor {
  margin-top: 10px;
  padding: 15px;
  background: #f9fafc;
  border: 1px solid #ddd;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  form {
    padding: 20px;
  }

  header h1 {
    font-size: 22px;
  }
}
