/* Angelehnt an das Design von man-traktor.de (Twenty Eleven) */
:root {
  --page-bg: #438790;
  --text: #373737;
  --heading: #222;
  --muted: #7a7a7a;
  --link: #1982d1;
  --border: #ddd;
  --field-bg: #fafafa;
  --error: #b3261e;
  --error-bg: #fdecea;
  --success: #1e6b35;
  --success-bg: #e8f5ec;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 2em;
  background: var(--page-bg);
  color: var(--text);
  font: 15px/1.625 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

#page {
  max-width: 1000px;
  margin: 2em auto;
  background: #fff;
}

/* ---- Kopfbereich ---- */
#branding { border-top: 2px solid #bbb; }
.site-heading { padding: 2.8em 7.6% 1.6em; }
#site-title { margin: 0; font-size: 30px; font-weight: bold; line-height: 1.2; }
#site-title a { color: #111; }
#site-title a:hover { color: var(--link); text-decoration: none; }
#site-description { margin: .3em 0 0; color: var(--muted); font-size: 14px; }
.header-image img { display: block; width: 100%; height: auto; }

#access {
  display: flex;
  flex-wrap: wrap;
  background: linear-gradient(#252525, #0a0a0a);
  box-shadow: rgba(0, 0, 0, .4) 0 1px 2px;
  padding: 0 5.5%;
}
#access a {
  color: #eee;
  font-size: 13px;
  line-height: 3.333em;
  padding: 0 1.2125em;
}
#access a:hover, #access a:focus { background: linear-gradient(#f9f9f9, #e5e5e5); color: #373737; text-decoration: none; }
#access a.current { font-weight: bold; }

/* ---- Inhalt ---- */
#main { padding: 2.2em 7.6% 3em; }
.entry { max-width: 700px; margin: 0 auto; }
.entry-title { color: var(--heading); font-size: 26px; font-weight: bold; line-height: 1.5; margin: 0 0 .6em; }
.entry h2 { color: var(--heading); font-size: 18px; margin: 1.6em 0 .4em; }
.entry p { margin: 0 0 1.2em; }

/* ---- Formular ---- */
.field { margin-bottom: 1.4em; }
.field > label, .field > .label { display: block; font-weight: bold; margin-bottom: .3em; }
.req { color: var(--error); }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1);
  padding: .5em .6em;
  border-radius: 0;
}
textarea { resize: vertical; min-height: 7em; }
input:focus, textarea:focus { outline: 2px solid var(--link); outline-offset: 0; background: #fff; }
[aria-invalid="true"] { border-color: var(--error); }
::placeholder { color: #aaa; }

.hint { color: var(--muted); font-size: 13px; margin: .35em 0 0; }
.field-error { color: var(--error); font-size: 13px; margin: .35em 0 0; }
.field-error:empty { display: none; }

/* Honigtopf für Spam-Bots */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Dateiauswahl ---- */
.field > label.dropzone {
  position: relative;
  font-weight: normal;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3em;
  text-align: center;
  padding: 1.6em 1em;
  border: 2px dashed #bbb;
  background: #f9f9f9;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.dragover, .dropzone:focus-within { border-color: var(--link); background: #eef6fc; }
.dropzone-icon { color: var(--page-bg); }
.dropzone-text { font-size: 16px; }
.dropzone-text strong { color: var(--link); }
.dropzone .hint { margin: 0; }
.dropzone.full { opacity: .55; }

.js-only { display: none; }
.js .js-only { display: inline; }
.js p.js-only { display: block; }
.js .dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.dropzone input[type="file"] { max-width: 100%; }

.file-counter { font-size: 13px; margin: .6em 0 0; color: var(--text); }
.file-counter:empty { display: none; }

.entry .file-list {
  list-style: none;
  margin: .8em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.file-list:empty { display: none; }
.file-list li { position: relative; border: 1px solid var(--border); background: #fff; }
.thumb { aspect-ratio: 4 / 3; background: #eee; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.no-preview {
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--page-bg); font-weight: bold; letter-spacing: .05em;
}
.file-list .meta { padding: .3em .45em; font-size: 12px; line-height: 1.35; }
.file-list .name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-list .size { color: var(--muted); }
.file-list .remove {
  position: absolute; top: 4px; right: 4px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .65); color: #fff;
  font-size: 18px; line-height: 26px; padding: 0; cursor: pointer;
}
.file-list .remove:hover, .file-list .remove:focus { background: var(--error); }
.file-list .remove:disabled { display: none; }

/* ---- Zustimmung ---- */
.consent {
  background: #f9f9f9;
  border: 1px solid var(--border);
  padding: 1em 1.1em;
}
.field > label.checkbox { font-weight: normal; display: flex; gap: .7em; align-items: flex-start; font-size: 14px; line-height: 1.55; cursor: pointer; }
.checkbox input { margin: .3em 0 0; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--page-bg); }

.privacy-note { font-size: 13px; color: var(--muted); }

/* ---- Absenden ---- */
.submit-row { display: flex; align-items: center; gap: 1.2em; flex-wrap: wrap; margin-top: 1.4em; }
button[type="submit"] {
  font: inherit;
  font-weight: bold;
  color: #eee;
  background: #222;
  border: 0;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  padding: .65em 1.6em;
  cursor: pointer;
}
button[type="submit"]:hover, button[type="submit"]:focus { background: var(--link); color: #fff; }
button[type="submit"]:disabled { background: #888; cursor: wait; }
.req-note { font-size: 13px; color: var(--muted); }

.progress { margin: 1.2em 0 0; }
.progress-track { height: 10px; background: #eee; border-radius: 5px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--page-bg); transition: width .2s; }
.progress-text { font-size: 13px; margin: .4em 0 0; }

/* ---- Hinweise ---- */
.notice { padding: 1em 1.2em; margin: 0 0 1.4em; border-left: 4px solid; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice h2 { margin-top: 0; }
.notice-error { color: var(--error); background: var(--error-bg); border-color: var(--error); }
.notice-success { color: var(--success); background: var(--success-bg); border-color: var(--success); }
.notice-success a { color: var(--success); text-decoration: underline; }
.notice:focus { outline: none; }

/* ---- Fußzeile ---- */
#colophon {
  background: #f9f9f9;
  border-top: 1px solid var(--border);
  color: #666;
  font-size: 12px;
  text-align: center;
  padding: 2.2em .5em;
}

/* ---- Datenschutzseite ---- */
.entry address { font-style: normal; margin-bottom: 1.2em; }
.entry ul { padding-left: 1.3em; margin: 0 0 1.2em; }

/* ---- Mobil ---- */
@media (max-width: 800px) {
  body { padding: 0 16px; }
  #page { margin: 16px auto; }
  #main { padding: 1.6em 16px 2em; }
  .site-heading { padding: 1.6em 16px 1.2em; }
  #access { padding: 0; }
  #access a { padding: 0 .9em; }
}
@media (max-width: 480px) {
  body { padding: 0; }
  #page { margin: 0; }
  #site-title { font-size: 24px; }
  .entry-title { font-size: 22px; }
  .file-list { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
