/* Look of www.atwaldhof.ch: white, Arial, Agro green accent, dark grey bars */
:root {
  --text: #272727;
  --text-soft: #404040;
  --muted: #798486;
  --bg: #fff;
  --surface: #eef2f5;
  --line: #ccc;
  --accent: #6aa84f;
  --accent-dark: #4e8a36;
  --bar: #444;
  --warn-bg: #fff4e5;
  --error: #b3261e;
  --radius: 5px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font: 15px/1.5 Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; }

header { border-bottom: 1px solid var(--line); }
.kopf { position: relative; max-width: 1100px; margin: 0 auto; padding: 16px; text-align: center; }
.kopf img { display: block; height: 96px; width: auto; margin: 0 auto 6px; }
.kopf .titel { font-size: 17px; color: var(--text-soft); letter-spacing: .02em; }
.kopf .titel strong { color: var(--accent); }
.kopf form { position: absolute; top: 16px; right: 16px; margin: 0; }

.hinweis-test { padding: 6px 16px; background: var(--warn-bg); font-size: 13px; text-align: center; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
footer { background: var(--bar); color: #fff; font-size: 13px; text-align: center; padding: 12px 16px; margin-top: 24px; }

.karte { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.karte.schmal { max-width: 380px; margin: 32px auto; }
h1 { font-size: 20px; margin: 0 0 12px; color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
h2 { font-size: 16px; margin: 20px 0 8px; color: var(--text-soft); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px; padding: 12px; background: var(--surface); }
legend { font-weight: bold; padding: 0 4px; }
fieldset label { display: block; margin-top: 8px; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; }
.raster label { font-size: 13px; color: var(--text-soft); }
input[type=number], input[type=password], input[type=file] {
  width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--text); background: var(--bg);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button, .button {
  display: inline-block; padding: 8px 18px; background: var(--accent); color: #fff; border: 1px solid var(--accent-dark);
  border-radius: var(--radius); font: inherit; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { background: var(--accent-dark); }
button.link { background: none; border: 0; color: var(--text-soft); padding: 0; text-decoration: underline; }
button.link:hover { color: var(--accent); background: none; }
.klein { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.warnung { background: var(--warn-bg); padding: 8px 8px 8px 28px; border-radius: var(--radius); }
.errorlist { color: var(--error); margin: 4px 0; padding-left: 18px; }
.tabelle { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { background: var(--surface); }
th, td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.zahl { text-align: right; white-space: nowrap; }

@media (max-width: 600px) {
  .kopf img { height: 64px; }
  .kopf form { position: static; margin-top: 8px; }
}
