/* Grundlayout */
body {
  font-family: sans-serif;
  margin: 0;
  background: #006e00;
  color: white;
  padding-bottom: 64px; /* Platz für fixen Footer */
}

.main-wrap {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

h1, h2 {
  text-align: center;
}

/* Form & Controls */
input, button {
  font-size: 1rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 5px;
}

input {
  background: white;
  color: black;
}

button {
  background: #00a000;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #008000;
}

/* Ergebnisbox */
.result {
  margin-top: 1rem;
  background: #00a000;
  color: white;
  padding: 1rem;
  border-radius: 8px;
}

/* Tabelle/Grids für CIDR-Infos */
.grid {
  display: grid;
  gap: .5rem .75rem;
  grid-template-columns: 240px 1fr;
  align-items: start;
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
}

.label {
  color: #fff;
  font-weight: 600;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.small {
  font-size: .95rem;
}

/* --- Footer --- */
.page-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .75rem;
  background: #005800;
  color: #fff;
  box-shadow: 0 -2px 6px rgba(0,0,0,.25);
  z-index: 1000;
}

.page-footer a {
  color: #fff;
  text-decoration: none;
}

.page-footer a:hover,
.page-footer a:focus {
  text-decoration: underline;
}

.footer-left, .footer-right {
  font-size: .95rem;
  white-space: nowrap;
}
