/* ==========================================================
   EVERYONE ASSEMBLE
   WOHNORTLISTE & MOD-CP
   ========================================================== */

/* ==========================================================
   GRUNDEINSTELLUNGEN
   ========================================================== */

.res-page,
.res-modcp-page{
  --res-bg:#020d18;
  --res-bg-deep:#010914;
  --res-panel:#04192b;
  --res-panel-soft:#082b45;
  --res-panel-light:#0b3150;
  --res-line:#1d5f8f;
  --res-line-soft:rgba(33,139,208,.16);
  --res-accent:#218bd0;
  --res-accent-light:#75d0ff;
  --res-text:#c4d8e4;
  --res-text-light:#e1f1fa;
  --res-muted:#8fa9bc;
  --res-success:#7ac5ad;
  --res-danger:#d47f87;

  width:100%;

  color:var(--res-text);

  font-family:Arial,sans-serif;
  font-size:13px;
  line-height:1.6;
}

.res-page{
  margin:20px auto 40px;
}

.res-page,
.res-page *,
.res-page *:before,
.res-page *:after,
.res-modcp-page,
.res-modcp-page *,
.res-modcp-page *:before,
.res-modcp-page *:after{
  box-sizing:border-box;
}

/* ==========================================================
   HAUPTRAHMEN
   ========================================================== */

.res-shell{
  position:relative;

  width:100%;
  min-width:0;

  overflow:hidden;

  background:
    linear-gradient(
      125deg,
      rgba(33,139,208,.045),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      var(--res-panel),
      var(--res-bg)
    );

  border:1px solid rgba(33,139,208,.32);
  border-left:5px solid var(--res-accent);

  box-shadow:
    0 18px 40px rgba(0,0,0,.30),
    inset 0 1px rgba(255,255,255,.025);
}

/* ==========================================================
   SEITENKOPF
   ========================================================== */

.res-hero{
  position:relative;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  min-height:140px;
  padding:25px 20px;

  overflow:hidden;

  background:
    radial-gradient(
      circle at 50% 135%,
      rgba(33,139,208,.23),
      transparent 49%
    ),
    linear-gradient(
      90deg,
      rgba(33,139,208,.07),
      transparent 50%,
      rgba(33,139,208,.045)
    ),
    var(--res-bg-deep);

  border-bottom:2px solid #1674b5;

  text-align:center;
}

.res-hero:before{
  content:"";

  position:absolute;
  top:0;
  left:50%;

  width:220px;
  height:1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--res-accent-light),
      transparent
    );

  transform:translateX(-50%);
}

.res-hero:after{
  content:"RESIDENCE DATABASE";

  position:absolute;
  right:17px;
  bottom:9px;

  color:rgba(117,208,255,.055);

  font-family:Antonio,Arial,sans-serif;
  font-size:20px;
  font-weight:700;
  line-height:1;

  letter-spacing:4px;

  pointer-events:none;
}

.res-kicker{
  display:block;

  margin-bottom:5px;

  color:var(--res-muted);

  font-family:Antonio,Arial,sans-serif;
  font-size:10px;
  font-weight:700;
  line-height:1.3;

  letter-spacing:2.4px;
  text-transform:uppercase;
}

.res-title{
  display:block;

  color:var(--res-accent-light);

  font-family:Antonio,Arial,sans-serif;
  font-size:28px;
  font-weight:700;
  line-height:1.2;

  letter-spacing:2px;
  text-transform:uppercase;

  text-shadow:0 0 18px rgba(33,139,208,.20);
}

.res-subtitle{
  display:block;

  max-width:650px;
  margin-top:8px;

  color:var(--res-muted);

  font-size:12px;
  line-height:1.6;
}

/* ==========================================================
   FORMULARBEREICH
   ========================================================== */

.res-forms{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;

  width:100%;
  padding:18px;

  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 12px,
      rgba(33,139,208,.012) 12px,
      rgba(33,139,208,.012) 13px
    );

  border-bottom:1px solid rgba(33,139,208,.14);
}

.res-forms > form{
  width:100%;
  min-width:0;
  margin:0;
}

.res-card{
  display:flex;
  flex-direction:column;

  width:100%;
  min-width:0;
  height:100%;

  overflow:hidden;

  color:var(--res-text);

  background:
    linear-gradient(
      145deg,
      rgba(8,43,69,.61),
      rgba(2,13,24,.86)
    );

  border:1px solid rgba(33,139,208,.19);
  border-left:3px solid #1674b5;

  box-shadow:0 9px 21px rgba(0,0,0,.18);
}

