:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#18283b;background:#f4f7fb;font-size:15px}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #dde5ef}.wrap{max-width:1250px;margin:auto;padding:25px 24px}.header{display:flex;align-items:center;justify-content:space-between;padding-top:19px;padding-bottom:19px}.brand{font-size:19px;letter-spacing:.07em;font-weight:800;color:#15558d}.subtitle,.muted,.footer{color:#6a7a8b}.subtitle{font-size:13px}.narrow{max-width:480px;margin:10vh auto;padding:24px}h1{font-size:27px;margin:18px 0}h2{font-size:19px;margin:0 0 20px}.panel{border:1px solid #dee6ee;border-radius:12px;background:white;box-shadow:0 2px 6px #132d4d08;padding:24px;margin:0 0 23px}label{display:flex;flex-direction:column;font-size:13px;font-weight:650;gap:7px;color:#35465c}label small{font-weight:400;color:#7a8795}input,textarea{width:100%;border:1px solid #cdd8e3;border-radius:7px;font:inherit;padding:11px 12px;background:#fff;color:#1b2c40}input:focus,textarea:focus{outline:2px solid #93c5fd;border-color:#2775b6}textarea{resize:vertical}button,.button{background:#17639e;color:white;display:inline-flex;align-items:center;justify-content:center;border:1px solid #17639e;border-radius:7px;padding:11px 17px;text-decoration:none;cursor:pointer;font:inherit;font-weight:650;white-space:nowrap}button:hover,.button:hover{filter:brightness(.94)}.secondary{background:white;color:#285575;border-color:#cad7e4}.small{padding:8px 12px;font-size:13px}.entryform{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:17px}.entryform .wide,.entryform .actions{grid-column:1/-1}.actions{display:flex;gap:10px}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:12px}.sectionhead h2{margin:0}.count{background:#eaf2f9;color:#15558d;border-radius:20px;font-size:13px;padding:4px 9px}.filters{display:grid;grid-template-columns:1.2fr 1.2fr .8fr .8fr auto;gap:12px;align-items:end;margin:24px 0}.filteractions{display:flex;gap:7px}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;min-width:760px}th{background:#f3f7fa;color:#506276;font-size:12px;text-transform:uppercase;letter-spacing:.03em;padding:13px 11px}td{padding:15px 11px;border-bottom:1px solid #edf1f5;vertical-align:top;line-height:1.5}tr:hover td{background:#fbfdff}.date{white-space:nowrap;color:#536579}.notes{max-width:450px;overflow-wrap:anywhere;white-space:normal}.rowactions{display:flex;gap:12px;align-items:center}.rowactions a{color:#17639e;text-decoration:none}.delete{border:0;background:transparent;color:#a63140;font-size:13px;padding:0}.empty{text-align:center;color:#7b8997;padding:34px}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:18px}.pagination div{display:flex;gap:8px}.footer{text-align:center;font-size:12px}.alert,.success{border-radius:7px;padding:12px 15px;margin:15px 0;background:#ffe8e8;color:#9b2525}.success{background:#e7f6ec;color:#216744}.narrow form{display:grid;gap:16px}@media(max-width:950px){.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filteractions{grid-column:1/-1}.entryform{grid-template-columns:repeat(2,minmax(0,1fr))}.entryform label:nth-of-type(3){grid-column:1/-1}}@media(max-width:550px){.wrap{padding:20px 13px}.panel{padding:16px}.entryform,.filters{grid-template-columns:1fr}.entryform label:nth-of-type(3){grid-column:auto}.sectionhead{align-items:start}.filteractions{grid-column:auto}.brand{font-size:16px}}

.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.inlineform{display:inline-flex;gap:6px;margin:3px 10px 3px 0;align-items:center}.inlineform input{width:175px;padding:8px}select{width:100%;padding:11px;border:1px solid #cdd8e3;border-radius:7px;background:white} @media(max-width:650px){.header{align-items:start;gap:15px;flex-wrap:wrap}.inlineform{flex-wrap:wrap}}


/* ----------------------------------------------------------
   IT-Logbuch: Layout-Feinschliff (November 2026)
   Rein optische Anpassungen, keine PHP-Aenderungen noetig.
   ---------------------------------------------------------- */

:root { background: #f5f7fb; }
.wrap { max-width: 1320px; }
.panel { padding: 26px; border-radius: 13px; }

/* Einheitliche Formularfelder */
input, select, textarea { min-width: 0; border-radius: 8px; }
input:not([type="checkbox"]):not([type="hidden"]), select { min-height: 44px; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #9ecbf0;
  outline-offset: 1px;
}
button, .button { min-height: 44px; }
button.small, .button.small { min-height: 36px; }

/* Alle drei oberen Felder beginnen auf derselben Hoehe.
   Der Hilfetext unter "Wo" verschiebt das Feld nicht mehr. */
.entryform {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 18px;
}
.entryform > label:not(.wide) { position: relative; gap: 0; }
.entryform > label:not(.wide) > small {
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  font-size: 11px;
  line-height: 15px;
}
.entryform > label:not(.wide) > input { margin-top: 30px; }
.entryform > .wide { gap: 8px; }
.entryform textarea { min-height: 94px; }
.entryform .actions { margin-top: 2px; }

/* Gleichmaessige Suche mit eigener Aktionszeile */
.filters {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(145px, .8fr) minmax(145px, .8fr);
  align-items: end;
  gap: 14px;
  margin: 23px 0 20px;
}
.filteractions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

/* Tabelle mit besserer Lesbarkeit */
.tablewrap { border: 1px solid #e6ecf3; border-radius: 9px; }
table { min-width: 800px; }
th { padding: 13px 14px; white-space: nowrap; }
td { padding: 15px 14px; }
th:nth-child(1) { width: 155px; }
th:nth-child(2) { width: 90px; }
th:nth-child(3) { width: 22%; }
th:nth-child(5) { width: 155px; }
.rowactions { gap: 13px; }
.notes { max-width: none; }

/* Kopfzeile und Benutzeraktionen */
.header-actions { gap: 9px; }
.header-actions > form { margin: 0; }

@media (max-width: 950px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filteractions { grid-column: 1 / -1; }
  .entryform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entryform > label:nth-of-type(3) { grid-column: 1 / -1; }
}
@media (max-width: 550px) {
  .panel { padding: 18px; }
  .entryform, .filters { grid-template-columns: minmax(0, 1fr); }
  .entryform > label:nth-of-type(3) { grid-column: auto; }
  .filteractions { grid-column: auto; justify-content: stretch; }
  .filteractions > * { flex: 1; }
  .header-actions { gap: 7px; }
  .sectionhead { flex-wrap: wrap; }
}

/* Version 1.2 */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:20px}.stats>div{border:1px solid #dce5f0;border-radius:11px;background:#fff;padding:17px;display:flex;flex-direction:column;gap:4px}.stats b{font-size:25px;color:#17639e}.stats span{font-size:12px;color:#6a7a8b}.entryform>label:not(.wide)>select,.entryform>label:not(.wide)>input[type=date]{margin-top:30px}.filters{grid-template-columns:repeat(5,minmax(0,1fr))}.historyitem{border-bottom:1px solid #e8eef3;padding:12px 0}.small-link{font-size:12px}.notes a{color:#17639e}@media(max-width:950px){.filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.stats{grid-template-columns:1fr}.filters{grid-template-columns:1fr}}
