@charset "UTF-8";

/*
 * Archiv Entlebucher Kunstverein / Brattig
 * Nachbau der alten Darstellung gemäss Wayback-Screenshot.
 * Funktioniert bewusst auch ohne Klassen, weil die alten Templates
 * hauptsächlich mit einfachen Tabellen, h1, Formularfeldern und Links arbeiten.
 */

html {
  font-size: 100%;
}

body {
  margin: 0;
  padding: 8px 10px 18px;
  background: #ffffff;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

/* Allgemeine Typografie */
h1,
h2,
h3,
p {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

/* Links wie im alten Archiv: rot, fett, ohne Unterstreichung */
a:link,
a:visited {
  color: #ed1c24;
  font-weight: 700;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #b00000;
  text-decoration: underline;
}

/* Formular-/Suchbereich */
form {
  display: block;
  margin: 0 0 12px;
  padding: 8px 10px 10px;
  background: #f7f7f7;
  border-bottom: 1px solid #e5e5e5;
}

label {
  display: inline-block;
  margin-right: 6px;
  font-weight: 400;
}

input,
select,
textarea,
button {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.2;
}

input[type="text"],
input[type="search"],
input:not([type]),
textarea {
  box-sizing: border-box;
  min-height: 19px;
  padding: 2px 4px;
  border: 1px solid #8f8f8f;
  background: #ffffff;
  color: #111111;
}

select {
  box-sizing: border-box;
  min-height: 22px;
  padding: 1px 2px;
  border: 1px solid #8f8f8f;
  background: #ffffff;
  color: #111111;
}

select[multiple] {
  height: 72px;
  vertical-align: top;
}

button,
input[type="submit"],
input[type="button"] {
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid #8f8f8f;
  border-radius: 0;
  background: #eeeeee;
  color: #111111;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: #e0e0e0;
}

/* Alte Templates verwenden oft einfache Tabellen für Formular und Inhaltsliste */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 11px;
}

th,
td {
  padding: 5px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 700;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
}

/* Zebra-Streifen für Artikelliste/Werkliste */
tr:nth-child(even) td {
  background: #f3f3f3;
}

tr:nth-child(odd) td {
  background: #ffffff;
}

tr td {
  border-bottom: 1px solid #eeeeee;
}

/* Tabellenkopf im alten Template kann als h1 innerhalb der Zellen ausgegeben sein */
td h1,
th h1 {
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

/* Spaltenbreiten für Artikel-Archiv: Jahr / Autor / Titel / Seite */
table tr > td:nth-child(1),
table tr > th:nth-child(1) {
  width: 4.5%;
  white-space: nowrap;
}

table tr > td:nth-child(2),
table tr > th:nth-child(2) {
  width: 31%;
}

table tr > td:nth-child(3),
table tr > th:nth-child(3) {
  width: auto;
}

table tr > td:nth-child(4),
table tr > th:nth-child(4) {
  width: 5%;
  text-align: right;
  white-space: nowrap;
}

/* Erste Formular-Tabelle nicht wie Ergebnisliste behandeln */
form table td,
form table th,
form table tr:nth-child(even) td,
form table tr:nth-child(odd) td {
  padding: 2px 4px;
  border-bottom: 0;
  background: transparent;
}

form table {
  margin-bottom: 4px;
}

/* Häufige Feldnamen der alten Templates */
input[name="titel"],
input[name="werk"] {
  width: 320px;
  max-width: 100%;
}

select[name="jahre[]"],
select[name="kuenstler[]"],
select[name="arten[]"],
select[name="rahmung[]"] {
  width: 100%;
  max-width: 100%;
}

select[name="autoren[]"] {
  width: 100%;
  max-width: 100%;
}

/* Falls die Suche nicht in einer Tabelle steht: Felder trotzdem ordentlich anordnen */
form > select,
form > input,
form > label {
  margin-bottom: 4px;
}

/* Mobile: Lesbarkeit erhalten */
@media (max-width: 760px) {
  body {
    padding: 8px;
    font-size: 12px;
  }

  h1,
  td h1,
  th h1,
  table,
  input,
  select,
  textarea,
  button {
    font-size: 12px;
  }

  th,
  td {
    padding: 5px 4px;
  }

  input[name="titel"],
  input[name="werk"] {
    width: 100%;
  }
}
/* ------------------------------------------------------------
   Suchformular oben: kompakt linksbündig wie Wayback
   ------------------------------------------------------------ */

form {
  display: block !important;
  width: auto !important;
  margin: 0 0 12px 0 !important;
  padding: 8px 10px 10px 10px !important;
  background: #f7f7f7 !important;
  text-align: left !important;
}

form table {
  width: auto !important;
  max-width: none !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  margin: 0 !important;
}

form table tr,
form table tbody tr,
form table tr:nth-child(odd),
form table tr:nth-child(even) {
  background: transparent !important;
}

form table td,
form table th,
form table tr:nth-child(odd) td,
form table tr:nth-child(even) td {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 2px 6px 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
  vertical-align: top !important;
  white-space: nowrap !important;
}

/* Eingabefeld Titel / Werk */
form input[type="text"],
form input[name="titel"],
form input[name="werk"] {
  width: 280px !important;
  min-width: 0 !important;
  max-width: 280px !important;
  box-sizing: border-box !important;
}

/* Auswahlfelder nicht über die ganze Breite ziehen */
form select {
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 72px !important;
  box-sizing: border-box !important;
}

/* Jahre: schmal */
form select[name="jahre[]"],
form select[name="jahre"] {
  width: 95px !important;
}

/* Autoren / Künstler: nur so breit wie nötig, aber lesbar */
form select[name="autoren[]"],
form select[name="autoren"],
form select[name="kuenstler[]"],
form select[name="kuenstler"] {
  width: 255px !important;
}

/* Weitere Auswahlfelder bei werke.php */
form select[name="arten[]"],
form select[name="arten"],
form select[name="rahmung[]"],
form select[name="rahmung"] {
  width: 180px !important;
}

/* Button kompakt darunter */
form input[type="submit"],
form button {
  margin-top: 6px !important;
}