.res-card-head{
  position:relative;

  display:flex;
  align-items:center;

  min-height:48px;
  padding:10px 13px;

  color:var(--res-accent-light);

  background:
    linear-gradient(
      90deg,
      rgba(33,139,208,.12),
      transparent 68%
    ),
    var(--res-bg-deep);

  border-bottom:1px solid rgba(33,139,208,.21);

  font-family:Antonio,Arial,sans-serif;
  font-size:12px;
  font-weight:700;
  line-height:1.3;

  letter-spacing:1.1px;
  text-transform:uppercase;
}

.res-card-head:after{
  content:"";

  position:absolute;
  bottom:-1px;
  left:13px;

  width:58px;
  height:2px;

  background:var(--res-accent);
}

.res-card-body{
  display:flex;
  flex:1;
  flex-direction:column;
  gap:12px;

  padding:13px;
}

.res-form-grid{
  display:grid;
  gap:11px;

  width:100%;
}

.res-form-grid-place{
  grid-template-columns:minmax(150px,.8fr) minmax(180px,1fr);
}

.res-form-grid-home{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.res-form-field{
  display:flex;
  flex-direction:column;
  gap:6px;

  min-width:0;
}

.res-form-field-wide{
  grid-column:1 / -1;
}

.res-form-label{
  color:var(--res-muted);

  font-family:Antonio,Arial,sans-serif;
  font-size:10px;
  font-weight:700;
  line-height:1.3;

  letter-spacing:.8px;
  text-transform:uppercase;
}

.res-page select,
.res-page input[type="text"],
.res-page input[type="number"],
.res-page textarea,
.res-modcp-page select,
.res-modcp-page input[type="text"],
.res-modcp-page input[type="number"],
.res-modcp-page textarea,
.res-modal-dialog select,
.res-modal-dialog input[type="text"]{
  width:100%;
  min-height:41px;
  padding:8px 10px;

  color:var(--res-text-light);
  background:var(--res-bg-deep);

  border:1px solid rgba(33,139,208,.25);
  border-radius:0;

  font-family:Arial,sans-serif;
  font-size:13px;
  line-height:1.45;

  outline:none;

  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.res-page textarea,
.res-modal-dialog textarea{
  min-height:100px;

  resize:vertical;
}

.res-page select:focus,
.res-page input:focus,
.res-page textarea:focus,
.res-modcp-page select:focus,
.res-modcp-page input:focus,
.res-modcp-page textarea:focus,
.res-modal-dialog select:focus,
.res-modal-dialog input:focus{
  background:#031426;

  border-color:var(--res-accent);

  box-shadow:0 0 0 1px rgba(33,139,208,.18);
}

.res-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;

  margin-top:auto;
}

/* ==========================================================
   BUTTONS UND AKTIONSLINKS
   ========================================================== */

.res-page .button,
.res-page input.button,
.res-page a.button,
.res-modcp-page .button,
.res-modcp-page input.button,
.res-modcp-page a.button,
.res-modal-dialog .button,
.res-modal-dialog input.button,
.res-action-link,
.home-card-tools a,
.home-actions a,
.resident-action a,
.res-modcp-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:34px;
  padding:7px 11px;

  color:var(--res-accent-light);
  background:var(--res-bg-deep);

  border:1px solid rgba(33,139,208,.28);
  border-radius:0;

  font-family:Antonio,Arial,sans-serif;
  font-size:10px;
  font-weight:700;
  line-height:1.3;

  letter-spacing:.8px;
  text-align:center;
  text-decoration:none;
  text-transform:uppercase;

  cursor:pointer;

  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.res-page .button:hover,
.res-page input.button:hover,
.res-page a.button:hover,
.res-modcp-page .button:hover,
.res-modcp-page input.button:hover,
.res-modcp-page a.button:hover,
.res-modal-dialog .button:hover,
.res-modal-dialog input.button:hover,
.res-action-link:hover,
.home-card-tools a:hover,
.home-actions a:hover,
.resident-action a:hover,
.res-modcp-actions a:hover{
  color:var(--res-text-light);
  background:var(--res-panel-light);

  border-color:var(--res-accent);

  transform:translateY(-1px);
}

/* ==========================================================
   LÄNDER UND ORTE
   ========================================================== */

.res-country{
  width:100%;
  padding:0 18px 18px;
}

.res-country:first-child{
  padding-top:18px;
}

.country-head{
  position:relative;

  display:flex;
  align-items:center;
  justify-content:space-between;

  min-height:55px;
  margin:0 0 12px;
  padding:12px 15px;

  color:var(--res-accent-light);

  background:
    linear-gradient(
      90deg,
      rgba(33,139,208,.13),
      transparent 68%
    ),
    var(--res-bg-deep);

  border:1px solid rgba(33,139,208,.24);
  border-left:4px solid var(--res-accent);

  font-family:Antonio,Arial,sans-serif;
  font-size:17px;
  font-weight:700;
  line-height:1.3;

  letter-spacing:1.5px;
  text-transform:uppercase;
}

.country-head:after{
  content:"REGION";

  color:rgba(117,208,255,.15);

  font-size:10px;
  letter-spacing:1.5px;
}

.res-place{
  width:100%;
  margin-bottom:15px;
}

.res-place:last-child{
  margin-bottom:0;
}

.place-head{
  position:relative;

  display:flex;
  align-items:center;

  min-height:44px;
  padding:10px 13px;

  color:var(--res-text-light);

  background:
    linear-gradient(
      90deg,
      rgba(33,139,208,.09),
      transparent 70%
    ),
    rgba(2,13,24,.75);

  border:1px solid rgba(33,139,208,.17);
  border-bottom:0;

  font-family:Antonio,Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  line-height:1.3;

  letter-spacing:1px;
  text-transform:uppercase;
}

.place-head:before{
  content:"";

  width:6px;
  height:6px;

  margin-right:9px;

  background:var(--res-accent);

  box-shadow:0 0 8px rgba(33,139,208,.45);

  transform:rotate(45deg);
}

/* ==========================================================
   ZUHAUSE-KARTEN
   ========================================================== */

.homes{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;

  width:100%;
  padding:14px;

  background:rgba(2,13,24,.30);

  border:1px solid rgba(33,139,208,.17);
}

.homes:empty:before{
  content:"Für diesen Ort sind noch keine Wohnsitze eingetragen.";

  grid-column:1 / -1;

  padding:20px;

  color:var(--res-muted);
  background:rgba(2,13,24,.42);

  border:1px solid rgba(33,139,208,.10);

  font-size:12px;
  font-style:italic;

  text-align:center;
}

.home-card{
  display:flex;
  flex-direction:column;

  width:100%;
  min-width:0;

  overflow:hidden;

  color:var(--res-text);

  background:
    linear-gradient(
      145deg,
      rgba(8,43,69,.58),
      rgba(2,13,24,.86)
    );

  border:1px solid rgba(33,139,208,.18);
  border-left:3px solid #1674b5;

  box-shadow:0 9px 21px rgba(0,0,0,.18);

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.home-card:hover{
  border-color:rgba(33,139,208,.36);

  box-shadow:0 14px 28px rgba(0,0,0,.25);

  transform:translateY(-2px);
}

.home-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;

  min-height:52px;
  padding:11px 13px;

  background:
    linear-gradient(
      90deg,
      rgba(33,139,208,.11),
      transparent 70%
    ),
    var(--res-bg-deep);

  border-bottom:1px solid rgba(33,139,208,.18);
}

.home-card .title{
  min-width:0;

  color:var(--res-accent-light);

  font-family:Antonio,Arial,sans-serif;
  font-size:15px;
  font-weight:700;
  line-height:1.35;

  letter-spacing:.9px;
  text-transform:uppercase;

  overflow-wrap:anywhere;
}

.home-card-tools{
  display:flex;
  flex:0 0 auto;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:5px;
}

.home-card-tools a{
  min-height:27px;
  padding:5px 7px;
}

.home-main{
  display:flex;
  flex:1;
  flex-direction:column;

  min-width:0;
}

.home-desc{
  flex:1;

  max-height:230px;
  padding:13px;

  overflow-x:hidden;
  overflow-y:auto;

  color:var(--res-text);

  font-size:12px;
  line-height:1.7;

  text-align:justify;
  overflow-wrap:anywhere;

  scrollbar-width:thin;
  scrollbar-color:#1674b5 var(--res-bg-deep);
}

.home-desc:empty:before{
  content:"Keine Beschreibung hinterlegt.";

  color:var(--res-muted);

  font-style:italic;
}

.home-desc::-webkit-scrollbar,
.residents::-webkit-scrollbar{
  width:7px;
  height:7px;
}

.home-desc::-webkit-scrollbar-track,
.residents::-webkit-scrollbar-track{
  background:var(--res-bg-deep);
}

.home-desc::-webkit-scrollbar-thumb,
.residents::-webkit-scrollbar-thumb{
  background:#1674b5;

  border:2px solid var(--res-bg-deep);
}

/* ==========================================================
   META-INFORMATIONEN
   ========================================================== */

.meta{
  display:grid;
  grid-template-columns:1fr;
  gap:1px;

  width:100%;
  min-width:0;

  background:rgba(33,139,208,.09);

  border-top:1px solid rgba(33,139,208,.14);
}

.meta .row{
  display:grid;
  grid-template-columns:105px minmax(0,1fr);
  gap:10px;
  align-items:start;

  width:100%;
  min-width:0;
  padding:9px 11px;

  background:rgba(2,13,24,.62);
}

.meta .k{
  color:var(--res-muted);

  font-family:Antonio,Arial,sans-serif;
  font-size:10px;
  font-weight:700;
  line-height:1.4;

  letter-spacing:.8px;
  text-transform:uppercase;
}

.meta .v{
  min-width:0;

  color:var(--res-text);

  font-size:12px;
  line-height:1.45;

  overflow-wrap:anywhere;
}

.residents{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-content:flex-start;

  max-height:130px;

  overflow-x:hidden;
  overflow-y:auto;

  scrollbar-width:thin;
  scrollbar-color:#1674b5 var(--res-bg-deep);
}

.resident-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;

  min-width:0;
  padding:5px 7px;

  color:var(--res-text);
  background:var(--res-panel-soft);

  border:1px solid rgba(33,139,208,.17);

  font-size:11px;
  line-height:1.35;
}

