:root {
  color-scheme: light;
  --ink: #152f29;
  --muted: #596963;
  --line: #d5ddd5;
  --paper: #f5f6f0;
  --green: #174e3d;
  --lime: #cced8e;
  --white: #fff;
  --radius: 13px;
  font-family: Inter, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
}
button {
  color: inherit;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-weight: 610;
  letter-spacing: -0.06em;
  font-size: clamp(42px, 5.3vw, 78px);
  line-height: 1.03;
}
h2 {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  letter-spacing: -0.045em;
}
.ic {
  width: 21px;
  height: 21px;
  flex: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -1.1px;
  font-weight: 450;
  font-style: italic;
  white-space: nowrap;
}
.brand b {
  font-weight: 860;
}
.brand i {
  display: inline-block;
  width: 33px;
  height: 21px;
  margin: 0 8px 0 4px;
  transform: skew(-26deg);
  background: linear-gradient(
    to right,
    currentColor 0 23%,
    transparent 23% 36%,
    currentColor 36% 62%,
    transparent 62% 72%,
    currentColor 72%
  );
}
.top {
  background: #fcfdf8;
  border-bottom: 1px solid var(--line);
}
.topinner,
.main,
.pagefoot {
  width: min(1112px, calc(100% - 72px));
  margin: auto;
}
.topinner {
  display: flex;
  align-items: center;
  gap: 56px;
  min-height: 78px;
}
.top nav {
  display: flex;
  gap: 7px;
}
.top nav a,
.exit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 550;
}
.top nav a[aria-current],
.top nav a:hover {
  background: #e6ecdf;
}
.top nav .ic,
.exit .ic {
  width: 17px;
  height: 17px;
}
.top form {
  margin-left: auto;
}
.exit {
  border: 1px solid var(--line);
  background: transparent;
}
.exit:hover {
  background: #e9ede6;
}
.main {
  min-height: calc(100vh - 160px);
  padding: 54px 0 68px;
}
.eyeline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 750;
  letter-spacing: 0.15em;
  color: #476958;
  margin-bottom: 14px;
}
.eyeline i {
  background: #64864e;
  width: 14px;
  height: 3px;
}
.hero {
  margin: 4px 0 44px;
}
.titleline,
.sectitle,
.formfoot,
.detailactions,
.pagination,
.actop,
.posterEdge,
.posterFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.titleline time {
  font-size: 14px;
  color: var(--muted);
  padding-top: 18px;
}
.sectitle {
  margin: 0 0 15px;
}
.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 44px;
}
.action {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 174px;
  padding: 20px 23px 23px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px #172f2910;
}
.action.kauf {
  background: #183e34;
  color: white;
  border-color: #183e34;
}
.action.verkauf {
  background: #e4edd8;
  border-color: #d2dfc3;
}
.actop {
  margin-bottom: 27px;
}
.actop > .ic {
  width: 18px;
  opacity: 0.68;
}
.tile {
  background: #e6ece4;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
  flex: none;
}
.action.kauf .tile {
  background: var(--lime);
}
.action.verkauf .tile {
  background: #ccdcba;
}
.action strong {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 580;
  letter-spacing: -0.05em;
}
.action small {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
.action.kauf small {
  color: #c9d9cc;
}
.textlink,
.back,
.pagination a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}
.textlink:hover,
.back:hover,
.pagination a:hover {
  text-decoration: underline;
}
.textlink .ic,
.back .ic {
  width: 16px;
}
.rows,
.empty,
.detail,
.formsection {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.record {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 16px 20px;
}
.record + .record {
  border-top: 1px solid var(--line);
}
.record:hover {
  background: #f5f8f1;
}
.recmain {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}
.recmain strong {
  font-size: 16px;
  font-weight: 600;
}
.recmain small,
.recdate,
.empty p,
.pagefoot,
.formfoot > span {
  color: var(--muted);
  font-size: 13px;
}
.recdate {
  width: 100px;
  text-align: right;
}
.endicon {
  width: 16px;
  margin-left: 8px;
}
.badge {
  padding: 5px 10px;
  border-radius: 100px;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
}
.badge.kauf,
.tile.kauf {
  background: #e2eddb;
  color: #285132;
}
.badge.verkauf,
.tile.verkauf {
  background: #e1eaf2;
  color: #34536e;
}
.badge.ausweis,
.tile.ausweis {
  background: #f5ebda;
  color: #79551d;
}
.empty {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 27px 24px;
}
.empty > span {
  display: grid;
  place-items: center;
  background: #f1f4ed;
  border-radius: 50%;
  width: 51px;
  height: 51px;
  flex: none;
}
.empty p {
  margin-top: 6px;
  line-height: 1.5;
}
.pagefoot,
.loginFoot {
  border-top: 1px solid var(--line);
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pagefoot span:first-child {
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 750;
}
.formwrap {
  max-width: 800px;
  margin: auto;
}
.formhero {
  margin: 27px 0 27px;
}
.formhero h1 {
  font-size: clamp(32px, 4.7vw, 59px);
  overflow-wrap: anywhere;
}
.formhero p {
  margin: 15px 0;
}
.role,
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e5efdb;
  color: #284c33;
  padding: 14px 18px;
  border-radius: 9px;
  margin: 14px 0 20px;
  font-size: 14px;
  line-height: 1.5;
}
.alert {
  background: #fae6df;
  color: #882d26;
}
.formsection,
.detail {
  margin-bottom: 18px;
  padding: 25px 28px;
}
.formsection h2 {
  font-size: 23px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}
.formsection h2 .ic {
  color: #527565;
}
.inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}
.full {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
label em {
  font-style: normal;
  color: #526e5b;
}
input:not([type='checkbox']):not([type='hidden']),
select,
textarea {
  display: block;
  width: 100%;
  margin: 7px 0 0;
  border: 1px solid #b7c3b9;
  background: #fcfdf9;
  border-radius: 7px;
  padding: 12px 13px;
  color: var(--ink);
  font-size: 16px;
  min-height: 45px;
}
textarea {
  resize: vertical;
}
.inputs label small {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--muted);
  margin-top: 8px;
}
input[type='file']::file-selector-button {
  background: #e4ecdf;
  color: var(--ink);
  border: 0;
  border-radius: 4px;
  padding: 7px 9px;
  margin-right: 10px;
}
input[type='file'] {
  max-width: 100%;
}
.tick {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 450;
}
.tick input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  margin: 0;
}
.button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 7px;
  min-height: 45px;
  padding: 12px 17px;
  font-size: 14px;
  font-weight: 650;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #0d372c;
}
.secondary {
  background: #fff;
  border: 1px solid #c1cec3;
}
.secondary:hover {
  background: #eaf0e5;
}
.formfoot {
  padding: 8px 0;
}
.formfoot .ic,
.detailactions .ic {
  width: 17px;
}
.filterbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.filterbar a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.filterbar a span {
  opacity: 0.74;
  font-size: 12px;
}
.filterbar a[aria-current] {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.searchbox {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}
.searchbox label {
  flex: 1;
  position: relative;
}
.searchbox label > .ic {
  position: absolute;
  top: 14px;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #66776e;
}
.searchbox input[type='search'] {
  margin: 0;
  padding-left: 37px;
}
.pagination {
  justify-content: center;
  margin: 18px 0;
  font-size: 14px;
}
.detail dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}
.detail dt {
  font-size: 13px;
  color: var(--muted);
}
.detail dd {
  margin: 5px 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.detailactions {
  justify-content: flex-start;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.loginpage {
  width: min(1112px, calc(100% - 72px));
  margin: auto;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.loginpage > header {
  height: 87px;
  display: flex;
  align-items: center;
}
.loginbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  margin: auto 0;
}
.loginform {
  align-self: center;
  padding: clamp(29px, 5vw, 75px);
}
.loginform h1 {
  margin: 22px 0 15px;
  font-size: clamp(46px, 5.5vw, 79px);
}
.loginform > p:not(.alert) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.loginform form {
  margin-top: 32px;
}
.wide {
  width: 100%;
  margin-top: 16px;
  justify-content: space-between;
}
.poster {
  background: #193f35;
  position: relative;
  overflow: hidden;
  min-height: 470px;
  color: #d2e5ce;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
}
.posterEdge,
.posterFoot {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 700;
}
.posterFoot {
  letter-spacing: 0;
  font-size: 13px;
}
.posterFoot span {
  font-weight: 400;
}
.road {
  position: absolute;
  inset: -70% -80%;
  transform: rotate(-38deg);
  background: repeating-linear-gradient(
    90deg,
    transparent 0 56px,
    #aacf9824 57px 58px,
    transparent 59px 64px
  );
}
.road:after {
  content: '';
  position: absolute;
  left: 49%;
  height: 100%;
  width: 11%;
  border: solid #b2dd9e34;
  border-width: 0 3px;
  background: #6f916838;
}
.plate {
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%) rotate(-9deg);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  color: #15372c;
  background: #f5f6eb;
  border: 3px solid #243d30;
  outline: 5px solid #f5f6eb;
  border-radius: 9px;
  box-shadow: 0 18px 0 #092d2460;
  font-size: clamp(24px, 4.2vw, 61px);
  font-weight: 750;
  letter-spacing: -0.065em;
  white-space: nowrap;
}
.swiss {
  background: #a84635;
  color: white;
  font-style: normal;
  font-weight: 800;
  font-size: 0.51em;
  width: 1.07em;
  line-height: 1.28em;
  text-align: center;
  border-radius: 1px 1px 5px 5px;
}
.loginFoot {
  margin-top: auto;
  justify-content: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.loginFoot .ic {
  width: 14px;
}
.loginbox + .loginFoot {
  margin-top: 35px;
}
:focus-visible {
  outline: 3px solid #72972d;
  outline-offset: 3px;
}
@media (max-width: 800px) {
  .topinner,
  .main,
  .pagefoot,
  .loginpage {
    width: calc(100% - 38px);
  }
  .topinner {
    gap: 20px;
  }
  .main {
    padding-top: 34px;
  }
  .action {
    padding: 16px;
  }
  .actop {
    margin-bottom: 23px;
  }
  .titleline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .titleline time {
    padding-top: 9px;
  }
  .poster {
    min-height: 425px;
  }
  .loginform {
    padding: 32px;
  }
  .loginpage > header {
    height: 72px;
  }
  .hero {
    margin-bottom: 32px;
  }
}
@media (max-width: 600px) {
  .topinner {
    gap: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 16px;
  }
  .top nav {
    order: 3;
    width: 100%;
    padding: 10px 0;
  }
  .top nav a,
  .exit {
    font-size: 13px;
    padding: 7px 10px;
  }
  .brand {
    font-size: 21px;
  }
  .exit span {
    display: none;
  }
  .actions {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 30px;
  }
  .action {
    display: grid;
    grid-template-columns: 40px 1fr 20px;
    column-gap: 13px;
    row-gap: 3px;
    min-height: 0;
    padding: 15px;
  }
  .actop {
    display: contents;
  }
  .actop .tile {
    grid-column: 1;
    grid-row: 1/3;
    align-self: center;
  }
  .actop > .ic {
    grid-column: 3;
    grid-row: 1/3;
    align-self: center;
  }
  .action strong,
  .action small {
    grid-column: 2;
  }
  .action strong {
    grid-row: 1;
    font-size: 23px;
  }
  .action small {
    grid-row: 2;
    margin: 0;
    font-size: 13px;
  }
  .record {
    padding: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .record .tile {
    width: 31px;
    height: 34px;
  }
  .recdate,
  .endicon {
    display: none;
  }
  .recmain strong {
    font-size: 14px;
  }
  .badge {
    font-size: 10px;
    padding: 4px 7px;
  }
  .empty {
    padding: 18px 14px;
  }
  .inputs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .formsection,
  .detail {
    padding: 20px 16px;
  }
  .formfoot {
    flex-wrap: wrap;
  }
  .formfoot .button {
    width: 100%;
  }
  .sectitle .textlink {
    font-size: 12px;
  }
  .loginbox {
    display: flex;
    flex-direction: column-reverse;
  }
  .poster {
    min-height: 147px;
    padding: 14px 19px;
  }
  .posterEdge {
    font-size: 9px;
  }
  .posterFoot {
    display: none;
  }
  .plate {
    font-size: 35px;
    padding: 7px 12px;
    top: 58%;
  }
  .loginform {
    padding: 26px;
  }
  .loginform h1 {
    font-size: 47px;
    margin: 16px 0 10px;
  }
  .loginform h1 br {
    display: none;
  }
  .loginform h1 br:after {
    content: ' ';
  }
  .loginform h1 {
    max-width: 320px;
  }
  .loginform form {
    margin-top: 21px;
  }
  .searchbox {
    gap: 6px;
  }
  .searchbox .button {
    padding: 9px;
  }
  .filterbar {
    gap: 5px;
  }
  .filterbar a {
    padding: 7px 8px;
    font-size: 12px;
  }
  .detail dl {
    grid-template-columns: 1fr;
  }
  .loginbox + .loginFoot {
    margin-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.photo-status:empty,
.photo-picker[hidden],
[data-contract-link][hidden] {
  display: none;
}
.photo-picker small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.photo-queue {
  list-style: none;
  margin: 0;
  padding: 0;
}
.photo-queue li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  font-size: 14px;
}
.photo-queue button {
  flex: none;
  padding: 7px;
  background: transparent;
  border: 0;
  color: var(--green);
  text-decoration: underline;
}
.photo-status:not(:empty),
[data-contract-link]:not([hidden]) {
  margin: 10px 0;
  font-size: 14px;
}
.photo-status[data-error] {
  color: #882d26;
}
[data-photo-detail] > button {
  margin-top: 12px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(145px, 100%), 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.photo-tile {
  display: block;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.photo-tile img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.photo-tile span {
  display: block;
  padding: 7px 9px;
  font-size: 13px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.photo-viewer {
  width: min(930px, 95vw);
  max-height: 95vh;
  border: 0;
  padding: 16px;
  border-radius: 10px;
  color: var(--ink);
}
.photo-viewer::backdrop {
  background: rgb(8 24 19 / 80%);
}
.viewer-head,
.viewer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.viewer-head strong {
  overflow-wrap: anywhere;
}
.photo-viewer img {
  width: 100%;
  height: min(65vh, 670px);
  object-fit: contain;
  margin: 10px 0;
  background: var(--paper);
}
.photo-viewer button:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (max-width: 600px) {
  .viewer-actions {
    flex-wrap: wrap;
  }
  .viewer-actions a {
    flex-basis: 100%;
    order: 3;
    justify-content: center;
    padding: 7px;
  }
}

.registration-image {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.registration-image img {
  display: block;
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: contain;
}
.registration-image span {
  display: block;
  padding: 10px 12px;
  color: var(--green);
  background: var(--white);
  font-size: 14px;
}
.pdf-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.pdf-tools span {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.pdf-tools button { min-height: 40px; padding: 6px 12px; }
.pdf-tools button:disabled { opacity: .45; cursor: default; }
.pdf-tools [data-zoom] { margin-left: auto; }
.pdf-window {
  width: 100%;
  max-height: min(70vh, 740px);
  overflow: auto;
  scrollbar-gutter: stable;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pdf-window canvas { display: block; width: 100%; height: auto; }
.pdf-window.enlarged canvas { width: 200%; max-width: none; }
.pdf-preview [hidden], .photo-viewer [hidden] { display: none; }
.pdf-preview [data-pdf-status]:not(:empty) { margin: 8px 0; color: var(--muted); }

.delete-link { color: #8c3029; background: transparent; margin-inline-start: auto; }
.delete-link:hover { background: #fbefed; }
.destructive { background: #983832; color: #fff; }
.destructive:hover { background: #792c27; }
.deletion-title { margin: 18px 0 6px; overflow-wrap: anywhere; }
.deletion-note { margin: 18px 0; }

.address-actions { margin: 0 0 20px; }
.address-list { list-style: none; margin: 0; padding: 0; }
.address-list li + li { border-top: 1px solid var(--line); }
.address-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 4px;
}
.address-list a:hover strong { text-decoration: underline; }
[data-address-picker] { min-width: 0; max-width: 100%; }
@media (max-width: 370px) {
  .top nav { gap: 2px; }
  .top nav a { gap: 4px; padding-inline: 7px; }
}