.resident-name{
  min-width:0;

  overflow-wrap:anywhere;
}

.resident-name a{
  text-decoration:none;
}

.resident-action{
  display:inline-flex;
}

.resident-action a{
  min-height:24px;
  padding:3px 6px;
}

.home-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;

  padding:10px 12px;

  background:rgba(2,13,24,.70);

  border-top:1px solid rgba(33,139,208,.12);
}

/* ==========================================================
   BEARBEITEN-MODAL
   ========================================================== */

.res-modal{
  position:fixed;
  inset:0;
  z-index:99999;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:20px;

  opacity:0;
  visibility:hidden;
  pointer-events:none;

  transition:
    opacity .2s ease,
    visibility .2s ease;
}

.res-modal:target{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.res-modal-backdrop{
  position:absolute;
  inset:0;

  background:rgba(0,0,0,.74);

  backdrop-filter:blur(3px);
}

.res-modal-dialog{
  position:relative;
  z-index:2;

  width:520px;
  max-width:100%;

  overflow:hidden;

  color:#c4d8e4;

  background:
    linear-gradient(
      145deg,
      #04192b,
      #020d18
    );

  border:1px solid rgba(33,139,208,.35);
  border-left:4px solid #218bd0;

  box-shadow:0 24px 60px rgba(0,0,0,.55);
}

.res-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  min-height:52px;
  padding:11px 14px;

  color:#75d0ff;

  background:
    linear-gradient(
      90deg,
      rgba(33,139,208,.13),
      transparent 70%
    ),
    #010914;

  border-bottom:1px solid rgba(33,139,208,.22);

  font-family:Antonio,Arial,sans-serif;
  font-size:13px;
  font-weight:700;

  letter-spacing:1px;
  text-transform:uppercase;
}

.res-modal-close{
  display:flex;
  align-items:center;
  justify-content:center;

  width:30px;
  height:30px;

  color:#75d0ff;
  background:#04192b;

  border:1px solid rgba(33,139,208,.24);

  font-family:Arial,sans-serif;
  font-size:20px;
  line-height:1;

  text-decoration:none;
}

.res-modal-close:hover{
  color:#e1f1fa;

  border-color:#218bd0;
}

.res-modal-body{
  display:grid;
  gap:12px;

  padding:15px;
}

.res-modal-actions{
  display:flex;
  justify-content:flex-end;

  padding:0 15px 15px;
}

/* ==========================================================
   MOD-CP
   ========================================================== */

.res-modcp-page{
  width:100%;
  min-width:0;
}

.res-modcp-shell{
  width:100%;
  min-width:0;

  overflow:hidden;

  background:
    linear-gradient(
      145deg,
      var(--res-panel),
      var(--res-bg)
    );

  border:1px solid rgba(33,139,208,.32);
  border-left:5px solid var(--res-accent);

  box-shadow:0 15px 34px rgba(0,0,0,.26);
}

.res-modcp-head{
  position:relative;

  display:flex;
  align-items:center;
  justify-content:center;

  min-height:75px;
  padding:17px;

  color:var(--res-accent-light);

  background:
    radial-gradient(
      circle at 50% 145%,
      rgba(33,139,208,.20),
      transparent 55%
    ),
    var(--res-bg-deep);

  border-bottom:2px solid #1674b5;

  font-family:Antonio,Arial,sans-serif;
  font-size:22px;
  font-weight:700;

  letter-spacing:1.7px;
  text-align:center;
  text-transform:uppercase;
}

.res-modcp-content{
  display:grid;
  gap:16px;

  padding:16px;
}

.res-modcp-section{
  width:100%;
  min-width:0;

  overflow:hidden;

  background:rgba(2,13,24,.38);

  border:1px solid rgba(33,139,208,.17);
  border-left:3px solid #1674b5;
}

.res-modcp-section-head{
  min-height:47px;
  padding:11px 14px;

  color:var(--res-accent-light);

  background:
    linear-gradient(
      90deg,
      rgba(33,139,208,.12),
      transparent 70%
    ),
    var(--res-bg-deep);

  border-bottom:1px solid rgba(33,139,208,.20);

  font-family:Antonio,Arial,sans-serif;
  font-size:13px;
  font-weight:700;

  letter-spacing:1px;
  text-transform:uppercase;
}

.res-table-scroll{
  width:100%;

  overflow-x:auto;
}

.res-modcp-table{
  width:100%;
  min-width:650px;

  border-collapse:collapse;

  color:var(--res-text);

  font-size:12px;
}

.res-modcp-table th{
  padding:10px 11px;

  color:var(--res-muted);
  background:rgba(2,13,24,.76);

  border-right:1px solid rgba(33,139,208,.10);
  border-bottom:1px solid rgba(33,139,208,.18);

  font-family:Antonio,Arial,sans-serif;
  font-size:10px;
  font-weight:700;

  letter-spacing:.8px;
  text-align:left;
  text-transform:uppercase;
}

.res-modcp-table td{
  padding:10px 11px;

  color:var(--res-text);
  background:rgba(2,13,24,.45);

  border-right:1px solid rgba(33,139,208,.08);
  border-bottom:1px solid rgba(33,139,208,.09);

  vertical-align:top;
}

.res-modcp-table th:last-child,
.res-modcp-table td:last-child{
  border-right:0;
}

.res-modcp-table tr:hover td{
  background:rgba(8,43,69,.58);
}

.res-modcp-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.res-modcp-home-title{
  color:var(--res-accent-light);

  font-family:Antonio,Arial,sans-serif;
  font-size:13px;
  font-weight:700;

  letter-spacing:.7px;
  text-transform:uppercase;
}

.res-modcp-home-description{
  margin-top:7px;

  color:var(--res-text);

  font-size:12px;
  line-height:1.6;

  text-align:justify;
}

.res-modcp-home-meta{
  margin-top:5px;

  color:var(--res-muted);

  font-size:11px;
}

.res-modcp-footer{
  padding:11px;

  text-align:center;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media screen and (max-width:950px){

  .res-forms,
  .homes{
    grid-template-columns:1fr;
  }
}

@media screen and (max-width:700px){

  .res-form-grid-place,
  .res-form-grid-home{
    grid-template-columns:1fr;
  }

  .res-form-field-wide{
    grid-column:auto;
  }

  .res-hero{
    min-height:120px;
    padding:21px 14px;
  }

  .res-title{
    font-size:23px;
  }

  .res-hero:after{
    display:none;
  }

  .res-forms,
  .res-country{
    padding-left:11px;
    padding-right:11px;
  }
}

@media screen and (max-width:480px){

  .country-head{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }

  .country-head:after{
    display:none;
  }

  .home-card-head{
    flex-direction:column;
  }

  .home-card-tools{
    justify-content:flex-start;
  }

  .meta .row{
    grid-template-columns:1fr;
    gap:3px;
  }

  .home-actions{
    justify-content:stretch;
  }

  .home-actions a,
  .home-actions .button{
    width:100%;
  }
}